recurly 4.57.0 → 4.58.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: '02596017f45c4a0f30364c23a90fe6eb1b0da5687651dea25146059002325f43'
4
- data.tar.gz: ea769fbd9a052fa2c63c01bbcf281db0b9661d56acd883bb5d1c586e21682d18
3
+ metadata.gz: d74ffec1395f2101981161d4c237e809df86cc7107ce8a6721b3ba3f98e5fe9f
4
+ data.tar.gz: 239bbfe41b4cd46e9a2ced544e1e7fe78ffaf3eafcb25acf6d31b63cde0fe071
5
5
  SHA512:
6
- metadata.gz: 6cd2acc0f9cb1c24a299c1a93364fc21b0e401a42e3a06beadd6fd3675005dd664dd197ebd4a398abfb0a247dbccd9516dcb43f33205c44a2430f3bede685664
7
- data.tar.gz: 4ece7465ff9bf395aa2198d81bb663ba2f011618ccf285efa520b5273ea6e4862e0fa883251f8c838fff51c86182a7b284e587845b2ca6193b14a54597dca46a
6
+ metadata.gz: 1b52c5bbb2fb3cf771add224e7a74ecf8e9cdca61ce11c088a856fc758ecae07bc3f3767477e2b940687100cfd34f4c932e5bb3933c739864701d9b7761c7bdb
7
+ data.tar.gz: eb4001c518a55424eeb4cbc72e3d5f7a2c6a50d6246b8d94c51b83cb923d579af1c144746765bad3aa133391401c8fafd843e446716cde8e1242e4f03fffe7c5
data/.bumpversion.cfg CHANGED
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 4.57.0
2
+ current_version = 4.58.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.58.0](https://github.com/recurly/recurly-client-ruby/tree/4.58.0) (2024-12-16)
4
+
5
+ [Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.57.0...4.58.0)
6
+
7
+
8
+ **Merged Pull Requests**
9
+
10
+ - Generated Latest Changes for v2021-02-25 [#918](https://github.com/recurly/recurly-client-ruby/pull/918) ([recurly-integrations](https://github.com/recurly-integrations))
11
+
12
+
13
+
3
14
  ## [4.57.0](https://github.com/recurly/recurly-client-ruby/tree/4.57.0) (2024-12-02)
4
15
 
5
16
  [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.57'
8
+ gem 'recurly', '~> 4.58'
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.
@@ -2382,7 +2382,21 @@ module Recurly
2382
2382
  delete(path, **options)
2383
2383
  end
2384
2384
 
2385
- # List a site's external subscriptions
2385
+ # Create an external subscription
2386
+ #
2387
+ # {https://developers.recurly.com/api/v2021-02-25#operation/create_external_subscription create_external_subscription api documentation}
2388
+ #
2389
+ # @param body [Requests::ExternalSubscriptionCreate] The Hash representing the JSON request to send to the server. It should conform to the schema of {Requests::ExternalSubscriptionCreate}
2390
+ # @param params [Hash] Optional query string parameters:
2391
+ #
2392
+ # @return [Resources::ExternalSubscription] Returns the external subscription
2393
+ #
2394
+ def create_external_subscription(body:, **options)
2395
+ path = "/external_subscriptions"
2396
+ post(path, body, Requests::ExternalSubscriptionCreate, **options)
2397
+ end
2398
+
2399
+ # List the external subscriptions on a site
2386
2400
  #
2387
2401
  # {https://developers.recurly.com/api/v2021-02-25#operation/list_external_subscriptions list_external_subscriptions api documentation}
2388
2402
  #
@@ -2413,6 +2427,21 @@ module Recurly
2413
2427
  get(path, **options)
2414
2428
  end
2415
2429
 
2430
+ # Update an external subscription
2431
+ #
2432
+ # {https://developers.recurly.com/api/v2021-02-25#operation/put_external_subscription put_external_subscription api documentation}
2433
+ #
2434
+ # @param external_subscription_id [String] External subscription id
2435
+ # @param params [Hash] Optional query string parameters:
2436
+ # :body [Requests::ExternalSubscriptionUpdate] The Hash representing the JSON request to send to the server. It should conform to the schema of {Requests::ExternalSubscriptionUpdate}
2437
+ #
2438
+ # @return [Resources::ExternalSubscription] Settings for an external subscription.
2439
+ #
2440
+ def put_external_subscription(external_subscription_id:, **options)
2441
+ path = interpolate_path("/external_subscriptions/{external_subscription_id}", external_subscription_id: external_subscription_id)
2442
+ put(path, options[:body], Requests::ExternalSubscriptionUpdate, **options)
2443
+ end
2444
+
2416
2445
  # List the external invoices on an external subscription
2417
2446
  #
2418
2447
  # {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
@@ -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. `AppleAppStore` or `GooglePlayStore`
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. `AppleAppStore` or `GooglePlayStore`
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 [String]
11
- define_attribute :external_connection_type, String
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 [String]
11
- define_attribute :external_connection_type, String
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
@@ -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
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Recurly
2
- VERSION = "4.57.0"
2
+ VERSION = "4.58.0"
3
3
  end
data/openapi/api.yaml CHANGED
@@ -8198,11 +8198,49 @@ paths:
8198
8198
  "$ref": "#/components/schemas/Error"
8199
8199
  x-code-samples: []
8200
8200
  "/external_subscriptions":
8201
+ post:
8202
+ tags:
8203
+ - external_subscriptions
8204
+ operationId: create_external_subscription
8205
+ summary: Create an external subscription
8206
+ requestBody:
8207
+ content:
8208
+ application/json:
8209
+ schema:
8210
+ "$ref": "#/components/schemas/ExternalSubscriptionCreate"
8211
+ required: true
8212
+ responses:
8213
+ '201':
8214
+ description: Returns the external subscription
8215
+ content:
8216
+ application/json:
8217
+ schema:
8218
+ "$ref": "#/components/schemas/ExternalSubscription"
8219
+ '400':
8220
+ description: Bad request; perhaps missing or invalid parameters.
8221
+ content:
8222
+ application/json:
8223
+ schema:
8224
+ "$ref": "#/components/schemas/Error"
8225
+ '404':
8226
+ description: External subscription cannot be completed for the specified
8227
+ reason.
8228
+ content:
8229
+ application/json:
8230
+ schema:
8231
+ "$ref": "#/components/schemas/Error"
8232
+ default:
8233
+ description: Unexpected error.
8234
+ content:
8235
+ application/json:
8236
+ schema:
8237
+ "$ref": "#/components/schemas/Error"
8238
+ x-code-samples: []
8201
8239
  get:
8202
8240
  tags:
8203
8241
  - external_subscriptions
8204
8242
  operationId: list_external_subscriptions
8205
- summary: List a site's external subscriptions
8243
+ summary: List the external subscriptions on a site
8206
8244
  description: See the [Pagination Guide](/developers/guides/pagination.html)
8207
8245
  to learn how to use pagination in the API and Client Libraries.
8208
8246
  parameters:
@@ -8228,9 +8266,9 @@ paths:
8228
8266
  "$ref": "#/components/schemas/Error"
8229
8267
  x-code-samples: []
8230
8268
  "/external_subscriptions/{external_subscription_id}":
8231
- parameters:
8232
- - "$ref": "#/components/parameters/external_subscription_id_fetch"
8233
8269
  get:
8270
+ parameters:
8271
+ - "$ref": "#/components/parameters/external_subscription_id_fetch"
8234
8272
  tags:
8235
8273
  - external_subscriptions
8236
8274
  operationId: get_external_subscription
@@ -8262,6 +8300,52 @@ paths:
8262
8300
  schema:
8263
8301
  "$ref": "#/components/schemas/Error"
8264
8302
  x-code-samples: []
8303
+ put:
8304
+ parameters:
8305
+ - "$ref": "#/components/parameters/external_subscription_id"
8306
+ tags:
8307
+ - external_subscriptions
8308
+ operationId: put_external_subscription
8309
+ summary: Update an external subscription
8310
+ requestBody:
8311
+ content:
8312
+ application/json:
8313
+ schema:
8314
+ "$ref": "#/components/schemas/ExternalSubscriptionUpdate"
8315
+ required: false
8316
+ responses:
8317
+ '200':
8318
+ description: Settings for an external subscription.
8319
+ content:
8320
+ application/json:
8321
+ schema:
8322
+ "$ref": "#/components/schemas/ExternalSubscription"
8323
+ '400':
8324
+ description: Bad request; perhaps missing or invalid parameters.
8325
+ content:
8326
+ application/json:
8327
+ schema:
8328
+ "$ref": "#/components/schemas/Error"
8329
+ '404':
8330
+ description: Incorrect site or external subscription ID.
8331
+ content:
8332
+ application/json:
8333
+ schema:
8334
+ "$ref": "#/components/schemas/Error"
8335
+ '422':
8336
+ description: Validation error with external resource connection or feature
8337
+ flag.
8338
+ content:
8339
+ application/json:
8340
+ schema:
8341
+ "$ref": "#/components/schemas/Error"
8342
+ default:
8343
+ description: Unexpected error.
8344
+ content:
8345
+ application/json:
8346
+ schema:
8347
+ "$ref": "#/components/schemas/Error"
8348
+ x-code-samples: []
8265
8349
  "/external_subscriptions/{external_subscription_id}/external_invoices":
8266
8350
  parameters:
8267
8351
  - "$ref": "#/components/parameters/external_subscription_id"
@@ -20294,6 +20378,22 @@ components:
20294
20378
  title: Currency
20295
20379
  description: 3-letter ISO 4217 currency code.
20296
20380
  maxLength: 3
20381
+ business_entity_id:
20382
+ type: string
20383
+ title: Business Entity ID
20384
+ description: The `business_entity_id` is the value that represents a specific
20385
+ business entity for an end customer which will be assigned to the invoice.
20386
+ Available when the `Multiple Business Entities` feature is enabled. If
20387
+ both `business_entity_id` and `business_entity_code` are present, `business_entity_id`
20388
+ will be used.
20389
+ business_entity_code:
20390
+ type: string
20391
+ title: Business Entity Code
20392
+ description: The `business_entity_code` is the value that represents a specific
20393
+ business entity for an end customer which will be assigned to the invoice.
20394
+ Available when the `Multiple Business Entities` feature is enabled. If
20395
+ both `business_entity_id` and `business_entity_code` are present, `business_entity_id`
20396
+ will be used.
20297
20397
  collection_method:
20298
20398
  title: Collection method
20299
20399
  description: An automatic invoice means a corresponding transaction is run
@@ -22820,6 +22920,13 @@ components:
22820
22920
  subscription.
22821
22921
  maxLength: 13
22822
22922
  readOnly: true
22923
+ business_entity_id:
22924
+ type: string
22925
+ title: Business Entity ID
22926
+ description: The ID of the business entity associated with the subscription.
22927
+ This will be `null` if the subscription relies on resolving the business
22928
+ entity during renewal.
22929
+ maxLength: 13
22823
22930
  started_with_gift:
22824
22931
  type: boolean
22825
22932
  default: false
@@ -23186,6 +23293,9 @@ components:
23186
23293
  invoice_collection:
23187
23294
  title: Invoice Collection
23188
23295
  "$ref": "#/components/schemas/InvoiceCollection"
23296
+ business_entity:
23297
+ title: Business Entity
23298
+ "$ref": "#/components/schemas/BusinessEntityMini"
23189
23299
  custom_fields:
23190
23300
  "$ref": "#/components/schemas/CustomFields"
23191
23301
  created_at:
@@ -23251,6 +23361,26 @@ components:
23251
23361
  maxLength: 50
23252
23362
  description: If you want to change to a new plan, you can provide the plan's
23253
23363
  code or id. If both are provided the `plan_id` will be used.
23364
+ business_entity_id:
23365
+ type: string
23366
+ title: Business Entity ID
23367
+ description: The `business_entity_id` is the value that represents a specific
23368
+ business entity for an end customer. When `business_entity_id` is used
23369
+ to assign a business entity to the subscription, all future billing events
23370
+ for the subscription will bill to the specified business entity. Available
23371
+ when the `Multiple Business Entities` feature is enabled. If both `business_entity_id`
23372
+ and `business_entity_code` are present, `business_entity_id` will be used.
23373
+ Only allowed if the `timeframe` is not `now`.
23374
+ business_entity_code:
23375
+ type: string
23376
+ title: Business Entity Code
23377
+ description: The `business_entity_code` is the value that represents a specific
23378
+ business entity for an end customer. When `business_entity_code` is used
23379
+ to assign a business entity to the subscription, all future billing events
23380
+ for the subscription will bill to the specified business entity. Available
23381
+ when the `Multiple Business Entities` feature is enabled. If both `business_entity_id`
23382
+ and `business_entity_code` are present, `business_entity_id` will be used.
23383
+ Only allowed if the `timeframe` is not `now`.
23254
23384
  unit_amount:
23255
23385
  type: number
23256
23386
  format: float
@@ -23399,6 +23529,24 @@ components:
23399
23529
  maxLength: 13
23400
23530
  description: You must provide either a `plan_code` or `plan_id`. If both
23401
23531
  are provided the `plan_id` will be used.
23532
+ business_entity_id:
23533
+ type: string
23534
+ title: Business Entity ID
23535
+ description: The `business_entity_id` is the value that represents a specific
23536
+ business entity for an end customer. When `business_entity_id` is used
23537
+ to assign a business entity to the subscription, all future billing events
23538
+ for the subscription will bill to the specified business entity. Available
23539
+ when the `Multiple Business Entities` feature is enabled. If both `business_entity_id`
23540
+ and `business_entity_code` are present, `business_entity_id` will be used.
23541
+ business_entity_code:
23542
+ type: string
23543
+ title: Business Entity Code
23544
+ description: The `business_entity_code` is the value that represents a specific
23545
+ business entity for an end customer. When `business_entity_code` is used
23546
+ to assign a business entity to the subscription, all future billing events
23547
+ for the subscription will bill to the specified business entity. Available
23548
+ when the `Multiple Business Entities` feature is enabled. If both `business_entity_id`
23549
+ and `business_entity_code` are present, `business_entity_id` will be used.
23402
23550
  account:
23403
23551
  "$ref": "#/components/schemas/AccountCreate"
23404
23552
  billing_info_id:
@@ -24023,8 +24171,12 @@ components:
24023
24171
  maxLength: 13
24024
24172
  account:
24025
24173
  "$ref": "#/components/schemas/AccountMini"
24174
+ indicator:
24175
+ "$ref": "#/components/schemas/TransactionIndicatorEnum"
24026
24176
  invoice:
24027
24177
  "$ref": "#/components/schemas/InvoiceMini"
24178
+ merchant_reason_code:
24179
+ "$ref": "#/components/schemas/TransactionMerchantReasonCodeEnum"
24028
24180
  voided_by_invoice:
24029
24181
  "$ref": "#/components/schemas/InvoiceMini"
24030
24182
  subscription_ids:
@@ -24511,6 +24663,24 @@ components:
24511
24663
  billing info to the subscription, all future billing events for the subscription
24512
24664
  will bill to the specified billing info. `billing_info_id` can ONLY be
24513
24665
  used for sites utilizing the Wallet feature.
24666
+ business_entity_id:
24667
+ type: string
24668
+ title: Business Entity ID
24669
+ description: The `business_entity_id` is the value that represents a specific
24670
+ business entity for an end customer. When `business_entity_id` is used
24671
+ to assign a business entity to the subscription, all future billing events
24672
+ for the subscription will bill to the specified business entity. Available
24673
+ when the `Multiple Business Entities` feature is enabled. If both `business_entity_id`
24674
+ and `business_entity_code` are present, `business_entity_id` will be used.
24675
+ business_entity_code:
24676
+ type: string
24677
+ title: Business Entity Code
24678
+ description: The `business_entity_code` is the value that represents a specific
24679
+ business entity for an end customer. When `business_entity_code` is used
24680
+ to assign a business entity to the subscription, all future billing events
24681
+ for the subscription will bill to the specified business entity. Available
24682
+ when the `Multiple Business Entities` feature is enabled. If both `business_entity_id`
24683
+ and `business_entity_code` are present, `business_entity_id` will be used.
24514
24684
  collection_method:
24515
24685
  title: Collection method
24516
24686
  description: Must be set to manual in order to preview a purchase for an
@@ -24552,6 +24722,17 @@ components:
24552
24722
  type: string
24553
24723
  title: Terms and conditions
24554
24724
  description: Terms and conditions to be put on the purchase invoice.
24725
+ transaction:
24726
+ type: object
24727
+ description: "(Transaction Data, Card on File) - Options for flagging transactions
24728
+ as Customer or Merchant Initiated Unscheduled."
24729
+ allOf:
24730
+ - type: object
24731
+ properties:
24732
+ indicator:
24733
+ "$ref": "#/components/schemas/Transaction/properties/indicator"
24734
+ merchant_reason_code:
24735
+ "$ref": "#/components/schemas/Transaction/properties/merchant_reason_code"
24555
24736
  customer_notes:
24556
24737
  type: string
24557
24738
  title: Customer notes
@@ -24807,6 +24988,38 @@ components:
24807
24988
  type: string
24808
24989
  format: date-time
24809
24990
  description: Time the object was last updated
24991
+ ExternalChargeCreate:
24992
+ type: object
24993
+ properties:
24994
+ currency:
24995
+ type: string
24996
+ title: Currency
24997
+ description: 3-letter ISO 4217 currency code.
24998
+ maxLength: 3
24999
+ unit_amount:
25000
+ type: string
25001
+ format: decimal
25002
+ quantity:
25003
+ type: integer
25004
+ description:
25005
+ type: string
25006
+ external_product_reference:
25007
+ "$ref": "#/components/schemas/ExternalProductReferenceCreate"
25008
+ required:
25009
+ - quantity
25010
+ - currency
25011
+ - unit_amount
25012
+ AccountExternalSubscription:
25013
+ allOf:
25014
+ - type: object
25015
+ properties:
25016
+ account_code:
25017
+ type: string
25018
+ description: The account code of a new or existing account to be used
25019
+ when creating the external subscription.
25020
+ maxLength: 50
25021
+ required:
25022
+ - account_code
24810
25023
  ExternalPaymentPhase:
24811
25024
  type: object
24812
25025
  description: Details of payments in the lifecycle of a subscription from an
@@ -24974,7 +25187,7 @@ components:
24974
25187
  Google Play Store.
24975
25188
  maxLength: 255
24976
25189
  external_connection_type:
24977
- "$ref": "#/components/schemas/ExternalProductReferenceConnectionTypeEnum"
25190
+ "$ref": "#/components/schemas/ExternalProductReferenceConnectionType"
24978
25191
  ExternalProductReferenceCollection:
24979
25192
  type: object
24980
25193
  properties:
@@ -25001,11 +25214,10 @@ components:
25001
25214
  ExternalProductReferenceUpdate:
25002
25215
  allOf:
25003
25216
  - "$ref": "#/components/schemas/ExternalProductReferenceBase"
25004
- ExternalProductReferenceConnectionTypeEnum:
25217
+ ExternalProductReferenceConnectionType:
25005
25218
  type: string
25006
- enum:
25007
- - apple_app_store
25008
- - google_play_store
25219
+ description: Represents the connection type. One of the connection types of
25220
+ your enabled App Connectors
25009
25221
  ExternalAccountList:
25010
25222
  type: object
25011
25223
  properties:
@@ -25031,7 +25243,8 @@ components:
25031
25243
  description: Represents the account code for the external account.
25032
25244
  external_connection_type:
25033
25245
  type: string
25034
- description: Represents the connection type. `AppleAppStore` or `GooglePlayStore`
25246
+ description: Represents the connection type. One of the connection types
25247
+ of your enabled App Connectors
25035
25248
  required:
25036
25249
  - external_account_code
25037
25250
  - external_connection_type
@@ -25043,7 +25256,8 @@ components:
25043
25256
  description: Represents the account code for the external account.
25044
25257
  external_connection_type:
25045
25258
  type: string
25046
- description: Represents the connection type. `AppleAppStore` or `GooglePlayStore`
25259
+ description: Represents the connection type. One of the connection types
25260
+ of your enabled App Connectors
25047
25261
  ExternalAccount:
25048
25262
  type: object
25049
25263
  title: External Account
@@ -25217,6 +25431,91 @@ components:
25217
25431
  format: date-time
25218
25432
  title: Updated at
25219
25433
  description: When the external subscription was updated in Recurly.
25434
+ ExternalSubscriptionBase:
25435
+ type: object
25436
+ properties:
25437
+ external_id:
25438
+ type: string
25439
+ title: External Id
25440
+ description: Id of the subscription in the external system, i.e. Apple App
25441
+ Store or Google Play Store.
25442
+ last_purchased:
25443
+ type: string
25444
+ format: date-time
25445
+ title: Last purchased
25446
+ description: When a new billing event occurred on the external subscription
25447
+ in conjunction with a recent billing period, reactivation or upgrade/downgrade.
25448
+ auto_renew:
25449
+ type: boolean
25450
+ title: Auto-renew
25451
+ description: An indication of whether or not the external subscription will
25452
+ auto-renew at the expiration date.
25453
+ default: false
25454
+ state:
25455
+ type: string
25456
+ description: External subscriptions can be active, canceled, expired, past_due,
25457
+ voided, revoked, or paused.
25458
+ default: active
25459
+ app_identifier:
25460
+ type: string
25461
+ title: App identifier
25462
+ description: Identifier of the app that generated the external subscription.
25463
+ quantity:
25464
+ type: integer
25465
+ title: Quantity
25466
+ description: An indication of the quantity of a subscribed item's quantity.
25467
+ default: 1
25468
+ minimum: 0
25469
+ activated_at:
25470
+ type: string
25471
+ format: date-time
25472
+ title: Activated at
25473
+ description: When the external subscription was activated in the external
25474
+ platform.
25475
+ expires_at:
25476
+ type: string
25477
+ format: date-time
25478
+ title: Expires at
25479
+ description: When the external subscription expires in the external platform.
25480
+ trial_started_at:
25481
+ type: string
25482
+ format: date-time
25483
+ title: Trial started at
25484
+ description: When the external subscription trial period started in the
25485
+ external platform.
25486
+ trial_ends_at:
25487
+ type: string
25488
+ format: date-time
25489
+ title: Trial ends at
25490
+ description: When the external subscription trial period ends in the external
25491
+ platform.
25492
+ imported:
25493
+ type: boolean
25494
+ title: Import
25495
+ description: An indication of whether or not the external subscription was
25496
+ being created by a historical data import.
25497
+ default: false
25498
+ ExternalSubscriptionCreate:
25499
+ allOf:
25500
+ - type: object
25501
+ properties:
25502
+ account:
25503
+ "$ref": "#/components/schemas/AccountExternalSubscription"
25504
+ external_product_reference:
25505
+ "$ref": "#/components/schemas/ExternalProductReferenceCreate"
25506
+ - "$ref": "#/components/schemas/ExternalSubscriptionBase"
25507
+ required:
25508
+ - external_id
25509
+ - quantity
25510
+ - activated_at
25511
+ - expires_at
25512
+ ExternalSubscriptionUpdate:
25513
+ allOf:
25514
+ - type: object
25515
+ properties:
25516
+ external_product_reference:
25517
+ "$ref": "#/components/schemas/ExternalProductReferenceUpdate"
25518
+ - "$ref": "#/components/schemas/ExternalSubscriptionBase"
25220
25519
  ExternalSubscriptionList:
25221
25520
  type: object
25222
25521
  properties:
@@ -25282,6 +25581,86 @@ components:
25282
25581
  format: date-time
25283
25582
  title: Updated at
25284
25583
  description: When the external invoice was updated in Recurly.
25584
+ ExternalPaymentPhaseBase:
25585
+ type: object
25586
+ properties:
25587
+ started_at:
25588
+ type: string
25589
+ format: date-time
25590
+ title: Started At
25591
+ ends_at:
25592
+ type: string
25593
+ format: date-time
25594
+ title: Ends At
25595
+ starting_billing_period_index:
25596
+ type: integer
25597
+ title: Starting Billing Period Index
25598
+ ending_billing_period_index:
25599
+ type: integer
25600
+ title: Ending Billing Period Index
25601
+ offer_type:
25602
+ type: string
25603
+ title: Offer Type
25604
+ description: Type of discount offer given, e.g. "FREE_TRIAL"
25605
+ offer_name:
25606
+ type: string
25607
+ title: Offer Name
25608
+ description: Name of the discount offer given, e.g. "introductory"
25609
+ period_count:
25610
+ type: integer
25611
+ title: Period Count
25612
+ description: Number of billing periods
25613
+ period_length:
25614
+ type: string
25615
+ title: Period Length
25616
+ description: Billing cycle length
25617
+ amount:
25618
+ type: string
25619
+ format: decimal
25620
+ title: Amount
25621
+ minimum: 0
25622
+ description: Allows up to 9 decimal places
25623
+ currency:
25624
+ type: string
25625
+ title: Currency
25626
+ description: 3-letter ISO 4217 currency code.
25627
+ maxLength: 3
25628
+ ExternalInvoiceCreate:
25629
+ type: object
25630
+ properties:
25631
+ external_id:
25632
+ type: string
25633
+ description: An identifier which associates the external invoice to a corresponding
25634
+ object in an external platform.
25635
+ state:
25636
+ "$ref": "#/components/schemas/ExternalInvoiceStateEnum"
25637
+ total:
25638
+ type: string
25639
+ format: decimal
25640
+ currency:
25641
+ type: string
25642
+ title: Currency
25643
+ description: 3-letter ISO 4217 currency code.
25644
+ maxLength: 3
25645
+ purchased_at:
25646
+ type: string
25647
+ format: date-time
25648
+ description: When the invoice was created in the external platform.
25649
+ line_items:
25650
+ type: array
25651
+ items:
25652
+ "$ref": "#/components/schemas/ExternalChargeCreate"
25653
+ external_payment_phase:
25654
+ "$ref": "#/components/schemas/ExternalPaymentPhaseBase"
25655
+ external_payment_phase_id:
25656
+ type: string
25657
+ description: External payment phase ID, e.g. `a34ypb2ef9w1`.
25658
+ required:
25659
+ - external_id
25660
+ - state
25661
+ - total
25662
+ - currency
25663
+ - purchased_at
25285
25664
  ExternalInvoiceList:
25286
25665
  type: object
25287
25666
  properties:
@@ -25584,6 +25963,30 @@ components:
25584
25963
  format: date-time
25585
25964
  title: Last updated at
25586
25965
  readOnly: true
25966
+ BusinessEntityMini:
25967
+ type: object
25968
+ description: Business entity details
25969
+ properties:
25970
+ id:
25971
+ title: Business entity ID
25972
+ type: string
25973
+ maxLength: 13
25974
+ readOnly: true
25975
+ object:
25976
+ title: Object type
25977
+ type: string
25978
+ readOnly: true
25979
+ code:
25980
+ title: Business entity code
25981
+ type: string
25982
+ maxLength: 50
25983
+ description: The entity code of the business entity.
25984
+ name:
25985
+ type: string
25986
+ title: Name
25987
+ description: This name describes your business entity and will appear on
25988
+ the invoice.
25989
+ maxLength: 255
25587
25990
  GiftCardList:
25588
25991
  type: object
25589
25992
  properties:
@@ -26907,3 +27310,32 @@ components:
26907
27310
  enum:
26908
27311
  - destination
26909
27312
  - origin
27313
+ TransactionMerchantReasonCodeEnum:
27314
+ type: string
27315
+ default: none
27316
+ description: |
27317
+ This conditional parameter is useful for merchants in specific industries who need to submit one-time Merchant Initiated transactions in specific cases.
27318
+ Not all gateways support these methods, but will support a generic one-time Merchant Initiated transaction.
27319
+ Only use this if the initiator value is "merchant". Otherwise, it will be ignored.
27320
+ - 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.
27321
+ - No Show: Send `no_show` if you charge customers a fee due to an agreed-upon cancellation policy in your industry.
27322
+ - 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.
27323
+ - 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.
27324
+ - 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.
27325
+ - 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.
27326
+ enum:
27327
+ - incremental
27328
+ - no_show
27329
+ - resubmission
27330
+ - service_extension
27331
+ - split_shipment
27332
+ - top_up
27333
+ TransactionIndicatorEnum:
27334
+ type: string
27335
+ description: Must be sent for one-time transactions in order to provide context
27336
+ on which entity is submitting the transaction to ensure proper fraud checks
27337
+ are observed, such as 3DS. If the customer is in session, send `customer`.
27338
+ If this is a merchant initiated one-time transaction, send `merchant`.
27339
+ enum:
27340
+ - customer
27341
+ - merchant
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.57.0
4
+ version: 4.58.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recurly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-02 00:00:00.000000000 Z
11
+ date: 2024-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -152,6 +152,7 @@ files:
152
152
  - lib/recurly/requests/account_acquisition_cost.rb
153
153
  - lib/recurly/requests/account_acquisition_update.rb
154
154
  - lib/recurly/requests/account_create.rb
155
+ - lib/recurly/requests/account_external_subscription.rb
155
156
  - lib/recurly/requests/account_purchase.rb
156
157
  - lib/recurly/requests/account_reference.rb
157
158
  - lib/recurly/requests/account_update.rb
@@ -173,9 +174,13 @@ files:
173
174
  - lib/recurly/requests/external_account_update.rb
174
175
  - lib/recurly/requests/external_product_create.rb
175
176
  - lib/recurly/requests/external_product_reference_base.rb
177
+ - lib/recurly/requests/external_product_reference_connection_type.rb
176
178
  - lib/recurly/requests/external_product_reference_create.rb
179
+ - lib/recurly/requests/external_product_reference_update.rb
177
180
  - lib/recurly/requests/external_product_update.rb
178
181
  - lib/recurly/requests/external_refund.rb
182
+ - lib/recurly/requests/external_subscription_create.rb
183
+ - lib/recurly/requests/external_subscription_update.rb
179
184
  - lib/recurly/requests/external_transaction.rb
180
185
  - lib/recurly/requests/gateway_attributes.rb
181
186
  - lib/recurly/requests/general_ledger_account_create.rb
@@ -248,6 +253,7 @@ files:
248
253
  - lib/recurly/resources/billing_info_updated_by.rb
249
254
  - lib/recurly/resources/binary_file.rb
250
255
  - lib/recurly/resources/business_entity.rb
256
+ - lib/recurly/resources/business_entity_mini.rb
251
257
  - lib/recurly/resources/coupon.rb
252
258
  - lib/recurly/resources/coupon_discount.rb
253
259
  - lib/recurly/resources/coupon_discount_pricing.rb
@@ -355,7 +361,7 @@ metadata:
355
361
  changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
356
362
  documentation_uri: https://recurly.github.io/recurly-client-ruby/
357
363
  homepage_uri: https://github.com/recurly/recurly-client-ruby
358
- source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.57.0
364
+ source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.58.0
359
365
  post_install_message:
360
366
  rdoc_options: []
361
367
  require_paths: