stripe 13.2.0 → 13.3.0.pre.beta.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (225) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1396 -645
  3. data/OPENAPI_VERSION +1 -1
  4. data/VERSION +1 -1
  5. data/lib/stripe/object_types.rb +32 -0
  6. data/lib/stripe/request_signing_authenticator.rb +79 -0
  7. data/lib/stripe/resources/account.rb +230 -0
  8. data/lib/stripe/resources/account_link.rb +9 -0
  9. data/lib/stripe/resources/account_notice.rb +60 -0
  10. data/lib/stripe/resources/account_session.rb +103 -0
  11. data/lib/stripe/resources/apple_pay_domain.rb +13 -0
  12. data/lib/stripe/resources/application.rb +20 -0
  13. data/lib/stripe/resources/application_fee.rb +34 -0
  14. data/lib/stripe/resources/application_fee_refund.rb +17 -0
  15. data/lib/stripe/resources/apps/secret.rb +22 -0
  16. data/lib/stripe/resources/balance.rb +59 -0
  17. data/lib/stripe/resources/balance_transaction.rb +34 -0
  18. data/lib/stripe/resources/bank_account.rb +60 -2
  19. data/lib/stripe/resources/billing/alert.rb +21 -0
  20. data/lib/stripe/resources/billing/alert_triggered.rb +26 -0
  21. data/lib/stripe/resources/billing/credit_balance_summary.rb +25 -0
  22. data/lib/stripe/resources/billing/credit_balance_transaction.rb +45 -1
  23. data/lib/stripe/resources/billing/credit_grant.rb +46 -2
  24. data/lib/stripe/resources/billing/meter.rb +49 -7
  25. data/lib/stripe/resources/billing/meter_error_report.rb +44 -0
  26. data/lib/stripe/resources/billing/meter_event.rb +17 -3
  27. data/lib/stripe/resources/billing/meter_event_adjustment.rb +17 -1
  28. data/lib/stripe/resources/billing/meter_event_summary.rb +15 -0
  29. data/lib/stripe/resources/billing_portal/configuration.rb +70 -0
  30. data/lib/stripe/resources/billing_portal/session.rb +61 -0
  31. data/lib/stripe/resources/capability.rb +38 -0
  32. data/lib/stripe/resources/capital/financing_offer.rb +94 -0
  33. data/lib/stripe/resources/capital/financing_summary.rb +32 -0
  34. data/lib/stripe/resources/capital/financing_transaction.rb +56 -0
  35. data/lib/stripe/resources/card.rb +72 -0
  36. data/lib/stripe/resources/cash_balance.rb +14 -0
  37. data/lib/stripe/resources/charge.rb +469 -0
  38. data/lib/stripe/resources/checkout/session.rb +496 -0
  39. data/lib/stripe/resources/climate/order.rb +55 -0
  40. data/lib/stripe/resources/climate/product.rb +24 -0
  41. data/lib/stripe/resources/climate/supplier.rb +18 -0
  42. data/lib/stripe/resources/confirmation_token.rb +297 -0
  43. data/lib/stripe/resources/connect_collection_transfer.rb +24 -0
  44. data/lib/stripe/resources/country_spec.rb +27 -0
  45. data/lib/stripe/resources/coupon.rb +44 -0
  46. data/lib/stripe/resources/credit_note.rb +91 -0
  47. data/lib/stripe/resources/credit_note_line_item.rb +46 -0
  48. data/lib/stripe/resources/customer.rb +93 -0
  49. data/lib/stripe/resources/customer_balance_transaction.rb +27 -0
  50. data/lib/stripe/resources/customer_cash_balance_transaction.rb +72 -0
  51. data/lib/stripe/resources/customer_session.rb +34 -0
  52. data/lib/stripe/resources/discount.rb +29 -0
  53. data/lib/stripe/resources/dispute.rb +88 -0
  54. data/lib/stripe/resources/entitlements/active_entitlement.rb +11 -0
  55. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +23 -0
  56. data/lib/stripe/resources/entitlements/feature.rb +15 -0
  57. data/lib/stripe/resources/ephemeral_key.rb +13 -0
  58. data/lib/stripe/resources/event.rb +44 -0
  59. data/lib/stripe/resources/exchange_rate.rb +7 -0
  60. data/lib/stripe/resources/file.rb +23 -0
  61. data/lib/stripe/resources/file_link.rb +19 -0
  62. data/lib/stripe/resources/financial_connections/account.rb +87 -0
  63. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +27 -0
  64. data/lib/stripe/resources/financial_connections/account_owner.rb +17 -0
  65. data/lib/stripe/resources/financial_connections/account_ownership.rb +9 -0
  66. data/lib/stripe/resources/financial_connections/institution.rb +61 -0
  67. data/lib/stripe/resources/financial_connections/session.rb +49 -0
  68. data/lib/stripe/resources/financial_connections/transaction.rb +28 -0
  69. data/lib/stripe/resources/forwarding/request.rb +40 -0
  70. data/lib/stripe/resources/funding_instructions.rb +82 -0
  71. data/lib/stripe/resources/gift_cards/card.rb +96 -0
  72. data/lib/stripe/resources/gift_cards/transaction.rb +132 -0
  73. data/lib/stripe/resources/identity/verification_report.rb +92 -0
  74. data/lib/stripe/resources/identity/verification_session.rb +76 -0
  75. data/lib/stripe/resources/invoice.rb +418 -0
  76. data/lib/stripe/resources/invoice_item.rb +54 -0
  77. data/lib/stripe/resources/invoice_line_item.rb +83 -0
  78. data/lib/stripe/resources/invoice_payment.rb +46 -0
  79. data/lib/stripe/resources/invoice_rendering_template.rb +17 -0
  80. data/lib/stripe/resources/issuing/authorization.rb +129 -0
  81. data/lib/stripe/resources/issuing/card.rb +86 -0
  82. data/lib/stripe/resources/issuing/cardholder.rb +76 -0
  83. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +145 -0
  84. data/lib/stripe/resources/issuing/dispute.rb +65 -0
  85. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +49 -0
  86. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +43 -0
  87. data/lib/stripe/resources/issuing/personalization_design.rb +38 -0
  88. data/lib/stripe/resources/issuing/physical_bundle.rb +18 -0
  89. data/lib/stripe/resources/issuing/settlement.rb +49 -0
  90. data/lib/stripe/resources/issuing/token.rb +46 -0
  91. data/lib/stripe/resources/issuing/transaction.rb +106 -0
  92. data/lib/stripe/resources/line_item.rb +50 -0
  93. data/lib/stripe/resources/login_link.rb +7 -0
  94. data/lib/stripe/resources/mandate.rb +78 -0
  95. data/lib/stripe/resources/margin.rb +56 -0
  96. data/lib/stripe/resources/order.rb +322 -0
  97. data/lib/stripe/resources/payment_attempt_record.rb +100 -0
  98. data/lib/stripe/resources/payment_intent.rb +712 -0
  99. data/lib/stripe/resources/payment_link.rb +198 -0
  100. data/lib/stripe/resources/payment_method.rb +368 -0
  101. data/lib/stripe/resources/payment_method_configuration.rb +430 -0
  102. data/lib/stripe/resources/payment_method_domain.rb +57 -0
  103. data/lib/stripe/resources/payment_record.rb +194 -0
  104. data/lib/stripe/resources/payout.rb +56 -0
  105. data/lib/stripe/resources/person.rb +128 -0
  106. data/lib/stripe/resources/plan.rb +52 -0
  107. data/lib/stripe/resources/price.rb +77 -0
  108. data/lib/stripe/resources/product.rb +60 -0
  109. data/lib/stripe/resources/product_feature.rb +12 -0
  110. data/lib/stripe/resources/promotion_code.rb +35 -0
  111. data/lib/stripe/resources/quote.rb +356 -0
  112. data/lib/stripe/resources/quote_line.rb +136 -0
  113. data/lib/stripe/resources/quote_preview_invoice.rb +374 -0
  114. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +170 -0
  115. data/lib/stripe/resources/radar/early_fraud_warning.rb +17 -0
  116. data/lib/stripe/resources/radar/value_list.rb +23 -0
  117. data/lib/stripe/resources/radar/value_list_item.rb +17 -0
  118. data/lib/stripe/resources/refund.rb +130 -0
  119. data/lib/stripe/resources/reporting/report_run.rb +29 -0
  120. data/lib/stripe/resources/reporting/report_type.rb +19 -0
  121. data/lib/stripe/resources/reserve_transaction.rb +22 -0
  122. data/lib/stripe/resources/reversal.rb +21 -0
  123. data/lib/stripe/resources/review.rb +36 -0
  124. data/lib/stripe/resources/setup_attempt.rb +101 -0
  125. data/lib/stripe/resources/setup_intent.rb +158 -0
  126. data/lib/stripe/resources/shipping_rate.rb +42 -0
  127. data/lib/stripe/resources/sigma/scheduled_query_run.rb +26 -0
  128. data/lib/stripe/resources/source.rb +195 -0
  129. data/lib/stripe/resources/source_mandate_notification.rb +59 -0
  130. data/lib/stripe/resources/source_transaction.rb +48 -0
  131. data/lib/stripe/resources/subscription.rb +214 -0
  132. data/lib/stripe/resources/subscription_item.rb +46 -0
  133. data/lib/stripe/resources/subscription_schedule.rb +173 -0
  134. data/lib/stripe/resources/tax/association.rb +60 -0
  135. data/lib/stripe/resources/tax/calculation.rb +72 -0
  136. data/lib/stripe/resources/tax/calculation_line_item.rb +33 -0
  137. data/lib/stripe/resources/tax/form.rb +124 -0
  138. data/lib/stripe/resources/tax/registration.rb +379 -0
  139. data/lib/stripe/resources/tax/settings.rb +33 -0
  140. data/lib/stripe/resources/tax/transaction.rb +68 -0
  141. data/lib/stripe/resources/tax/transaction_line_item.rb +30 -0
  142. data/lib/stripe/resources/tax_code.rb +9 -0
  143. data/lib/stripe/resources/tax_deducted_at_source.rb +22 -0
  144. data/lib/stripe/resources/tax_id.rb +30 -0
  145. data/lib/stripe/resources/tax_rate.rb +42 -0
  146. data/lib/stripe/resources/terminal/configuration.rb +107 -0
  147. data/lib/stripe/resources/terminal/connection_token.rb +7 -0
  148. data/lib/stripe/resources/terminal/location.rb +20 -0
  149. data/lib/stripe/resources/terminal/reader.rb +178 -0
  150. data/lib/stripe/resources/terminal/reader_collected_data.rb +30 -0
  151. data/lib/stripe/resources/test_helpers/test_clock.rb +27 -0
  152. data/lib/stripe/resources/token.rb +29 -0
  153. data/lib/stripe/resources/topup.rb +33 -0
  154. data/lib/stripe/resources/transfer.rb +35 -0
  155. data/lib/stripe/resources/treasury/credit_reversal.rb +32 -0
  156. data/lib/stripe/resources/treasury/debit_reversal.rb +38 -0
  157. data/lib/stripe/resources/treasury/financial_account.rb +57 -0
  158. data/lib/stripe/resources/treasury/financial_account_features.rb +91 -0
  159. data/lib/stripe/resources/treasury/inbound_transfer.rb +66 -0
  160. data/lib/stripe/resources/treasury/outbound_payment.rb +85 -0
  161. data/lib/stripe/resources/treasury/outbound_transfer.rb +82 -0
  162. data/lib/stripe/resources/treasury/received_credit.rb +70 -0
  163. data/lib/stripe/resources/treasury/received_debit.rb +67 -0
  164. data/lib/stripe/resources/treasury/transaction.rb +42 -0
  165. data/lib/stripe/resources/treasury/transaction_entry.rb +34 -0
  166. data/lib/stripe/resources/usage_record.rb +13 -0
  167. data/lib/stripe/resources/usage_record_summary.rb +18 -0
  168. data/lib/stripe/resources/v2/amount.rb +9 -0
  169. data/lib/stripe/resources/v2/billing/meter_event.rb +18 -0
  170. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +20 -0
  171. data/lib/stripe/resources/v2/billing/meter_event_session.rb +14 -0
  172. data/lib/stripe/resources/v2/event.rb +21 -0
  173. data/lib/stripe/resources/v2/event_destination.rb +49 -0
  174. data/lib/stripe/resources/webhook_endpoint.rb +27 -0
  175. data/lib/stripe/resources.rb +31 -0
  176. data/lib/stripe/services/account_notice_service.rb +39 -0
  177. data/lib/stripe/services/billing/credit_balance_summary_service.rb +1 -1
  178. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +2 -2
  179. data/lib/stripe/services/billing/credit_grant_service.rb +3 -3
  180. data/lib/stripe/services/billing/meter_event_adjustment_service.rb +1 -1
  181. data/lib/stripe/services/billing/meter_event_service.rb +1 -1
  182. data/lib/stripe/services/billing/meter_service.rb +5 -5
  183. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  184. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  185. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  186. data/lib/stripe/services/capital_service.rb +15 -0
  187. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  188. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  189. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  190. data/lib/stripe/services/financial_connections_service.rb +2 -1
  191. data/lib/stripe/services/gift_cards/card_service.rb +63 -0
  192. data/lib/stripe/services/gift_cards/transaction_service.rb +74 -0
  193. data/lib/stripe/services/gift_cards_service.rb +14 -0
  194. data/lib/stripe/services/invoice_payment_service.rb +28 -0
  195. data/lib/stripe/services/invoice_service.rb +44 -1
  196. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  197. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  198. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  199. data/lib/stripe/services/issuing_service.rb +5 -1
  200. data/lib/stripe/services/margin_service.rb +50 -0
  201. data/lib/stripe/services/order_line_item_service.rb +17 -0
  202. data/lib/stripe/services/order_service.rb +78 -0
  203. data/lib/stripe/services/payment_attempt_record_service.rb +28 -0
  204. data/lib/stripe/services/payment_intent_service.rb +37 -0
  205. data/lib/stripe/services/payment_record_service.rb +78 -0
  206. data/lib/stripe/services/quote_line_service.rb +17 -0
  207. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  208. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  209. data/lib/stripe/services/quote_service.rb +49 -1
  210. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  211. data/lib/stripe/services/tax/association_service.rb +19 -0
  212. data/lib/stripe/services/tax/form_service.rb +37 -0
  213. data/lib/stripe/services/tax_service.rb +3 -1
  214. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  215. data/lib/stripe/services/terminal/reader_service.rb +33 -0
  216. data/lib/stripe/services/terminal_service.rb +2 -1
  217. data/lib/stripe/services/v1_services.rb +8 -1
  218. data/lib/stripe/services.rb +25 -0
  219. data/lib/stripe/stripe_configuration.rb +3 -1
  220. data/lib/stripe/stripe_object.rb +5 -0
  221. data/lib/stripe/util.rb +7 -1
  222. data/lib/stripe/version.rb +1 -1
  223. data/lib/stripe.rb +45 -0
  224. data/stripe.gemspec +2 -1
  225. metadata +62 -4
