recurly 4.27.0 → 4.28.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: 640a24b929e9682d7617c76acc1a64e15e7ffab1911caf2c451d87a66879636b
4
- data.tar.gz: 3f8a5c5064c8e7171dc6e6b0ff7159c4da7bb6e483795053455a0cd46024525e
3
+ metadata.gz: 16800abba256fceed49ee4141796878faa9b1d10c97752fd18e05ae6f7be3761
4
+ data.tar.gz: 8fcb048d891ab4ae3c6a401cdaf343d1889bd53337b976ca0d86616d53ae8706
5
5
  SHA512:
6
- metadata.gz: add90da54e5859f423bb14382674297aab1cd4807e3238c31bb7b8edc23ee2c963efa0acdeae40a4943678960d375c1d19dfea7666c753b422e54782c5cc1d7f
7
- data.tar.gz: 116106098e2251a1cf36031e2f15e51853052ffe7ec5da674a441a1b231ae3b81327cb00264d7cab48e43b4c925ae21c39b7d979c89e3082e39208b263d29e0f
6
+ metadata.gz: c108d83003c365f301e93d255078a067ff6ecf440ba1efc3d5e0de61d40be977b5de1f1668d4661c927aeb8d8650d4d49765f6be2c9206d4545fc0315a29becf
7
+ data.tar.gz: d1fc3157a45ac11d9e790d2510e7de1496a5549f1dd827b973ea69a056329b8a3b01b725c7b956a3ecbba896c03415316f29b94710408676a404e9ded6e5641a
data/.bumpversion.cfg CHANGED
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 4.27.0
2
+ current_version = 4.28.0
3
3
  parse = (?P<major>\d+)
4
4
  \.(?P<minor>\d+)
