stripe 20.2.0.pre.alpha.1 → 20.2.0.pre.alpha.3

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 (143) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/event_types.rb +28 -0
  3. data/lib/stripe/events/v2_core_account_closed_event.rb +2 -2
  4. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +2 -2
  5. data/lib/stripe/events/v2_extend_object_definition_created_event.rb +61 -0
  6. data/lib/stripe/events/v2_extend_object_definition_version_created_event.rb +65 -0
  7. data/lib/stripe/events/v2_money_management_received_debit_mandate_canceled_event.rb +2 -0
  8. data/lib/stripe/events/v2_money_management_received_debit_mandate_created_event.rb +2 -0
  9. data/lib/stripe/events/v2_money_management_received_debit_mandate_expired_event.rb +2 -0
  10. data/lib/stripe/events/v2_money_management_received_debit_mandate_pending_cancellation_event.rb +2 -0
  11. data/lib/stripe/events/v2_money_management_received_debit_mandate_updated_event.rb +2 -0
  12. data/lib/stripe/events/v2_money_management_spending_mandate_canceled_event.rb +44 -0
  13. data/lib/stripe/events/v2_money_management_spending_mandate_created_event.rb +46 -0
  14. data/lib/stripe/events/v2_money_management_spending_mandate_expired_event.rb +44 -0
  15. data/lib/stripe/events/v2_money_management_spending_mandate_pending_cancellation_event.rb +44 -0
  16. data/lib/stripe/events/v2_money_management_spending_mandate_updated_event.rb +44 -0
  17. data/lib/stripe/object_types.rb +5 -0
  18. data/lib/stripe/params/account_session_create_params.rb +200 -0
  19. data/lib/stripe/params/checkout/session_create_params.rb +46 -1
  20. data/lib/stripe/params/confirmation_token_create_params.rb +21 -0
  21. data/lib/stripe/params/customer_tax_exemption_create_params.rb +29 -1
  22. data/lib/stripe/params/customer_update_params.rb +55 -0
  23. data/lib/stripe/params/fx_quote_create_params.rb +2 -2
  24. data/lib/stripe/params/invoice_create_params.rb +8 -1
  25. data/lib/stripe/params/invoice_update_params.rb +8 -1
  26. data/lib/stripe/params/payment_attempt_record_report_authenticated_params.rb +58 -1
  27. data/lib/stripe/params/payment_attempt_record_report_authorized_params.rb +35 -1
  28. data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +35 -1
  29. data/lib/stripe/params/payment_intent_capture_params.rb +57 -1
  30. data/lib/stripe/params/payment_intent_confirm_params.rb +91 -1
  31. data/lib/stripe/params/payment_intent_create_params.rb +91 -1
  32. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +57 -1
  33. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +57 -1
  34. data/lib/stripe/params/payment_intent_update_params.rb +91 -1
  35. data/lib/stripe/params/payment_method_configuration_create_params.rb +42 -0
  36. data/lib/stripe/params/payment_method_configuration_update_params.rb +42 -0
  37. data/lib/stripe/params/payment_method_create_params.rb +21 -0
  38. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +35 -1
  39. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +35 -1
  40. data/lib/stripe/params/payment_record_report_payment_params.rb +35 -1
  41. data/lib/stripe/params/quote_create_params.rb +1 -1
  42. data/lib/stripe/params/quote_update_params.rb +1 -1
  43. data/lib/stripe/params/radar/payment_evaluation_create_params.rb +19 -1
  44. data/lib/stripe/params/refund_create_params.rb +4 -0
  45. data/lib/stripe/params/setup_intent_confirm_params.rb +50 -1
  46. data/lib/stripe/params/setup_intent_create_params.rb +50 -1
  47. data/lib/stripe/params/setup_intent_update_params.rb +34 -1
  48. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +19 -0
  49. data/lib/stripe/params/subscription_create_params.rb +4 -0
  50. data/lib/stripe/params/subscription_list_params.rb +5 -1
  51. data/lib/stripe/params/subscription_update_params.rb +4 -0
  52. data/lib/stripe/params/tax/certificate_create_params.rb +21 -0
  53. data/lib/stripe/params/tax/certificate_delete_params.rb +8 -0
  54. data/lib/stripe/params/tax/certificate_list_params.rb +33 -0
  55. data/lib/stripe/params/tax/certificate_retrieve_params.rb +15 -0
  56. data/lib/stripe/params/tax/form_create_params.rb +504 -0
  57. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +21 -0
  58. data/lib/stripe/params/v2/core/account_session_create_params.rb +13 -0
  59. data/lib/stripe/params/v2/extend/object_definition_list_params.rb +17 -0
  60. data/lib/stripe/params/v2/extend/object_definition_retrieve_params.rb +10 -0
  61. data/lib/stripe/params/v2/extend/object_definitions/version_list_params.rb +19 -0
  62. data/lib/stripe/params/v2/extend/object_definitions/version_retrieve_params.rb +12 -0
  63. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +22 -1
  64. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +46 -0
  65. data/lib/stripe/params/v2/money_management/payout_intent_create_params.rb +22 -1
  66. data/lib/stripe/params/v2/money_management/payout_intent_update_params.rb +22 -1
  67. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +5 -2
  68. data/lib/stripe/params/v2/money_management/spending_mandate_cancel_params.rb +10 -0
  69. data/lib/stripe/params/v2/money_management/spending_mandate_list_params.rb +26 -0
  70. data/lib/stripe/params/v2/money_management/spending_mandate_retrieve_params.rb +10 -0
  71. data/lib/stripe/params.rb +27 -0
  72. data/lib/stripe/resources/account_session.rb +81 -0
  73. data/lib/stripe/resources/apps/install.rb +1 -1
  74. data/lib/stripe/resources/balance_transaction.rb +1 -1
  75. data/lib/stripe/resources/charge.rb +373 -5
  76. data/lib/stripe/resources/checkout/session.rb +32 -0
  77. data/lib/stripe/resources/confirmation_token.rb +103 -3
  78. data/lib/stripe/resources/coupon.rb +6 -3
  79. data/lib/stripe/resources/customer_tax_exemption.rb +32 -1
  80. data/lib/stripe/resources/identity/verification_report.rb +34 -0
  81. data/lib/stripe/resources/invoice.rb +3 -0
  82. data/lib/stripe/resources/mandate.rb +16 -0
  83. data/lib/stripe/resources/payment_attempt_record.rb +151 -2
  84. data/lib/stripe/resources/payment_intent.rb +126 -2
  85. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +46 -1
  86. data/lib/stripe/resources/payment_method.rb +103 -3
  87. data/lib/stripe/resources/payment_method_configuration.rb +68 -0
  88. data/lib/stripe/resources/payment_record.rb +151 -2
  89. data/lib/stripe/resources/radar/payment_evaluation.rb +41 -2
  90. data/lib/stripe/resources/refund.rb +38 -0
  91. data/lib/stripe/resources/reporting/report_run.rb +2 -0
  92. data/lib/stripe/resources/reserve/hold.rb +2 -2
  93. data/lib/stripe/resources/reserve/plan.rb +1 -1
  94. data/lib/stripe/resources/reserve/release.rb +1 -1
  95. data/lib/stripe/resources/setup_attempt.rb +21 -2
  96. data/lib/stripe/resources/setup_intent.rb +38 -2
  97. data/lib/stripe/resources/shared_payment/granted_token.rb +32 -2
  98. data/lib/stripe/resources/shared_payment/issued_token.rb +20 -0
  99. data/lib/stripe/resources/subscription.rb +3 -1
  100. data/lib/stripe/resources/tax/certificate.rb +81 -0
  101. data/lib/stripe/resources/tax/form.rb +11 -0
  102. data/lib/stripe/resources/tax/form_correction.rb +43 -0
  103. data/lib/stripe/resources/terminal/reader.rb +18 -1
  104. data/lib/stripe/resources/treasury/inbound_transfer.rb +29 -1
  105. data/lib/stripe/resources/treasury/outbound_payment.rb +29 -1
  106. data/lib/stripe/resources/treasury/outbound_transfer.rb +29 -1
  107. data/lib/stripe/resources/v2/core/account_session.rb +27 -0
  108. data/lib/stripe/resources/v2/core/event.rb +1 -1
  109. data/lib/stripe/resources/v2/core/event_base.rb +36 -0
  110. data/lib/stripe/resources/v2/data/search_result_list.rb +1 -1
  111. data/lib/stripe/resources/v2/extend/object_definition.rb +40 -0
  112. data/lib/stripe/resources/v2/extend/object_definition_version.rb +168 -0
  113. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +74 -1
  114. data/lib/stripe/resources/v2/money_management/payout_intent.rb +22 -1
  115. data/lib/stripe/resources/v2/money_management/payout_method.rb +40 -0
  116. data/lib/stripe/resources/v2/money_management/received_debit.rb +3 -0
  117. data/lib/stripe/resources/v2/money_management/spending_mandate.rb +121 -0
  118. data/lib/stripe/resources/v2/tax/operations_resolve_address_result.rb +1 -1
  119. data/lib/stripe/resources.rb +46 -0
  120. data/lib/stripe/services/apps/install_service.rb +1 -1
  121. data/lib/stripe/services/checkout/session_service.rb +2 -0
  122. data/lib/stripe/services/reserve/hold_service.rb +2 -2
  123. data/lib/stripe/services/reserve/plan_service.rb +2 -2
  124. data/lib/stripe/services/reserve/release_service.rb +2 -2
  125. data/lib/stripe/services/tax/certificate_service.rb +52 -0
  126. data/lib/stripe/services/tax/form_service.rb +11 -0
  127. data/lib/stripe/services/tax_service.rb +2 -1
  128. data/lib/stripe/services/v2/core/vault/network_token_service.rb +1 -0
  129. data/lib/stripe/services/v2/extend/object_definition_service.rb +39 -0
  130. data/lib/stripe/services/v2/extend/object_definitions/version_service.rb +34 -0
  131. data/lib/stripe/services/v2/extend_service.rb +2 -1
  132. data/lib/stripe/services/v2/money_management/received_debit_mandate_service.rb +3 -0
  133. data/lib/stripe/services/v2/money_management/spending_mandate_service.rb +43 -0
  134. data/lib/stripe/services/v2/money_management_service.rb +2 -1
  135. data/lib/stripe/services.rb +11 -0
  136. data/lib/stripe/stripe_event_notification_handler.rb +28 -0
  137. data/lib/stripe/stripe_service.rb +13 -9
  138. data/lib/stripe/version.rb +1 -1
  139. data/lib/stripe/webhook.rb +68 -3
  140. data/lib/stripe/workload_identity_exchange.rb +2 -2
  141. data/rbi/stripe/resources/v2/core/event_base.rbi +11 -0
  142. data/rbi/stripe.rbi +5856 -213
  143. metadata +32 -2
@@ -81,11 +81,67 @@ module Stripe
81
81
  end
82
82
 
83
83
  class CardPresent < ::Stripe::RequestParams
84
+ class EvCharging < ::Stripe::RequestParams
85
+ # The carbon footprint avoided by the charging session, in grams of CO2.
86
+ attr_accessor :carbon_footprint_avoided_grams_co2
87
+ # The time the charging session ended, measured in seconds since the Unix epoch.
88
+ attr_accessor :charging_ended_at
89
+ # The power output capacity of the charging station, in kilowatts (kW).
90
+ attr_accessor :charging_power_output_capacity_kw
91
+ # The time the charging session started, measured in seconds since the Unix epoch.
92
+ attr_accessor :charging_started_at
93
+ # The type of connector used for the charging session.
94
+ attr_accessor :connector_type
95
+ # The estimated distance in kilometers or miles added to the vehicle during the charging session.
96
+ attr_accessor :estimated_range_added
97
+ # The estimated distance in kilometers or miles remaining in the vehicle after the charging session.
98
+ attr_accessor :estimated_range_left
99
+ # The maximum power dispensed during the charging session, in kilowatts (kW).
100
+ attr_accessor :maximum_power_dispensed_kw
101
+
102
+ def initialize(
103
+ carbon_footprint_avoided_grams_co2: nil,
104
+ charging_ended_at: nil,
105
+ charging_power_output_capacity_kw: nil,
106
+ charging_started_at: nil,
107
+ connector_type: nil,
108
+ estimated_range_added: nil,
109
+ estimated_range_left: nil,
110
+ maximum_power_dispensed_kw: nil
111
+ )
112
+ @carbon_footprint_avoided_grams_co2 = carbon_footprint_avoided_grams_co2
113
+ @charging_ended_at = charging_ended_at
114
+ @charging_power_output_capacity_kw = charging_power_output_capacity_kw
115
+ @charging_started_at = charging_started_at
116
+ @connector_type = connector_type
117
+ @estimated_range_added = estimated_range_added
118
+ @estimated_range_left = estimated_range_left
119
+ @maximum_power_dispensed_kw = maximum_power_dispensed_kw
120
+ end
121
+ end
122
+
123
+ class FleetData < ::Stripe::RequestParams
124
+ # The type of product being purchased at this line item.
125
+ attr_accessor :product_type
126
+ # The type of service received at the acceptor location.
127
+ attr_accessor :service_type
128
+
129
+ def initialize(product_type: nil, service_type: nil)
130
+ @product_type = product_type
131
+ @service_type = service_type
132
+ end
133
+ end
84
134
  # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on.
