recurly 3.24.0 → 3.26.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed0b8401ee5879270989110b1b826589fe628d1befb4209b2f995bc8c2d55124
4
- data.tar.gz: 62d1aba9f1e248b0ba1c9eeb790cdfd2d935d49e743d2f9cfa8ccaf6d33cb5e7
3
+ metadata.gz: 9e70d1a1bb7c0d88be5d3a03dce9a78bf4a588124f396d8a28f5605a3f680cf8
4
+ data.tar.gz: d5f09642546b24a79fdb6514e6b6ce4309dd740dd1c1df69c17f9c141fb32326
5
5
  SHA512:
6
- metadata.gz: 650e5852f33c74e4407668d517f0b2f8c429a358782ac8c7f804378528f88e4b903cd173020666f0a7aeb794143d1e01693e15ae1eaa838bf3d7febef4ccd28a
7
- data.tar.gz: 545373440597d3477a1eaf2210ae5963ff7a8784524d3332a126550f059917f8d3516becf4a2793be90a048666edb1437f3038f40aca4d6093938f7b26a431c2
6
+ metadata.gz: 37d9669ada25d5a7ec8b74a45e0524f9fa7707b3081c9ab8dac05f3bf021e721ee61a06dfd8fd6dd6c153020fb49e76feaedb03daff9cccc5a1329224b335332
7
+ data.tar.gz: 694703dbf884a6ceb9f77864c2b29efef149722ec2d67baac25d82f76b2e14ec2250748a722a20dd5f4dd075e7250a9abc8c70275e71063d3c6d93f7b238f0f3
data/.bumpversion.cfg CHANGED
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 3.24.0
2
+ current_version = 3.26.0
3
3
  parse = (?P<major>\d+)
4
4
  \.(?P<minor>\d+)
