recurly 4.63.0 → 4.65.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb49608ae75d7232218279a89c1f8c054696b2704054b7f0d5606338724ed327
4
- data.tar.gz: b2b433901e9f01228213da877bd363b2314b126c14d41b937d6facbf675d0353
3
+ metadata.gz: b2eff66410b1aee2ef302ab1b35dbe355ef69e69d5c82ffb88e3e111b96ed589
4
+ data.tar.gz: a481d2e74e67ad8fcaa78a938bbdaaf6e86e6519f99350fffd3e245f54270f10
5
5
  SHA512:
6
- metadata.gz: 6394559860aa49980037f205757265106c52cff92a756e75935f5a6432f0c945357428095bf90b10a573c2bf1362060df2ab778df6bb62a9bb6a5667bc7c7aac
7
- data.tar.gz: a2d1e9375579ba500a0d68beb4499b9471a5da9acdc325f2d417f88bc4e49cfed900a00f61bf7854fb007f05746a9dfe0703b36228767bfaebe3323e119bcd17
6
+ metadata.gz: 0a9d62924b675a5f8c417f3d2a5a622bbeb7bd6789781e8eb169b84c2ec6feb18f3068b388365626c6743b549af065a5b3c46b0004923d568766d5a667bf296c
7
+ data.tar.gz: 14f3346e00aa13044267a72752f6b9e1e880cac5c97b9a8b4330ec9160474dbe10a97df35bc60c31fc9b91a7175921485742138d37f89352b7a8ef06e6881e12
data/.bumpversion.cfg CHANGED
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 4.63.0
2
+ current_version = 4.65.0
3
3
  parse = (?P<major>\d+)
4
4
  \.(?P<minor>\d+)
5
5
  \.(?P<patch>\d+)