85
135
  attr_accessor :commodity_code
136
+ # EV charging data for this line item.
137
+ attr_accessor :ev_charging
138
+ # Fleet data for this line item.
139
+ attr_accessor :fleet_data
86
140
 
87
- def initialize(commodity_code: nil)
141
+ def initialize(commodity_code: nil, ev_charging: nil, fleet_data: nil)
88
142
  @commodity_code = commodity_code
143
+ @ev_charging = ev_charging
144
+ @fleet_data = fleet_data
89
145
  end
90
146
  end
91
147
 
@@ -2335,6 +2391,7 @@ module Stripe
2335
2391
  end
2336
2392
  end
2337
2393
 
2394
+ class AeonPay < ::Stripe::RequestParams; end
2338
2395
  class Affirm < ::Stripe::RequestParams; end
2339
2396
  class AfterpayClearpay < ::Stripe::RequestParams; end
2340
2397
  class Alipay < ::Stripe::RequestParams; end
@@ -2353,6 +2410,8 @@ module Stripe
2353
2410
  end
2354
2411
  end
2355
2412
 
2413
+ class AuPay < ::Stripe::RequestParams; end
2414
+
2356
2415
  class BacsDebit < ::Stripe::RequestParams
2357
2416
  # Account number of the bank account that the funds will be debited from.