5
5
  \.(?P<patch>\d+)
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.26.0](https://github.com/recurly/recurly-client-ruby/tree/3.26.0) (2023-04-26)
4
+
5
+ [Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.25.0...3.26.0)
6
+
7
+
8
+ **Merged Pull Requests**
9
+
10
+ - Generated Latest Changes for v2019-10-10 (used_tax_service on Invoice) [#838](https://github.com/recurly/recurly-client-ruby/pull/838) ([recurly-integrations](https://github.com/recurly-integrations))
11
+
12
+
13
+
14
+ ## [3.25.0](https://github.com/recurly/recurly-client-ruby/tree/3.25.0) (2023-01-19)
15
+
16
+ [Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.24.0...3.25.0)
17
+
18
+
19
+ **Merged Pull Requests**
20
+
21
+ - Generated Latest Changes for v2019-10-10 (Custom Fields on Line Items) [#822](https://github.com/recurly/recurly-client-ruby/pull/822) ([recurly-integrations](https://github.com/recurly-integrations))
22
+
23
+
24
+
3
25
  ## [3.24.0](https://github.com/recurly/recurly-client-ruby/tree/3.24.0) (2023-01-11)
4
26
 
5
27
  [Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.23.0...3.24.0)
data/GETTING_STARTED.md CHANGED
@@ -5,7 +5,7 @@ This repository houses the official ruby client for Recurly's V3 API.
5
5
  In your Gemfile, add `recurly` as a dependency.
6
6
 
7
7
  ```ruby
8
- gem 'recurly', '~> 3.24'
8
+ gem 'recurly', '~> 3.26'
9
9
  ```
10
10
 
11
11
  > *Note*: We try to follow [semantic versioning](https://semver.org/) and will only apply breaking changes to major versions.
@@ -127,6 +127,7 @@ module Recurly
127
127
  # code: account_code,
128
128
  # first_name: "Benjamin",
129
129
  # last_name: "Du Monde",
130
+ # preferred_time_zone: "America/Chicago",
130
131
  # acquisition: {
131
132
  # campaign: "podcast-marketing",
132
133
  # channel: "social_media",
@@ -30,6 +30,10 @@ module Recurly
30
30
  # @return [String] Company name
31
31
  define_attribute :company, String
32
32
 
33
+ # @!attribute currency
34
+ # @return [String] 3-letter ISO 4217 currency code.
35
+ define_attribute :currency, String
36
+
33
37
  # @!attribute cvv
34
38
  # @return [String] *STRONGLY RECOMMENDED*
35
39
  define_attribute :cvv, String
@@ -26,6 +26,10 @@ module Recurly
26
26
  # @return [String] 3-letter ISO 4217 currency code. If `item_code`/`item_id` is part of the request then `currency` is optional, if the site has a single default currency. `currency` is required if `item_code`/`item_id` is present, and there are multiple currencies defined on the site. If `item_code`/`item_id` is not present `currency` is required.
27
27
  define_attribute :currency, String
28
28
 
29
+ # @!attribute custom_fields
30
+ # @return [Array[CustomField]] 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.
31
+ define_attribute :custom_fields, Array, { :item_type => :CustomField }
32
+
29
33
  # @!attribute description
30
34
  # @return [String] Description that appears on the invoice. If `item_code`/`item_id` is part of the request then `description` must be absent.
31
35
  define_attribute :description, String
@@ -43,7 +43,7 @@ module Recurly
43
43
  define_attribute :updated_at, DateTime
44
44
 
45
45
  # @!attribute user_access
46
- # @return [String] The access control applied inside Recurly's admin UI: - `api_only` - No one will be able to view or edit this field's data via the admin UI. - `read_only` - Users with the Customers role will be able to view this field's data via the admin UI, but editing will only be available via the API. - `write` - Users with the Customers role will be able to view and edit this field's data via the admin UI.
46
+ # @return [String] The access control applied inside Recurly's admin UI: - `api_only` - No one will be able to view or edit this field's data via the admin UI. - `read_only` - Users with the Customers role will be able to view this field's data via the admin UI, but editing will only be available via the API. - `write` - Users with the Customers role will be able to view and edit this field's data via the admin UI. - `set_only` - Users with the Customers role will be able to set this field's data via the admin console.
47
47
  define_attribute :user_access, String
48
48
  end
49
49
  end
@@ -142,6 +142,10 @@ module Recurly
142
142
  # @return [DateTime] Last updated at
143
143
  define_attribute :updated_at, DateTime
144
144
 
145
+ # @!attribute used_tax_service
146
+ # @return [Boolean] Will be `true` when the invoice had a successful response from the tax service and `false` when the invoice was not sent to tax service due to a lack of address or enabled jurisdiction or was processed without tax due to a non-blocking error returned from the tax service.
147
+ define_attribute :used_tax_service, :Boolean
148
+
145
149
  # @!attribute vat_number
146
150
  # @return [String] VAT registration number for the customer on this invoice. This will come from the VAT Number field in the Billing Info or the Account Info depending on your tax settings and the invoice collection method.
147
151
  define_attribute :vat_number, String
@@ -54,6 +54,10 @@ module Recurly
54
54
  # @return [String] 3-letter ISO 4217 currency code.
55
55
  define_attribute :currency, String
56
56
 
57
+ # @!attribute custom_fields
58
+ # @return [Array[CustomField]] 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.
59
+ define_attribute :custom_fields, Array, { :item_type => :CustomField }
60
+
57
61
  # @!attribute description
58
62
  # @return [String] Description that appears on the invoice. For subscription related items this will be filled in automatically.
59
63
  define_attribute :description, String
@@ -1,3 +1,3 @@
1
1
  module Recurly
2
- VERSION = "3.24.0"
2
+ VERSION = "3.26.0"
3
3
  end
data/openapi/api.yaml CHANGED
@@ -224,8 +224,8 @@ tags:
224
224
  x-displayName: Site
225
225
  - name: custom_field_definition
226
226
  x-displayName: Custom Field Definition
227
- description: Describes the fields that can use used as custom fields on accounts
228
- or subscriptions.
227
+ description: Describes the fields that can be used as custom fields on accounts,
228
+ items, line-items (one time charges), plans, or subscriptions.
229
229
  - name: item
230
230
  x-displayName: Item
231
231
  description: |-
@@ -686,6 +686,7 @@ paths:
686
686
  code: accountCode,
687
687
  firstName: 'Benjamin',
688
688
  lastName: 'Du Monde',
689
+ preferredTimeZone: 'America/Chicago',
689
690
  address: {
690
691
  street1: '900 Camp St',
691
692
  city: 'New Orleans',
@@ -714,6 +715,7 @@ paths:
714
715
  "code": account_code,
715
716
  "first_name": "Benjamin",
716
717
  "last_name": "Du Monde",
718
+ "preferred_time_zone": "America/Chicago",
717
719
  "acquisition": {
718
720
  "campaign": "podcast-marketing",
719
721
  "channel": "social_media",
@@ -749,6 +751,7 @@ paths:
749
751
  Code = accountCode,
750
752
  FirstName = "Benjamin",
751
753
  LastName = "Du Monde",
754
+ PreferredTimeZone = "America/Chicago",
752
755
  Address = new Address()
753
756
  {
754
757
  City = "New Orleans",
@@ -779,6 +782,7 @@ paths:
779
782
  code: account_code,
780
783
  first_name: "Benjamin",
781
784
  last_name: "Du Monde",
785
+ preferred_time_zone: "America/Chicago",
782
786
  acquisition: {
783
787
  campaign: "podcast-marketing",
784
788
  channel: "social_media",
@@ -817,6 +821,7 @@ paths:
817
821
  accountReq.setCode(accountCode);
818
822
  accountReq.setFirstName("Aaron");
819
823
  accountReq.setLastName("Du Monde");
824
+ accountReq.setPreferredTimeZone("America/Chicago");
820
825
 
821
826
  address.setStreet1("900 Camp St.");
822
827
  address.setCity("New Orleans");
@@ -843,6 +848,7 @@ paths:
843
848
  "code" => $account_code,
844
849
  "first_name" => "Douglas",
845
850
  "last_name" => "DuMonde",
851
+ "preferred_time_zone" => "America/Chicago",
846
852
  "shipping_addresses" => [
847
853
  [
848
854
  "first_name" => "Douglas",
@@ -872,17 +878,17 @@ paths:
872
878
  - lang: Go
873
879
  source: "accountReq := &recurly.AccountCreate{\n\tCode: &accountCode,\n\tFirstName:
874
880
  recurly.String(\"Isaac\"),\n\tLastName: recurly.String(\"Du Monde\"),\n\tEmail:
875
- \ recurly.String(\"isaac@example.com\"),\n\tBillingInfo: &recurly.BillingInfoCreate{\n\t\tFirstName:
876
- recurly.String(\"Isaac\"),\n\t\tLastName: recurly.String(\"Du Monde\"),\n\t\tAddress:
877
- &recurly.AddressCreate{\n\t\t\tPhone: recurly.String(\"415-555-5555\"),\n\t\t\tStreet1:
878
- \ recurly.String(\"400 Alabama St.\"),\n\t\t\tCity: recurly.String(\"San
879
- Francisco\"),\n\t\t\tPostalCode: recurly.String(\"94110\"),\n\t\t\tCountry:
880
- \ recurly.String(\"US\"),\n\t\t\tRegion: recurly.String(\"CA\"),\n\t\t},\n\t\tNumber:
881
- recurly.String(\"4111111111111111\"),\n\t\tMonth: recurly.String(\"12\"),\n\t\tYear:
882
- \ recurly.String(\"22\"),\n\t\tCvv: recurly.String(\"123\"),\n\t},\n}\n\naccount,
883
- err := client.CreateAccount(accountReq)\nif e, ok := err.(*recurly.Error);
884
- ok {\n\tif e.Type == recurly.ErrorTypeValidation {\n\t\tfmt.Printf(\"Failed
885
- validation: %v\", e)\n\t\treturn nil, err\n\t}\n\tfmt.Printf(\"Unexpected
881
+ \ recurly.String(\"isaac@example.com\"),\n\tPreferredTimeZone: recurly.String(\"America/Los_Angeles\"),\n\tBillingInfo:
882
+ &recurly.BillingInfoCreate{\n\t\tFirstName: recurly.String(\"Isaac\"),\n\t\tLastName:
883
+ \ recurly.String(\"Du Monde\"),\n\t\tAddress: &recurly.AddressCreate{\n\t\t\tPhone:
884
+ \ recurly.String(\"415-555-5555\"),\n\t\t\tStreet1: recurly.String(\"400
885
+ Alabama St.\"),\n\t\t\tCity: recurly.String(\"San Francisco\"),\n\t\t\tPostalCode:
886
+ recurly.String(\"94110\"),\n\t\t\tCountry: recurly.String(\"US\"),\n\t\t\tRegion:
887
+ \ recurly.String(\"CA\"),\n\t\t},\n\t\tNumber: recurly.String(\"4111111111111111\"),\n\t\tMonth:
888
+ \ recurly.String(\"12\"),\n\t\tYear: recurly.String(\"22\"),\n\t\tCvv:
889
+ \ recurly.String(\"123\"),\n\t},\n}\n\naccount, err := client.CreateAccount(accountReq)\nif
890
+ e, ok := err.(*recurly.Error); ok {\n\tif e.Type == recurly.ErrorTypeValidation
891
+ {\n\t\tfmt.Printf(\"Failed validation: %v\", e)\n\t\treturn nil, err\n\t}\n\tfmt.Printf(\"Unexpected
886
892
  Recurly error: %v\", e)\n\treturn nil, err\n}\nfmt.Printf(\"Created Account:
887
893
  %s\", account.Id)"
888
894
  "/sites/{site_id}/accounts/{account_id}":
@@ -6175,6 +6181,7 @@ paths:
6175
6181
  - item
6176
6182
  - plan
6177
6183
  - subscription
6184
+ - charge
6178
6185
  responses:
6179
6186
  '200':
6180
6187
  description: A list of the site's custom field definitions.
@@ -15554,7 +15561,9 @@ components:
15554
15561
  - es-MX
15555
15562
  - es-US
15556
15563
  - fi-FI
15564
+ - fr-BE
15557
15565
  - fr-CA
15566
+ - fr-CH
15558
15567
  - fr-FR
15559
15568
  - hi-IN
15560
15569
  - it-IT
@@ -15691,7 +15700,9 @@ components:
15691
15700
  - es-MX
15692
15701
  - es-US
15693
15702
  - fi-FI
15703
+ - fr-BE
15694
15704
  - fr-CA
15705
+ - fr-CH
15695
15706
  - fr-FR
15696
15707
  - hi-IN
15697
15708
  - it-IT
@@ -16612,6 +16623,9 @@ components:
16612
16623
  title: Security code or CVV
16613
16624
  description: "*STRONGLY RECOMMENDED*"
16614
16625
  maxLength: 4
16626
+ currency:
16627
+ type: string
16628
+ description: 3-letter ISO 4217 currency code.
16615
16629
  vat_number:
16616
16630
  type: string
16617
16631
  title: VAT number
@@ -17444,6 +17458,7 @@ components:
17444
17458
  - item
17445
17459
  - plan
17446
17460
  - subscription
17461
+ - charge
17447
17462
  name:
17448
17463
  type: string
17449
17464
  title: Name
@@ -17460,10 +17475,12 @@ components:
17460
17475
  - `read_only` - Users with the Customers role will be able to view this field's data via the admin UI, but
17461
17476
  editing will only be available via the API.
17462
17477
  - `write` - Users with the Customers role will be able to view and edit this field's data via the admin UI.
17478
+ - `set_only` - Users with the Customers role will be able to set this field's data via the admin console.
17463
17479
  enum:
17464
17480
  - api_only
17465
17481
  - read_only
17466
17482
  - write
17483
+ - set_only
17467
17484
  display_name:
17468
17485
  type: string
17469
17486
  title: Display name
@@ -17958,6 +17975,13 @@ components:
17958
17975
  description: The outstanding balance remaining on this invoice.
17959
17976
  tax_info:
17960
17977
  "$ref": "#/components/schemas/TaxInfo"
17978
+ used_tax_service:
17979
+ type: boolean
17980
+ title: Used Tax Service?
17981
+ description: Will be `true` when the invoice had a successful response from
17982
+ the tax service and `false` when the invoice was not sent to tax service
17983
+ due to a lack of address or enabled jurisdiction or was processed without
17984
+ tax due to a non-blocking error returned from the tax service.
17961
17985
  vat_number:
17962
17986
  type: string
17963
17987
  title: VAT number
@@ -18696,6 +18720,8 @@ components:
18696
18720
  format: date-time
18697
18721
  title: End date
18698
18722
  description: If this date is provided, it indicates the end of a time range.
18723
+ custom_fields:
18724
+ "$ref": "#/components/schemas/CustomFields"
18699
18725
  created_at:
18700
18726
  type: string
18701
18727
  format: date-time
@@ -18890,6 +18916,8 @@ components:
18890
18916
  format: date-time
18891
18917
  title: End date
18892
18918
  description: If this date is provided, it indicates the end of a time range.
18919
+ custom_fields:
18920
+ "$ref": "#/components/schemas/CustomFields"
18893
18921
  required:
18894
18922
  - currency
18895
18923
  - unit_amount
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurly
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.24.0
4
+ version: 3.26.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recurly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-11 00:00:00.000000000 Z
11
+ date: 2023-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -306,7 +306,7 @@ metadata:
306
306
  changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
307
307
  documentation_uri: https://recurly.github.io/recurly-client-ruby/
308
308
  homepage_uri: https://github.com/recurly/recurly-client-ruby
309
- source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/3.24.0
309
+ source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/3.26.0
310
310
  post_install_message:
311
311
  rdoc_options: []
312
312
  require_paths: