stripe 13.3.0.pre.beta.3 → 13.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (220) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +650 -1402
  3. data/OPENAPI_VERSION +1 -1
  4. data/VERSION +1 -1
  5. data/lib/stripe/object_types.rb +0 -32
  6. data/lib/stripe/resources/account.rb +2 -232
  7. data/lib/stripe/resources/account_link.rb +0 -9
  8. data/lib/stripe/resources/account_session.rb +0 -103
  9. data/lib/stripe/resources/apple_pay_domain.rb +2 -20
  10. data/lib/stripe/resources/application_fee.rb +2 -36
  11. data/lib/stripe/resources/application_fee_refund.rb +0 -17
  12. data/lib/stripe/resources/apps/secret.rb +2 -24
  13. data/lib/stripe/resources/balance.rb +0 -59
  14. data/lib/stripe/resources/balance_transaction.rb +2 -36
  15. data/lib/stripe/resources/bank_account.rb +3 -61
  16. data/lib/stripe/resources/billing/alert.rb +2 -23
  17. data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -25
  18. data/lib/stripe/resources/billing/credit_balance_transaction.rb +2 -50
  19. data/lib/stripe/resources/billing/credit_grant.rb +2 -46
  20. data/lib/stripe/resources/billing/meter.rb +2 -44
  21. data/lib/stripe/resources/billing/meter_event.rb +0 -15
  22. data/lib/stripe/resources/billing/meter_event_adjustment.rb +0 -16
  23. data/lib/stripe/resources/billing/meter_event_summary.rb +0 -15
  24. data/lib/stripe/resources/billing_portal/configuration.rb +2 -72
  25. data/lib/stripe/resources/billing_portal/session.rb +0 -61
  26. data/lib/stripe/resources/capability.rb +0 -38
  27. data/lib/stripe/resources/card.rb +1 -77
  28. data/lib/stripe/resources/cash_balance.rb +0 -14
  29. data/lib/stripe/resources/charge.rb +2 -471
  30. data/lib/stripe/resources/checkout/session.rb +2 -498
  31. data/lib/stripe/resources/climate/order.rb +2 -57
  32. data/lib/stripe/resources/climate/product.rb +2 -26
  33. data/lib/stripe/resources/climate/supplier.rb +2 -20
  34. data/lib/stripe/resources/confirmation_token.rb +0 -297
  35. data/lib/stripe/resources/country_spec.rb +2 -29
  36. data/lib/stripe/resources/coupon.rb +2 -46
  37. data/lib/stripe/resources/credit_note.rb +2 -93
  38. data/lib/stripe/resources/credit_note_line_item.rb +0 -46
  39. data/lib/stripe/resources/customer.rb +2 -95
  40. data/lib/stripe/resources/customer_balance_transaction.rb +0 -27
  41. data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -72
  42. data/lib/stripe/resources/customer_session.rb +0 -34
  43. data/lib/stripe/resources/discount.rb +0 -29
  44. data/lib/stripe/resources/dispute.rb +2 -98
  45. data/lib/stripe/resources/entitlements/active_entitlement.rb +2 -13
  46. data/lib/stripe/resources/entitlements/feature.rb +2 -17
  47. data/lib/stripe/resources/ephemeral_key.rb +0 -13
  48. data/lib/stripe/resources/event.rb +2 -46
  49. data/lib/stripe/resources/exchange_rate.rb +2 -9
  50. data/lib/stripe/resources/file.rb +2 -25
  51. data/lib/stripe/resources/file_link.rb +2 -21
  52. data/lib/stripe/resources/financial_connections/account.rb +2 -89
  53. data/lib/stripe/resources/financial_connections/account_owner.rb +0 -17
  54. data/lib/stripe/resources/financial_connections/account_ownership.rb +0 -9
  55. data/lib/stripe/resources/financial_connections/session.rb +0 -49
  56. data/lib/stripe/resources/financial_connections/transaction.rb +2 -30
  57. data/lib/stripe/resources/forwarding/request.rb +2 -42
  58. data/lib/stripe/resources/funding_instructions.rb +0 -82
  59. data/lib/stripe/resources/identity/verification_report.rb +2 -94
  60. data/lib/stripe/resources/identity/verification_session.rb +2 -78
  61. data/lib/stripe/resources/invoice.rb +2 -420
  62. data/lib/stripe/resources/invoice_item.rb +2 -56
  63. data/lib/stripe/resources/invoice_line_item.rb +0 -83
  64. data/lib/stripe/resources/invoice_rendering_template.rb +2 -19
  65. data/lib/stripe/resources/issuing/authorization.rb +2 -131
  66. data/lib/stripe/resources/issuing/card.rb +2 -88
  67. data/lib/stripe/resources/issuing/cardholder.rb +2 -78
  68. data/lib/stripe/resources/issuing/dispute.rb +2 -67
  69. data/lib/stripe/resources/issuing/personalization_design.rb +2 -40
  70. data/lib/stripe/resources/issuing/physical_bundle.rb +2 -20
  71. data/lib/stripe/resources/issuing/token.rb +2 -48
  72. data/lib/stripe/resources/issuing/transaction.rb +2 -108
  73. data/lib/stripe/resources/line_item.rb +0 -50
  74. data/lib/stripe/resources/login_link.rb +0 -7
  75. data/lib/stripe/resources/mandate.rb +0 -78
  76. data/lib/stripe/resources/payment_intent.rb +2 -714
  77. data/lib/stripe/resources/payment_link.rb +2 -200
  78. data/lib/stripe/resources/payment_method.rb +2 -370
  79. data/lib/stripe/resources/payment_method_configuration.rb +2 -432
  80. data/lib/stripe/resources/payment_method_domain.rb +2 -59
  81. data/lib/stripe/resources/payout.rb +2 -58
  82. data/lib/stripe/resources/person.rb +0 -128
  83. data/lib/stripe/resources/plan.rb +2 -54
  84. data/lib/stripe/resources/price.rb +2 -79
  85. data/lib/stripe/resources/product.rb +2 -62
  86. data/lib/stripe/resources/product_feature.rb +0 -12
  87. data/lib/stripe/resources/promotion_code.rb +2 -37
  88. data/lib/stripe/resources/quote.rb +2 -358
  89. data/lib/stripe/resources/radar/early_fraud_warning.rb +2 -19
  90. data/lib/stripe/resources/radar/value_list.rb +2 -25
  91. data/lib/stripe/resources/radar/value_list_item.rb +2 -19
  92. data/lib/stripe/resources/refund.rb +2 -132
  93. data/lib/stripe/resources/reporting/report_run.rb +2 -31
  94. data/lib/stripe/resources/reporting/report_type.rb +2 -21
  95. data/lib/stripe/resources/reversal.rb +0 -21
  96. data/lib/stripe/resources/review.rb +2 -38
  97. data/lib/stripe/resources/setup_attempt.rb +2 -103
  98. data/lib/stripe/resources/setup_intent.rb +2 -160
  99. data/lib/stripe/resources/shipping_rate.rb +2 -44
  100. data/lib/stripe/resources/sigma/scheduled_query_run.rb +2 -28
  101. data/lib/stripe/resources/source.rb +0 -197
  102. data/lib/stripe/resources/source_transaction.rb +0 -48
  103. data/lib/stripe/resources/subscription.rb +2 -216
  104. data/lib/stripe/resources/subscription_item.rb +2 -48
  105. data/lib/stripe/resources/subscription_schedule.rb +2 -175
  106. data/lib/stripe/resources/tax/calculation.rb +0 -72
  107. data/lib/stripe/resources/tax/calculation_line_item.rb +0 -33
  108. data/lib/stripe/resources/tax/registration.rb +2 -381
  109. data/lib/stripe/resources/tax/settings.rb +0 -33
  110. data/lib/stripe/resources/tax/transaction.rb +0 -68
  111. data/lib/stripe/resources/tax/transaction_line_item.rb +0 -30
  112. data/lib/stripe/resources/tax_code.rb +2 -11
  113. data/lib/stripe/resources/tax_id.rb +2 -32
  114. data/lib/stripe/resources/tax_rate.rb +2 -44
  115. data/lib/stripe/resources/terminal/configuration.rb +2 -109
  116. data/lib/stripe/resources/terminal/connection_token.rb +0 -7
  117. data/lib/stripe/resources/terminal/location.rb +2 -22
  118. data/lib/stripe/resources/terminal/reader.rb +2 -180
  119. data/lib/stripe/resources/test_helpers/test_clock.rb +2 -29
  120. data/lib/stripe/resources/token.rb +0 -29
  121. data/lib/stripe/resources/topup.rb +2 -35
  122. data/lib/stripe/resources/transfer.rb +2 -37
  123. data/lib/stripe/resources/treasury/credit_reversal.rb +2 -34
  124. data/lib/stripe/resources/treasury/debit_reversal.rb +2 -40
  125. data/lib/stripe/resources/treasury/financial_account.rb +2 -59
  126. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -91
  127. data/lib/stripe/resources/treasury/inbound_transfer.rb +2 -68
  128. data/lib/stripe/resources/treasury/outbound_payment.rb +2 -87
  129. data/lib/stripe/resources/treasury/outbound_transfer.rb +2 -84
  130. data/lib/stripe/resources/treasury/received_credit.rb +2 -72
  131. data/lib/stripe/resources/treasury/received_debit.rb +2 -69
  132. data/lib/stripe/resources/treasury/transaction.rb +2 -44
  133. data/lib/stripe/resources/treasury/transaction_entry.rb +2 -36
  134. data/lib/stripe/resources/usage_record.rb +0 -13
  135. data/lib/stripe/resources/usage_record_summary.rb +0 -18
  136. data/lib/stripe/resources/v2/billing/meter_event.rb +0 -18
  137. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +0 -20
  138. data/lib/stripe/resources/v2/billing/meter_event_session.rb +0 -14
  139. data/lib/stripe/resources/v2/event.rb +0 -21
  140. data/lib/stripe/resources/v2/event_destination.rb +0 -49
  141. data/lib/stripe/resources/webhook_endpoint.rb +2 -34
  142. data/lib/stripe/resources.rb +0 -31
  143. data/lib/stripe/services/financial_connections/account_service.rb +1 -3
  144. data/lib/stripe/services/financial_connections_service.rb +1 -2
  145. data/lib/stripe/services/invoice_service.rb +1 -44
  146. data/lib/stripe/services/issuing_service.rb +1 -5
  147. data/lib/stripe/services/payment_intent_service.rb +0 -37
  148. data/lib/stripe/services/quote_service.rb +1 -49
  149. data/lib/stripe/services/subscription_schedule_service.rb +0 -11
  150. data/lib/stripe/services/tax_service.rb +1 -3
  151. data/lib/stripe/services/terminal/reader_service.rb +0 -33
  152. data/lib/stripe/services/terminal_service.rb +1 -2
  153. data/lib/stripe/services/v1_services.rb +1 -8
  154. data/lib/stripe/services.rb +0 -25
  155. data/lib/stripe/stripe_client.rb +1 -1
  156. data/lib/stripe/stripe_configuration.rb +1 -3
  157. data/lib/stripe/stripe_object.rb +3 -8
  158. data/lib/stripe/util.rb +2 -8
  159. data/lib/stripe/version.rb +1 -1
  160. data/lib/stripe.rb +0 -45
  161. data/stripe.gemspec +1 -2
  162. metadata +4 -62
  163. data/lib/stripe/request_signing_authenticator.rb +0 -79
  164. data/lib/stripe/resources/account_notice.rb +0 -60
  165. data/lib/stripe/resources/application.rb +0 -20
  166. data/lib/stripe/resources/billing/alert_triggered.rb +0 -26
  167. data/lib/stripe/resources/billing/meter_error_report.rb +0 -44
  168. data/lib/stripe/resources/capital/financing_offer.rb +0 -94
  169. data/lib/stripe/resources/capital/financing_summary.rb +0 -32
  170. data/lib/stripe/resources/capital/financing_transaction.rb +0 -56
  171. data/lib/stripe/resources/connect_collection_transfer.rb +0 -24
  172. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +0 -23
  173. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
  174. data/lib/stripe/resources/financial_connections/institution.rb +0 -61
  175. data/lib/stripe/resources/gift_cards/card.rb +0 -96
  176. data/lib/stripe/resources/gift_cards/transaction.rb +0 -132
  177. data/lib/stripe/resources/invoice_payment.rb +0 -46
  178. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -145
  179. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -49
  180. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -43
  181. data/lib/stripe/resources/issuing/settlement.rb +0 -49
  182. data/lib/stripe/resources/margin.rb +0 -56
  183. data/lib/stripe/resources/order.rb +0 -322
  184. data/lib/stripe/resources/payment_attempt_record.rb +0 -100
  185. data/lib/stripe/resources/payment_record.rb +0 -188
  186. data/lib/stripe/resources/quote_line.rb +0 -136
  187. data/lib/stripe/resources/quote_preview_invoice.rb +0 -374
  188. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -170
  189. data/lib/stripe/resources/reserve_transaction.rb +0 -22
  190. data/lib/stripe/resources/source_mandate_notification.rb +0 -59
  191. data/lib/stripe/resources/tax/association.rb +0 -60
  192. data/lib/stripe/resources/tax/form.rb +0 -124
  193. data/lib/stripe/resources/tax_deducted_at_source.rb +0 -22
  194. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -30
  195. data/lib/stripe/resources/v2/amount.rb +0 -9
  196. data/lib/stripe/services/account_notice_service.rb +0 -39
  197. data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
  198. data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
  199. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
  200. data/lib/stripe/services/capital_service.rb +0 -15
  201. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
  202. data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
  203. data/lib/stripe/services/gift_cards/card_service.rb +0 -63
  204. data/lib/stripe/services/gift_cards/transaction_service.rb +0 -74
  205. data/lib/stripe/services/gift_cards_service.rb +0 -14
  206. data/lib/stripe/services/invoice_payment_service.rb +0 -28
  207. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
  208. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
  209. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
  210. data/lib/stripe/services/margin_service.rb +0 -50
  211. data/lib/stripe/services/order_line_item_service.rb +0 -17
  212. data/lib/stripe/services/order_service.rb +0 -78
  213. data/lib/stripe/services/payment_attempt_record_service.rb +0 -28
  214. data/lib/stripe/services/payment_record_service.rb +0 -78
  215. data/lib/stripe/services/quote_line_service.rb +0 -17
  216. data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
  217. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
  218. data/lib/stripe/services/tax/association_service.rb +0 -19
  219. data/lib/stripe/services/tax/form_service.rb +0 -37
  220. data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