2358
2417
  attr_accessor :account_number
@@ -2435,6 +2494,7 @@ module Stripe
2435
2494
  class Cashapp < ::Stripe::RequestParams; end
2436
2495
  class Crypto < ::Stripe::RequestParams; end
2437
2496
  class CustomerBalance < ::Stripe::RequestParams; end
2497
+ class Dbarai < ::Stripe::RequestParams; end
2438
2498
 
2439
2499
  class Eps < ::Stripe::RequestParams
2440
2500
  # The customer's bank.
@@ -2520,6 +2580,7 @@ module Stripe
2520
2580
  class KrCard < ::Stripe::RequestParams; end
2521
2581
  class Link < ::Stripe::RequestParams; end
2522
2582
  class MbWay < ::Stripe::RequestParams; end
2583
+ class Merpay < ::Stripe::RequestParams; end
2523
2584
  class Mobilepay < ::Stripe::RequestParams; end
2524
2585
  class Multibanco < ::Stripe::RequestParams; end
2525
2586
 
@@ -2748,6 +2809,8 @@ module Stripe
2748
2809
  class Zip < ::Stripe::RequestParams; end
2749
2810
  # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
2750
2811
  attr_accessor :acss_debit
2812
+ # If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method.
2813
+ attr_accessor :aeon_pay
2751
2814
  # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
2752
2815
  attr_accessor :affirm
2753
2816
  # If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
@@ -2762,6 +2825,8 @@ module Stripe
2762
2825
  attr_accessor :amazon_pay
2763
2826
  # If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
2764
2827
  attr_accessor :au_becs_debit
2828
+ # If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method.
2829
+ attr_accessor :au_pay
2765
2830
  # If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
2766
2831
  attr_accessor :bacs_debit
2767
2832
  # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
@@ -2784,6 +2849,8 @@ module Stripe
2784
2849
  attr_accessor :crypto
2785
2850
  # If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
2786
2851
  attr_accessor :customer_balance
2852
+ # If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method.
2853
+ attr_accessor :dbarai
2787
2854
  # If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
2788
2855
  attr_accessor :eps
2789
2856
  # If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
@@ -2816,6 +2883,8 @@ module Stripe
2816
2883
  attr_accessor :link
2817
2884
  # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
2818
2885
  attr_accessor :mb_way
2886
+ # If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method.
2887
+ attr_accessor :merpay
2819
2888
  # 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`.
2820
2889
  attr_accessor :metadata
2821
2890
  # If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
@@ -2901,6 +2970,7 @@ module Stripe
2901
2970
 
2902
2971
  def initialize(
2903
2972
  acss_debit: nil,
2973
+ aeon_pay: nil,
2904
2974
  affirm: nil,
2905
2975
  afterpay_clearpay: nil,
2906
2976
  alipay: nil,
@@ -2908,6 +2978,7 @@ module Stripe
2908
2978
  alma: nil,
2909
2979
  amazon_pay: nil,
2910
2980
  au_becs_debit: nil,
2981
+ au_pay: nil,
2911
2982
  bacs_debit: nil,
2912
2983
  bancontact: nil,
2913
2984
  billie: nil,
@@ -2919,6 +2990,7 @@ module Stripe
2919
2990
  cashapp: nil,
2920
2991
  crypto: nil,
2921
2992
  customer_balance: nil,
2993
+ dbarai: nil,
2922
2994
  eps: nil,
2923
2995
  fpx: nil,
2924
2996
  getflex: nil,
@@ -2935,6 +3007,7 @@ module Stripe
2935
3007
  kr_card: nil,
2936
3008
  link: nil,
2937
3009
  mb_way: nil,
3010
+ merpay: nil,
2938
3011
  metadata: nil,
2939
3012
  mobilepay: nil,
2940
3013
  multibanco: nil,
@@ -2978,6 +3051,7 @@ module Stripe
2978
3051
  zip: nil
2979
3052
  )
2980
3053
  @acss_debit = acss_debit
3054
+ @aeon_pay = aeon_pay
2981
3055
  @affirm = affirm
2982
3056
  @afterpay_clearpay = afterpay_clearpay
2983
3057
  @alipay = alipay
@@ -2985,6 +3059,7 @@ module Stripe
2985
3059
  @alma = alma
2986
3060
  @amazon_pay = amazon_pay
2987
3061
  @au_becs_debit = au_becs_debit
3062
+ @au_pay = au_pay
2988
3063
  @bacs_debit = bacs_debit
