stripe 19.4.0.pre.alpha.1 → 19.4.0.pre.alpha.2

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.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_version.rb +1 -1
  3. data/lib/stripe/object_types.rb +5 -0
  4. data/lib/stripe/params/account_create_params.rb +1 -1
  5. data/lib/stripe/params/account_update_params.rb +1 -1
  6. data/lib/stripe/params/balance_transaction_list_params.rb +1 -1
  7. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +1 -1
  8. data/lib/stripe/params/billing/credit_grant_create_params.rb +1 -1
  9. data/lib/stripe/params/checkout/session_create_params.rb +55 -3
  10. data/lib/stripe/params/confirmation_token_create_params.rb +1 -1
  11. data/lib/stripe/params/credit_note_create_params.rb +1 -1
  12. data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +1 -1
  13. data/lib/stripe/params/credit_note_preview_lines_list_params.rb +1 -1
  14. data/lib/stripe/params/credit_note_preview_params.rb +1 -1
  15. data/lib/stripe/params/crypto/customer_consumer_wallet_list_params.rb +24 -0
  16. data/lib/stripe/params/crypto/customer_payment_token_list_params.rb +24 -0
  17. data/lib/stripe/params/crypto/customer_retrieve_params.rb +15 -0
  18. data/lib/stripe/params/crypto/onramp_session_checkout_params.rb +56 -0
  19. data/lib/stripe/params/crypto/onramp_session_create_params.rb +122 -0
  20. data/lib/stripe/params/crypto/onramp_session_list_params.rb +62 -0
  21. data/lib/stripe/params/crypto/onramp_session_quote_params.rb +15 -0
  22. data/lib/stripe/params/crypto/onramp_session_retrieve_params.rb +15 -0
  23. data/lib/stripe/params/crypto/onramp_transaction_limits_retrieve_params.rb +33 -0
  24. data/lib/stripe/params/dispute_update_params.rb +17 -1
  25. data/lib/stripe/params/financial_connections/session_create_params.rb +1 -1
  26. data/lib/stripe/params/invoice_add_lines_params.rb +1 -1
  27. data/lib/stripe/params/invoice_create_preview_params.rb +52 -1
  28. data/lib/stripe/params/invoice_line_item_update_params.rb +1 -1
  29. data/lib/stripe/params/invoice_update_lines_params.rb +1 -1
  30. data/lib/stripe/params/order_create_params.rb +1 -1
  31. data/lib/stripe/params/order_update_params.rb +1 -1
  32. data/lib/stripe/params/payment_attempt_record_report_failed_params.rb +38 -0
  33. data/lib/stripe/params/payment_attempt_record_report_refund_params.rb +4 -0
  34. data/lib/stripe/params/payment_intent_confirm_params.rb +51 -3
  35. data/lib/stripe/params/payment_intent_create_params.rb +51 -3
  36. data/lib/stripe/params/payment_intent_search_params.rb +1 -1
  37. data/lib/stripe/params/payment_intent_update_params.rb +51 -3
  38. data/lib/stripe/params/payment_link_create_params.rb +1 -1
  39. data/lib/stripe/params/payment_method_create_params.rb +1 -1
  40. data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +38 -0
  41. data/lib/stripe/params/payment_record_report_refund_params.rb +4 -0
  42. data/lib/stripe/params/setup_intent_confirm_params.rb +1 -1
  43. data/lib/stripe/params/setup_intent_create_params.rb +1 -1
  44. data/lib/stripe/params/setup_intent_update_params.rb +1 -1
  45. data/lib/stripe/params/subscription_create_params.rb +28 -1
  46. data/lib/stripe/params/subscription_pause_params.rb +1 -1
  47. data/lib/stripe/params/subscription_update_params.rb +29 -2
  48. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +1 -1
  49. data/lib/stripe/params/topup_create_params.rb +24 -0
  50. data/lib/stripe/params/v2/iam/api_key_create_params.rb +18 -1
  51. data/lib/stripe/params/v2/iam/api_key_update_params.rb +7 -1
  52. data/lib/stripe/params.rb +21 -0
  53. data/lib/stripe/resources/balance_transaction.rb +3 -3
  54. data/lib/stripe/resources/capital/financing_offer.rb +2 -0
  55. data/lib/stripe/resources/capital/financing_summary.rb +2 -0
  56. data/lib/stripe/resources/card.rb +16 -1
  57. data/lib/stripe/resources/charge.rb +30 -0
  58. data/lib/stripe/resources/checkout/session.rb +155 -1
  59. data/lib/stripe/resources/confirmation_token.rb +9 -0
  60. data/lib/stripe/resources/credit_note.rb +2 -0
  61. data/lib/stripe/resources/crypto/customer.rb +73 -0
  62. data/lib/stripe/resources/crypto/customer_consumer_wallet.rb +35 -0
  63. data/lib/stripe/resources/crypto/customer_payment_token.rb +84 -0
  64. data/lib/stripe/resources/crypto/onramp_session.rb +218 -0
  65. data/lib/stripe/resources/crypto/onramp_transaction_limits.rb +33 -0
  66. data/lib/stripe/resources/customer.rb +16 -0
  67. data/lib/stripe/resources/dispute.rb +32 -0
  68. data/lib/stripe/resources/financial_connections/account.rb +20 -1
  69. data/lib/stripe/resources/financial_connections/authorization.rb +18 -1
  70. data/lib/stripe/resources/gift_card_operation.rb +1 -14
  71. data/lib/stripe/resources/issuing/authorization.rb +20 -0
  72. data/lib/stripe/resources/issuing/card.rb +18 -0
  73. data/lib/stripe/resources/issuing/cardholder.rb +16 -0
  74. data/lib/stripe/resources/issuing/dispute.rb +16 -0
  75. data/lib/stripe/resources/issuing/token.rb +2 -0
  76. data/lib/stripe/resources/issuing/transaction.rb +18 -0
  77. data/lib/stripe/resources/order.rb +1 -1
  78. data/lib/stripe/resources/payment_attempt_record.rb +8 -2
  79. data/lib/stripe/resources/payment_intent.rb +65 -1
  80. data/lib/stripe/resources/payment_method.rb +25 -0
  81. data/lib/stripe/resources/payment_record.rb +8 -2
  82. data/lib/stripe/resources/radar/value_list_item.rb +15 -1
  83. data/lib/stripe/resources/reserve/hold.rb +18 -1
  84. data/lib/stripe/resources/setup_attempt.rb +16 -0
  85. data/lib/stripe/resources/setup_intent.rb +16 -0
  86. data/lib/stripe/resources/shared_payment/granted_token.rb +9 -0
  87. data/lib/stripe/resources/source.rb +16 -0
  88. data/lib/stripe/resources/subscription.rb +24 -3
  89. data/lib/stripe/resources/tax_fund.rb +16 -16
  90. data/lib/stripe/resources/token.rb +15 -1
  91. data/lib/stripe/resources/v2/iam/api_key.rb +4 -0
  92. data/lib/stripe/resources/v2/money_management/financial_account.rb +44 -0
  93. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +1 -1
  94. data/lib/stripe/resources/v2/money_management/transaction.rb +8 -0
  95. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +8 -0
  96. data/lib/stripe/resources.rb +13 -0
  97. data/lib/stripe/services/balance_transaction_service.rb +2 -2
  98. data/lib/stripe/services/credit_note_service.rb +2 -0
  99. data/lib/stripe/services/crypto/customer_consumer_wallet_service.rb +19 -0
  100. data/lib/stripe/services/crypto/customer_payment_token_service.rb +19 -0
  101. data/lib/stripe/services/crypto/customer_service.rb +27 -0
  102. data/lib/stripe/services/crypto/onramp_session_service.rb +69 -0
  103. data/lib/stripe/services/crypto/onramp_transaction_limits_service.rb +19 -0
  104. data/lib/stripe/services/crypto_service.rb +15 -0
  105. data/lib/stripe/services/subscription_service.rb +1 -1
  106. data/lib/stripe/services/v1_services.rb +2 -1
  107. data/lib/stripe/services.rb +15 -0
  108. data/lib/stripe/version.rb +1 -1
  109. data/rbi/stripe.rbi +2468 -118
  110. metadata +22 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0f7fbd0197d8f612f40f802b4b6883f9789610bbb2e6b128bcc3a9da99171b4
4
- data.tar.gz: 3ab3a92a03ac7209d759e45ddd49962e2cf56d0504e1b68e92a46bb44474a647
3
+ metadata.gz: d0c815e9e3f3c935dd648164ab13ca0e342f52f45b7abf00c5bfa4f58a86f319
4
+ data.tar.gz: fe34a7949ae94ce9bfb4f8cb0c37a6692e2219b2b01cb7bb21b991018471fef5
5
5
  SHA512:
6
- metadata.gz: d624ffdd7b9976b65c8de6f68bfbf66eb96b1f486bbd4686a8b83c43b7c3a5af797ebfb69a92b0048d4762ceb37fab84c40f0fe54f81515ff47d5b75269a3d57
7
- data.tar.gz: e70acd35a79056ca32a01065a1972c6f2235e8139d3074d095c38e6d976b9fb36a6b6e34dec45e327e9fa3c2edf6b6d031e743df20c39116bc901af43b765739
6
+ metadata.gz: 4bd1ffd2bf9b22df5f7f3e8261914351d57515c1b9636142cfa178fd40bfdb1097e40ea921e0f3878be8070a4a57f594b50395f00ac37762e676754708e3383e
7
+ data.tar.gz: ed13bbe042eca90940612cdcd786f3abbfa30b6d0e3d6d24e4fbdbd36072bce728db5c716ce05cc4442188fcbba6ac9d63064301211dc001bb7f1704dc84d2b0
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Stripe
5
5
  module ApiVersion