@@ -17,6 +17,204 @@ module Stripe
17
17
  "payment_link"
18
18
  end
19
19
 
20
+ class AfterCompletion < Stripe::StripeObject
21
+ class HostedConfirmation < Stripe::StripeObject
22
+ attr_reader :custom_message
23
+ end
24
+
25
+ class Redirect < Stripe::StripeObject
26
+ attr_reader :url
27
+ end
28
+ attr_reader :hosted_confirmation, :redirect, :type
29
+ end
30
+
31
+ class AutomaticTax < Stripe::StripeObject
32
+ class Liability < Stripe::StripeObject
33
+ attr_reader :account, :type
34
+ end
35
+ attr_reader :enabled, :liability
36
+ end
37
+
38
+ class ConsentCollection < Stripe::StripeObject
39
+ class PaymentMethodReuseAgreement < Stripe::StripeObject
40
+ attr_reader :position
41
+ end
42
+ attr_reader :payment_method_reuse_agreement, :promotions, :terms_of_service
43
+ end
44
+
45
+ class CustomField < Stripe::StripeObject
46
+ class Dropdown < Stripe::StripeObject
47
+ class Option < Stripe::StripeObject
48
+ attr_reader :label, :value
49
+ end
50
+ attr_reader :options
51
+ end
52
+
53
+ class Label < Stripe::StripeObject
54
+ attr_reader :custom, :type
55
+ end
56
+
57
+ class Numeric < Stripe::StripeObject
58
+ attr_reader :maximum_length, :minimum_length
59
+ end
60
+
61
+ class Text < Stripe::StripeObject
62
+ attr_reader :maximum_length, :minimum_length
63
+ end
64
+ attr_reader :dropdown, :key, :label, :numeric, :optional, :text, :type
65
+ end
66
+
67
+ class CustomText < Stripe::StripeObject
68
+ class AfterSubmit < Stripe::StripeObject
69
+ attr_reader :message
70
+ end
71
+
72
+ class ShippingAddress < Stripe::StripeObject
73
+ attr_reader :message
74
+ end
75
+
76
+ class Submit < Stripe::StripeObject
77
+ attr_reader :message
78
+ end
79
+
80
+ class TermsOfServiceAcceptance < Stripe::StripeObject
81
+ attr_reader :message
82
+ end
83
+ attr_reader :after_submit, :shipping_address, :submit, :terms_of_service_acceptance
84
+ end
85
+
86
+ class InvoiceCreation < Stripe::StripeObject
87
+ class InvoiceData < Stripe::StripeObject
88
+ class CustomField < Stripe::StripeObject
89
+ attr_reader :name, :value
90
+ end
91
+
92
+ class Issuer < Stripe::StripeObject
93
+ attr_reader :account, :type
94
+ end
95
+
96
+ class RenderingOptions < Stripe::StripeObject
97
+ attr_reader :amount_tax_display
98
+ end
99
+ attr_reader :account_tax_ids, :custom_fields, :description, :footer, :issuer, :metadata, :rendering_options
100
+ end
101
+ attr_reader :enabled, :invoice_data
102
+ end
103
+
104
+ class PaymentIntentData < Stripe::StripeObject
105
+ attr_reader :capture_method, :description, :metadata, :setup_future_usage, :statement_descriptor, :statement_descriptor_suffix, :transfer_group
106
+ end
107
+
108
+ class PhoneNumberCollection < Stripe::StripeObject
109
+ attr_reader :enabled
110
+ end
111
+
112
+ class Restrictions < Stripe::StripeObject
113
+ class CompletedSessions < Stripe::StripeObject
114
+ attr_reader :count, :limit
115
+ end
116
+ attr_reader :completed_sessions
117
+ end
118
+
119
+ class ShippingAddressCollection < Stripe::StripeObject
120
+ attr_reader :allowed_countries
121
+ end
122
+
123
+ class ShippingOption < Stripe::StripeObject
124
+ attr_reader :shipping_amount, :shipping_rate
125
+ end
126
+
127
+ class SubscriptionData < Stripe::StripeObject
128
+ class InvoiceSettings < Stripe::StripeObject
129
+ class Issuer < Stripe::StripeObject
130
+ attr_reader :account, :type
131
+ end
132
+ attr_reader :issuer
133
+ end
134
+
135
+ class TrialSettings < Stripe::StripeObject
136
+ class EndBehavior < Stripe::StripeObject
137
+ attr_reader :missing_payment_method
138
+ end
139
+ attr_reader :end_behavior
140
+ end
141
+ attr_reader :description, :invoice_settings, :metadata, :trial_period_days, :trial_settings
142
+ end
143
+
144
+ class TaxIdCollection < Stripe::StripeObject
145
+ attr_reader :enabled, :required
146
+ end
147
+
148
+ class TransferData < Stripe::StripeObject
149
+ attr_reader :amount, :destination
150
+ end
151
+ # Whether the payment link's `url` is active. If `false`, customers visiting the URL will be shown a page saying that the link has been deactivated.
152
+ attr_reader :active
153
+ # Attribute for field after_completion
154
+ attr_reader :after_completion
155
+ # Whether user redeemable promotion codes are enabled.
156
+ attr_reader :allow_promotion_codes
157
+ # The ID of the Connect application that created the Payment Link.
158
+ attr_reader :application
159
+ # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account.
160
+ attr_reader :application_fee_amount
161
+ # This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account.
162
+ attr_reader :application_fee_percent
163
+ # Attribute for field automatic_tax
164
+ attr_reader :automatic_tax
165
+ # Configuration for collecting the customer's billing address. Defaults to `auto`.
166
+ attr_reader :billing_address_collection
167
+ # When set, provides configuration to gather active consent from customers.
168
+ attr_reader :consent_collection
169
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
170
+ attr_reader :currency
171
+ # Collect additional information from your customer using custom fields. Up to 3 fields are supported.
172
+ attr_reader :custom_fields
173
+ # Attribute for field custom_text
174
+ attr_reader :custom_text
175
+ # Configuration for Customer creation during checkout.
176
+ attr_reader :customer_creation
177
+ # Unique identifier for the object.
178
+ attr_reader :id
179
+ # The custom message to be displayed to a customer when a payment link is no longer active.
180
+ attr_reader :inactive_message
181
+ # Configuration for creating invoice for payment mode payment links.
182
+ attr_reader :invoice_creation
183
+ # The line items representing what is being sold.
184
+ attr_reader :line_items
185
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
186
+ attr_reader :livemode
187
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
188
+ attr_reader :metadata
189
+ # String representing the object's type. Objects of the same type share the same value.
190
+ attr_reader :object
191
+ # The account on behalf of which to charge. See the [Connect documentation](https://support.stripe.com/questions/sending-invoices-on-behalf-of-connected-accounts) for details.
192
+ attr_reader :on_behalf_of
193
+ # Indicates the parameters to be passed to PaymentIntent creation during checkout.
194
+ attr_reader :payment_intent_data
195
+ # Configuration for collecting a payment method during checkout. Defaults to `always`.
196
+ attr_reader :payment_method_collection
197
+ # The list of payment method types that customers can use. When `null`, Stripe will dynamically show relevant payment methods you've enabled in your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
198
+ attr_reader :payment_method_types
199
+ # Attribute for field phone_number_collection
200
+ attr_reader :phone_number_collection
201
+ # Settings that restrict the usage of a payment link.
202
+ attr_reader :restrictions
203
+ # Configuration for collecting the customer's shipping address.
204
+ attr_reader :shipping_address_collection
205
+ # The shipping rate options applied to the session.
206
+ attr_reader :shipping_options
207
+ # Indicates the type of transaction being performed which customizes relevant text on the page, such as the submit button.
208
+ attr_reader :submit_type
209
+ # When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to use `subscription_data`.
210
+ attr_reader :subscription_data
211
+ # Attribute for field tax_id_collection
212
+ attr_reader :tax_id_collection
213
+ # The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to.
214
+ attr_reader :transfer_data
215
+ # The public URL that can be shared with customers.
216
+ attr_reader :url
217
+
20
218
  # Creates a payment link.
21
219
  def self.create(params = {}, opts = {})
22
220
  request_stripe_object(method: :post, path: "/v1/payment_links", params: params, opts: opts)
@@ -17,6 +17,374 @@ module Stripe
17
17
  "payment_method"
18
18
  end
19
19
 
20
+ class AcssDebit < Stripe::StripeObject
21
+ attr_reader :bank_name, :fingerprint, :institution_number, :last4, :transit_number
22
+ end
23
+
24
+ class Affirm < Stripe::StripeObject; end
25
+ class AfterpayClearpay < Stripe::StripeObject; end
26
+ class Alipay < Stripe::StripeObject; end
27
+ class Alma < Stripe::StripeObject; end
28
+ class AmazonPay < Stripe::StripeObject; end
29
+
30
+ class AuBecsDebit < Stripe::StripeObject
31
+ attr_reader :bsb_number, :fingerprint, :last4
32
+ end
33
+
34
+ class BacsDebit < Stripe::StripeObject
35
+ attr_reader :fingerprint, :last4, :sort_code
36
+ end
37
+
38
+ class Bancontact < Stripe::StripeObject; end
39
+
40
+ class BillingDetails < Stripe::StripeObject
41
+ class Address < Stripe::StripeObject
42
+ attr_reader :city, :country, :line1, :line2, :postal_code, :state
43
+ end
44
+ attr_reader :address, :email, :name, :phone
45
+ end
46
+
47
+ class Blik < Stripe::StripeObject; end
48
+
49
+ class Boleto < Stripe::StripeObject
50
+ attr_reader :tax_id
51
+ end
52
+
53
+ class Card < Stripe::StripeObject
54
+ class Checks < Stripe::StripeObject
55
+ attr_reader :address_line1_check, :address_postal_code_check, :cvc_check
56
+ end
57
+
58
+ class GeneratedFrom < Stripe::StripeObject
59
+ class PaymentMethodDetails < Stripe::StripeObject
60
+ class CardPresent < Stripe::StripeObject
61
+ class Offline < Stripe::StripeObject
62
+ attr_reader :stored_at, :type
63
+ end
64
+
65
+ class Receipt < Stripe::StripeObject
66
+ attr_reader :account_type, :application_cryptogram, :application_preferred_name, :authorization_code, :authorization_response_code, :cardholder_verification_method, :dedicated_file_name, :terminal_verification_results, :transaction_status_information
67
+ end
68
+
69
+ class Wallet < Stripe::StripeObject
70
+ attr_reader :type
71
+ end
72
+ attr_reader :amount_authorized, :brand, :brand_product, :capture_before, :cardholder_name, :country, :description, :emv_auth_data, :exp_month, :exp_year, :fingerprint, :funding, :generated_card, :iin, :incremental_authorization_supported, :issuer, :last4, :network, :network_transaction_id, :offline, :overcapture_supported, :preferred_locales, :read_method, :receipt, :wallet
73
+ end
74
+ attr_reader :card_present, :type
75
+ end
76
+ attr_reader :charge, :payment_method_details, :setup_attempt
77
+ end
78
+
79
+ class Networks < Stripe::StripeObject
80
+ attr_reader :available, :preferred
81
+ end
82
+
83
+ class ThreeDSecureUsage < Stripe::StripeObject
84
+ attr_reader :supported
85
+ end
86
+
87
+ class Wallet < Stripe::StripeObject
88
+ class AmexExpressCheckout < Stripe::StripeObject; end
89
+ class ApplePay < Stripe::StripeObject; end
90
+ class GooglePay < Stripe::StripeObject; end
91
+ class Link < Stripe::StripeObject; end
92
+
93
+ class Masterpass < Stripe::StripeObject
94
+ class BillingAddress < Stripe::StripeObject
95
+ attr_reader :city, :country, :line1, :line2, :postal_code, :state
96
+ end
97
+
98
+ class ShippingAddress < Stripe::StripeObject
99
+ attr_reader :city, :country, :line1, :line2, :postal_code, :state
100
+ end
101
+ attr_reader :billing_address, :email, :name, :shipping_address
102
+ end
103
+
104
+ class SamsungPay < Stripe::StripeObject; end
105
+
106
+ class VisaCheckout < Stripe::StripeObject
107
+ class BillingAddress < Stripe::StripeObject
108
+ attr_reader :city, :country, :line1, :line2, :postal_code, :state
109
+ end
110
+
111
+ class ShippingAddress < Stripe::StripeObject
112
+ attr_reader :city, :country, :line1, :line2, :postal_code, :state
113
+ end
114
+ attr_reader :billing_address, :email, :name, :shipping_address
115
+ end
116
+ attr_reader :amex_express_checkout, :apple_pay, :dynamic_last4, :google_pay, :link, :masterpass, :samsung_pay, :type, :visa_checkout
117
+ end
118
+ attr_reader :brand, :checks, :country, :description, :display_brand, :exp_month, :exp_year, :fingerprint, :funding, :generated_from, :iin, :issuer, :last4, :networks, :three_d_secure_usage, :wallet
119
+ end
120
+
121
+ class CardPresent < Stripe::StripeObject
122
+ class Networks < Stripe::StripeObject
123
+ attr_reader :available, :preferred
124
+ end
125
+
126
+ class Offline < Stripe::StripeObject
127
+ attr_reader :stored_at, :type
128
+ end
129
+
130
+ class Wallet < Stripe::StripeObject
131
+ attr_reader :type
132
+ end
133
+ attr_reader :brand, :brand_product, :cardholder_name, :country, :description, :exp_month, :exp_year, :fingerprint, :funding, :iin, :issuer, :last4, :networks, :offline, :preferred_locales, :read_method, :wallet
134
+ end
135
+
136
+ class Cashapp < Stripe::StripeObject
137
+ attr_reader :buyer_id, :cashtag
138
+ end
139
+
140
+ class CustomerBalance < Stripe::StripeObject; end
141
+
142
+ class Eps < Stripe::StripeObject
143
+ attr_reader :bank
144
+ end
145
+
146
+ class Fpx < Stripe::StripeObject
147
+ attr_reader :account_holder_type, :bank
148
+ end
149
+
150
+ class Giropay < Stripe::StripeObject; end
151
+ class Gopay < Stripe::StripeObject; end
152
+ class Grabpay < Stripe::StripeObject; end
153
+
154
+ class IdBankTransfer < Stripe::StripeObject
155
+ attr_reader :bank, :bank_code, :bank_name, :display_name
156
+ end
157
+
158
+ class Ideal < Stripe::StripeObject
159
+ attr_reader :bank, :bic
160
+ end
161
+
162
+ class InteracPresent < Stripe::StripeObject
163
+ class Networks < Stripe::StripeObject
164
+ attr_reader :available, :preferred
165
+ end
166
+ attr_reader :brand, :cardholder_name, :country, :description, :exp_month, :exp_year, :fingerprint, :funding, :iin, :issuer, :last4, :networks, :preferred_locales, :read_method
167
+ end
168
+
169
+ class KakaoPay < Stripe::StripeObject; end
170
+
171
+ class Klarna < Stripe::StripeObject
172
+ class Dob < Stripe::StripeObject
173
+ attr_reader :day, :month, :year
174
+ end
175
+ attr_reader :dob
176
+ end
177
+
178
+ class Konbini < Stripe::StripeObject; end
179
+
180
+ class KrCard < Stripe::StripeObject
181
+ attr_reader :brand, :last4
182
+ end
183
+
184
+ class Link < Stripe::StripeObject
185
+ attr_reader :email, :persistent_token
186
+ end
187
+
188
+ class MbWay < Stripe::StripeObject; end
189
+ class Mobilepay < Stripe::StripeObject; end
190
+ class Multibanco < Stripe::StripeObject; end
191
+
192
+ class NaverPay < Stripe::StripeObject
193
+ attr_reader :funding
194
+ end
195
+
196
+ class Oxxo < Stripe::StripeObject; end
197
+
198
+ class P24 < Stripe::StripeObject
199
+ attr_reader :bank
200
+ end
201
+
202
+ class Payco < Stripe::StripeObject; end
203
+ class Paynow < Stripe::StripeObject; end
204
+
205
+ class Paypal < Stripe::StripeObject
206
+ attr_reader :fingerprint, :payer_email, :payer_id, :verified_email
207
+ end
208
+
209
+ class Payto < Stripe::StripeObject
210
+ attr_reader :bsb_number, :last4, :pay_id
211
+ end
212
+
213
+ class Pix < Stripe::StripeObject; end
214
+ class Promptpay < Stripe::StripeObject; end
215
+ class Qris < Stripe::StripeObject; end
216
+
217
+ class RadarOptions < Stripe::StripeObject
218
+ attr_reader :session
219
+ end
220
+
221
+ class Rechnung < Stripe::StripeObject
222
+ class Dob < Stripe::StripeObject
223
+ attr_reader :day, :month, :year
224
+ end
225
+ attr_reader :dob
226
+ end
227
+
228
+ class RevolutPay < Stripe::StripeObject; end
229
+ class SamsungPay < Stripe::StripeObject; end
230
+
231
+ class SepaDebit < Stripe::StripeObject
232
+ class GeneratedFrom < Stripe::StripeObject
233
+ attr_reader :charge, :setup_attempt
234
+ end
235
+ attr_reader :bank_code, :branch_code, :country, :fingerprint, :generated_from, :last4
236
+ end
237
+
238
+ class Shopeepay < Stripe::StripeObject; end
239
+
240
+ class Sofort < Stripe::StripeObject
241
+ attr_reader :country
242
+ end
243
+
244
+ class Swish < Stripe::StripeObject; end
245
+ class Twint < Stripe::StripeObject; end
246
+
247
+ class UsBankAccount < Stripe::StripeObject
248
+ class Networks < Stripe::StripeObject
249
+ attr_reader :preferred, :supported
250
+ end
251
+
252
+ class StatusDetails < Stripe::StripeObject
253
+ class Blocked < Stripe::StripeObject
254
+ attr_reader :network_code, :reason
255
+ end
256
+ attr_reader :blocked
257
+ end
258
+ attr_reader :account_holder_type, :account_number, :account_type, :bank_name, :financial_connections_account, :fingerprint, :last4, :networks, :routing_number, :status_details
259
+ end
260
+
261
+ class WechatPay < Stripe::StripeObject; end
262
+ class Zip < Stripe::StripeObject; end
263
+ # Attribute for field acss_debit
264
+ attr_reader :acss_debit
265
+ # Attribute for field affirm
266
+ attr_reader :affirm
267
+ # Attribute for field afterpay_clearpay
268
+ attr_reader :afterpay_clearpay
269
+ # Attribute for field alipay
270
+ attr_reader :alipay
271
+ # This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”.
272
+ attr_reader :allow_redisplay
273
+ # Attribute for field alma
274
+ attr_reader :alma
275
+ # Attribute for field amazon_pay
276
+ attr_reader :amazon_pay
277
+ # Attribute for field au_becs_debit
278
+ attr_reader :au_becs_debit
279
+ # Attribute for field bacs_debit
280
+ attr_reader :bacs_debit
281
+ # Attribute for field bancontact
282
+ attr_reader :bancontact
283
+ # Attribute for field billing_details
284
+ attr_reader :billing_details
285
+ # Attribute for field blik
286
+ attr_reader :blik
287
+ # Attribute for field boleto
288
+ attr_reader :boleto
289
+ # Attribute for field card
290
+ attr_reader :card
291
+ # Attribute for field card_present
292
+ attr_reader :card_present
293
+ # Attribute for field cashapp
294
+ attr_reader :cashapp
295
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
296
+ attr_reader :created
297
+ # The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
298
+ attr_reader :customer
299
+ # Attribute for field customer_balance
300
+ attr_reader :customer_balance
301
+ # Attribute for field eps
302
+ attr_reader :eps
303
+ # Attribute for field fpx
304
+ attr_reader :fpx
305
+ # Attribute for field giropay
306
+ attr_reader :giropay
307
+ # Attribute for field gopay
308
+ attr_reader :gopay
309
+ # Attribute for field grabpay
310
+ attr_reader :grabpay
311
+ # Unique identifier for the object.
312
+ attr_reader :id
313
+ # Attribute for field id_bank_transfer
314
+ attr_reader :id_bank_transfer
315
+ # Attribute for field ideal
316
+ attr_reader :ideal
317
+ # Attribute for field interac_present
318
+ attr_reader :interac_present
319
+ # Attribute for field kakao_pay
320
+ attr_reader :kakao_pay
321
+ # Attribute for field klarna
322
+ attr_reader :klarna
323
+ # Attribute for field konbini
324
+ attr_reader :konbini
325
+ # Attribute for field kr_card
326
+ attr_reader :kr_card
327
+ # Attribute for field link
328
+ attr_reader :link
329
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
330
+ attr_reader :livemode
331
+ # Attribute for field mb_way
332
+ attr_reader :mb_way
333
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
334
+ attr_reader :metadata
335
+ # Attribute for field mobilepay
336
+ attr_reader :mobilepay
337
+ # Attribute for field multibanco
338
+ attr_reader :multibanco
339
+ # Attribute for field naver_pay
340
+ attr_reader :naver_pay
341
+ # String representing the object's type. Objects of the same type share the same value.
342
+ attr_reader :object
343
+ # Attribute for field oxxo
344
+ attr_reader :oxxo
345
+ # Attribute for field p24
346
+ attr_reader :p24
347
+ # Attribute for field payco
348
+ attr_reader :payco
349
+ # Attribute for field paynow
350
+ attr_reader :paynow
351
+ # Attribute for field paypal
352
+ attr_reader :paypal
353
+ # Attribute for field payto
354
+ attr_reader :payto
355
+ # Attribute for field pix
356
+ attr_reader :pix
357
+ # Attribute for field promptpay
358
+ attr_reader :promptpay
359
+ # Attribute for field qris
360
+ attr_reader :qris
361
+ # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
362
+ attr_reader :radar_options
363
+ # Attribute for field rechnung
364
+ attr_reader :rechnung
365
+ # Attribute for field revolut_pay
366
+ attr_reader :revolut_pay
367
+ # Attribute for field samsung_pay
368
+ attr_reader :samsung_pay
369
+ # Attribute for field sepa_debit
370
+ attr_reader :sepa_debit
371
+ # Attribute for field shopeepay
372
+ attr_reader :shopeepay
373
+ # Attribute for field sofort
374
+ attr_reader :sofort
375
+ # Attribute for field swish
376
+ attr_reader :swish
377
+ # Attribute for field twint
378
+ attr_reader :twint
379
+ # The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
380
+ attr_reader :type
381
+ # Attribute for field us_bank_account
382
+ attr_reader :us_bank_account
383
+ # Attribute for field wechat_pay
384
+ attr_reader :wechat_pay
385
+ # Attribute for field zip
386
+ attr_reader :zip
387
+
20
388
  # Attaches a PaymentMethod object to a Customer.
21
389
  #
22
390
  # To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://stripe.com/docs/api/setup_intents)