2989
3064
  @bancontact = bancontact
2990
3065
  @billie = billie
@@ -2996,6 +3071,7 @@ module Stripe
2996
3071
  @cashapp = cashapp
2997
3072
  @crypto = crypto
2998
3073
  @customer_balance = customer_balance
3074
+ @dbarai = dbarai
2999
3075
  @eps = eps
3000
3076
  @fpx = fpx
3001
3077
  @getflex = getflex
@@ -3012,6 +3088,7 @@ module Stripe
3012
3088
  @kr_card = kr_card
3013
3089
  @link = link
3014
3090
  @mb_way = mb_way
3091
+ @merpay = merpay
3015
3092
  @metadata = metadata
3016
3093
  @mobilepay = mobilepay
3017
3094
  @multibanco = multibanco
@@ -3240,6 +3317,15 @@ module Stripe
3240
3317
  end
3241
3318
 
3242
3319
  class BacsDebit < ::Stripe::RequestParams
3320
+ class FinancialConnections < ::Stripe::RequestParams
3321
+ # For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
3322
+ attr_accessor :return_url
3323
+
3324
+ def initialize(return_url: nil)
3325
+ @return_url = return_url
3326
+ end
3327
+ end
3328
+
3243
3329
  class MandateOptions < ::Stripe::RequestParams
3244
3330
  # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
3245
3331
  attr_accessor :reference_prefix
@@ -3248,6 +3334,8 @@ module Stripe
3248
3334
  @reference_prefix = reference_prefix
3249
3335
  end
3250
3336
  end
3337
+ # Additional fields for Financial Connections session creation.
3338
+ attr_accessor :financial_connections
3251
3339
  # Additional fields for Mandate creation
3252
3340
  attr_accessor :mandate_options
3253
3341
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -3266,11 +3354,13 @@ module Stripe
3266
3354
  attr_accessor :verification_method
3267
3355
 
3268
3356
  def initialize(
3357
+ financial_connections: nil,
3269
3358
  mandate_options: nil,
3270
3359
  setup_future_usage: nil,
3271
3360
  target_date: nil,
3272
3361
  verification_method: nil
3273
3362
  )
3363
+ @financial_connections = financial_connections
3274
3364
  @mandate_options = mandate_options
3275
3365
  @setup_future_usage = setup_future_usage
3276
3366
  @target_date = target_date
@@ -72,11 +72,67 @@ module Stripe
72
72
  end
73
73
 
74
74
  class CardPresent < ::Stripe::RequestParams
75
+ class EvCharging < ::Stripe::RequestParams
76
+ # The carbon footprint avoided by the charging session, in grams of CO2.
77
+ attr_accessor :carbon_footprint_avoided_grams_co2
78
+ # The time the charging session ended, measured in seconds since the Unix epoch.
79
+ attr_accessor :charging_ended_at
80
+ # The power output capacity of the charging station, in kilowatts (kW).
81
+ attr_accessor :charging_power_output_capacity_kw
82
+ # The time the charging session started, measured in seconds since the Unix epoch.
83
+ attr_accessor :charging_started_at
84
+ # The type of connector used for the charging session.
85
+ attr_accessor :connector_type
86
+ # The estimated distance in kilometers or miles added to the vehicle during the charging session.
87
+ attr_accessor :estimated_range_added
88
+ # The estimated distance in kilometers or miles remaining in the vehicle after the charging session.
89
+ attr_accessor :estimated_range_left
90
+ # The maximum power dispensed during the charging session, in kilowatts (kW).
91
+ attr_accessor :maximum_power_dispensed_kw
92
+
93
+ def initialize(
94
+ carbon_footprint_avoided_grams_co2: nil,
95
+ charging_ended_at: nil,
96
+ charging_power_output_capacity_kw: nil,
97
+ charging_started_at: nil,
98
+ connector_type: nil,
99
+ estimated_range_added: nil,
100
+ estimated_range_left: nil,
101
+ maximum_power_dispensed_kw: nil
102
+ )
103
+ @carbon_footprint_avoided_grams_co2 = carbon_footprint_avoided_grams_co2
104
+ @charging_ended_at = charging_ended_at
105
+ @charging_power_output_capacity_kw = charging_power_output_capacity_kw
106
+ @charging_started_at = charging_started_at
107
+ @connector_type = connector_type
108
+ @estimated_range_added = estimated_range_added
109
+ @estimated_range_left = estimated_range_left
110
+ @maximum_power_dispensed_kw = maximum_power_dispensed_kw
111
+ end
112
+ end
113
+
114
+ class FleetData < ::Stripe::RequestParams
115
+ # The type of product being purchased at this line item.
116
+ attr_accessor :product_type
117
+ # The type of service received at the acceptor location.
118
+ attr_accessor :service_type
119
+
120
+ def initialize(product_type: nil, service_type: nil)
121
+ @product_type = product_type
122
+ @service_type = service_type
123
+ end
124
+ end
75
125
  # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on.
