recurly 4.57.0 → 4.59.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 +23 -0
- data/GETTING_STARTED.md +1 -1
- data/lib/recurly/client/operations.rb +31 -1
- data/lib/recurly/requests/account_external_subscription.rb +14 -0
- data/lib/recurly/requests/billing_info_create.rb +5 -1
- data/lib/recurly/requests/coupon_bulk_create.rb +1 -1
- data/lib/recurly/requests/external_account_create.rb +1 -1
- data/lib/recurly/requests/external_account_update.rb +1 -1
- data/lib/recurly/requests/external_product_reference_base.rb +2 -2
- data/lib/recurly/requests/external_product_reference_connection_type.rb +10 -0
- data/lib/recurly/requests/external_product_reference_create.rb +2 -2
- data/lib/recurly/requests/external_product_reference_update.rb +18 -0
- data/lib/recurly/requests/external_subscription_create.rb +62 -0
- data/lib/recurly/requests/external_subscription_update.rb +58 -0
- data/lib/recurly/requests/invoice_create.rb +8 -0
- data/lib/recurly/requests/payment_gateway_references.rb +18 -0
- data/lib/recurly/requests/purchase_create.rb +12 -0
- data/lib/recurly/requests/subscription_change_create.rb +8 -0
- data/lib/recurly/requests/subscription_create.rb +8 -0
- data/lib/recurly/resources/billing_info.rb +4 -0
- data/lib/recurly/resources/business_entity_mini.rb +26 -0
- data/lib/recurly/resources/external_account.rb +1 -1
- data/lib/recurly/resources/payment_gateway_references.rb +18 -0
- data/lib/recurly/resources/payment_method.rb +5 -1
- data/lib/recurly/resources/subscription.rb +4 -0
- data/lib/recurly/resources/subscription_change.rb +4 -0
- data/lib/recurly/resources/transaction.rb +8 -0
- data/lib/recurly/version.rb +1 -1
- data/openapi/api.yaml +516 -19
- data/recurly.gemspec +2 -0
- metadata +28 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa01a46479316edc7d1659eee1bb644658ac1b98b226a828f700f4e4604300b8
|
4
|
+
data.tar.gz: 9b940bfaaa7825fde720224a96206718612fd770edff7ce9b4a98a4b79ce3307
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3e62c1f06d5925e4ff0f729aa7c81e7753f221dacedc064da3fd18743219cd88b04d5550b64942355aa7c3bbe8309d163acfc78bca40638efc0ce1c9fc2c222
|
7
|
+
data.tar.gz: 58aba19b4411cc33dd7d556dc03413c73df4440424c7d3fcbe1b9cb2c0f8f9f529be371d9995873b6daf8bfa081188c31999f3c9cc2cf2b739684a2afd9fbafd
|
data/.bumpversion.cfg
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,28 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [4.59.0](https://github.com/recurly/recurly-client-ruby/tree/4.59.0) (2025-02-26)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.58.0...4.59.0)
|
6
|
+
|
7
|
+
|
8
|
+
**Merged Pull Requests**
|
9
|
+
|
10
|
+
- Add `funding_source` to `BillingInfo` and `Transaction` [#921](https://github.com/recurly/recurly-client-ruby/pull/921) ([recurly-integrations](https://github.com/recurly-integrations))
|
11
|
+
- Generated Latest Changes for v2021-02-25 [#919](https://github.com/recurly/recurly-client-ruby/pull/919) ([recurly-integrations](https://github.com/recurly-integrations))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
## [4.58.0](https://github.com/recurly/recurly-client-ruby/tree/4.58.0) (2024-12-16)
|
16
|
+
|
17
|
+
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.57.0...4.58.0)
|
18
|
+
|
19
|
+
|
20
|
+
**Merged Pull Requests**
|
21
|
+
|
22
|
+
- Generated Latest Changes for v2021-02-25 [#918](https://github.com/recurly/recurly-client-ruby/pull/918) ([recurly-integrations](https://github.com/recurly-integrations))
|
23
|
+
|
24
|
+
|
25
|
+
|
3
26
|
## [4.57.0](https://github.com/recurly/recurly-client-ruby/tree/4.57.0) (2024-12-02)
|
4
27
|
|
5
28
|
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.56.0...4.57.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.59'
|
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.
|
@@ -1698,6 +1698,7 @@ module Recurly
|
|
1698
1698
|
# :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
|
1699
1699
|
# *Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
|
1700
1700
|
#
|
1701
|
+
# :redeemed [String] Filter unique coupon codes by redemption status. +true+ for redeemed, +false+ for not redeemed.
|
1701
1702
|
#
|
1702
1703
|
# @return [Pager<Resources::UniqueCouponCode>] A list of unique coupon codes that were generated
|
1703
1704
|
#
|
@@ -2382,7 +2383,21 @@ module Recurly
|
|
2382
2383
|
delete(path, **options)
|
2383
2384
|
end
|
2384
2385
|
|
2385
|
-
#
|
2386
|
+
# Create an external subscription
|
2387
|
+
#
|
2388
|
+
# {https://developers.recurly.com/api/v2021-02-25#operation/create_external_subscription create_external_subscription api documentation}
|
2389
|
+
#
|
2390
|
+
# @param body [Requests::ExternalSubscriptionCreate] The Hash representing the JSON request to send to the server. It should conform to the schema of {Requests::ExternalSubscriptionCreate}
|
2391
|
+
# @param params [Hash] Optional query string parameters:
|
2392
|
+
#
|
2393
|
+
# @return [Resources::ExternalSubscription] Returns the external subscription
|
2394
|
+
#
|
2395
|
+
def create_external_subscription(body:, **options)
|
2396
|
+
path = "/external_subscriptions"
|
2397
|
+
post(path, body, Requests::ExternalSubscriptionCreate, **options)
|
2398
|
+
end
|
2399
|
+
|
2400
|
+
# List the external subscriptions on a site
|
2386
2401
|
#
|
2387
2402
|
# {https://developers.recurly.com/api/v2021-02-25#operation/list_external_subscriptions list_external_subscriptions api documentation}
|
2388
2403
|
#
|
@@ -2413,6 +2428,21 @@ module Recurly
|
|
2413
2428
|
get(path, **options)
|
2414
2429
|
end
|
2415
2430
|
|
2431
|
+
# Update an external subscription
|
2432
|
+
#
|
2433
|
+
# {https://developers.recurly.com/api/v2021-02-25#operation/put_external_subscription put_external_subscription api documentation}
|
2434
|
+
#
|
2435
|
+
# @param external_subscription_id [String] External subscription id
|
2436
|
+
# @param params [Hash] Optional query string parameters:
|
2437
|
+
# :body [Requests::ExternalSubscriptionUpdate] The Hash representing the JSON request to send to the server. It should conform to the schema of {Requests::ExternalSubscriptionUpdate}
|
2438
|
+
#
|
2439
|
+
# @return [Resources::ExternalSubscription] Settings for an external subscription.
|
2440
|
+
#
|
2441
|
+
def put_external_subscription(external_subscription_id:, **options)
|
2442
|
+
path = interpolate_path("/external_subscriptions/{external_subscription_id}", external_subscription_id: external_subscription_id)
|
2443
|
+
put(path, options[:body], Requests::ExternalSubscriptionUpdate, **options)
|
2444
|
+
end
|
2445
|
+
|
2416
2446
|
# List the external invoices on an external subscription
|
2417
2447
|
#
|
2418
2448
|
# {https://developers.recurly.com/api/v2021-02-25#operation/list_external_subscription_external_invoices list_external_subscription_external_invoices api documentation}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# This file is automatically created by Recurly's OpenAPI generation process
|
2
|
+
# and thus any edits you make by hand will be lost. If you wish to make a
|
3
|
+
# change to this file, please create a Github issue explaining the changes you
|
4
|
+
# need and we will usher them to the appropriate places.
|
5
|
+
module Recurly
|
6
|
+
module Requests
|
7
|
+
class AccountExternalSubscription < Request
|
8
|
+
|
9
|
+
# @!attribute account_code
|
10
|
+
# @return [String] The account code of a new or existing account to be used when creating the external subscription.
|
11
|
+
define_attribute :account_code, String
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -63,7 +63,7 @@ module Recurly
|
|
63
63
|
define_attribute :gateway_attributes, :GatewayAttributes
|
64
64
|
|
65
65
|
# @!attribute gateway_code
|
66
|
-
# @return [String] An identifier for a specific payment gateway.
|
66
|
+
# @return [String] An identifier for a specific payment gateway.
|
67
67
|
define_attribute :gateway_code, String
|
68
68
|
|
69
69
|
# @!attribute gateway_token
|
@@ -98,6 +98,10 @@ module Recurly
|
|
98
98
|
# @return [String] Use for Online Banking billing info. This should only be used as part of a pending purchase request, when the billing info is nested inside an account object.
|
99
99
|
define_attribute :online_banking_payment_type, String
|
100
100
|
|
101
|
+
# @!attribute payment_gateway_references
|
102
|
+
# @return [Array[PaymentGatewayReferences]] Array of Payment Gateway References, each a reference to a third-party gateway object of varying types.
|
103
|
+
define_attribute :payment_gateway_references, Array, { :item_type => :PaymentGatewayReferences }
|
104
|
+
|
101
105
|
# @!attribute paypal_billing_agreement_id
|
102
106
|
# @return [String] PayPal billing agreement ID
|
103
107
|
define_attribute :paypal_billing_agreement_id, String
|
@@ -7,7 +7,7 @@ module Recurly
|
|
7
7
|
class CouponBulkCreate < Request
|
8
8
|
|
9
9
|
# @!attribute number_of_unique_codes
|
10
|
-
# @return [Integer] The quantity of unique coupon codes to generate
|
10
|
+
# @return [Integer] The quantity of unique coupon codes to generate. A bulk coupon can have up to 100,000 unique codes (or your site's configured limit).
|
11
11
|
define_attribute :number_of_unique_codes, Integer
|
12
12
|
end
|
13
13
|
end
|
@@ -11,7 +11,7 @@ module Recurly
|
|
11
11
|
define_attribute :external_account_code, String
|
12
12
|
|
13
13
|
# @!attribute external_connection_type
|
14
|
-
# @return [String] Represents the connection type.
|
14
|
+
# @return [String] Represents the connection type. One of the connection types of your enabled App Connectors
|
15
15
|
define_attribute :external_connection_type, String
|
16
16
|
end
|
17
17
|
end
|
@@ -11,7 +11,7 @@ module Recurly
|
|
11
11
|
define_attribute :external_account_code, String
|
12
12
|
|
13
13
|
# @!attribute external_connection_type
|
14
|
-
# @return [String] Represents the connection type.
|
14
|
+
# @return [String] Represents the connection type. One of the connection types of your enabled App Connectors
|
15
15
|
define_attribute :external_connection_type, String
|
16
16
|
end
|
17
17
|
end
|
@@ -7,8 +7,8 @@ module Recurly
|
|
7
7
|
class ExternalProductReferenceBase < Request
|
8
8
|
|
9
9
|
# @!attribute external_connection_type
|
10
|
-
# @return [
|
11
|
-
define_attribute :external_connection_type,
|
10
|
+
# @return [ExternalProductReferenceConnectionType] Represents the connection type. One of the connection types of your enabled App Connectors
|
11
|
+
define_attribute :external_connection_type, :ExternalProductReferenceConnectionType
|
12
12
|
|
13
13
|
# @!attribute reference_code
|
14
14
|
# @return [String] A code which associates the external product to a corresponding object or resource in an external platform like the Apple App Store or Google Play Store.
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# This file is automatically created by Recurly's OpenAPI generation process
|
2
|
+
# and thus any edits you make by hand will be lost. If you wish to make a
|
3
|
+
# change to this file, please create a Github issue explaining the changes you
|
4
|
+
# need and we will usher them to the appropriate places.
|
5
|
+
module Recurly
|
6
|
+
module Requests
|
7
|
+
class ExternalProductReferenceConnectionType < Request
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
@@ -7,8 +7,8 @@ module Recurly
|
|
7
7
|
class ExternalProductReferenceCreate < Request
|
8
8
|
|
9
9
|
# @!attribute external_connection_type
|
10
|
-
# @return [
|
11
|
-
define_attribute :external_connection_type,
|
10
|
+
# @return [ExternalProductReferenceConnectionType] Represents the connection type. One of the connection types of your enabled App Connectors
|
11
|
+
define_attribute :external_connection_type, :ExternalProductReferenceConnectionType
|
12
12
|
|
13
13
|
# @!attribute reference_code
|
14
14
|
# @return [String] A code which associates the external product to a corresponding object or resource in an external platform like the Apple App Store or Google Play Store.
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# This file is automatically created by Recurly's OpenAPI generation process
|
2
|
+
# and thus any edits you make by hand will be lost. If you wish to make a
|
3
|
+
# change to this file, please create a Github issue explaining the changes you
|
4
|
+
# need and we will usher them to the appropriate places.
|
5
|
+
module Recurly
|
6
|
+
module Requests
|
7
|
+
class ExternalProductReferenceUpdate < Request
|
8
|
+
|
9
|
+
# @!attribute external_connection_type
|
10
|
+
# @return [ExternalProductReferenceConnectionType] Represents the connection type. One of the connection types of your enabled App Connectors
|
11
|
+
define_attribute :external_connection_type, :ExternalProductReferenceConnectionType
|
12
|
+
|
13
|
+
# @!attribute reference_code
|
14
|
+
# @return [String] A code which associates the external product to a corresponding object or resource in an external platform like the Apple App Store or Google Play Store.
|
15
|
+
define_attribute :reference_code, String
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# This file is automatically created by Recurly's OpenAPI generation process
|
2
|
+
# and thus any edits you make by hand will be lost. If you wish to make a
|
3
|
+
# change to this file, please create a Github issue explaining the changes you
|
4
|
+
# need and we will usher them to the appropriate places.
|
5
|
+
module Recurly
|
6
|
+
module Requests
|
7
|
+
class ExternalSubscriptionCreate < Request
|
8
|
+
|
9
|
+
# @!attribute account
|
10
|
+
# @return [AccountExternalSubscription]
|
11
|
+
define_attribute :account, :AccountExternalSubscription
|
12
|
+
|
13
|
+
# @!attribute activated_at
|
14
|
+
# @return [DateTime] When the external subscription was activated in the external platform.
|
15
|
+
define_attribute :activated_at, DateTime
|
16
|
+
|
17
|
+
# @!attribute app_identifier
|
18
|
+
# @return [String] Identifier of the app that generated the external subscription.
|
19
|
+
define_attribute :app_identifier, String
|
20
|
+
|
21
|
+
# @!attribute auto_renew
|
22
|
+
# @return [Boolean] An indication of whether or not the external subscription will auto-renew at the expiration date.
|
23
|
+
define_attribute :auto_renew, :Boolean
|
24
|
+
|
25
|
+
# @!attribute expires_at
|
26
|
+
# @return [DateTime] When the external subscription expires in the external platform.
|
27
|
+
define_attribute :expires_at, DateTime
|
28
|
+
|
29
|
+
# @!attribute external_id
|
30
|
+
# @return [String] Id of the subscription in the external system, i.e. Apple App Store or Google Play Store.
|
31
|
+
define_attribute :external_id, String
|
32
|
+
|
33
|
+
# @!attribute external_product_reference
|
34
|
+
# @return [ExternalProductReferenceCreate]
|
35
|
+
define_attribute :external_product_reference, :ExternalProductReferenceCreate
|
36
|
+
|
37
|
+
# @!attribute imported
|
38
|
+
# @return [Boolean] An indication of whether or not the external subscription was being created by a historical data import.
|
39
|
+
define_attribute :imported, :Boolean
|
40
|
+
|
41
|
+
# @!attribute last_purchased
|
42
|
+
# @return [DateTime] When a new billing event occurred on the external subscription in conjunction with a recent billing period, reactivation or upgrade/downgrade.
|
43
|
+
define_attribute :last_purchased, DateTime
|
44
|
+
|
45
|
+
# @!attribute quantity
|
46
|
+
# @return [Integer] An indication of the quantity of a subscribed item's quantity.
|
47
|
+
define_attribute :quantity, Integer
|
48
|
+
|
49
|
+
# @!attribute state
|
50
|
+
# @return [String] External subscriptions can be active, canceled, expired, past_due, voided, revoked, or paused.
|
51
|
+
define_attribute :state, String
|
52
|
+
|
53
|
+
# @!attribute trial_ends_at
|
54
|
+
# @return [DateTime] When the external subscription trial period ends in the external platform.
|
55
|
+
define_attribute :trial_ends_at, DateTime
|
56
|
+
|
57
|
+
# @!attribute trial_started_at
|
58
|
+
# @return [DateTime] When the external subscription trial period started in the external platform.
|
59
|
+
define_attribute :trial_started_at, DateTime
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# This file is automatically created by Recurly's OpenAPI generation process
|
2
|
+
# and thus any edits you make by hand will be lost. If you wish to make a
|
3
|
+
# change to this file, please create a Github issue explaining the changes you
|
4
|
+
# need and we will usher them to the appropriate places.
|
5
|
+
module Recurly
|
6
|
+
module Requests
|
7
|
+
class ExternalSubscriptionUpdate < Request
|
8
|
+
|
9
|
+
# @!attribute activated_at
|
10
|
+
# @return [DateTime] When the external subscription was activated in the external platform.
|
11
|
+
define_attribute :activated_at, DateTime
|
12
|
+
|
13
|
+
# @!attribute app_identifier
|
14
|
+
# @return [String] Identifier of the app that generated the external subscription.
|
15
|
+
define_attribute :app_identifier, String
|
16
|
+
|
17
|
+
# @!attribute auto_renew
|
18
|
+
# @return [Boolean] An indication of whether or not the external subscription will auto-renew at the expiration date.
|
19
|
+
define_attribute :auto_renew, :Boolean
|
20
|
+
|
21
|
+
# @!attribute expires_at
|
22
|
+
# @return [DateTime] When the external subscription expires in the external platform.
|
23
|
+
define_attribute :expires_at, DateTime
|
24
|
+
|
25
|
+
# @!attribute external_id
|
26
|
+
# @return [String] Id of the subscription in the external system, i.e. Apple App Store or Google Play Store.
|
27
|
+
define_attribute :external_id, String
|
28
|
+
|
29
|
+
# @!attribute external_product_reference
|
30
|
+
# @return [ExternalProductReferenceUpdate]
|
31
|
+
define_attribute :external_product_reference, :ExternalProductReferenceUpdate
|
32
|
+
|
33
|
+
# @!attribute imported
|
34
|
+
# @return [Boolean] An indication of whether or not the external subscription was being created by a historical data import.
|
35
|
+
define_attribute :imported, :Boolean
|
36
|
+
|
37
|
+
# @!attribute last_purchased
|
38
|
+
# @return [DateTime] When a new billing event occurred on the external subscription in conjunction with a recent billing period, reactivation or upgrade/downgrade.
|
39
|
+
define_attribute :last_purchased, DateTime
|
40
|
+
|
41
|
+
# @!attribute quantity
|
42
|
+
# @return [Integer] An indication of the quantity of a subscribed item's quantity.
|
43
|
+
define_attribute :quantity, Integer
|
44
|
+
|
45
|
+
# @!attribute state
|
46
|
+
# @return [String] External subscriptions can be active, canceled, expired, past_due, voided, revoked, or paused.
|
47
|
+
define_attribute :state, String
|
48
|
+
|
49
|
+
# @!attribute trial_ends_at
|
50
|
+
# @return [DateTime] When the external subscription trial period ends in the external platform.
|
51
|
+
define_attribute :trial_ends_at, DateTime
|
52
|
+
|
53
|
+
# @!attribute trial_started_at
|
54
|
+
# @return [DateTime] When the external subscription trial period started in the external platform.
|
55
|
+
define_attribute :trial_started_at, DateTime
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -6,6 +6,14 @@ module Recurly
|
|
6
6
|
module Requests
|
7
7
|
class InvoiceCreate < Request
|
8
8
|
|
9
|
+
# @!attribute business_entity_code
|
10
|
+
# @return [String] The `business_entity_code` is the value that represents a specific business entity for an end customer which will be assigned to the invoice. Available when the `Multiple Business Entities` feature is enabled. If both `business_entity_id` and `business_entity_code` are present, `business_entity_id` will be used.
|
11
|
+
define_attribute :business_entity_code, String
|
12
|
+
|
13
|
+
# @!attribute business_entity_id
|
14
|
+
# @return [String] The `business_entity_id` is the value that represents a specific business entity for an end customer which will be assigned to the invoice. Available when the `Multiple Business Entities` feature is enabled. If both `business_entity_id` and `business_entity_code` are present, `business_entity_id` will be used.
|
15
|
+
define_attribute :business_entity_id, String
|
16
|
+
|
9
17
|
# @!attribute charge_customer_notes
|
10
18
|
# @return [String] This will default to the Customer Notes text specified on the Invoice Settings for charge invoices. Specify custom notes to add or override Customer Notes on charge invoices.
|
11
19
|
define_attribute :charge_customer_notes, String
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# This file is automatically created by Recurly's OpenAPI generation process
|
2
|
+
# and thus any edits you make by hand will be lost. If you wish to make a
|
3
|
+
# change to this file, please create a Github issue explaining the changes you
|
4
|
+
# need and we will usher them to the appropriate places.
|
5
|
+
module Recurly
|
6
|
+
module Requests
|
7
|
+
class PaymentGatewayReferences < Request
|
8
|
+
|
9
|
+
# @!attribute reference_type
|
10
|
+
# @return [String] The type of reference token. Required if token is passed in for Stripe Gateway.
|
11
|
+
define_attribute :reference_type, String
|
12
|
+
|
13
|
+
# @!attribute token
|
14
|
+
# @return [String] Reference value used when the external token was created. If Stripe gateway is used, this value will need to be accompanied by its reference_type.
|
15
|
+
define_attribute :token, String
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -14,6 +14,14 @@ module Recurly
|
|
14
14
|
# @return [String] The `billing_info_id` is the value that represents a specific billing info for an end customer. When `billing_info_id` is used to assign billing info to the subscription, all future billing events for the subscription will bill to the specified billing info. `billing_info_id` can ONLY be used for sites utilizing the Wallet feature.
|
15
15
|
define_attribute :billing_info_id, String
|
16
16
|
|
17
|
+
# @!attribute business_entity_code
|
18
|
+
# @return [String] The `business_entity_code` is the value that represents a specific business entity for an end customer. When `business_entity_code` is used to assign a business entity to the subscription, all future billing events for the subscription will bill to the specified business entity. Available when the `Multiple Business Entities` feature is enabled. If both `business_entity_id` and `business_entity_code` are present, `business_entity_id` will be used.
|
19
|
+
define_attribute :business_entity_code, String
|
20
|
+
|
21
|
+
# @!attribute business_entity_id
|
22
|
+
# @return [String] The `business_entity_id` is the value that represents a specific business entity for an end customer. When `business_entity_id` is used to assign a business entity to the subscription, all future billing events for the subscription will bill to the specified business entity. Available when the `Multiple Business Entities` feature is enabled. If both `business_entity_id` and `business_entity_code` are present, `business_entity_id` will be used.
|
23
|
+
define_attribute :business_entity_id, String
|
24
|
+
|
17
25
|
# @!attribute collection_method
|
18
26
|
# @return [String] Must be set to manual in order to preview a purchase for an Account that does not have payment information associated with the Billing Info.
|
19
27
|
define_attribute :collection_method, String
|
@@ -70,6 +78,10 @@ module Recurly
|
|
70
78
|
# @return [String] Terms and conditions to be put on the purchase invoice.
|
71
79
|
define_attribute :terms_and_conditions, String
|
72
80
|
|
81
|
+
# @!attribute transaction
|
82
|
+
# @return [Hash] (Transaction Data, Card on File) - Options for flagging transactions as Customer or Merchant Initiated Unscheduled.
|
83
|
+
define_attribute :transaction, Hash
|
84
|
+
|
73
85
|
# @!attribute transaction_type
|
74
86
|
# @return [String] An optional type designation for the payment gateway transaction created by this request. Supports 'moto' value, which is the acronym for mail order and telephone transactions.
|
75
87
|
define_attribute :transaction_type, String
|
@@ -14,6 +14,14 @@ module Recurly
|
|
14
14
|
# @return [SubscriptionChangeBillingInfoCreate]
|
15
15
|
define_attribute :billing_info, :SubscriptionChangeBillingInfoCreate
|
16
16
|
|
17
|
+
# @!attribute business_entity_code
|
18
|
+
# @return [String] The `business_entity_code` is the value that represents a specific business entity for an end customer. When `business_entity_code` is used to assign a business entity to the subscription, all future billing events for the subscription will bill to the specified business entity. Available when the `Multiple Business Entities` feature is enabled. If both `business_entity_id` and `business_entity_code` are present, `business_entity_id` will be used. Only allowed if the `timeframe` is not `now`.
|
19
|
+
define_attribute :business_entity_code, String
|
20
|
+
|
21
|
+
# @!attribute business_entity_id
|
22
|
+
# @return [String] The `business_entity_id` is the value that represents a specific business entity for an end customer. When `business_entity_id` is used to assign a business entity to the subscription, all future billing events for the subscription will bill to the specified business entity. Available when the `Multiple Business Entities` feature is enabled. If both `business_entity_id` and `business_entity_code` are present, `business_entity_id` will be used. Only allowed if the `timeframe` is not `now`.
|
23
|
+
define_attribute :business_entity_id, String
|
24
|
+
|
17
25
|
# @!attribute collection_method
|
18
26
|
# @return [String] Collection method
|
19
27
|
define_attribute :collection_method, String
|
@@ -26,6 +26,14 @@ module Recurly
|
|
26
26
|
# @return [Boolean] Optional field to be used only when needing to bypass the 60 second limit on creating subscriptions. Should only be used when creating subscriptions in bulk from the API.
|
27
27
|
define_attribute :bulk, :Boolean
|
28
28
|
|
29
|
+
# @!attribute business_entity_code
|
30
|
+
# @return [String] The `business_entity_code` is the value that represents a specific business entity for an end customer. When `business_entity_code` is used to assign a business entity to the subscription, all future billing events for the subscription will bill to the specified business entity. Available when the `Multiple Business Entities` feature is enabled. If both `business_entity_id` and `business_entity_code` are present, `business_entity_id` will be used.
|
31
|
+
define_attribute :business_entity_code, String
|
32
|
+
|
33
|
+
# @!attribute business_entity_id
|
34
|
+
# @return [String] The `business_entity_id` is the value that represents a specific business entity for an end customer. When `business_entity_id` is used to assign a business entity to the subscription, all future billing events for the subscription will bill to the specified business entity. Available when the `Multiple Business Entities` feature is enabled. If both `business_entity_id` and `business_entity_code` are present, `business_entity_id` will be used.
|
35
|
+
define_attribute :business_entity_id, String
|
36
|
+
|
29
37
|
# @!attribute collection_method
|
30
38
|
# @return [String] Collection method
|
31
39
|
define_attribute :collection_method, String
|
@@ -46,6 +46,10 @@ module Recurly
|
|
46
46
|
# @return [String] Object type
|
47
47
|
define_attribute :object, String
|
48
48
|
|
49
|
+
# @!attribute payment_gateway_references
|
50
|
+
# @return [Array[PaymentGatewayReferences]] Array of Payment Gateway References, each a reference to a third-party gateway object of varying types.
|
51
|
+
define_attribute :payment_gateway_references, Array, { :item_type => :PaymentGatewayReferences }
|
52
|
+
|
49
53
|
# @!attribute payment_method
|
50
54
|
# @return [PaymentMethod]
|
51
55
|
define_attribute :payment_method, :PaymentMethod
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# This file is automatically created by Recurly's OpenAPI generation process
|
2
|
+
# and thus any edits you make by hand will be lost. If you wish to make a
|
3
|
+
# change to this file, please create a Github issue explaining the changes you
|
4
|
+
# need and we will usher them to the appropriate places.
|
5
|
+
module Recurly
|
6
|
+
module Resources
|
7
|
+
class BusinessEntityMini < Resource
|
8
|
+
|
9
|
+
# @!attribute code
|
10
|
+
# @return [String] The entity code of the business entity.
|
11
|
+
define_attribute :code, String
|
12
|
+
|
13
|
+
# @!attribute id
|
14
|
+
# @return [String] Business entity ID
|
15
|
+
define_attribute :id, String
|
16
|
+
|
17
|
+
# @!attribute name
|
18
|
+
# @return [String] This name describes your business entity and will appear on the invoice.
|
19
|
+
define_attribute :name, String
|
20
|
+
|
21
|
+
# @!attribute object
|
22
|
+
# @return [String] Object type
|
23
|
+
define_attribute :object, String
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -15,7 +15,7 @@ module Recurly
|
|
15
15
|
define_attribute :external_account_code, String
|
16
16
|
|
17
17
|
# @!attribute external_connection_type
|
18
|
-
# @return [String] Represents the connection type.
|
18
|
+
# @return [String] Represents the connection type. One of the connection types of your enabled App Connectors
|
19
19
|
define_attribute :external_connection_type, String
|
20
20
|
|
21
21
|
# @!attribute id
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# This file is automatically created by Recurly's OpenAPI generation process
|
2
|
+
# and thus any edits you make by hand will be lost. If you wish to make a
|
3
|
+
# change to this file, please create a Github issue explaining the changes you
|
4
|
+
# need and we will usher them to the appropriate places.
|
5
|
+
module Recurly
|
6
|
+
module Resources
|
7
|
+
class PaymentGatewayReferences < Resource
|
8
|
+
|
9
|
+
# @!attribute reference_type
|
10
|
+
# @return [String] The type of reference token. Required if token is passed in for Stripe Gateway.
|
11
|
+
define_attribute :reference_type, String
|
12
|
+
|
13
|
+
# @!attribute token
|
14
|
+
# @return [String] Reference value used when the external token was created. If Stripe gateway is used, this value will need to be accompanied by its reference_type.
|
15
|
+
define_attribute :token, String
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -23,7 +23,7 @@ module Recurly
|
|
23
23
|
define_attribute :card_type, String
|
24
24
|
|
25
25
|
# @!attribute cc_bin_country
|
26
|
-
# @return [String] The 2-letter ISO 3166-1 alpha-2 country code associated with the
|
26
|
+
# @return [String] The 2-letter ISO 3166-1 alpha-2 country code associated with the card's issuer, if known.
|
27
27
|
define_attribute :cc_bin_country, String
|
28
28
|
|
29
29
|
# @!attribute exp_month
|
@@ -38,6 +38,10 @@ module Recurly
|
|
38
38
|
# @return [String] Credit card number's first six digits.
|
39
39
|
define_attribute :first_six, String
|
40
40
|
|
41
|
+
# @!attribute funding_source
|
42
|
+
# @return [String] The funding source of the card, if known.
|
43
|
+
define_attribute :funding_source, String
|
44
|
+
|
41
45
|
# @!attribute gateway_attributes
|
42
46
|
# @return [GatewayAttributes] Gateway specific attributes associated with this PaymentMethod
|
43
47
|
define_attribute :gateway_attributes, :GatewayAttributes
|
@@ -42,6 +42,10 @@ module Recurly
|
|
42
42
|
# @return [String] Billing Info ID.
|
43
43
|
define_attribute :billing_info_id, String
|
44
44
|
|
45
|
+
# @!attribute business_entity_id
|
46
|
+
# @return [String] The ID of the business entity associated with the subscription. This will be `null` if the subscription relies on resolving the business entity during renewal.
|
47
|
+
define_attribute :business_entity_id, String
|
48
|
+
|
45
49
|
# @!attribute canceled_at
|
46
50
|
# @return [DateTime] Canceled at
|
47
51
|
define_attribute :canceled_at, DateTime
|
@@ -22,6 +22,10 @@ module Recurly
|
|
22
22
|
# @return [SubscriptionChangeBillingInfo] Accept nested attributes for three_d_secure_action_result_token_id
|
23
23
|
define_attribute :billing_info, :SubscriptionChangeBillingInfo
|
24
24
|
|
25
|
+
# @!attribute business_entity
|
26
|
+
# @return [BusinessEntityMini] Business entity details
|
27
|
+
define_attribute :business_entity, :BusinessEntityMini
|
28
|
+
|
25
29
|
# @!attribute created_at
|
26
30
|
# @return [DateTime] Created at
|
27
31
|
define_attribute :created_at, DateTime
|
@@ -90,6 +90,10 @@ module Recurly
|
|
90
90
|
# @return [String] Transaction ID
|
91
91
|
define_attribute :id, String
|
92
92
|
|
93
|
+
# @!attribute indicator
|
94
|
+
# @return [String] Must be sent for one-time transactions in order to provide context on which entity is submitting the transaction to ensure proper fraud checks are observed, such as 3DS. If the customer is in session, send `customer`. If this is a merchant initiated one-time transaction, send `merchant`.
|
95
|
+
define_attribute :indicator, String
|
96
|
+
|
93
97
|
# @!attribute invoice
|
94
98
|
# @return [InvoiceMini] Invoice mini details
|
95
99
|
define_attribute :invoice, :InvoiceMini
|
@@ -102,6 +106,10 @@ module Recurly
|
|
102
106
|
# @return [String] IP address provided when the billing information was collected: - When the customer enters billing information into the Recurly.js or Hosted Payment Pages, Recurly records the IP address. - When the merchant enters billing information using the API, the merchant may provide an IP address. - When the merchant enters billing information using the UI, no IP address is recorded.
|
103
107
|
define_attribute :ip_address_v4, String
|
104
108
|
|
109
|
+
# @!attribute merchant_reason_code
|
110
|
+
# @return [String] This conditional parameter is useful for merchants in specific industries who need to submit one-time Merchant Initiated transactions in specific cases. Not all gateways support these methods, but will support a generic one-time Merchant Initiated transaction. Only use this if the initiator value is "merchant". Otherwise, it will be ignored. - Incremental: Send `incremental` with an additional purchase if the original authorization amount is not sufficient to cover the costs of your service or product. For example, if the customer adds goods or services or there are additional expenses. - No Show: Send `no_show` if you charge customers a fee due to an agreed-upon cancellation policy in your industry. - Resubmission: Send `resubmission` if you need to attempt collection on a declined transaction. You may also use the force collection behavior which has the same effect. - Service Extension: Send `service_extension` if you are in a service industry and the customer has increased/extended their service in some way. For example: adding a day onto a car rental agreement. - Split Shipment: Send `split_shipment` if you sell physical product and need to split up a shipment into multiple transactions when the customer is no longer in session. - Top Up: Send `top_up` if you process one-time transactions based on a pre-arranged agreement with your customer where there is a pre-arranged account balance that needs maintaining. For example, if the customer has agreed to maintain an account balance of 30.00 and their current balance is 20.00, the MIT amount would be at least 10.00 to meet that 30.00 threshold.
|
111
|
+
define_attribute :merchant_reason_code, String
|
112
|
+
|
105
113
|
# @!attribute object
|
106
114
|
# @return [String] Object type
|
107
115
|
define_attribute :object, String
|
data/lib/recurly/version.rb
CHANGED