recurly 4.27.0 → 4.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +24 -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: 16800abba256fceed49ee4141796878faa9b1d10c97752fd18e05ae6f7be3761
|
4
|
+
data.tar.gz: 8fcb048d891ab4ae3c6a401cdaf343d1889bd53337b976ca0d86616d53ae8706
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c108d83003c365f301e93d255078a067ff6ecf440ba1efc3d5e0de61d40be977b5de1f1668d4661c927aeb8d8650d4d49765f6be2c9206d4545fc0315a29becf
|
7
|
+
data.tar.gz: d1fc3157a45ac11d9e790d2510e7de1496a5549f1dd827b973ea69a056329b8a3b01b725c7b956a3ecbba896c03415316f29b94710408676a404e9ded6e5641a
|
data/.bumpversion.cfg
CHANGED
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.
|
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.
|
@@ -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
@@ -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\
|
912
|
-
recurly.
|
913
|
-
|
914
|
-
\
|
915
|
-
|
916
|
-
|
917
|
-
recurly.String(\"
|
918
|
-
\
|
919
|
-
err := client.CreateAccount(accountReq)\nif
|
920
|
-
ok {\n\tif e.Type == recurly.ErrorTypeValidation
|
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.
|
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
|
+
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.
|
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:
|