76
126
  attr_accessor :commodity_code
127
+ # EV charging data for this line item.
128
+ attr_accessor :ev_charging
129
+ # Fleet data for this line item.
130
+ attr_accessor :fleet_data
77
131
 
78
- def initialize(commodity_code: nil)
132
+ def initialize(commodity_code: nil, ev_charging: nil, fleet_data: nil)
79
133
  @commodity_code = commodity_code
134
+ @ev_charging = ev_charging
135
+ @fleet_data = fleet_data
80
136
  end
81
137
  end
82
138
 
@@ -72,11 +72,67 @@ module Stripe
72
72
  end
73
73
 
74
74
  class CardPresent < ::Stripe::RequestParams
75
+ class EvCharging < ::Stripe::RequestParams
76
+ # The carbon footprint avoided by the charging session, in grams of CO2.
77
+ attr_accessor :carbon_footprint_avoided_grams_co2
78
+ # The time the charging session ended, measured in seconds since the Unix epoch.
79
+ attr_accessor :charging_ended_at
80
+ # The power output capacity of the charging station, in kilowatts (kW).
81
+ attr_accessor :charging_power_output_capacity_kw
82
+ # The time the charging session started, measured in seconds since the Unix epoch.
83
+ attr_accessor :charging_started_at
84
+ # The type of connector used for the charging session.
85
+ attr_accessor :connector_type
86
+ # The estimated distance in kilometers or miles added to the vehicle during the charging session.
87
+ attr_accessor :estimated_range_added
88
+ # The estimated distance in kilometers or miles remaining in the vehicle after the charging session.
89
+ attr_accessor :estimated_range_left
90
+ # The maximum power dispensed during the charging session, in kilowatts (kW).
91
+ attr_accessor :maximum_power_dispensed_kw
92
+
93
+ def initialize(
94
+ carbon_footprint_avoided_grams_co2: nil,
95
+ charging_ended_at: nil,
96
+ charging_power_output_capacity_kw: nil,
97
+ charging_started_at: nil,
98
+ connector_type: nil,
99
+ estimated_range_added: nil,
100
+ estimated_range_left: nil,
101
+ maximum_power_dispensed_kw: nil
102
+ )
103
+ @carbon_footprint_avoided_grams_co2 = carbon_footprint_avoided_grams_co2
104
+ @charging_ended_at = charging_ended_at
105
+ @charging_power_output_capacity_kw = charging_power_output_capacity_kw
106
+ @charging_started_at = charging_started_at
107
+ @connector_type = connector_type
108
+ @estimated_range_added = estimated_range_added
109
+ @estimated_range_left = estimated_range_left
110
+ @maximum_power_dispensed_kw = maximum_power_dispensed_kw
111
+ end
112
+ end
113
+
114
+ class FleetData < ::Stripe::RequestParams
115
+ # The type of product being purchased at this line item.
116
+ attr_accessor :product_type
117
+ # The type of service received at the acceptor location.
118
+ attr_accessor :service_type
119
+
120
+ def initialize(product_type: nil, service_type: nil)
121
+ @product_type = product_type
122
+ @service_type = service_type
123
+ end
124
+ end
75
125
  # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on.
76
126
  attr_accessor :commodity_code
127
+ # EV charging data for this line item.
128
+ attr_accessor :ev_charging
129
+ # Fleet data for this line item.
130
+ attr_accessor :fleet_data
77
131
 
78
- def initialize(commodity_code: nil)
132
+ def initialize(commodity_code: nil, ev_charging: nil, fleet_data: nil)
79
133
  @commodity_code = commodity_code
134
+ @ev_charging = ev_charging
135
+ @fleet_data = fleet_data
80
136
  end
81
137
  end
82
138
 
@@ -81,11 +81,67 @@ module Stripe
81
81
  end
82
82
 
83
83
  class CardPresent < ::Stripe::RequestParams