@@ -9,23 +9,6 @@ module Stripe
9
9
  def self.object_name
10
10
  "financial_connections.account_owner"
11
11
  end
12
-
13
- # The email address of the owner.
14
- attr_reader :email
15
- # Unique identifier for the object.
16
- attr_reader :id
17
- # The full name of the owner.
18
- attr_reader :name
19
- # String representing the object's type. Objects of the same type share the same value.
20
- attr_reader :object
21
- # The ownership object that this owner belongs to.
22
- attr_reader :ownership
23
- # The raw phone number of the owner.
24
- attr_reader :phone
25
- # The raw physical address of the owner.
26
- attr_reader :raw_address
27
- # The timestamp of the refresh that updated this owner.
28
- attr_reader :refreshed_at
29
12
  end
30
13
  end
31
14
  end
@@ -9,15 +9,6 @@ module Stripe
9
9
  def self.object_name
10
10
  "financial_connections.account_ownership"
11
11
  end
12
-
13
- # Time at which the object was created. Measured in seconds since the Unix epoch.
14
- attr_reader :created
15
- # Unique identifier for the object.
16
- attr_reader :id
17
- # String representing the object's type. Objects of the same type share the same value.
18
- attr_reader :object
19
- # A paginated list of owners for this account.
20
- attr_reader :owners
21
12
  end
22
13
  end
23
14
  end
@@ -12,55 +12,6 @@ module Stripe
12
12
  "financial_connections.session"
13
13
  end
14
14
 
15
- class AccountHolder < Stripe::StripeObject
16
- attr_reader :account, :customer, :type
17
- end
18
-
19
- class Filters < Stripe::StripeObject
20
- attr_reader :account_subcategories, :countries, :institution
21
- end
22
-
23
- class Limits < Stripe::StripeObject
24
- attr_reader :accounts
25
- end
26
-
27
- class ManualEntry < Stripe::StripeObject; end
28
-
29
- class StatusDetails < Stripe::StripeObject
30
- class Cancelled < Stripe::StripeObject
31
- attr_reader :reason
32
- end
33
- attr_reader :cancelled
34
- end
35
- # The account holder for whom accounts are collected in this session.
36
- attr_reader :account_holder
37
- # The accounts that were collected as part of this Session.
38
- attr_reader :accounts
39
- # A value that will be passed to the client to launch the authentication flow.
40
- attr_reader :client_secret
41
- # Attribute for field filters
42
- attr_reader :filters
43
- # Unique identifier for the object.
44
- attr_reader :id
45
- # Attribute for field limits
46
- attr_reader :limits
47
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
48
- attr_reader :livemode
49
- # Attribute for field manual_entry
50
- attr_reader :manual_entry
51
- # String representing the object's type. Objects of the same type share the same value.
52
- attr_reader :object
53
- # Permissions requested for accounts collected during this session.
54
- attr_reader :permissions
55
- # Data features requested to be retrieved upon account creation.
56
- attr_reader :prefetch
57
- # 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.
58
- attr_reader :return_url
59
- # The current state of the session.
60
- attr_reader :status
61
- # Attribute for field status_details
62
- attr_reader :status_details
63
-
64
15
  # To launch the Financial Connections authorization flow, create a Session. The session's client_secret can be used to launch the flow using Stripe.js.
65
16
  def self.create(params = {}, opts = {})
66
17
  request_stripe_object(
@@ -12,40 +12,12 @@ module Stripe
12
12
  "financial_connections.transaction"
13
13
  end
14
14
 
15
- class StatusTransitions < Stripe::StripeObject
16
- attr_reader :posted_at, :void_at
17
- end
18
- # The ID of the Financial Connections Account this transaction belongs to.
19
- attr_reader :account
20
- # The amount of this transaction, in cents (or local equivalent).
21
- attr_reader :amount
22
- # 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).
23
- attr_reader :currency
24
- # The description of this transaction.
25
- attr_reader :description
26
- # Unique identifier for the object.
27
- attr_reader :id
28
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
29
- attr_reader :livemode
30
- # String representing the object's type. Objects of the same type share the same value.
31
- attr_reader :object
32
- # The status of the transaction.
33
- attr_reader :status
34
- # Attribute for field status_transitions
35
- attr_reader :status_transitions
36
- # Time at which the transaction was transacted. Measured in seconds since the Unix epoch.
37
- attr_reader :transacted_at
38
- # The token of the transaction refresh that last updated or created this transaction.
39
- attr_reader :transaction_refresh
40
- # Time at which the object was last updated. Measured in seconds since the Unix epoch.
41
- attr_reader :updated
42
-
43
15
  # Returns a list of Financial Connections Transaction objects.
44
- def self.list(filters = {}, opts = {})
16
+ def self.list(params = {}, opts = {})
45
17
  request_stripe_object(
46
18
  method: :get,
47
19
  path: "/v1/financial_connections/transactions",
48
- params: filters,
20
+ params: params,
49
21
  opts: opts
50
22
  )
51
23
  end
@@ -28,46 +28,6 @@ module Stripe
28
28
  "forwarding.request"
29
29
  end
30
30
 
31
- class RequestContext < Stripe::StripeObject
32
- attr_reader :destination_duration, :destination_ip_address
33
- end
34
-
35
- class RequestDetails < Stripe::StripeObject
36
- class Header < Stripe::StripeObject
37
- attr_reader :name, :value
38
- end
39
- attr_reader :body, :headers, :http_method
40
- end
41
-
42
- class ResponseDetails < Stripe::StripeObject
43
- class Header < Stripe::StripeObject
44
- attr_reader :name, :value
45
- end
46
- attr_reader :body, :headers, :status
47
- end
48
- # Time at which the object was created. Measured in seconds since the Unix epoch.
49
- attr_reader :created
50
- # Unique identifier for the object.
51
- attr_reader :id
52
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
53
- attr_reader :livemode
54
- # 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.
55
- attr_reader :metadata
56
- # String representing the object's type. Objects of the same type share the same value.
57
- attr_reader :object
58
- # The PaymentMethod to insert into the forwarded request. Forwarding previously consumed PaymentMethods is allowed.
59
- attr_reader :payment_method
60
- # The field kinds to be replaced in the forwarded request.
61
- attr_reader :replacements
62
- # Context about the request from Stripe's servers to the destination endpoint.
63
- attr_reader :request_context
64
- # The request that was sent to the destination endpoint. We redact any sensitive fields.
65
- attr_reader :request_details
66
- # The response that the destination endpoint returned to us. We redact any sensitive fields.
67
- attr_reader :response_details
68
- # The destination URL for the forwarded request. Must be supported by the config.
69
- attr_reader :url
70
-
71
31
  # Creates a ForwardingRequest object.
72
32
  def self.create(params = {}, opts = {})
73
33
  request_stripe_object(
@@ -79,11 +39,11 @@ module Stripe
79
39
  end
80
40
 
81
41
  # Lists all ForwardingRequest objects.
82
- def self.list(filters = {}, opts = {})
42
+ def self.list(params = {}, opts = {})
83
43
  request_stripe_object(
84
44
  method: :get,
85
45
  path: "/v1/forwarding/requests",
86
- params: filters,
46
+ params: params,
87
47
  opts: opts
88
48
  )
89
49
  end
@@ -13,88 +13,6 @@ module Stripe
13
13
  "funding_instructions"
14
14
  end
15
15
 
16
- class BankTransfer < Stripe::StripeObject
17
- class FinancialAddress < Stripe::StripeObject
18
- class Aba < Stripe::StripeObject
19
- class AccountHolderAddress < Stripe::StripeObject
20
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
21
- end
22
-
23
- class BankAddress < Stripe::StripeObject
24
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
25
- end
26
- attr_reader :account_holder_address, :account_holder_name, :account_number, :account_type, :bank_address, :bank_name, :routing_number
27
- end
28
-
29
- class Iban < Stripe::StripeObject
30
- class AccountHolderAddress < Stripe::StripeObject
31
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
32
- end
33
-
34
- class BankAddress < Stripe::StripeObject
35
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
36
- end
37
- attr_reader :account_holder_address, :account_holder_name, :bank_address, :bic, :country, :iban
38
- end
39
-
40
- class SortCode < Stripe::StripeObject
41
- class AccountHolderAddress < Stripe::StripeObject
42
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
43
- end
44
-
45
- class BankAddress < Stripe::StripeObject
46
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
47
- end
48
- attr_reader :account_holder_address, :account_holder_name, :account_number, :bank_address, :sort_code
49
- end
50
-
51
- class Spei < Stripe::StripeObject
52
- class AccountHolderAddress < Stripe::StripeObject
53
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
54
- end
55
-
56
- class BankAddress < Stripe::StripeObject
57
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
58
- end
59
- attr_reader :account_holder_address, :account_holder_name, :bank_address, :bank_code, :bank_name, :clabe
60
- end
61
-
62
- class Swift < Stripe::StripeObject
63
- class AccountHolderAddress < Stripe::StripeObject
64
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
65
- end
66
-
67
- class BankAddress < Stripe::StripeObject
68
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
69
- end
70
- attr_reader :account_holder_address, :account_holder_name, :account_number, :account_type, :bank_address, :bank_name, :swift_code
71
- end
72
-
73
- class Zengin < Stripe::StripeObject
74
- class AccountHolderAddress < Stripe::StripeObject
75
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
76
- end
77
-
78
- class BankAddress < Stripe::StripeObject
79
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
80
- end
81
- attr_reader :account_holder_address, :account_holder_name, :account_number, :account_type, :bank_address, :bank_code, :bank_name, :branch_code, :branch_name
82
- end
83
- attr_reader :aba, :iban, :sort_code, :spei, :supported_networks, :swift, :type, :zengin
84
- end
85
- attr_reader :country, :financial_addresses, :type
86
- end
87
- # Attribute for field bank_transfer
88
- attr_reader :bank_transfer
89
- # 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).
90
- attr_reader :currency
91
- # The `funding_type` of the returned instructions
92
- attr_reader :funding_type
93
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
94
- attr_reader :livemode
95
- # String representing the object's type. Objects of the same type share the same value.
96
- attr_reader :object
97
-
98
16
  def resource_url
99
17
  if !respond_to?(:customer) || customer.nil?
100
18
  raise NotImplementedError,
@@ -22,104 +22,12 @@ module Stripe
22
22
  "identity.verification_report"
23
23
  end
24
24
 
25
- class Document < Stripe::StripeObject
26
- class Address < Stripe::StripeObject
27
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
28
- end
29
-
30
- class Dob < Stripe::StripeObject
31
- attr_reader :day, :month, :year
32
- end
33
-
34
- class Error < Stripe::StripeObject
35
- attr_reader :code, :reason
36
- end
37
-
38
- class ExpirationDate < Stripe::StripeObject
39
- attr_reader :day, :month, :year
40
- end
41
-
42
- class IssuedDate < Stripe::StripeObject
43
- attr_reader :day, :month, :year
44
- end
45
- attr_reader :address, :dob, :error, :expiration_date, :files, :first_name, :issued_date, :issuing_country, :last_name, :number, :status, :type
46
- end
47
-
48
- class Email < Stripe::StripeObject
49
- class Error < Stripe::StripeObject
50
- attr_reader :code, :reason
51
- end
52
- attr_reader :email, :error, :status
53
- end
54
-
55
- class IdNumber < Stripe::StripeObject
56
- class Dob < Stripe::StripeObject
57
- attr_reader :day, :month, :year
58
- end
59
-
60
- class Error < Stripe::StripeObject
61
- attr_reader :code, :reason
62
- end
63
- attr_reader :dob, :error, :first_name, :id_number, :id_number_type, :last_name, :status
64
- end
65
-
66
- class Options < Stripe::StripeObject
67
- class Document < Stripe::StripeObject
68
- attr_reader :allowed_types, :require_id_number, :require_live_capture, :require_matching_selfie
69
- end
70
-
71
- class IdNumber < Stripe::StripeObject; end
72
- attr_reader :document, :id_number
73
- end
74
-
75
- class Phone < Stripe::StripeObject
76
- class Error < Stripe::StripeObject
77
- attr_reader :code, :reason
78
- end
79
- attr_reader :error, :phone, :status
80
- end
81
-
82
- class Selfie < Stripe::StripeObject
83
- class Error < Stripe::StripeObject
84
- attr_reader :code, :reason
85
- end
86
- attr_reader :document, :error, :selfie, :status
87
- end
88
- # A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems.
89
- attr_reader :client_reference_id
90
- # Time at which the object was created. Measured in seconds since the Unix epoch.
91
- attr_reader :created
92
- # Result from a document check
93
- attr_reader :document
94
- # Result from a email check
95
- attr_reader :email
96
- # Unique identifier for the object.
97
- attr_reader :id
98
- # Result from an id_number check
99
- attr_reader :id_number
100
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
101
- attr_reader :livemode
102
- # String representing the object's type. Objects of the same type share the same value.
103
- attr_reader :object
104
- # Attribute for field options
105
- attr_reader :options
106
- # Result from a phone check
107
- attr_reader :phone
108
- # Result from a selfie check
109
- attr_reader :selfie
110
- # Type of report.
111
- attr_reader :type
112
- # The configuration token of a verification flow from the dashboard.
113
- attr_reader :verification_flow
114
- # ID of the VerificationSession that created this report.
115
- attr_reader :verification_session
116
-
117
25
  # List all verification reports.
118
- def self.list(filters = {}, opts = {})
26
+ def self.list(params = {}, opts = {})
119
27
  request_stripe_object(
120
28
  method: :get,
121
29
  path: "/v1/identity/verification_reports",
122
- params: filters,
30
+ params: params,
123
31
  opts: opts
124
32
  )
125
33
  end
@@ -24,82 +24,6 @@ module Stripe
24
24
  "identity.verification_session"
25
25
  end
26
26
 
27
- class LastError < Stripe::StripeObject
28
- attr_reader :code, :reason
29
- end
30
-
31
- class Options < Stripe::StripeObject
32
- class Document < Stripe::StripeObject
33
- attr_reader :allowed_types, :require_id_number, :require_live_capture, :require_matching_selfie
34
- end
35
-
36
- class Email < Stripe::StripeObject
37
- attr_reader :require_verification
38
- end
39
-
40
- class IdNumber < Stripe::StripeObject; end
41
-
42
- class Phone < Stripe::StripeObject
43
- attr_reader :require_verification
44
- end
45
- attr_reader :document, :email, :id_number, :phone
46
- end
47
-
48
- class ProvidedDetails < Stripe::StripeObject
49
- attr_reader :email, :phone
50
- end
51
-
52
- class Redaction < Stripe::StripeObject
53
- attr_reader :status
54
- end
55
-
56
- class VerifiedOutputs < Stripe::StripeObject
57
- class Address < Stripe::StripeObject
58
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
59
- end
60
-
61
- class Dob < Stripe::StripeObject
62
- attr_reader :day, :month, :year
63
- end
64
- attr_reader :address, :dob, :email, :first_name, :id_number, :id_number_type, :last_name, :phone
65
- end
66
- # A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems.
67
- attr_reader :client_reference_id
68
- # The short-lived client secret used by Stripe.js to [show a verification modal](https://stripe.com/docs/js/identity/modal) inside your app. This client secret expires after 24 hours and can only be used once. Don’t store it, log it, embed it in a URL, or expose it to anyone other than the user. Make sure that you have TLS enabled on any page that includes the client secret. Refer to our docs on [passing the client secret to the frontend](https://stripe.com/docs/identity/verification-sessions#client-secret) to learn more.
69
- attr_reader :client_secret
70
- # Time at which the object was created. Measured in seconds since the Unix epoch.
71
- attr_reader :created
72
- # Unique identifier for the object.
73
- attr_reader :id
74
- # If present, this property tells you the last error encountered when processing the verification.
75
- attr_reader :last_error
76
- # ID of the most recent VerificationReport. [Learn more about accessing detailed verification results.](https://stripe.com/docs/identity/verification-sessions#results)
77
- attr_reader :last_verification_report
78
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
79
- attr_reader :livemode
80
- # 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.
81
- attr_reader :metadata
82
- # String representing the object's type. Objects of the same type share the same value.
83
- attr_reader :object
84
- # A set of options for the session’s verification checks.
85
- attr_reader :options
86
- # Details provided about the user being verified. These details may be shown to the user.
87
- attr_reader :provided_details
88
- # Redaction status of this VerificationSession. If the VerificationSession is not redacted, this field will be null.
89
- attr_reader :redaction
90
- # Token referencing a Customer resource.
91
- attr_reader :related_customer
92
- # Status of this VerificationSession. [Learn more about the lifecycle of sessions](https://stripe.com/docs/identity/how-sessions-work).
93
- attr_reader :status
94
- # The type of [verification check](https://stripe.com/docs/identity/verification-checks) to be performed.
95
- attr_reader :type
96
- # The short-lived URL that you use to redirect a user to Stripe to submit their identity information. This URL expires after 48 hours and can only be used once. Don’t store it, log it, send it in emails or expose it to anyone other than the user. Refer to our docs on [verifying identity documents](https://stripe.com/docs/identity/verify-identity-documents?platform=web&type=redirect) to learn how to redirect users to Stripe.
97
- attr_reader :url
98
- # The configuration token of a verification flow from the dashboard.
99
- attr_reader :verification_flow
100
- # The user’s verified data.
101
- attr_reader :verified_outputs
102
-
103
27
  # A VerificationSession object can be canceled when it is in requires_input [status](https://stripe.com/docs/identity/how-sessions-work).
104
28
  #
105
29
  # Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://stripe.com/docs/identity/verification-sessions#cancel).
@@ -141,11 +65,11 @@ module Stripe
141
65
  end
142
66
 
143
67
  # Returns a list of VerificationSessions
144
- def self.list(filters = {}, opts = {})
68
+ def self.list(params = {}, opts = {})
145
69
  request_stripe_object(
146
70
  method: :get,
147
71
  path: "/v1/identity/verification_sessions",
148
- params: filters,
72
+ params: params,
149
73
  opts: opts
150
74
  )
151
75
  end