recurly 3.24.0 → 3.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.bumpversion.cfg +1 -1
- data/CHANGELOG.md +11 -0
- data/GETTING_STARTED.md +1 -1
- data/lib/recurly/client/operations.rb +1 -0
- data/lib/recurly/requests/line_item_create.rb +4 -0
- data/lib/recurly/resources/line_item.rb +4 -0
- data/lib/recurly/version.rb +1 -1
- data/openapi/api.yaml +23 -11
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4aff2f3330116454a182cc1993edc02a2e192024936aa9727fda1bc3894124cc
|
4
|
+
data.tar.gz: 81e97af9a4d118fbb31996900d580aa4a6f5699d1d14fe12f9709c9add6c2842
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 586de0de06d1aa08a3e061da546a34ab51bcad40257932d012894d00591476682e5b33dfea6b4da480d4f9e8e963d23c952c451b6e5b5910e7a06bc7a4e79830
|
7
|
+
data.tar.gz: 5dd9e588a610f97353ca7df860dc476a2faf64df41f55b81ab6e8710968570f7d2bfdd48a41a6486a34675fbaf003c115dc75bf6c6a283520396c271db9a9587
|
data/.bumpversion.cfg
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [3.25.0](https://github.com/recurly/recurly-client-ruby/tree/3.25.0) (2023-01-19)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.24.0...3.25.0)
|
6
|
+
|
7
|
+
|
8
|
+
**Merged Pull Requests**
|
9
|
+
|
10
|
+
- 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))
|
11
|
+
|
12
|
+
|
13
|
+
|
3
14
|
## [3.24.0](https://github.com/recurly/recurly-client-ruby/tree/3.24.0) (2023-01-11)
|
4
15
|
|
5
16
|
[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.
|
8
|
+
gem 'recurly', '~> 3.25'
|
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.
|
@@ -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
|
data/lib/recurly/version.rb
CHANGED
data/openapi/api.yaml
CHANGED
@@ -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\
|
876
|
-
recurly.
|
877
|
-
|
878
|
-
\
|
879
|
-
|
880
|
-
|
881
|
-
recurly.String(\"
|
882
|
-
\
|
883
|
-
err := client.CreateAccount(accountReq)\nif
|
884
|
-
ok {\n\tif e.Type == recurly.ErrorTypeValidation
|
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.
|
@@ -17444,6 +17451,7 @@ components:
|
|
17444
17451
|
- item
|
17445
17452
|
- plan
|
17446
17453
|
- subscription
|
17454
|
+
- charge
|
17447
17455
|
name:
|
17448
17456
|
type: string
|
17449
17457
|
title: Name
|
@@ -18696,6 +18704,8 @@ components:
|
|
18696
18704
|
format: date-time
|
18697
18705
|
title: End date
|
18698
18706
|
description: If this date is provided, it indicates the end of a time range.
|
18707
|
+
custom_fields:
|
18708
|
+
"$ref": "#/components/schemas/CustomFields"
|
18699
18709
|
created_at:
|
18700
18710
|
type: string
|
18701
18711
|
format: date-time
|
@@ -18890,6 +18900,8 @@ components:
|
|
18890
18900
|
format: date-time
|
18891
18901
|
title: End date
|
18892
18902
|
description: If this date is provided, it indicates the end of a time range.
|
18903
|
+
custom_fields:
|
18904
|
+
"$ref": "#/components/schemas/CustomFields"
|
18893
18905
|
required:
|
18894
18906
|
- currency
|
18895
18907
|
- 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.
|
4
|
+
version: 3.25.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
|
+
date: 2023-01-19 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.
|
309
|
+
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/3.25.0
|
310
310
|
post_install_message:
|
311
311
|
rdoc_options: []
|
312
312
|
require_paths:
|