84
+ class EvCharging < ::Stripe::RequestParams
85
+ # The carbon footprint avoided by the charging session, in grams of CO2.
86
+ attr_accessor :carbon_footprint_avoided_grams_co2
87
+ # The time the charging session ended, measured in seconds since the Unix epoch.
88
+ attr_accessor :charging_ended_at
89
+ # The power output capacity of the charging station, in kilowatts (kW).
90
+ attr_accessor :charging_power_output_capacity_kw
91
+ # The time the charging session started, measured in seconds since the Unix epoch.
92
+ attr_accessor :charging_started_at
93
+ # The type of connector used for the charging session.
94
+ attr_accessor :connector_type
95
+ # The estimated distance in kilometers or miles added to the vehicle during the charging session.
96
+ attr_accessor :estimated_range_added
97
+ # The estimated distance in kilometers or miles remaining in the vehicle after the charging session.
98
+ attr_accessor :estimated_range_left
99
+ # The maximum power dispensed during the charging session, in kilowatts (kW).
100
+ attr_accessor :maximum_power_dispensed_kw
101
+
102
+ def initialize(
103
+ carbon_footprint_avoided_grams_co2: nil,
104
+ charging_ended_at: nil,
105
+ charging_power_output_capacity_kw: nil,
106
+ charging_started_at: nil,
107
+ connector_type: nil,
108
+ estimated_range_added: nil,
109
+ estimated_range_left: nil,
110
+ maximum_power_dispensed_kw: nil
111
+ )
112
+ @carbon_footprint_avoided_grams_co2 = carbon_footprint_avoided_grams_co2
113
+ @charging_ended_at = charging_ended_at
114
+ @charging_power_output_capacity_kw = charging_power_output_capacity_kw
115
+ @charging_started_at = charging_started_at
116
+ @connector_type = connector_type
117
+ @estimated_range_added = estimated_range_added
118
+ @estimated_range_left = estimated_range_left
119
+ @maximum_power_dispensed_kw = maximum_power_dispensed_kw
120
+ end
121
+ end
122
+
123
+ class FleetData < ::Stripe::RequestParams
124
+ # The type of product being purchased at this line item.
125
+ attr_accessor :product_type
126
+ # The type of service received at the acceptor location.
127
+ attr_accessor :service_type
128
+
129
+ def initialize(product_type: nil, service_type: nil)
130
+ @product_type = product_type
131
+ @service_type = service_type
132
+ end
133
+ end
84
134
  # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on.
85
135
  attr_accessor :commodity_code
136
+ # EV charging data for this line item.
137
+ attr_accessor :ev_charging
138
+ # Fleet data for this line item.
139
+ attr_accessor :fleet_data
86
140
 
87
- def initialize(commodity_code: nil)
141
+ def initialize(commodity_code: nil, ev_charging: nil, fleet_data: nil)
88
142
  @commodity_code = commodity_code
143
+ @ev_charging = ev_charging
144
+ @fleet_data = fleet_data
89
145
  end
90
146
  end
91
147
 
@@ -2313,6 +2369,7 @@ module Stripe
2313
2369
  end
2314
2370
  end
2315
2371
 
2372
+ class AeonPay < ::Stripe::RequestParams; end
2316
2373
  class Affirm < ::Stripe::RequestParams; end
2317
2374
  class AfterpayClearpay < ::Stripe::RequestParams; end
2318
2375
  class Alipay < ::Stripe::RequestParams; end
@@ -2331,6 +2388,8 @@ module Stripe
2331
2388
  end
2332
2389
  end
2333
2390
 
2391
+ class AuPay < ::Stripe::RequestParams; end
2392
+
2334
2393
  class BacsDebit < ::Stripe::RequestParams
2335
2394
  # Account number of the bank account that the funds will be debited from.
2336
2395
  attr_accessor :account_number
@@ -2413,6 +2472,7 @@ module Stripe
2413
2472
  class Cashapp < ::Stripe::RequestParams; end
2414
2473
  class Crypto < ::Stripe::RequestParams; end
2415
2474
  class CustomerBalance < ::Stripe::RequestParams; end
2475
+ class Dbarai < ::Stripe::RequestParams; end
2416
2476
 
2417
2477
  class Eps < ::Stripe::RequestParams
2418
2478
  # The customer's bank.
@@ -2498,6 +2558,7 @@ module Stripe
2498
2558
  class KrCard < ::Stripe::RequestParams; end
2499
2559
  class Link < ::Stripe::RequestParams; end
2500
2560
  class MbWay < ::Stripe::RequestParams; end
2561
+ class Merpay < ::Stripe::RequestParams; end
2501
2562
  class Mobilepay < ::Stripe::RequestParams; end
2502
2563
  class Multibanco < ::Stripe::RequestParams; end
2503
2564
 
@@ -2726,6 +2787,8 @@ module Stripe
2726
2787
  class Zip < ::Stripe::RequestParams; end
2727
2788
  # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
2728
2789
  attr_accessor :acss_debit
2790
+ # If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method.
2791
+ attr_accessor :aeon_pay
2729
2792
  # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
2730
2793
  attr_accessor :affirm
2731
2794
  # If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
@@ -2740,6 +2803,8 @@ module Stripe
2740
2803
  attr_accessor :amazon_pay
2741
2804
  # If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
2742
2805
  attr_accessor :au_becs_debit
2806
+ # If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method.
2807
+ attr_accessor :au_pay
2743
2808
  # If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
2744
2809
  attr_accessor :bacs_debit
2745
2810
  # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
@@ -2762,6 +2827,8 @@ module Stripe
2762
2827
  attr_accessor :crypto
2763
2828
  # If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
2764
2829
  attr_accessor :customer_balance
2830
+ # If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method.
2831
+ attr_accessor :dbarai
2765
2832
  # If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
2766
2833
  attr_accessor :eps
2767
2834
  # If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
@@ -2794,6 +2861,8 @@ module Stripe
2794
2861
  attr_accessor :link
2795
2862
  # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
2796
2863
  attr_accessor :mb_way
2864
+ # If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method.
2865
+ attr_accessor :merpay
2797
2866
  # 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`.
2798
2867
  attr_accessor :metadata
2799
2868
  # If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
@@ -2879,6 +2948,7 @@ module Stripe
2879
2948
 
2880
2949
  def initialize(
2881
2950
  acss_debit: nil,
2951
+ aeon_pay: nil,
2882
2952
  affirm: nil,
2883
2953
  afterpay_clearpay: nil,
2884
2954
  alipay: nil,
@@ -2886,6 +2956,7 @@ module Stripe
2886
2956
  alma: nil,
2887
2957
  amazon_pay: nil,
2888
2958
  au_becs_debit: nil,
2959
+ au_pay: nil,
2889
2960
  bacs_debit: nil,
2890
2961
  bancontact: nil,
2891
2962
  billie: nil,
@@ -2897,6 +2968,7 @@ module Stripe
2897
2968
  cashapp: nil,
2898
2969
  crypto: nil,
2899
2970
  customer_balance: nil,
2971
+ dbarai: nil,
2900
2972
  eps: nil,
2901
2973
  fpx: nil,
2902
2974
  getflex: nil,
@@ -2913,6 +2985,7 @@ module Stripe
2913
2985
  kr_card: nil,
2914
2986
  link: nil,
2915
2987
  mb_way: nil,
2988
+ merpay: nil,
2916
2989
  metadata: nil,
2917
2990
  mobilepay: nil,
2918
2991
  multibanco: nil,
@@ -2956,6 +3029,7 @@ module Stripe
2956
3029
  zip: nil
2957
3030
  )
2958
3031
  @acss_debit = acss_debit
3032
+ @aeon_pay = aeon_pay
2959
3033
  @affirm = affirm
2960
3034
  @afterpay_clearpay = afterpay_clearpay
2961
3035
  @alipay = alipay
@@ -2963,6 +3037,7 @@ module Stripe
2963
3037
  @alma = alma
2964
3038
  @amazon_pay = amazon_pay
2965
3039
  @au_becs_debit = au_becs_debit
3040
+ @au_pay = au_pay
2966
3041
  @bacs_debit = bacs_debit
2967
3042
  @bancontact = bancontact
2968
3043
  @billie = billie
@@ -2974,6 +3049,7 @@ module Stripe
2974
3049
  @cashapp = cashapp
2975
3050
  @crypto = crypto
2976
3051
  @customer_balance = customer_balance
3052
+ @dbarai = dbarai
2977
3053
  @eps = eps
2978
3054
  @fpx = fpx
2979
3055
  @getflex = getflex
@@ -2990,6 +3066,7 @@ module Stripe
2990
3066
  @kr_card = kr_card
2991
3067
  @link = link
2992
3068
  @mb_way = mb_way
3069
+ @merpay = merpay
2993
3070
  @metadata = metadata
2994
3071
  @mobilepay = mobilepay
2995
3072
  @multibanco = multibanco
@@ -3218,6 +3295,15 @@ module Stripe
3218
3295
  end
3219
3296
 
3220
3297
  class BacsDebit < ::Stripe::RequestParams
3298
+ class FinancialConnections < ::Stripe::RequestParams
3299
+ # For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
3300
+ attr_accessor :return_url
3301
+
3302
+ def initialize(return_url: nil)
3303
+ @return_url = return_url
3304
+ end
3305
+ end
3306
+
3221
3307
  class MandateOptions < ::Stripe::RequestParams
3222
3308
  # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
3223
3309
  attr_accessor :reference_prefix
@@ -3226,6 +3312,8 @@ module Stripe
3226
3312
  @reference_prefix = reference_prefix
3227
3313
  end
3228
3314
  end
3315
+ # Additional fields for Financial Connections session creation.
3316
+ attr_accessor :financial_connections
3229
3317
  # Additional fields for Mandate creation
3230
3318
  attr_accessor :mandate_options
3231
3319
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -3244,11 +3332,13 @@ module Stripe
3244
3332
  attr_accessor :verification_method
3245
3333
 
3246
3334
  def initialize(
3335
+ financial_connections: nil,
3247
3336
  mandate_options: nil,
3248
3337
  setup_future_usage: nil,
3249
3338
  target_date: nil,
3250
3339
  verification_method: nil
3251
3340
  )
3341
+ @financial_connections = financial_connections
3252
3342
  @mandate_options = mandate_options
3253
3343
  @setup_future_usage = setup_future_usage
3254
3344
  @target_date = target_date