6
- CURRENT = "2026-06-24.preview"
6
+ CURRENT = "2026-07-01.preview"
7
7
  end
8
8
  end
@@ -58,6 +58,11 @@ module Stripe
58
58
  Coupon.object_name => Coupon,
59
59
  CreditNote.object_name => CreditNote,
60
60
  CreditNoteLineItem.object_name => CreditNoteLineItem,
61
+ Crypto::Customer.object_name => Crypto::Customer,
62
+ Crypto::CustomerConsumerWallet.object_name => Crypto::CustomerConsumerWallet,
63
+ Crypto::CustomerPaymentToken.object_name => Crypto::CustomerPaymentToken,
64
+ Crypto::OnrampSession.object_name => Crypto::OnrampSession,
65
+ Crypto::OnrampTransactionLimits.object_name => Crypto::OnrampTransactionLimits,
61
66
  Customer.object_name => Customer,
62
67
  CustomerBalanceTransaction.object_name => CustomerBalanceTransaction,
63
68
  CustomerCashBalanceTransaction.object_name => CustomerCashBalanceTransaction,
@@ -1755,7 +1755,7 @@ module Stripe
1755
1755
  attr_accessor :bank_account_ownership_verification
1756
1756
  # One or more documents that demonstrate proof of a company's license to operate.
1757
1757
  attr_accessor :company_license
1758
- # One or more documents showing the company's Memorandum of Association.
1758
+ # One or more documents showing the company's governing document (for example, a memorandum of association, constitution, or articles of association).
1759
1759
  attr_accessor :company_memorandum_of_association
1760
1760
  # (Certain countries only) One or more documents showing the ministerial decree legalizing the company's establishment.
1761
1761
  attr_accessor :company_ministerial_decree
@@ -1674,7 +1674,7 @@ module Stripe
1674
1674
  attr_accessor :bank_account_ownership_verification
1675
1675
  # One or more documents that demonstrate proof of a company's license to operate.
1676
1676
  attr_accessor :company_license
1677
- # One or more documents showing the company's Memorandum of Association.
1677
+ # One or more documents showing the company's governing document (for example, a memorandum of association, constitution, or articles of association).
1678
1678
  attr_accessor :company_memorandum_of_association
1679
1679
  # (Certain countries only) One or more documents showing the ministerial decree legalizing the company's establishment.
1680
1680
  attr_accessor :company_ministerial_decree
@@ -36,7 +36,7 @@ module Stripe
36
36
  attr_accessor :source
37
37
  # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
38
38
  attr_accessor :starting_after
39
- # Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`.
39
+ # Only returns transactions of the given type. One of: `tax_fund`, `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`.
40
40
  attr_accessor :type
41
41
 