data/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.65.0](https://github.com/recurly/recurly-client-ruby/tree/4.65.0) (2025-07-09)
4
+
5
+ [Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.64.0...4.65.0)
6
+
7
+
8
+ **Merged Pull Requests**
9
+
10
+ - Generated Latest Changes for v2021-02-25 [#930](https://github.com/recurly/recurly-client-ruby/pull/930) ([recurly-integrations](https://github.com/recurly-integrations))
11
+
12
+
13
+
14
+ ## [4.64.0](https://github.com/recurly/recurly-client-ruby/tree/4.64.0) (2025-06-11)
15
+
16
+ [Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.63.0...4.64.0)
17
+
18
+
19
+ **Merged Pull Requests**
20
+
21
+ - Generated Latest Changes for v2021-02-25 [#929](https://github.com/recurly/recurly-client-ruby/pull/929) ([recurly-integrations](https://github.com/recurly-integrations))
22
+ - Generated Latest Changes for v2021-02-25 [#928](https://github.com/recurly/recurly-client-ruby/pull/928) ([recurly-integrations](https://github.com/recurly-integrations))
23
+
24
+
25
+
3
26
  ## [4.63.0](https://github.com/recurly/recurly-client-ruby/tree/4.63.0) (2025-04-16)
4
27
 
5
28
  [Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.62.0...4.63.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.63'
8
+ gem 'recurly', '~> 4.65'
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.
@@ -589,6 +589,38 @@ module Recurly
589
589
  delete(path, **options)
590
590
  end
591
591
 
592
+ # Verify a billing information's credit card
593
+ #
594
+ # {https://developers.recurly.com/api/v2021-02-25#operation/verify_billing_infos verify_billing_infos api documentation}
595
+ #
596
+ # @param account_id [String] Account ID or code. For ID no prefix is used e.g. +e28zov4fw0v2+. For code use prefix +code-+, e.g. +code-bob+.
597
+ # @param billing_info_id [String] Billing Info ID. Can ONLY be used for sites utilizing the Wallet feature.
598
+ # @param params [Hash] Optional query string parameters:
599
+ # :body [Requests::BillingInfoVerify] The Hash representing the JSON request to send to the server. It should conform to the schema of {Requests::BillingInfoVerify}
600
+ #
601
+ # @return [Resources::Transaction] Transaction information from verify.
602
+ #
603
+ def verify_billing_infos(account_id:, billing_info_id:, **options)
604
+ path = interpolate_path("/accounts/{account_id}/billing_infos/{billing_info_id}/verify", account_id: account_id, billing_info_id: billing_info_id)
605
+ post(path, options[:body], Requests::BillingInfoVerify, **options)
606
+ end
607
+
608
+ # Verify a billing information's credit card cvv
609
+ #
610
+ # {https://developers.recurly.com/api/v2021-02-25#operation/verify_billing_infos_cvv verify_billing_infos_cvv api documentation}
611
+ #
612
+ # @param account_id [String] Account ID or code. For ID no prefix is used e.g. +e28zov4fw0v2+. For code use prefix +code-+, e.g. +code-bob+.
613
+ # @param billing_info_id [String] Billing Info ID. Can ONLY be used for sites utilizing the Wallet feature.
614
+ # @param body [Requests::BillingInfoVerifyCVV] The Hash representing the JSON request to send to the server. It should conform to the schema of {Requests::BillingInfoVerifyCVV}
615
+ # @param params [Hash] Optional query string parameters:
616
+ #
617
+ # @return [Resources::Transaction] Transaction information from verify.
618
+ #
619
+ def verify_billing_infos_cvv(account_id:, billing_info_id:, body:, **options)
620
+ path = interpolate_path("/accounts/{account_id}/billing_infos/{billing_info_id}/verify_cvv", account_id: account_id, billing_info_id: billing_info_id)
621
+ post(path, body, Requests::BillingInfoVerifyCVV, **options)
622
+ end
623
+
592
624
  # List the coupon redemptions for an account
593
625
  #
594
626
  # {https://developers.recurly.com/api/v2021-02-25#operation/list_account_coupon_redemptions list_account_coupon_redemptions api documentation}
@@ -6,6 +6,10 @@ module Recurly
6
6
  module Requests
7
7
  class AccountAcquisitionUpdate < Request
8
8
 
9
+ # @!attribute acquired_at
10
+ # @return [DateTime] Date the account was first created if different than the account.created_at. ie Importing accounts.
11
+ define_attribute :acquired_at, DateTime
12
+
9
13
  # @!attribute campaign
10
14
  # @return [String] An arbitrary identifier for the marketing campaign that led to the acquisition of this account.
11
15
  define_attribute :campaign, String
@@ -18,8 +18,12 @@ module Recurly
18
18
  # @return [Address]
19
19
  define_attribute :address, :Address
20
20
 
21
+ # @!attribute adyen_risk_profile_reference_id
22
+ # @return [String] The Adyen Risk Profile Reference ID is used to identify the risk profile for the payment method.
23
+ define_attribute :adyen_risk_profile_reference_id, String
24
+
21
25
  # @!attribute amazon_billing_agreement_id
22
- # @return [String] Amazon billing agreement ID
26
+ # @return [String] Only supported on Amazon V1. For Amazon V2, use token_id with Recurly.js.
23
27
  define_attribute :amazon_billing_agreement_id, String
24
28
 
25
29
  # @!attribute backup_payment_method
@@ -9,6 +9,10 @@ module Recurly
9
9
  # @!attribute gateway_code
10
10
  # @return [String] An identifier for a specific payment gateway.
11
11
  define_attribute :gateway_code, String
12
+
13
+ # @!attribute three_d_secure_action_result_token_id
14
+ # @return [String] A token generated by Recurly.js after completing a 3-D Secure device fingerprinting or authentication challenge.
15
+ define_attribute :three_d_secure_action_result_token_id, String
12
16
  end
13
17
  end
14
18
  end
@@ -6,6 +6,18 @@ module Recurly
6
6
  module Requests
7
7
  class BillingInfoVerifyCVV < Request
8
8
 
9
+ # @!attribute gateway_code
10
+ # @return [String] An identifier for a specific payment gateway.
11
+ define_attribute :gateway_code, String
12
+
13
+ # @!attribute three_d_secure_action_result_token_id
14
+ # @return [String] A token generated by Recurly.js after completing a 3-D Secure device fingerprinting or authentication challenge.
15
+ define_attribute :three_d_secure_action_result_token_id, String
16
+
17
+ # @!attribute token_id
18
+ # @return [String] A token [generated by Recurly.js](https://recurly.com/developers/reference/recurly-js/#getting-a-token).
19
+ define_attribute :token_id, String
20
+
9
21
  # @!attribute verification_value
10
22
  # @return [String] Unique security code for a credit card.
11
23
  define_attribute :verification_value, String
@@ -7,8 +7,8 @@ module Recurly
7
7
  class ExternalProductReferenceBase < Request
8
8
 
9
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
10
+ # @return [String] Represents the connection type. One of the connection types of your enabled App Connectors
11
+ define_attribute :external_connection_type, String
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.
@@ -7,8 +7,8 @@ module Recurly
7
7
  class ExternalProductReferenceCreate < Request
8
8
 
9
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
10
+ # @return [String] Represents the connection type. One of the connection types of your enabled App Connectors
11
+ define_attribute :external_connection_type, String
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.
@@ -7,8 +7,8 @@ module Recurly
7
7
  class ExternalProductReferenceUpdate < Request
8
8
 
9
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
10
+ # @return [String] Represents the connection type. One of the connection types of your enabled App Connectors
11
+ define_attribute :external_connection_type, String
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.
@@ -55,7 +55,7 @@ module Recurly
55
55
  define_attribute :liability_gl_account_id, String
56
56
 
57
57
  # @!attribute origin
58
- # @return [String] Origin `external_gift_card` is allowed if the Gift Cards feature is enabled on your site and `type` is `credit`. Set this value in order to track gift card credits from external gift cards (like InComm). It also skips billing information requirements. Origin `prepayment` is only allowed if `type` is `charge` and `tax_exempt` is left blank or set to true. This origin creates a charge and opposite credit on the account to be used for future invoices.
58
+ # @return [String] Origin `external_gift_card` is allowed if the Gift Cards feature is enabled on your site, `type` is `credit` and `tax_exempt` is `true` if you are using taxes. Set this value in order to track gift card credits from external gift cards (like InComm). It also skips billing information requirements. Origin `prepayment` is only allowed if `type` is `charge` and `tax_exempt` is left blank or set to true. This origin creates a charge and opposite credit on the account to be used for future invoices.
59
59
  define_attribute :origin, String
60
60
 
61
61
  # @!attribute origin_tax_address_source
@@ -11,8 +11,8 @@ module Recurly
11
11
  define_attribute :starting_billing_cycle, Integer
12
12
 
13
13
  # @!attribute unit_amount
14
- # @return [Integer] Represents the price for the ramp interval.
15
- define_attribute :unit_amount, Integer
14
+ # @return [Float] Represents the price for the ramp interval.
15
+ define_attribute :unit_amount, Float
16
16
  end
17
17
  end
18
18
  end
@@ -18,6 +18,10 @@ module Recurly
18
18
  # @return [Float] Assigns the subscription's shipping cost. If this is greater than zero then a `method_id` or `method_code` is required.
19
19
  define_attribute :amount, Float
20
20
 
21
+ # @!attribute expected_first_delivery_at
22
+ # @return [DateTime] The expected date of the first delivery for the subscription.
23
+ define_attribute :expected_first_delivery_at, DateTime
24
+
21
25
  # @!attribute method_code
22
26
  # @return [String] The code of the shipping method used to deliver the subscription. If `method_id` and `method_code` are both present, `method_id` will be used.
23
27
  define_attribute :method_code, String
@@ -10,6 +10,10 @@ module Recurly
10
10
  # @return [Float] Assigns the subscription's shipping cost. If this is greater than zero then a `method_id` or `method_code` is required.
11
11
  define_attribute :amount, Float
12
12
 
13
+ # @!attribute expected_first_delivery_at
14
+ # @return [DateTime] The expected date of the first delivery for the subscription.
15
+ define_attribute :expected_first_delivery_at, DateTime
16
+
13
17
  # @!attribute method_code
14
18
  # @return [String] The code of the shipping method used to deliver the subscription. If `method_id` and `method_code` are both present, `method_id` will be used.
15
19
  define_attribute :method_code, String
@@ -10,6 +10,10 @@ module Recurly
10
10
  # @return [AccountMini] Account mini details
11
11
  define_attribute :account, :AccountMini
12
12
 
13
+ # @!attribute acquired_at
14
+ # @return [DateTime] Date the account was first created if different than the account.created_at. ie Importing accounts.
15
+ define_attribute :acquired_at, DateTime
16
+
13
17
  # @!attribute campaign
14
18
  # @return [String] An arbitrary identifier for the marketing campaign that led to the acquisition of this account.
15
19
  define_attribute :campaign, String
@@ -138,6 +138,10 @@ module Recurly
138
138
  # @return [Float] The summation of charges and credits, before discounts and taxes.
139
139
  define_attribute :subtotal, Float
140
140
 
141
+ # @!attribute subtotal_after_discount
142
+ # @return [Float] The summation of charges and credits, after discounts applied.
143
+ define_attribute :subtotal_after_discount, Float
144
+
141
145
  # @!attribute tax
142
146
  # @return [Float] The total tax on this invoice.
143
147
  define_attribute :tax, Float
@@ -23,7 +23,7 @@ module Recurly
23
23
  define_attribute :add_on_id, String
24
24
 
25
25
  # @!attribute amount
26
- # @return [Float] `(quantity * unit_amount) - (discount + tax)`
26
+ # @return [Float] `(quantity * unit_amount) - discount + tax`
27
27
  define_attribute :amount, Float
28
28
 
29
29
  # @!attribute avalara_service_type
@@ -90,9 +90,9 @@ module Recurly
90
90
  # @return [String] Transaction ID
91
91
  define_attribute :id, String
92
92
 
93
- # @!attribute indicator
93
+ # @!attribute initiator
94
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
95
+ define_attribute :initiator, String
96
96
 
97
97
  # @!attribute invoice
98
98
  # @return [InvoiceMini] Invoice mini details
@@ -1,3 +1,3 @@
1
1
  module Recurly
2
- VERSION = "4.63.0"
2
+ VERSION = "4.65.0"
3
3
  end
data/openapi/api.yaml CHANGED
@@ -2793,6 +2793,97 @@ paths:
2793
2793
  schema:
2794
2794
  "$ref": "#/components/schemas/Error"
2795
2795
  x-code-samples: []
2796
+ "/accounts/{account_id}/billing_infos/{billing_info_id}/verify":
2797
+ post:
2798
+ tags:
2799
+ - billing_infos
2800
+ operationId: verify_billing_infos
2801
+ summary: Verify a billing information's credit card
2802
+ parameters:
2803
+ - "$ref": "#/components/parameters/account_id"
2804
+ - "$ref": "#/components/parameters/billing_info_id"
2805
+ requestBody:
2806
+ content:
2807
+ application/json:
2808
+ schema:
2809
+ "$ref": "#/components/schemas/BillingInfoVerify"
2810
+ required: false
2811
+ responses:
2812
+ '200':
2813
+ description: Transaction information from verify.
2814
+ content:
2815
+ application/json:
2816
+ schema:
2817
+ "$ref": "#/components/schemas/Transaction"
2818
+ '404':
2819
+ description: Billing information not found, or incorrect site or account
2820
+ ID.
2821
+ content:
2822
+ application/json:
2823
+ schema:
2824
+ "$ref": "#/components/schemas/Error"
2825
+ default:
2826
+ description: Unexpected error.
2827
+ content:
2828
+ application/json:
2829
+ schema:
2830
+ "$ref": "#/components/schemas/Error"
2831
+ '422':
2832
+ description: Invalid billing information, or error running the verification
2833
+ transaction.
2834
+ content:
2835
+ application/json:
2836
+ schema:
2837
+ "$ref": "#/components/schemas/ErrorMayHaveTransaction"
2838
+ x-code-samples: []
2839
+ "/accounts/{account_id}/billing_infos/{billing_info_id}/verify_cvv":
2840
+ post:
2841
+ tags:
2842
+ - billing_infos
2843
+ operationId: verify_billing_infos_cvv
2844
+ summary: Verify a billing information's credit card cvv
2845
+ parameters:
2846
+ - "$ref": "#/components/parameters/account_id"
2847
+ - "$ref": "#/components/parameters/billing_info_id"
2848
+ requestBody:
2849
+ content:
2850
+ application/json:
2851
+ schema:
2852
+ "$ref": "#/components/schemas/BillingInfoVerifyCVV"
2853
+ responses:
2854
+ '200':
2855
+ description: Transaction information from verify.
2856
+ content:
2857
+ application/json:
2858
+ schema:
2859
+ "$ref": "#/components/schemas/Transaction"
2860
+ '404':
2861
+ description: Billing information not found, or incorrect site or account
2862
+ ID.
2863
+ content:
2864
+ application/json:
2865
+ schema:
2866
+ "$ref": "#/components/schemas/Error"
2867
+ default:
2868
+ description: Unexpected error.
2869
+ content:
2870
+ application/json:
2871
+ schema:
2872
+ "$ref": "#/components/schemas/Error"
2873
+ '422':
2874
+ description: Invalid billing information, or error running the verification
2875
+ transaction.
2876
+ content:
2877
+ application/json:
2878
+ schema:
2879
+ "$ref": "#/components/schemas/ErrorMayHaveTransaction"
2880
+ '429':
2881
+ description: Too many CVV verification attempts.
2882
+ content:
2883
+ application/json:
2884
+ schema:
2885
+ "$ref": "#/components/schemas/Error"
2886
+ x-code-samples: []
2796
2887
  "/accounts/{account_id}/coupon_redemptions":
2797
2888
  get:
2798
2889
  tags:
@@ -10830,7 +10921,7 @@ paths:
10830
10921
  }
10831
10922
  - lang: Go
10832
10923
  source: "planReq := &recurly.PlanCreate{\n\tCode: &planCode,\n\tName: recurly.String(\"Monthly
10833
- Coffee Subscription\"),\n\tCurrencies: []recurly.PlanPricingCreate{\n\t\t{\n\t\t\tCurrency:
10924
+ Coffee Subscription\"),\n\tCurrencies: &[]recurly.PlanPricingCreate{\n\t\t{\n\t\t\tCurrency:
10834
10925
  \ recurly.String(\"USD\"),\n\t\t\tUnitAmount: recurly.Float(10000),\n\t\t},\n\t},\n}\n\nplan,
10835
10926
  err := client.CreatePlan(planReq)\nif e, ok := err.(*recurly.Error); ok
10836
10927
  {\n\tif e.Type == recurly.ErrorTypeValidation {\n\t\tfmt.Printf(\"Failed
@@ -11499,7 +11590,7 @@ paths:
11499
11590
  }
11500
11591
  - lang: Go
11501
11592
  source: "addOnReq := &recurly.AddOnCreate{\n\tCode: &addOnCode,\n\tName: recurly.String(\"Fresh
11502
- beans shipped monthly\"),\n\tCurrencies: []recurly.AddOnPricingCreate{\n\t\t{\n\t\t\tCurrency:
11593
+ beans shipped monthly\"),\n\tCurrencies: &[]recurly.AddOnPricingCreate{\n\t\t{\n\t\t\tCurrency:
11503
11594
  \ recurly.String(\"USD\"),\n\t\t\tUnitAmount: recurly.Float(10),\n\t\t},\n\t},\n}\n\nplanAddOn,
11504
11595
  err := client.CreatePlanAddOn(planID, addOnReq)\nif e, ok := err.(*recurly.Error);
11505
11596
  ok {\n\tif e.Type == recurly.ErrorTypeValidation {\n\t\tfmt.Printf(\"Failed
@@ -15274,7 +15365,7 @@ paths:
15274
15365
  - lang: Go
15275
15366
  source: "purchaseReq := &recurly.PurchaseCreate{\n\tCurrency: recurly.String(\"USD\"),\n\tAccount:
15276
15367
  &recurly.AccountPurchase{\n\t\tCode: recurly.String(accountCode),\n\t},\n\tSubscriptions:
15277
- []recurly.SubscriptionPurchase{\n\t\t{\n\t\t\tPlanCode: recurly.String(planCode),\n\t\t\tNextBillDate:
15368
+ &[]recurly.SubscriptionPurchase{\n\t\t{\n\t\t\tPlanCode: recurly.String(planCode),\n\t\t\tNextBillDate:
15278
15369
  recurly.Time(time.Date(2078, time.November, 10, 23, 0, 0, 0, time.UTC)),\n\t\t},\n\t},\n\tShipping:
15279
15370
  &recurly.ShippingPurchase{\n\t\tAddressId: recurly.String(shippingAddressID),\n\t},\n}\n\ncollection,
15280
15371
  err := client.CreatePurchase(purchaseReq)\nif e, ok := err.(*recurly.Error);
@@ -15508,7 +15599,7 @@ paths:
15508
15599
  - lang: Go
15509
15600
  source: "purchaseReq := &recurly.PurchaseCreate{\n\tCurrency: recurly.String(\"USD\"),\n\tAccount:
15510
15601
  &recurly.AccountPurchase{\n\t\tCode: recurly.String(account.Code),\n\t},\n\tSubscriptions:
15511
- []recurly.SubscriptionPurchase{\n\t\t{\n\t\t\tPlanCode: recurly.String(plan.Code),\n\t\t\tNextBillDate:
15602
+ &[]recurly.SubscriptionPurchase{\n\t\t{\n\t\t\tPlanCode: recurly.String(plan.Code),\n\t\t\tNextBillDate:
15512
15603
  recurly.Time(time.Date(2078, time.November, 10, 23, 0, 0, 0, time.UTC)),\n\t\t},\n\t},\n\tShipping:
15513
15604
  &recurly.ShippingPurchase{\n\t\tAddressId: recurly.String(shippingAddressID),\n\t},\n}\ncollection,
15514
15605
  err := client.PreviewPurchase(purchaseReq)\nif e, ok := err.(*recurly.Error);
@@ -15776,12 +15867,12 @@ paths:
15776
15867
  var_dump($e);
15777
15868
  }
15778
15869
  - lang: Go
15779
- source: "purchaseReq := &recurly.PurchaseCreate{\n\tCurrency: recurly.String(\"EUR\"),\n\tAccount:
15870
+ source: "purchaseReq := &recurly.PurchaseCreate{\n\tCurrency: recurly.String(\"USD\"),\n\tAccount:
15780
15871
  &recurly.AccountPurchase{\n\t\tCode: recurly.String(accountCode),\n\t\tEmail:
15781
15872
  recurly.String(\"benjamin@example.com\"),\n\t\tBillingInfo: &recurly.BillingInfoCreate{\n\t\t\tFirstName:
15782
15873
  \ recurly.String(\"Benjamin\"),\n\t\t\tLastName: recurly.String(\"Du
15783
15874
  Monde\"),\n\t\t\tOnlineBankingPaymentType: recurly.String(\"ideal\"),\n\t\t},\n\t},\n\tLineItems:
15784
- []recurly.LineItemCreate{\n\t\t{\n\t\t\tCurrency: recurly.String(\"EUR\"),\n\t\t\tUnitAmount:
15875
+ &[]recurly.LineItemCreate{\n\t\t{\n\t\t\tCurrency: recurly.String(\"USD\"),\n\t\t\tUnitAmount:
15785
15876
  recurly.Float(1000),\n\t\t\tType: recurly.String(\"charge\"),\n\t\t},\n\t},\n}\ncollection,
15786
15877
  err := client.CreatePendingPurchase(purchaseReq)\nif e, ok := err.(*recurly.Error);
15787
15878
  ok {\n\tif e.Type == recurly.ErrorTypeValidation {\n\t\tfmt.Printf(\"Failed
@@ -17598,6 +17689,11 @@ components:
17598
17689
  type: string
17599
17690
  description: An arbitrary identifier for the marketing campaign that led
17600
17691
  to the acquisition of this account.
17692
+ acquired_at:
17693
+ type: string
17694
+ format: date-time
17695
+ description: Date the account was first created if different than the account.created_at.
17696
+ ie Importing accounts.
17601
17697
  AccountAcquisitionReadOnly:
17602
17698
  type: object
17603
17699
  properties:
@@ -18896,6 +18992,8 @@ components:
18896
18992
  amazon_billing_agreement_id:
18897
18993
  type: string
18898
18994
  title: Amazon billing agreement ID
18995
+ description: Only supported on Amazon V1. For Amazon V2, use token_id with
18996
+ Recurly.js.
18899
18997
  paypal_billing_agreement_id:
18900
18998
  type: string
18901
18999
  title: PayPal billing agreement ID
@@ -18905,6 +19003,11 @@ components:
18905
19003
  fraud_session_id:
18906
19004
  type: string
18907
19005
  title: Fraud Session ID
19006
+ adyen_risk_profile_reference_id:
19007
+ type: string
19008
+ title: Adyen Risk Profile Reference ID
19009
+ description: The Adyen Risk Profile Reference ID is used to identify the
19010
+ risk profile for the payment method.
18908
19011
  transaction_type:
18909
19012
  description: An optional type designation for the payment gateway transaction
18910
19013
  created by this request. Supports 'moto' value, which is the acronym for
@@ -18999,12 +19102,27 @@ components:
18999
19102
  type: string
19000
19103
  description: An identifier for a specific payment gateway.
19001
19104
  maxLength: 13
19105
+ three_d_secure_action_result_token_id:
19106
+ type: string
19107
+ description: A token generated by Recurly.js after completing a 3-D Secure
19108
+ device fingerprinting or authentication challenge.
19002
19109
  BillingInfoVerifyCVV:
19003
19110
  type: object
19004
19111
  properties:
19005
19112
  verification_value:
19006
19113
  type: string
19007
19114
  description: Unique security code for a credit card.
19115
+ gateway_code:
19116
+ type: string
19117
+ description: An identifier for a specific payment gateway.
19118
+ maxLength: 13
19119
+ three_d_secure_action_result_token_id:
19120
+ type: string
19121
+ description: A token generated by Recurly.js after completing a 3-D Secure
19122
+ device fingerprinting or authentication challenge.
19123
+ token_id:
19124
+ type: string
19125
+ description: A token [generated by Recurly.js](https://recurly.com/developers/reference/recurly-js/#getting-a-token).
19008
19126
  Coupon:
19009
19127
  type: object
19010
19128
  properties:
@@ -19835,6 +19953,12 @@ components:
19835
19953
  object:
19836
19954
  title: Object type
19837
19955
  type: string
19956
+ has_more:
19957
+ type: boolean
19958
+ description: Indicates there are more results on subsequent pages.
19959
+ next:
19960
+ type: string
19961
+ description: Path to subsequent page of results.
19838
19962
  data:
19839
19963
  title: Performance Obligation
19840
19964
  type: array
@@ -20315,6 +20439,11 @@ components:
20315
20439
  title: Subtotal
20316
20440
  description: The summation of charges and credits, before discounts and
20317
20441
  taxes.
20442
+ subtotal_after_discount:
20443
+ type: number
20444
+ format: float
20445
+ title: Subtotal After Discount
20446
+ description: The summation of charges and credits, after discounts applied.
20318
20447
  tax:
20319
20448
  type: number
20320
20449
  format: float
@@ -20958,7 +21087,7 @@ components:
20958
21087
  type: number
20959
21088
  format: float
20960
21089
  title: Total after discounts and taxes
20961
- description: "`(quantity * unit_amount) - (discount + tax)`"
21090
+ description: "`(quantity * unit_amount) - discount + tax`"
20962
21091
  description:
20963
21092
  type: string
20964
21093
  title: Description
@@ -21327,12 +21456,12 @@ components:
21327
21456
  origin:
21328
21457
  title: Origin
21329
21458
  description: Origin `external_gift_card` is allowed if the Gift Cards feature
21330
- is enabled on your site and `type` is `credit`. Set this value in order
21331
- to track gift card credits from external gift cards (like InComm). It
21332
- also skips billing information requirements. Origin `prepayment` is only
21333
- allowed if `type` is `charge` and `tax_exempt` is left blank or set to
21334
- true. This origin creates a charge and opposite credit on the account
21335
- to be used for future invoices.
21459
+ is enabled on your site, `type` is `credit` and `tax_exempt` is `true`
21460
+ if you are using taxes. Set this value in order to track gift card credits
21461
+ from external gift cards (like InComm). It also skips billing information
21462
+ requirements. Origin `prepayment` is only allowed if `type` is `charge`
21463
+ and `tax_exempt` is left blank or set to true. This origin creates a
21464
+ charge and opposite credit on the account to be used for future invoices.
21336
21465
  "$ref": "#/components/schemas/LineItemCreateOriginEnum"
21337
21466
  custom_fields:
21338
21467
  "$ref": "#/components/schemas/CustomFields"
@@ -24105,6 +24234,11 @@ components:
24105
24234
  format: float
24106
24235
  title: Assigns the subscription's shipping cost. If this is greater than
24107
24236
  zero then a `method_id` or `method_code` is required.
24237
+ expected_first_delivery_at:
24238
+ type: string
24239
+ format: date-time
24240
+ title: Expected first delivery date
24241
+ description: The expected date of the first delivery for the subscription.
24108
24242
  SubscriptionShippingUpdate:
24109
24243
  type: object
24110
24244
  title: Subscription shipping details
@@ -24143,6 +24277,11 @@ components:
24143
24277
  format: float
24144
24278
  title: Assigns the subscription's shipping cost. If this is greater than
24145
24279
  zero then a `method_id` or `method_code` is required.
24280
+ expected_first_delivery_at:
24281
+ type: string
24282
+ format: date-time
24283
+ title: Expected first delivery date
24284
+ description: The expected date of the first delivery for the subscription.
24146
24285
  SubscriptionRampInterval:
24147
24286
  type: object
24148
24287
  title: Subscription Ramp Interval
@@ -24152,7 +24291,8 @@ components:
24152
24291
  description: Represents the billing cycle where a ramp interval starts.
24153
24292
  default: 1
24154
24293
  unit_amount:
24155
- type: integer
24294
+ type: number
24295
+ format: float
24156
24296
  description: Represents the price for the ramp interval.
24157
24297
  SubscriptionRampIntervalResponse:
24158
24298
  type: object
@@ -24279,8 +24419,8 @@ components:
24279
24419
  maxLength: 13
24280
24420
  account:
24281
24421
  "$ref": "#/components/schemas/AccountMini"
24282
- indicator:
24283
- "$ref": "#/components/schemas/TransactionIndicatorEnum"
24422
+ initiator:
24423
+ "$ref": "#/components/schemas/TransactionInitiatorEnum"
24284
24424
  invoice:
24285
24425
  "$ref": "#/components/schemas/InvoiceMini"
24286
24426
  merchant_reason_code:
@@ -24837,8 +24977,8 @@ components:
24837
24977
  allOf:
24838
24978
  - type: object
24839
24979
  properties:
24840
- indicator:
24841
- "$ref": "#/components/schemas/Transaction/properties/indicator"
24980
+ initiator:
24981
+ "$ref": "#/components/schemas/Transaction/properties/initiator"
24842
24982
  merchant_reason_code:
24843
24983
  "$ref": "#/components/schemas/Transaction/properties/merchant_reason_code"
24844
24984
  customer_notes:
@@ -25020,6 +25160,7 @@ components:
25020
25160
  format: date-time
25021
25161
  description: When the current settings were updated in Recurly.
25022
25162
  DunningInterval:
25163
+ type: object
25023
25164
  properties:
25024
25165
  days:
25025
25166
  type: integer
@@ -25044,6 +25185,7 @@ components:
25044
25185
  items:
25045
25186
  type: string
25046
25187
  DunningCampaignsBulkUpdateResponse:
25188
+ type: object
25047
25189
  properties:
25048
25190
  object:
25049
25191
  type: string
@@ -25897,6 +26039,7 @@ components:
25897
26039
  format: date-time
25898
26040
  description: When the invoice template was updated in Recurly.
25899
26041
  PaymentMethod:
26042
+ type: object
25900
26043
  properties:
25901
26044
  object:
25902
26045
  "$ref": "#/components/schemas/PaymentMethodEnum"
@@ -26613,8 +26756,6 @@ components:
26613
26756
  Stripe Gateway or Ebanx UPI.
26614
26757
  enum:
26615
26758
  - stripe_confirmation_token
26616
- - stripe_customer
26617
- - stripe_payment_method
26618
26759
  - upi_vpa
26619
26760
  GatewayTransactionTypeEnum:
26620
26761
  type: string
@@ -26978,6 +27119,12 @@ components:
26978
27119
  - recurring
26979
27120
  - refunded_externally
26980
27121
  - transparent
27122
+ - token_api
27123
+ - api_force_collect
27124
+ - api_sub_change
27125
+ - api_verify_card
27126
+ - refund_balance
27127
+ - amazon_v2_ipn
26981
27128
  TransactionStatusEnum:
26982
27129
  type: string
26983
27130
  enum:
@@ -27043,6 +27190,7 @@ components:
27043
27190
  - amazon
27044
27191
  - amazon_billing_agreement
27045
27192
  - apple_pay
27193
+ - apple_pay_merchant_token
27046
27194
  - bank_account_info
27047
27195
  - braintree_apple_pay
27048
27196
  - check
@@ -27464,7 +27612,7 @@ components:
27464
27612
  - service_extension
27465
27613
  - split_shipment
27466
27614
  - top_up
27467
- TransactionIndicatorEnum:
27615
+ TransactionInitiatorEnum:
27468
27616
  type: string
27469
27617
  description: Must be sent for one-time transactions in order to provide context
27470
27618
  on which entity is submitting the transaction to ensure proper fraud checks
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.63.0
4
+ version: 4.65.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recurly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-16 00:00:00.000000000 Z
11
+ date: 2025-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64
@@ -381,7 +381,7 @@ metadata:
381
381
  changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
382
382
  documentation_uri: https://recurly.github.io/recurly-client-ruby/
383
383
  homepage_uri: https://github.com/recurly/recurly-client-ruby
384
- source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.63.0
384
+ source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.65.0
385
385
  post_install_message:
386
386
  rdoc_options: []
387
387
  require_paths: