From 3e4a1d3290cfdf5656aae43c0ec0f3dc7fe255b2 Mon Sep 17 00:00:00 2001 From: Michael Woodward Date: Fri, 15 Nov 2024 10:36:36 +0000 Subject: [PATCH] fix!: Fix acronym casing for SubscriptionManagementUrLs (#49) BREAKING CHANGE: SubscriptionManagementUrLs is now SubscriptionManagementURLs --- subscriptions.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/subscriptions.go b/subscriptions.go index 10c15ac..0be8b11 100644 --- a/subscriptions.go +++ b/subscriptions.go @@ -427,8 +427,8 @@ type SubscriptionScheduledChange struct { ResumeAt *string `json:"resume_at,omitempty"` } -// SubscriptionManagementUrLs: Authenticated customer portal deep links for this subscription. For security, the `token` appended to each link is temporary. You shouldn't store these links. -type SubscriptionManagementUrLs struct { +// SubscriptionManagementURLs: Authenticated customer portal deep links for this subscription. For security, the `token` appended to each link is temporary. You shouldn't store these links. +type SubscriptionManagementURLs struct { // UpdatePaymentMethod: Link to the page for this subscription in the customer portal with the payment method update form pre-opened. Use as part of workflows to let customers update their payment details. `null` for manually-collected subscriptions. UpdatePaymentMethod *string `json:"update_payment_method,omitempty"` // Cancel: Link to the page for this subscription in the customer portal with the subscription cancellation form pre-opened. Use as part of cancel subscription workflows. @@ -577,7 +577,7 @@ type Subscription struct { // ScheduledChange: Change that's scheduled to be applied to a subscription. Use the pause subscription, cancel subscription, and resume subscription operations to create scheduled changes. `null` if no scheduled changes. ScheduledChange *SubscriptionScheduledChange `json:"scheduled_change,omitempty"` // ManagementURLs: Authenticated customer portal deep links for this subscription. For security, the `token` appended to each link is temporary. You shouldn't store these links. - ManagementURLs SubscriptionManagementUrLs `json:"management_urls,omitempty"` + ManagementURLs SubscriptionManagementURLs `json:"management_urls,omitempty"` // Items: Represents a subscription item. Items []SubscriptionItem `json:"items,omitempty"` // CustomData: Your own structured key-value data. @@ -742,7 +742,7 @@ type SubscriptionPreview struct { // ScheduledChange: Change that's scheduled to be applied to a subscription. Use the pause subscription, cancel subscription, and resume subscription operations to create scheduled changes. `null` if no scheduled changes. ScheduledChange *SubscriptionScheduledChange `json:"scheduled_change,omitempty"` // ManagementURLs: Authenticated customer portal deep links for this subscription. For security, the `token` appended to each link is temporary. You shouldn't store these links. - ManagementURLs SubscriptionManagementUrLs `json:"management_urls,omitempty"` + ManagementURLs SubscriptionManagementURLs `json:"management_urls,omitempty"` // Items: Represents a subscription item. Items []SubscriptionItem `json:"items,omitempty"` // CustomData: Your own structured key-value data.