42
42
  def initialize(
@@ -27,7 +27,7 @@ module Stripe
27
27
  attr_accessor :billable_items
28
28
  # The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.
29
29
  attr_accessor :price_type
30
- # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`.
30
+ # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. Limit 20 prices.
31
31
  attr_accessor :prices
32
32
 
33
33
  def initialize(billable_items: nil, price_type: nil, prices: nil)
@@ -75,7 +75,7 @@ module Stripe
75
75
  attr_accessor :billable_items
76
76
  # The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.
77
77
  attr_accessor :price_type
78
- # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`.
78
+ # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. Limit 20 prices.
79
79
  attr_accessor :prices
80
80
 
81
81
  def initialize(billable_items: nil, price_type: nil, prices: nil)
@@ -62,6 +62,12 @@ module Stripe
62
62
  @type = type
63
63
  end
64
64
  end
65
+ # Controls how much address information Checkout collects when [automatic_tax](https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-automatic_tax-enabled) is enabled.
66
+ #
67
+ # Defaults to `full`, which collects the address fields needed for the most accurate tax calculation. Set to `minimal` to collect only the fields required for tax in the buyer's country, accepting potentially less precise tax calculation in exchange for a streamlined form.
68
+ #
69
+ # Only honored when `automatic_tax.enabled` is `true`, `billing_address_collection` is `auto`, the resolved tax address source is the session billing address, and `ui_mode` is `form`.
70
+ attr_accessor :address_collection_precision
65
71
  # Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location.
66
72
  #
67
73
  # Enabling this parameter causes Checkout to collect any billing address information necessary for tax calculation.
@@ -69,7 +75,8 @@ module Stripe
69
75
  # The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
70
76
  attr_accessor :liability
71
77
 
72
- def initialize(enabled: nil, liability: nil)
78
+ def initialize(address_collection_precision: nil, enabled: nil, liability: nil)
79
+ @address_collection_precision = address_collection_precision
73
80
  @enabled = enabled
74
81
  @liability = liability
75
82
  end
@@ -2194,6 +2201,24 @@ module Stripe
2194
2201
  end
2195
2202
  end
2196
2203
 
2204
+ class Sunbit < ::Stripe::RequestParams
2205
+ # Controls when the funds will be captured from the customer's account.
2206
+ attr_accessor :capture_method
2207
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2208
+ #
2209
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2210
+ #
2211
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2212
+ #
2213
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
2214
+ attr_accessor :setup_future_usage
2215
+
2216
+ def initialize(capture_method: nil, setup_future_usage: nil)
2217
+ @capture_method = capture_method
2218
+ @setup_future_usage = setup_future_usage
2219
+ end
2220
+ end
2221
+
2197
2222
  class Swish < ::Stripe::RequestParams
2198
2223
  # The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent.
2199
2224
  attr_accessor :reference
@@ -2397,6 +2422,8 @@ module Stripe
2397
2422
  attr_accessor :sepa_debit
2398
2423
  # contains details about the Sofort payment method options.
2399
2424
  attr_accessor :sofort
2425
+ # contains details about the Sunbit payment method options.
2426
+ attr_accessor :sunbit
2400
2427
  # contains details about the Swish payment method options.
2401
2428
  attr_accessor :swish
2402
2429
  # contains details about the TWINT payment method options.
@@ -2454,6 +2481,7 @@ module Stripe
2454
2481
  scalapay: nil,
2455
2482
  sepa_debit: nil,
2456
2483
  sofort: nil,
2484
+ sunbit: nil,
2457
2485
  swish: nil,
2458
2486
  twint: nil,
2459
2487
  upi: nil,
@@ -2505,6 +2533,7 @@ module Stripe
2505
2533
  @scalapay = scalapay
2506
2534
  @sepa_debit = sepa_debit
2507
2535
  @sofort = sofort
2536
+ @sunbit = sunbit
2508
2537
  @swish = swish
2509
2538
  @twint = twint
2510
2539
  @upi = upi
@@ -2727,6 +2756,27 @@ module Stripe
2727
2756
  end
2728
2757
 
2729
2758
  class SubscriptionData < ::Stripe::RequestParams
2759
+ class BillingCycleAnchorConfig < ::Stripe::RequestParams
2760
+ # The day of the month the anchor should be. Ranges from 1 to 31.
2761
+ attr_accessor :day_of_month
2762
+ # The hour of the day the anchor should be. Ranges from 0 to 23.
2763
+ attr_accessor :hour
2764
+ # The minute of the hour the anchor should be. Ranges from 0 to 59.
2765
+ attr_accessor :minute
2766
+ # The month to start full cycle periods. Ranges from 1 to 12.
2767
+ attr_accessor :month
2768
+ # The second of the minute the anchor should be. Ranges from 0 to 59.
2769
+ attr_accessor :second
2770
+
2771
+ def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
2772
+ @day_of_month = day_of_month
2773
+ @hour = hour
2774
+ @minute = minute
2775
+ @month = month
2776
+ @second = second
2777
+ end
2778
+ end
2779
+
2730
2780
  class BillingMode < ::Stripe::RequestParams
2731
2781
  class Flexible < ::Stripe::RequestParams
2732
2782
  # Controls how invoices and invoice items display proration amounts and discount amounts.
@@ -2811,6 +2861,8 @@ module Stripe
2811
2861
  attr_accessor :application_fee_percent
2812
2862
  # A future timestamp to anchor the subscription's billing cycle for new subscriptions. You can't set this parameter if `ui_mode` is `elements`.
2813
2863
  attr_accessor :billing_cycle_anchor
2864
+ # Configures when the subscription schedule's billing cycle anchors to a specific day of the week or month.
2865
+ attr_accessor :billing_cycle_anchor_config
2814
2866
  # Controls how prorations and invoices for subscriptions are calculated and orchestrated.
2815
2867
  attr_accessor :billing_mode
2816
2868
  # The tax rates that will apply to any subscription item that does not have
@@ -2843,6 +2895,7 @@ module Stripe
2843
2895
  def initialize(
2844
2896
  application_fee_percent: nil,
2845
2897
  billing_cycle_anchor: nil,
2898
+ billing_cycle_anchor_config: nil,
2846
2899
  billing_mode: nil,
2847
2900
  default_tax_rates: nil,
2848
2901
  description: nil,
@@ -2858,6 +2911,7 @@ module Stripe
2858
2911
  )
2859
2912
  @application_fee_percent = application_fee_percent
2860
2913
  @billing_cycle_anchor = billing_cycle_anchor
2914
+ @billing_cycle_anchor_config = billing_cycle_anchor_config
2861
2915
  @billing_mode = billing_mode
2862
2916
  @default_tax_rates = default_tax_rates
2863
2917
  @description = description
@@ -3006,8 +3060,6 @@ module Stripe
3006
3060
  # You can configure Checkout to collect your customers' business names, individual names, or both. Each name field can be either required or optional.
3007
3061
  #
3008
3062
  # If a [Customer](https://docs.stripe.com/api/customers) is created or provided, the names can be saved to the Customer object as well.
3009
- #
3010
- # You can't set this parameter if `ui_mode` is `custom`.
3011
3063
  attr_accessor :name_collection
3012
3064
  # A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://docs.stripe.com/api/prices).
3013
3065
  #
@@ -526,7 +526,7 @@ module Stripe
526
526
  attr_accessor :sofort
527
527
  # This hash contains details about the Stripe balance payment method.
528
528
  attr_accessor :stripe_balance
529
- # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method.
529
+ # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method.
530
530
  attr_accessor :sunbit
531
531
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
532
532
  attr_accessor :swish
@@ -28,7 +28,7 @@ module Stripe
28
28
  attr_accessor :metadata
29
29
  # The line item quantity to credit.
30
30
  attr_accessor :quantity
31
- # A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`.
31
+ # A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`.
32
32
  attr_accessor :tax_amounts
33
33
  # The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used.
34
34
  attr_accessor :tax_rates
@@ -28,7 +28,7 @@ module Stripe
28
28
  attr_accessor :metadata
29
29
  # The line item quantity to credit.
30
30
  attr_accessor :quantity
31
- # A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`.
31
+ # A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`.
32
32
  attr_accessor :tax_amounts
33
33
  # The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used.
34
34
  attr_accessor :tax_rates
@@ -28,7 +28,7 @@ module Stripe
28
28
  attr_accessor :metadata
29
29
  # The line item quantity to credit.
30
30
  attr_accessor :quantity
31
- # A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`.
31
+ # A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`.
32
32
  attr_accessor :tax_amounts
33
33
  # The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used.
34
34
  attr_accessor :tax_rates
@@ -28,7 +28,7 @@ module Stripe
28
28
  attr_accessor :metadata
29
29
  # The line item quantity to credit.
30
30
  attr_accessor :quantity
31
- # A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`.
31
+ # A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`.
32
32
  attr_accessor :tax_amounts
33
33
  # The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used.
34
34
  attr_accessor :tax_rates
@@ -0,0 +1,24 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Crypto
6
+ class CustomerConsumerWalletListParams < ::Stripe::RequestParams
7
+ # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
8
+ attr_accessor :ending_before
9
+ # Specifies which fields in the response should be expanded.
10
+ attr_accessor :expand
11
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
12
+ attr_accessor :limit
13
+ # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
14
+ attr_accessor :starting_after
15
+
16
+ def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil)
17
+ @ending_before = ending_before
18
+ @expand = expand
19
+ @limit = limit
20
+ @starting_after = starting_after
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,24 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Crypto
6
+ class CustomerPaymentTokenListParams < ::Stripe::RequestParams
7
+ # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
8
+ attr_accessor :ending_before
9
+ # Specifies which fields in the response should be expanded.
10
+ attr_accessor :expand
11
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
12
+ attr_accessor :limit
13
+ # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
14
+ attr_accessor :starting_after
15
+
16
+ def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil)
17
+ @ending_before = ending_before
18
+ @expand = expand
19
+ @limit = limit
20
+ @starting_after = starting_after
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,15 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Crypto
6
+ class CustomerRetrieveParams < ::Stripe::RequestParams
7
+ # Specifies which fields in the response should be expanded.
8
+ attr_accessor :expand
9
+
10
+ def initialize(expand: nil)
11
+ @expand = expand
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,56 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Crypto
6
+ class OnrampSessionCheckoutParams < ::Stripe::RequestParams
7
+ class MandateData < ::Stripe::RequestParams
8
+ class CustomerAcceptance < ::Stripe::RequestParams
9
+ class Offline < ::Stripe::RequestParams; end
10
+
11
+ class Online < ::Stripe::RequestParams
12
+ # The IP address from which the Mandate was accepted by the customer.
13
+ attr_accessor :ip_address
14
+ # The user agent of the browser from which the Mandate was accepted by the customer.
15
+ attr_accessor :user_agent
16
+
17
+ def initialize(ip_address: nil, user_agent: nil)
18
+ @ip_address = ip_address
19
+ @user_agent = user_agent
20
+ end
21
+ end
22
+ # The time at which the customer accepted the Mandate.
23
+ attr_accessor :accepted_at
24
+ # If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
25
+ attr_accessor :offline
26
+ # If this is a Mandate accepted online, this hash contains details about the online acceptance.
27
+ attr_accessor :online
28
+ # The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
29
+ attr_accessor :type
30
+
31
+ def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
32
+ @accepted_at = accepted_at
33
+ @offline = offline
34
+ @online = online
35
+ @type = type
36
+ end
37
+ end
38
+ # This hash contains details about the customer acceptance of the Mandate.
39
+ attr_accessor :customer_acceptance
40
+
41
+ def initialize(customer_acceptance: nil)
42
+ @customer_acceptance = customer_acceptance
43
+ end
44
+ end
45
+ # Specifies which fields in the response should be expanded.
46
+ attr_accessor :expand
47
+ # This hash contains details about the mandate to create
48
+ attr_accessor :mandate_data
49
+
50
+ def initialize(expand: nil, mandate_data: nil)
51
+ @expand = expand
52
+ @mandate_data = mandate_data
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,122 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Crypto
6
+ class OnrampSessionCreateParams < ::Stripe::RequestParams
7
+ class KycDetails < ::Stripe::RequestParams; end
8
+
9
+ class WalletAddresses < ::Stripe::RequestParams
10
+ class DestinationTags < ::Stripe::RequestParams
11
+ # Attribute for param field stellar
12
+ attr_accessor :stellar
13
+
14
+ def initialize(stellar: nil)
15
+ @stellar = stellar
16
+ end
17
+ end
18
+ # The end customer's crypto wallet destination tag (for each network) to use for this transaction. This only applies for tag-based assets such as XLM.
19
+ #
20
+ # * When left null, the user enters their wallet in the onramp UI.
21
+ attr_accessor :destination_tags
22
+
23
+ def initialize(destination_tags: nil)
24
+ @destination_tags = destination_tags
25
+ end
26
+ end
27
+ # The IP address of the customer the platform intends to onramp.
28
+ #
29
+ # If the user's IP is in a region we can't support, we return an `HTTP 400` with an appropriate error code.
30
+ #
31
+ # We support IPv4 and IPv6 addresses. Geographic supportability is checked again later in the onramp flow, which provides a way to hide the onramp option from ineligible users for a better user experience.
32
+ attr_accessor :customer_ip_address
33
+ # The default amount of crypto to exchange into.
34
+ #
35
+ # * When left null, a default value is computed if `source_amount`, `destination_currency`, and `destination_network` are set.
36
+ # * When set, both `destination_currency` and `destination_network` must also be set. All cryptocurrencies are supported to their full precisions (for example, 18 decimal places for `eth`). We validate and generate an error if the amount exceeds the supported precision based on the exchange currency. Setting `source_amount` is mutually exclusive with setting `destination_amount` (only one or the other is supported). Users can update the amount in the onramp UI.
37
+ attr_accessor :destination_amount
38
+ # The list of destination cryptocurrencies a user can choose from.
39
+ #
40
+ # * When left null, all supported cryptocurrencies are shown in the onramp UI subject to `destination_networks` if set.
41
+ # * When set, it must be a non-empty array where all values in the array are valid cryptocurrencies. You can use it to lock users to a specific cryptocurrency by passing a single value array. Users **cannot** override this parameter.
42
+ attr_accessor :destination_currencies
43
+ # The default destination cryptocurrency.
44
+ #
45
+ # * When left null, the first value of `destination_currencies` is selected.
46
+ # * When set, if `destination_currencies` is also set, the value of `destination_currency` must be present in that array. To lock a `destination_currency`, specify that value as the single value for `destination_currencies`. Users can select a different cryptocurrency in the onramp UI subject to `destination_currencies` if set.
47
+ attr_accessor :destination_currency
48
+ # The default destination crypto network.
49
+ #
50
+ # * When left null, the first value of `destination_networks` is selected.
51
+ # * When set, if `destination_networks` is also set, the value of `destination_network` must be present in that array. To lock a `destination_network`, specify that value as the single value for `destination_networks`. Users can select a different network in the onramp UI subject to `destination_networks` if set.
52
+ attr_accessor :destination_network
53
+ # The list of destination crypto networks user can choose from.
54
+ #
55
+ # * When left null, all supported crypto networks are shown in the onramp UI.
56
+ # * When set, it must be a non-empty array where values in the array are each a valid crypto network. It can be used to lock users to a specific network by passing a single value array. Users **cannot** override this parameter.
57
+ attr_accessor :destination_networks
58
+ # Specifies which fields in the response should be expanded.
59
+ attr_accessor :expand
60
+ # Pre-populate some of the required KYC information for the user if you've already collected it within your application.
61
+ #
62
+ # Related guide: [Using the API](https://docs.stripe.com/crypto/using-the-api#how-to-pre-populate-customer-information)
63
+ attr_accessor :kyc_details
64
+ # Whether or not to lock the suggested wallet address. If destination tags are provided, this will also lock the destination tags.
65
+ attr_accessor :lock_wallet_address
66
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
67
+ attr_accessor :metadata
68
+ # Speed at which the cryptocurrency is delivered to the wallet
69
+ # One of:
70
+ # `instant` (default): crypto is delivered when payment is confirmed
71
+ # `standard`: crypto is delivered when payment settles
72
+ attr_accessor :settlement_speed
73
+ # The default amount of fiat (in decimal) to exchange into crypto.
74
+ #
75
+ # * When left null, a default value is computed if `destination_amount` is set.
76
+ # * When set, setting `source_amount` is mutually exclusive with setting `destination_amount` (only one or the other is supported). We don't support fractional pennies. If fractional minor units of a currency are passed in, it generates an error. Users can update the value in the onramp UI.
77
+ attr_accessor :source_amount
78
+ # The default source fiat currency for the onramp session.
79
+ #
80
+ # * When left null, a default currency is selected based on user locale.
81
+ # * When set, it must be one of the fiat currencies supported by onramp. Users can still select a different currency in the onramp UI.
82
+ attr_accessor :source_currency
83
+ # The end customer's crypto wallet address (for each network) to use for this transaction.
84
+ #
85
+ # * When left null, the user enters their wallet in the onramp UI.
86
+ # * When set, the platform must set either `destination_networks` or `destination_network` and we perform address validation. Users can still select a different wallet in the onramp UI.
87
+ attr_accessor :wallet_addresses
88
+
89
+ def initialize(
90
+ customer_ip_address: nil,
91
+ destination_amount: nil,
92
+ destination_currencies: nil,
93
+ destination_currency: nil,
94
+ destination_network: nil,
95
+ destination_networks: nil,
96
+ expand: nil,
97
+ kyc_details: nil,
98
+ lock_wallet_address: nil,
99
+ metadata: nil,
100
+ settlement_speed: nil,
101
+ source_amount: nil,
102
+ source_currency: nil,
103
+ wallet_addresses: nil
104
+ )
105
+ @customer_ip_address = customer_ip_address
106
+ @destination_amount = destination_amount
107
+ @destination_currencies = destination_currencies
108
+ @destination_currency = destination_currency
109
+ @destination_network = destination_network
110
+ @destination_networks = destination_networks
111
+ @expand = expand
112
+ @kyc_details = kyc_details
113
+ @lock_wallet_address = lock_wallet_address
114
+ @metadata = metadata
115
+ @settlement_speed = settlement_speed
116
+ @source_amount = source_amount
117
+ @source_currency = source_currency
118
+ @wallet_addresses = wallet_addresses
119
+ end
120
+ end
121
+ end
122
+ end
@@ -0,0 +1,62 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Crypto
6
+ class OnrampSessionListParams < ::Stripe::RequestParams
7
+ class Created < ::Stripe::RequestParams
8
+ # Minimum value to filter by (exclusive)
9
+ attr_accessor :gt
10
+ # Minimum value to filter by (inclusive)
11
+ attr_accessor :gte
12
+ # Maximum value to filter by (exclusive)
13
+ attr_accessor :lt
14
+ # Maximum value to filter by (inclusive)
15
+ attr_accessor :lte
16
+
17
+ def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
18
+ @gt = gt
19
+ @gte = gte
20
+ @lt = lt
21
+ @lte = lte
22
+ end
23
+ end
24
+ # Only return onramp sessions that were created during the given date interval.
25
+ attr_accessor :created
26
+ # The destination cryptocurrency to filter by.
27
+ attr_accessor :destination_currency
28
+ # The destination blockchain network to filter by.
29
+ attr_accessor :destination_network
30
+ # An object ID cursor for use in pagination.
31
+ attr_accessor :ending_before
32
+ # Specifies which fields in the response should be expanded.
33
+ attr_accessor :expand
34
+ # A limit ranging from 1 to 100 (defaults to 10).
35
+ attr_accessor :limit
36
+ # An object ID cursor for use in pagination.
37
+ attr_accessor :starting_after
38
+ # The status of the Onramp Session. One of = `{initialized, rejected, requires_payment, fulfillment_processing, fulfillment_complete}`
39
+ attr_accessor :status
40
+
41
+ def initialize(
42
+ created: nil,
43
+ destination_currency: nil,
44
+ destination_network: nil,
45
+ ending_before: nil,
46
+ expand: nil,
47
+ limit: nil,
48
+ starting_after: nil,
49
+ status: nil
50
+ )
51
+ @created = created
52
+ @destination_currency = destination_currency
53
+ @destination_network = destination_network
54
+ @ending_before = ending_before
55
+ @expand = expand
56
+ @limit = limit
57
+ @starting_after = starting_after
58
+ @status = status
59
+ end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,15 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Crypto
6
+ class OnrampSessionQuoteParams < ::Stripe::RequestParams
7
+ # Specifies which fields in the response should be expanded.
8
+ attr_accessor :expand
9
+
10
+ def initialize(expand: nil)
11
+ @expand = expand
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Crypto
6
+ class OnrampSessionRetrieveParams < ::Stripe::RequestParams
7
+ # Specifies which fields in the response should be expanded.
8
+ attr_accessor :expand
9
+
10
+ def initialize(expand: nil)
11
+ @expand = expand
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,33 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Crypto
6
+ class OnrampTransactionLimitsRetrieveParams < ::Stripe::RequestParams
7
+ # The IP address of the customer requesting transaction limits. We support IPv4 and IPv6 addresses.
8
+ attr_accessor :customer_ip_address
9
+ # The destination blockchain network to use for limit calculations.
10
+ attr_accessor :destination_network
11
+ # The destination tag for the wallet address, if applicable for the network.
12
+ attr_accessor :destination_tag
13
+ # Specifies which fields in the response should be expanded.
14
+ attr_accessor :expand
15
+ # The wallet address to use for destination-specific limit calculations.
16
+ attr_accessor :wallet_address
17
+
18
+ def initialize(
19
+ customer_ip_address: nil,
20
+ destination_network: nil,
21
+ destination_tag: nil,
22
+ expand: nil,
23
+ wallet_address: nil
24
+ )
25
+ @customer_ip_address = customer_ip_address
26
+ @destination_network = destination_network
27
+ @destination_tag = destination_tag
28
+ @expand = expand
29
+ @wallet_address = wallet_address
30
+ end
31
+ end
32
+ end
33
+ end