Skip to content

Commit e532c3c

Browse files
committed
chore: Upgrade client to 5.x
1 parent d5cea42 commit e532c3c

File tree

75 files changed

+268
-267
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+268
-267
lines changed

.changelog_config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
owner: recurly
33
repo: recurly-client-go
4-
tag_matcher: ^v4\..*
4+
tag_matcher: ^v5\..*
55
required_issue_labels:
6-
- V4
6+
- V5
77
exclude_labels:
88
- bug?
99
- internal

account.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ type Account struct {
4646
HasPastDueInvoice bool `json:"has_past_due_invoice,omitempty"`
4747

4848
// When the account was created.
49-
CreatedAt time.Time `json:"created_at,omitempty"`
49+
CreatedAt *time.Time `json:"created_at,omitempty"`
5050

5151
// When the account was last changed.
52-
UpdatedAt time.Time `json:"updated_at,omitempty"`
52+
UpdatedAt *time.Time `json:"updated_at,omitempty"`
5353

5454
// If present, when the account was last marked inactive.
55-
DeletedAt time.Time `json:"deleted_at,omitempty"`
55+
DeletedAt *time.Time `json:"deleted_at,omitempty"`
5656

5757
// The unique identifier of the account. This cannot be changed once the account is created.
5858
Code string `json:"code,omitempty"`

account_acquisition.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ type AccountAcquisition struct {
3434
Account AccountMini `json:"account,omitempty"`
3535

3636
// When the account acquisition data was created.
37-
CreatedAt time.Time `json:"created_at,omitempty"`
37+
CreatedAt *time.Time `json:"created_at,omitempty"`
3838

3939
// When the account acquisition data was last changed.
40-
UpdatedAt time.Time `json:"updated_at,omitempty"`
40+
UpdatedAt *time.Time `json:"updated_at,omitempty"`
4141
}
4242

4343
// GetResponse returns the ResponseMetadata that generated this resource

account_create.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ type AccountCreate struct {
1414
Acquisition *AccountAcquisitionUpdate `json:"acquisition,omitempty"`
1515

1616
// External Accounts
17-
ExternalAccounts []ExternalAccountCreate `json:"external_accounts,omitempty"`
17+
ExternalAccounts *[]ExternalAccountCreate `json:"external_accounts,omitempty"`
1818

19-
ShippingAddresses []ShippingAddressCreate `json:"shipping_addresses,omitempty"`
19+
ShippingAddresses *[]ShippingAddressCreate `json:"shipping_addresses,omitempty"`
2020

2121
// A secondary value for the account.
2222
Username *string `json:"username,omitempty"`
@@ -74,7 +74,7 @@ type AccountCreate struct {
7474
BillingInfo *BillingInfoCreate `json:"billing_info,omitempty"`
7575

7676
// The custom fields will only be altered when they are included in a request. Sending an empty array will not remove any existing values. To remove a field send the name with a null or empty value.
77-
CustomFields []CustomFieldCreate `json:"custom_fields,omitempty"`
77+
CustomFields *[]CustomFieldCreate `json:"custom_fields,omitempty"`
7878

7979
// The Avalara AvaTax value that can be passed to identify the customer type for tax purposes. The range of values can be A - R (more info at Avalara). Value is case-sensitive.
8080
EntityUseCode *string `json:"entity_use_code,omitempty"`

account_note.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type AccountNote struct {
2424

2525
Message string `json:"message,omitempty"`
2626

27-
CreatedAt time.Time `json:"created_at,omitempty"`
27+
CreatedAt *time.Time `json:"created_at,omitempty"`
2828
}
2929

3030
// GetResponse returns the ResponseMetadata that generated this resource

account_purchase.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ type AccountPurchase struct {
7272
BillingInfo *BillingInfoCreate `json:"billing_info,omitempty"`
7373

7474
// The custom fields will only be altered when they are included in a request. Sending an empty array will not remove any existing values. To remove a field send the name with a null or empty value.
75-
CustomFields []CustomFieldCreate `json:"custom_fields,omitempty"`
75+
CustomFields *[]CustomFieldCreate `json:"custom_fields,omitempty"`
7676

7777
// The Avalara AvaTax value that can be passed to identify the customer type for tax purposes. The range of values can be A - R (more info at Avalara). Value is case-sensitive.
7878
EntityUseCode *string `json:"entity_use_code,omitempty"`

account_update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ type AccountUpdate struct {
6464
BillingInfo *BillingInfoCreate `json:"billing_info,omitempty"`
6565

6666
// The custom fields will only be altered when they are included in a request. Sending an empty array will not remove any existing values. To remove a field send the name with a null or empty value.
67-
CustomFields []CustomFieldCreate `json:"custom_fields,omitempty"`
67+
CustomFields *[]CustomFieldCreate `json:"custom_fields,omitempty"`
6868

6969
// The Avalara AvaTax value that can be passed to identify the customer type for tax purposes. The range of values can be A - R (more info at Avalara). Value is case-sensitive.
7070
EntityUseCode *string `json:"entity_use_code,omitempty"`

add_on.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ type AddOn struct {
110110
ExternalSku string `json:"external_sku,omitempty"`
111111

112112
// Created at
113-
CreatedAt time.Time `json:"created_at,omitempty"`
113+
CreatedAt *time.Time `json:"created_at,omitempty"`
114114

115115
// Last updated at
116-
UpdatedAt time.Time `json:"updated_at,omitempty"`
116+
UpdatedAt *time.Time `json:"updated_at,omitempty"`
117117

118118
// Deleted at
119-
DeletedAt time.Time `json:"deleted_at,omitempty"`
119+
DeletedAt *time.Time `json:"deleted_at,omitempty"`
120120
}
121121

122122
// GetResponse returns the ResponseMetadata that generated this resource

add_on_create.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ type AddOnCreate struct {
8989
// * If the add-on's `tier_type` is `tiered`, `volume`, or `stairstep`,
9090
// then `currencies` must be absent.
9191
// * Must be absent if `add_on_type` is `usage` and `usage_type` is `percentage`.
92-
Currencies []AddOnPricingCreate `json:"currencies,omitempty"`
92+
Currencies *[]AddOnPricingCreate `json:"currencies,omitempty"`
9393

9494
// The pricing model for the add-on. For more information,
9595
// [click here](https://docs.recurly.com/docs/billing-models#section-quantity-based). See our
@@ -106,12 +106,12 @@ type AddOnCreate struct {
106106
// must include one to many tiers with `ending_quantity` and `unit_amount` for
107107
// the desired `currencies`. There must be one tier without an `ending_quantity` value
108108
// which represents the final tier.
109-
Tiers []TierCreate `json:"tiers,omitempty"`
109+
Tiers *[]TierCreate `json:"tiers,omitempty"`
110110

111111
// Array of objects which must have at least one set of tiers
112112
// per currency and the currency code. The tier_type must be `volume` or `tiered`,
113113
// if not, it must be absent. There must be one tier without an `ending_amount` value
114114
// which represents the final tier. This feature is currently in development and
115115
// requires approval and enablement, please contact support.
116-
PercentageTiers []PercentageTiersByCurrencyCreate `json:"percentage_tiers,omitempty"`
116+
PercentageTiers *[]PercentageTiersByCurrencyCreate `json:"percentage_tiers,omitempty"`
117117
}

add_on_update.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,18 @@ type AddOnUpdate struct {
7171
// If the add-on's `tier_type` is `tiered`, `volume`, or `stairstep`,
7272
// then currencies must be absent. Must also be absent if `add_on_type` is
7373
// `usage` and `usage_type` is `percentage`.
74-
Currencies []AddOnPricingCreate `json:"currencies,omitempty"`
74+
Currencies *[]AddOnPricingCreate `json:"currencies,omitempty"`
7575

7676
// If the tier_type is `flat`, then `tiers` must be absent. The `tiers` object
7777
// must include one to many tiers with `ending_quantity` and `unit_amount` for
7878
// the desired `currencies`. There must be one tier without an `ending_quantity` value
7979
// which represents the final tier.
80-
Tiers []TierCreate `json:"tiers,omitempty"`
80+
Tiers *[]TierCreate `json:"tiers,omitempty"`
8181

8282
// `percentage_tiers` is an array of objects, which must have the set of tiers
8383
// per currency and the currency code. The tier_type must be `volume` or `tiered`,
8484
// if not, it must be absent. There must be one tier without an `ending_amount` value
8585
// which represents the final tier. This feature is currently in development and
8686
// requires approval and enablement, please contact support.
87-
PercentageTiers []PercentageTiersByCurrencyCreate `json:"percentage_tiers,omitempty"`
87+
PercentageTiers *[]PercentageTiersByCurrencyCreate `json:"percentage_tiers,omitempty"`
8888
}

0 commit comments

Comments
 (0)