5
5
  \.(?P<patch>\d+)
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.28.0](https://github.com/recurly/recurly-client-ruby/tree/4.28.0) (2023-01-19)
4
+
5
+ [Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.27.0...4.28.0)
6
+
7
+
8
+ **Merged Pull Requests**
9
+
10
+ - Generated Latest Changes for v2021-02-25 (Custom Fields on Line Items) [#821](https://github.com/recurly/recurly-client-ruby/pull/821) ([recurly-integrations](https://github.com/recurly-integrations))
11
+
12
+
13
+
3
14
  ## [4.27.0](https://github.com/recurly/recurly-client-ruby/tree/4.27.0) (2023-01-11)
4
15
 
5
16
  [Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.26.0...4.27.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', '~> 4.27'
8
+ gem 'recurly', '~> 4.28'
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.
@@ -135,6 +135,7 @@ module Recurly
135
135
  # code: account_code,
136
136
  # first_name: "Benjamin",
137
137
  # last_name: "Du Monde",
138
+ # preferred_time_zone: "America/Chicago",
138
139
  # acquisition: {
139
140
  # campaign: "podcast-marketing",
140
141
  # channel: "social_media",
@@ -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
@@ -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 = "4.27.0"
2
+ VERSION = "4.28.0"
3
3
  end
data/openapi/api.yaml CHANGED
@@ -722,6 +722,7 @@ paths:
722
722
  code: accountCode,
723
723
  firstName: 'Benjamin',
724
724
  lastName: 'Du Monde',
725
+ preferredTimeZone: 'America/Chicago',
725
726
  address: {
726
727
  street1: '900 Camp St',
727
728
  city: 'New Orleans',
@@ -750,6 +751,7 @@ paths:
750
751
  "code": account_code,
751
752
  "first_name": "Benjamin",
752
753
  "last_name": "Du Monde",
754
+ "preferred_time_zone": "America/Chicago",
753
755
  "acquisition": {
754
756
  "campaign": "podcast-marketing",
755
757
  "channel": "social_media",
@@ -785,6 +787,7 @@ paths:
785
787
  Code = accountCode,
786
788
  FirstName = "Benjamin",
787
789
  LastName = "Du Monde",
790
+ PreferredTimeZone = "America/Chicago",
788
791
  Address = new Address()
789
792
  {
790
793
  City = "New Orleans",
@@ -815,6 +818,7 @@ paths:
815
818
  code: account_code,
816
819
  first_name: "Benjamin",
817
820
  last_name: "Du Monde",
821
+ preferred_time_zone: "America/Chicago",
818
822
  acquisition: {
819
823
  campaign: "podcast-marketing",
820
824
  channel: "social_media",
@@ -853,6 +857,7 @@ paths:
853
857
  accountReq.setCode(accountCode);
854
858
  accountReq.setFirstName("Aaron");
855
859
  accountReq.setLastName("Du Monde");
860
+ accountReq.setPreferredTimeZone("America/Chicago");
856
861
 
857
862
  address.setStreet1("900 Camp St.");
858
863
  address.setCity("New Orleans");
@@ -879,6 +884,7 @@ paths:
879
884
  "code" => $account_code,
880
885
  "first_name" => "Douglas",
881
886
  "last_name" => "DuMonde",
887
+ "preferred_time_zone" => "America/Chicago",
882
888
  "shipping_addresses" => [
883
889
  [
884
890
  "first_name" => "Douglas",
@@ -908,17 +914,17 @@ paths:
908
914
  - lang: Go
909
915
  source: "accountReq := &recurly.AccountCreate{\n\tCode: &accountCode,\n\tFirstName:
910
916
  recurly.String(\"Isaac\"),\n\tLastName: recurly.String(\"Du Monde\"),\n\tEmail:
911
- \ recurly.String(\"isaac@example.com\"),\n\tBillingInfo: &recurly.BillingInfoCreate{\n\t\tFirstName:
912
- recurly.String(\"Isaac\"),\n\t\tLastName: recurly.String(\"Du Monde\"),\n\t\tAddress:
913
- &recurly.AddressCreate{\n\t\t\tPhone: recurly.String(\"415-555-5555\"),\n\t\t\tStreet1:
914
- \ recurly.String(\"400 Alabama St.\"),\n\t\t\tCity: recurly.String(\"San
915
- Francisco\"),\n\t\t\tPostalCode: recurly.String(\"94110\"),\n\t\t\tCountry:
916
- \ recurly.String(\"US\"),\n\t\t\tRegion: recurly.String(\"CA\"),\n\t\t},\n\t\tNumber:
917
- recurly.String(\"4111111111111111\"),\n\t\tMonth: recurly.String(\"12\"),\n\t\tYear:
918
- \ recurly.String(\"22\"),\n\t\tCvv: recurly.String(\"123\"),\n\t},\n}\n\naccount,
919
- err := client.CreateAccount(accountReq)\nif e, ok := err.(*recurly.Error);
920
- ok {\n\tif e.Type == recurly.ErrorTypeValidation {\n\t\tfmt.Printf(\"Failed
921
- validation: %v\", e)\n\t\treturn nil, err\n\t}\n\tfmt.Printf(\"Unexpected
917
+ \ recurly.String(\"isaac@example.com\"),\n\tPreferredTimeZone: recurly.String(\"America/Los_Angeles\"),\n\tBillingInfo:
918
+ &recurly.BillingInfoCreate{\n\t\tFirstName: recurly.String(\"Isaac\"),\n\t\tLastName:
919
+ \ recurly.String(\"Du Monde\"),\n\t\tAddress: &recurly.AddressCreate{\n\t\t\tPhone:
920
+ \ recurly.String(\"415-555-5555\"),\n\t\t\tStreet1: recurly.String(\"400
921
+ Alabama St.\"),\n\t\t\tCity: recurly.String(\"San Francisco\"),\n\t\t\tPostalCode:
922
+ recurly.String(\"94110\"),\n\t\t\tCountry: recurly.String(\"US\"),\n\t\t\tRegion:
923
+ \ recurly.String(\"CA\"),\n\t\t},\n\t\tNumber: recurly.String(\"4111111111111111\"),\n\t\tMonth:
924
+ \ recurly.String(\"12\"),\n\t\tYear: recurly.String(\"22\"),\n\t\tCvv:
925
+ \ recurly.String(\"123\"),\n\t},\n}\n\naccount, err := client.CreateAccount(accountReq)\nif
926
+ e, ok := err.(*recurly.Error); ok {\n\tif e.Type == recurly.ErrorTypeValidation
927
+ {\n\t\tfmt.Printf(\"Failed validation: %v\", e)\n\t\treturn nil, err\n\t}\n\tfmt.Printf(\"Unexpected
922
928
  Recurly error: %v\", e)\n\treturn nil, err\n}\nfmt.Printf(\"Created Account:
923
929
  %s\", account.Id)"
924
930
  "/accounts/{account_id}":
@@ -14688,6 +14694,8 @@ paths:
14688
14694
  The API request allows the inclusion of one of the following fields: **external_hpp_type** with `'adyen'` and **online_banking_payment_type** with `'ideal'` or `'sofort'` in the **billing_info** object.
14689
14695
 
14690
14696
  For additional information regarding shipping fees, please see https://docs.recurly.com/docs/shipping
14697
+
14698
+ Note: an email address is required on the account for a Pending Purchase.
14691
14699
  requestBody:
14692
14700
  content:
14693
14701
  application/json:
@@ -19133,6 +19141,8 @@ components:
19133
19141
  format: date-time
19134
19142
  title: End date
19135
19143
  description: If this date is provided, it indicates the end of a time range.
19144
+ custom_fields:
19145
+ "$ref": "#/components/schemas/CustomFields"
19136
19146
  created_at:
19137
19147
  type: string
19138
19148
  format: date-time
@@ -19299,6 +19309,8 @@ components:
19299
19309
  true. This origin creates a charge and opposite credit on the account
19300
19310
  to be used for future invoices.
19301
19311
  "$ref": "#/components/schemas/LineItemCreateOriginEnum"
19312
+ custom_fields:
19313
+ "$ref": "#/components/schemas/CustomFields"
19302
19314
  start_date:
19303
19315
  type: string
19304
19316
  format: date-time
@@ -22899,6 +22911,7 @@ components:
22899
22911
  - item
22900
22912
  - plan
22901
22913
  - subscription
22914
+ - charge
22902
22915
  RefundTypeEnum:
22903
22916
  type: string
22904
22917
  enum:
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: 4.27.0
4
+ version: 4.28.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-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -326,7 +326,7 @@ metadata:
326
326
  changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
327
327
  documentation_uri: https://recurly.github.io/recurly-client-ruby/
328
328
  homepage_uri: https://github.com/recurly/recurly-client-ruby
329
- source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.27.0
329
+ source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.28.0
330
330
  post_install_message:
331
331
  rdoc_options: []
332
332
  require_paths: