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
@@ -13,44 +13,6 @@ module Stripe
13
13
  "treasury.debit_reversal"
14
14
  end
15
15
 
16
- class LinkedFlows < Stripe::StripeObject
17
- attr_reader :issuing_dispute
18
- end
19
-
20
- class StatusTransitions < Stripe::StripeObject
21
- attr_reader :completed_at
22
- end
23
- # Amount (in cents) transferred.
24
- attr_reader :amount
25
- # Time at which the object was created. Measured in seconds since the Unix epoch.
26
- attr_reader :created
27
- # 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).
28
- attr_reader :currency
29
- # The FinancialAccount to reverse funds from.
30
- attr_reader :financial_account
31
- # A [hosted transaction receipt](https://stripe.com/docs/treasury/moving-money/regulatory-receipts) URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
32
- attr_reader :hosted_regulatory_receipt_url
33
- # Unique identifier for the object.
34
- attr_reader :id
35
- # Other flows linked to a DebitReversal.
36
- attr_reader :linked_flows
37
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
38
- attr_reader :livemode
39
- # 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.
40
- attr_reader :metadata
41
- # The rails used to reverse the funds.
42
- attr_reader :network
43
- # String representing the object's type. Objects of the same type share the same value.
44
- attr_reader :object
45
- # The ReceivedDebit being reversed.
46
- attr_reader :received_debit
47
- # Status of the DebitReversal
48
- attr_reader :status
49
- # Attribute for field status_transitions
50
- attr_reader :status_transitions
51
- # The Transaction associated with this object.
52
- attr_reader :transaction
53
-
54
16
  # Reverses a ReceivedDebit and creates a DebitReversal object.
55
17
  def self.create(params = {}, opts = {})
56
18
  request_stripe_object(
@@ -62,11 +24,11 @@ module Stripe
62
24
  end
63
25
 
64
26
  # Returns a list of DebitReversals.
65
- def self.list(filters = {}, opts = {})
27
+ def self.list(params = {}, opts = {})
66
28
  request_stripe_object(
67
29
  method: :get,
68
30
  path: "/v1/treasury/debit_reversals",
69
- params: filters,
31
+ params: params,
70
32
  opts: opts
71
33
  )
72
34
  end
@@ -15,63 +15,6 @@ module Stripe
15
15
  "treasury.financial_account"
16
16
  end
17
17
 
18
- class Balance < Stripe::StripeObject
19
- attr_reader :cash, :inbound_pending, :outbound_pending
20
- end
21
-
22
- class FinancialAddress < Stripe::StripeObject
23
- class Aba < Stripe::StripeObject
24
- attr_reader :account_holder_name, :account_number, :account_number_last4, :bank_name, :routing_number
25
- end
26
- attr_reader :aba, :supported_networks, :type
27
- end
28
-
29
- class PlatformRestrictions < Stripe::StripeObject
30
- attr_reader :inbound_flows, :outbound_flows
31
- end
32
-
33
- class StatusDetails < Stripe::StripeObject
34
- class Closed < Stripe::StripeObject
35
- attr_reader :reasons
36
- end
37
- attr_reader :closed
38
- end
39
- # The array of paths to active Features in the Features hash.
40
- attr_reader :active_features
41
- # Balance information for the FinancialAccount
42
- attr_reader :balance
43
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
44
- attr_reader :country
45
- # Time at which the object was created. Measured in seconds since the Unix epoch.
46
- attr_reader :created
47
- # The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike the `nickname` field, `display_name` is not internal metadata and will be exposed to connected accounts.
48
- attr_reader :display_name
49
- # Encodes whether a FinancialAccount has access to a particular Feature, with a `status` enum and associated `status_details`.
50
- # Stripe or the platform can control Features via the requested field.
51
- attr_reader :features
52
- # The set of credentials that resolve to a FinancialAccount.
53
- attr_reader :financial_addresses
54
- # Unique identifier for the object.
55
- attr_reader :id
56
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
57
- attr_reader :livemode
58
- # 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.
59
- attr_reader :metadata
60
- # String representing the object's type. Objects of the same type share the same value.
61
- attr_reader :object
62
- # The array of paths to pending Features in the Features hash.
63
- attr_reader :pending_features
64
- # The set of functionalities that the platform can restrict on the FinancialAccount.
65
- attr_reader :platform_restrictions
66
- # The array of paths to restricted Features in the Features hash.
67
- attr_reader :restricted_features
68
- # Status of this FinancialAccount.
69
- attr_reader :status
70
- # Attribute for field status_details
71
- attr_reader :status_details
72
- # The currencies the FinancialAccount can hold a balance in. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
73
- attr_reader :supported_currencies
74
-
75
18
  # Creates a new FinancialAccount. For now, each connected account can only have one FinancialAccount.
76
19
  def self.create(params = {}, opts = {})
77
20
  request_stripe_object(
@@ -83,11 +26,11 @@ module Stripe
83
26
  end
84
27
 
85
28
  # Returns a list of FinancialAccounts.
86
- def self.list(filters = {}, opts = {})
29
+ def self.list(params = {}, opts = {})
87
30
  request_stripe_object(
88
31
  method: :get,
89
32
  path: "/v1/treasury/financial_accounts",
90
- params: filters,
33
+ params: params,
91
34
  opts: opts
92
35
  )
93
36
  end
@@ -10,97 +10,6 @@ module Stripe
10
10
  def self.object_name
11
11
  "treasury.financial_account_features"
12
12
  end
13
-
14
- class CardIssuing < Stripe::StripeObject
15
- class StatusDetail < Stripe::StripeObject
16
- attr_reader :code, :resolution, :restriction
17
- end
18
- attr_reader :requested, :status, :status_details
19
- end
20
-
21
- class DepositInsurance < Stripe::StripeObject
22
- class StatusDetail < Stripe::StripeObject
23
- attr_reader :code, :resolution, :restriction
24
- end
25
- attr_reader :requested, :status, :status_details
26
- end
27
-
28
- class FinancialAddresses < Stripe::StripeObject
29
- class Aba < Stripe::StripeObject
30
- class StatusDetail < Stripe::StripeObject
31
- attr_reader :code, :resolution, :restriction
32
- end
33
- attr_reader :bank, :requested, :status, :status_details
34
- end
35
- attr_reader :aba
36
- end
37
-
38
- class InboundTransfers < Stripe::StripeObject
39
- class Ach < Stripe::StripeObject
40
- class StatusDetail < Stripe::StripeObject
41
- attr_reader :code, :resolution, :restriction
42
- end
43
- attr_reader :requested, :status, :status_details
44
- end
45
- attr_reader :ach
46
- end
47
-
48
- class IntraStripeFlows < Stripe::StripeObject
49
- class StatusDetail < Stripe::StripeObject
50
- attr_reader :code, :resolution, :restriction
51
- end
52
- attr_reader :requested, :status, :status_details
53
- end
54
-
55
- class OutboundPayments < Stripe::StripeObject
56
- class Ach < Stripe::StripeObject
57
- class StatusDetail < Stripe::StripeObject
58
- attr_reader :code, :resolution, :restriction
59
- end
60
- attr_reader :requested, :status, :status_details
61
- end
62
-
63
- class UsDomesticWire < Stripe::StripeObject
64
- class StatusDetail < Stripe::StripeObject
65
- attr_reader :code, :resolution, :restriction
66
- end
67
- attr_reader :requested, :status, :status_details
68
- end
69
- attr_reader :ach, :us_domestic_wire
70
- end
71
-
72
- class OutboundTransfers < Stripe::StripeObject
73
- class Ach < Stripe::StripeObject
74
- class StatusDetail < Stripe::StripeObject
75
- attr_reader :code, :resolution, :restriction
76
- end
77
- attr_reader :requested, :status, :status_details
78
- end
79
-
80
- class UsDomesticWire < Stripe::StripeObject
81
- class StatusDetail < Stripe::StripeObject
82
- attr_reader :code, :resolution, :restriction
83
- end
84
- attr_reader :requested, :status, :status_details
85
- end
86
- attr_reader :ach, :us_domestic_wire
87
- end
88
- # Toggle settings for enabling/disabling a feature
89
- attr_reader :card_issuing
90
- # Toggle settings for enabling/disabling a feature
91
- attr_reader :deposit_insurance
92
- # Settings related to Financial Addresses features on a Financial Account
93
- attr_reader :financial_addresses
94
- # InboundTransfers contains inbound transfers features for a FinancialAccount.
95
- attr_reader :inbound_transfers
96
- # Toggle settings for enabling/disabling a feature
97
- attr_reader :intra_stripe_flows
98
- # String representing the object's type. Objects of the same type share the same value.
99
- attr_reader :object
100
- # Settings related to Outbound Payments features on a Financial Account
101
- attr_reader :outbound_payments
102
- # OutboundTransfers contains outbound transfers features for a FinancialAccount.
103
- attr_reader :outbound_transfers
104
13
  end
105
14
  end
106
15
  end
@@ -15,72 +15,6 @@ module Stripe
15
15
  "treasury.inbound_transfer"
16
16
  end
17
17
 
18
- class FailureDetails < Stripe::StripeObject
19
- attr_reader :code
20
- end
21
-
22
- class LinkedFlows < Stripe::StripeObject
23
- attr_reader :received_debit
24
- end
25
-
26
- class OriginPaymentMethodDetails < Stripe::StripeObject
27
- class BillingDetails < Stripe::StripeObject
28
- class Address < Stripe::StripeObject
29
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
30
- end
31
- attr_reader :address, :email, :name
32
- end
33
-
34
- class UsBankAccount < Stripe::StripeObject
35
- attr_reader :account_holder_type, :account_type, :bank_name, :fingerprint, :last4, :mandate, :network, :routing_number
36
- end
37
- attr_reader :billing_details, :type, :us_bank_account
38
- end
39
-
40
- class StatusTransitions < Stripe::StripeObject
41
- attr_reader :canceled_at, :failed_at, :succeeded_at
42
- end
43
- # Amount (in cents) transferred.
44
- attr_reader :amount
45
- # Returns `true` if the InboundTransfer is able to be canceled.
46
- attr_reader :cancelable
47
- # Time at which the object was created. Measured in seconds since the Unix epoch.
48
- attr_reader :created
49
- # 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).
50
- attr_reader :currency
51
- # An arbitrary string attached to the object. Often useful for displaying to users.
52
- attr_reader :description
53
- # Details about this InboundTransfer's failure. Only set when status is `failed`.
54
- attr_reader :failure_details
55
- # The FinancialAccount that received the funds.
56
- attr_reader :financial_account
57
- # A [hosted transaction receipt](https://stripe.com/docs/treasury/moving-money/regulatory-receipts) URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
58
- attr_reader :hosted_regulatory_receipt_url
59
- # Unique identifier for the object.
60
- attr_reader :id
61
- # Attribute for field linked_flows
62
- attr_reader :linked_flows
63
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
64
- attr_reader :livemode
65
- # 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.
66
- attr_reader :metadata
67
- # String representing the object's type. Objects of the same type share the same value.
68
- attr_reader :object
69
- # The origin payment method to be debited for an InboundTransfer.
70
- attr_reader :origin_payment_method
71
- # Details about the PaymentMethod for an InboundTransfer.
72
- attr_reader :origin_payment_method_details
73
- # Returns `true` if the funds for an InboundTransfer were returned after the InboundTransfer went to the `succeeded` state.
74
- attr_reader :returned
75
- # Statement descriptor shown when funds are debited from the source. Not all payment networks support `statement_descriptor`.
76
- attr_reader :statement_descriptor
77
- # Status of the InboundTransfer: `processing`, `succeeded`, `failed`, and `canceled`. An InboundTransfer is `processing` if it is created and pending. The status changes to `succeeded` once the funds have been "confirmed" and a `transaction` is created and posted. The status changes to `failed` if the transfer fails.
78
- attr_reader :status
79
- # Attribute for field status_transitions
80
- attr_reader :status_transitions
81
- # The Transaction associated with this object.
82
- attr_reader :transaction
83
-
84
18
  # Cancels an InboundTransfer.
85
19
  def cancel(params = {}, opts = {})
86
20
  request_stripe_object(
@@ -112,11 +46,11 @@ module Stripe
112
46
  end
113
47
 
114
48
  # Returns a list of InboundTransfers sent from the specified FinancialAccount.
115
- def self.list(filters = {}, opts = {})
49
+ def self.list(params = {}, opts = {})
116
50
  request_stripe_object(
117
51
  method: :get,
118
52
  path: "/v1/treasury/inbound_transfers",
119
- params: filters,
53
+ params: params,
120
54
  opts: opts
121
55
  )
122
56
  end
@@ -17,91 +17,6 @@ module Stripe
17
17
  "treasury.outbound_payment"
18
18
  end
19
19
 
20
- class DestinationPaymentMethodDetails < Stripe::StripeObject
21
- class BillingDetails < Stripe::StripeObject
22
- class Address < Stripe::StripeObject
23
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
24
- end
25
- attr_reader :address, :email, :name
26
- end
27
-
28
- class FinancialAccount < Stripe::StripeObject
29
- attr_reader :id, :network
30
- end
31
-
32
- class UsBankAccount < Stripe::StripeObject
33
- attr_reader :account_holder_type, :account_type, :bank_name, :fingerprint, :last4, :mandate, :network, :routing_number
34
- end
35
- attr_reader :billing_details, :financial_account, :type, :us_bank_account
36
- end
37
-
38
- class EndUserDetails < Stripe::StripeObject
39
- attr_reader :ip_address, :present
40
- end
41
-
42
- class ReturnedDetails < Stripe::StripeObject
43
- attr_reader :code, :transaction
44
- end
45
-
46
- class StatusTransitions < Stripe::StripeObject
47
- attr_reader :canceled_at, :failed_at, :posted_at, :returned_at
48
- end
49
-
50
- class TrackingDetails < Stripe::StripeObject
51
- class Ach < Stripe::StripeObject
52
- attr_reader :trace_id
53
- end
54
-
55
- class UsDomesticWire < Stripe::StripeObject
56
- attr_reader :chips, :imad, :omad
57
- end
58
- attr_reader :ach, :type, :us_domestic_wire
59
- end
60
- # Amount (in cents) transferred.
61
- attr_reader :amount
62
- # Returns `true` if the object can be canceled, and `false` otherwise.
63
- attr_reader :cancelable
64
- # Time at which the object was created. Measured in seconds since the Unix epoch.
65
- attr_reader :created
66
- # 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).
67
- attr_reader :currency
68
- # ID of the [customer](https://stripe.com/docs/api/customers) to whom an OutboundPayment is sent.
69
- attr_reader :customer
70
- # An arbitrary string attached to the object. Often useful for displaying to users.
71
- attr_reader :description
72
- # The PaymentMethod via which an OutboundPayment is sent. This field can be empty if the OutboundPayment was created using `destination_payment_method_data`.
73
- attr_reader :destination_payment_method
74
- # Details about the PaymentMethod for an OutboundPayment.
75
- attr_reader :destination_payment_method_details
76
- # Details about the end user.
77
- attr_reader :end_user_details
78
- # The date when funds are expected to arrive in the destination account.
79
- attr_reader :expected_arrival_date
80
- # The FinancialAccount that funds were pulled from.
81
- attr_reader :financial_account
82
- # A [hosted transaction receipt](https://stripe.com/docs/treasury/moving-money/regulatory-receipts) URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
83
- attr_reader :hosted_regulatory_receipt_url
84
- # Unique identifier for the object.
85
- attr_reader :id
86
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
87
- attr_reader :livemode
88
- # 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.
89
- attr_reader :metadata
90
- # String representing the object's type. Objects of the same type share the same value.
91
- attr_reader :object
92
- # Details about a returned OutboundPayment. Only set when the status is `returned`.
93
- attr_reader :returned_details
94
- # The description that appears on the receiving end for an OutboundPayment (for example, bank statement for external bank transfer).
95
- attr_reader :statement_descriptor
96
- # Current status of the OutboundPayment: `processing`, `failed`, `posted`, `returned`, `canceled`. An OutboundPayment is `processing` if it has been created and is pending. The status changes to `posted` once the OutboundPayment has been "confirmed" and funds have left the account, or to `failed` or `canceled`. If an OutboundPayment fails to arrive at its destination, its status will change to `returned`.
97
- attr_reader :status
98
- # Attribute for field status_transitions
99
- attr_reader :status_transitions
100
- # Details about network-specific tracking information if available.
101
- attr_reader :tracking_details
102
- # The Transaction associated with this object.
103
- attr_reader :transaction
104
-
105
20
  # Cancel an OutboundPayment.
106
21
  def cancel(params = {}, opts = {})
107
22
  request_stripe_object(
@@ -133,11 +48,11 @@ module Stripe
133
48
  end
134
49
 
135
50
  # Returns a list of OutboundPayments sent from the specified FinancialAccount.
136
- def self.list(filters = {}, opts = {})
51
+ def self.list(params = {}, opts = {})
137
52
  request_stripe_object(
138
53
  method: :get,
139
54
  path: "/v1/treasury/outbound_payments",
140
- params: filters,
55
+ params: params,
141
56
  opts: opts
142
57
  )
143
58
  end
@@ -17,88 +17,6 @@ module Stripe
17
17
  "treasury.outbound_transfer"
18
18
  end
19
19
 
20
- class DestinationPaymentMethodDetails < Stripe::StripeObject
21
- class BillingDetails < Stripe::StripeObject
22
- class Address < Stripe::StripeObject
23
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
24
- end
25
- attr_reader :address, :email, :name
26
- end
27
-
28
- class UsBankAccount < Stripe::StripeObject
29
- attr_reader :account_holder_type, :account_type, :bank_name, :fingerprint, :last4, :mandate, :network, :routing_number
30
- end
31
- attr_reader :billing_details, :type, :us_bank_account
32
- end
33
-
34
- class NetworkDetails < Stripe::StripeObject
35
- class Ach < Stripe::StripeObject
36
- attr_reader :addenda
37
- end
38
- attr_reader :ach, :type
39
- end
40
-
41
- class ReturnedDetails < Stripe::StripeObject
42
- attr_reader :code, :transaction
43
- end
44
-
45
- class StatusTransitions < Stripe::StripeObject
46
- attr_reader :canceled_at, :failed_at, :posted_at, :returned_at
47
- end
48
-
49
- class TrackingDetails < Stripe::StripeObject
50
- class Ach < Stripe::StripeObject
51
- attr_reader :trace_id
52
- end
53
-
54
- class UsDomesticWire < Stripe::StripeObject
55
- attr_reader :chips, :imad, :omad
56
- end
57
- attr_reader :ach, :type, :us_domestic_wire
58
- end
59
- # Amount (in cents) transferred.
60
- attr_reader :amount
61
- # Returns `true` if the object can be canceled, and `false` otherwise.
62
- attr_reader :cancelable
63
- # Time at which the object was created. Measured in seconds since the Unix epoch.
64
- attr_reader :created
65
- # 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).
66
- attr_reader :currency
67
- # An arbitrary string attached to the object. Often useful for displaying to users.
68
- attr_reader :description
69
- # The PaymentMethod used as the payment instrument for an OutboundTransfer.
70
- attr_reader :destination_payment_method
71
- # Attribute for field destination_payment_method_details
72
- attr_reader :destination_payment_method_details
73
- # The date when funds are expected to arrive in the destination account.
74
- attr_reader :expected_arrival_date
75
- # The FinancialAccount that funds were pulled from.
76
- attr_reader :financial_account
77
- # A [hosted transaction receipt](https://stripe.com/docs/treasury/moving-money/regulatory-receipts) URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
78
- attr_reader :hosted_regulatory_receipt_url
79
- # Unique identifier for the object.
80
- attr_reader :id
81
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
82
- attr_reader :livemode
83
- # 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.
84
- attr_reader :metadata
85
- # Details about the network used for the OutboundTransfer.
86
- attr_reader :network_details
87
- # String representing the object's type. Objects of the same type share the same value.
88
- attr_reader :object
89
- # Details about a returned OutboundTransfer. Only set when the status is `returned`.
90
- attr_reader :returned_details
91
- # Information about the OutboundTransfer to be sent to the recipient account.
92
- attr_reader :statement_descriptor
93
- # Current status of the OutboundTransfer: `processing`, `failed`, `canceled`, `posted`, `returned`. An OutboundTransfer is `processing` if it has been created and is pending. The status changes to `posted` once the OutboundTransfer has been "confirmed" and funds have left the account, or to `failed` or `canceled`. If an OutboundTransfer fails to arrive at its destination, its status will change to `returned`.
94
- attr_reader :status
95
- # Attribute for field status_transitions
96
- attr_reader :status_transitions
97
- # Details about network-specific tracking information if available.
98
- attr_reader :tracking_details
99
- # The Transaction associated with this object.
100
- attr_reader :transaction
101
-
102
20
  # An OutboundTransfer can be canceled if the funds have not yet been paid out.
103
21
  def cancel(params = {}, opts = {})
104
22
  request_stripe_object(
@@ -130,11 +48,11 @@ module Stripe
130
48
  end
131
49
 
132
50
  # Returns a list of OutboundTransfers sent from the specified FinancialAccount.
133
- def self.list(filters = {}, opts = {})
51
+ def self.list(params = {}, opts = {})
134
52
  request_stripe_object(
135
53
  method: :get,
136
54
  path: "/v1/treasury/outbound_transfers",
137
- params: filters,
55
+ params: params,
138
56
  opts: opts
139
57
  )
140
58
  end
@@ -12,82 +12,12 @@ module Stripe
12
12
  "treasury.received_credit"
13
13
  end
14
14
 
15
- class InitiatingPaymentMethodDetails < Stripe::StripeObject
16
- class BillingDetails < Stripe::StripeObject
17
- class Address < Stripe::StripeObject
18
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
19
- end
20
- attr_reader :address, :email, :name
21
- end
22
-
23
- class FinancialAccount < Stripe::StripeObject
24
- attr_reader :id, :network
25
- end
26
-
27
- class UsBankAccount < Stripe::StripeObject
28
- attr_reader :bank_name, :last4, :routing_number
29
- end
30
- attr_reader :balance, :billing_details, :financial_account, :issuing_card, :type, :us_bank_account
31
- end
32
-
33
- class LinkedFlows < Stripe::StripeObject
34
- class SourceFlowDetails < Stripe::StripeObject
35
- attr_reader :credit_reversal, :outbound_payment, :payout, :type
36
- end
37
- attr_reader :credit_reversal, :issuing_authorization, :issuing_transaction, :source_flow, :source_flow_details, :source_flow_type
38
- end
39
-
40
- class NetworkDetails < Stripe::StripeObject
41
- class Ach < Stripe::StripeObject
42
- attr_reader :addenda
43
- end
44
- attr_reader :ach, :type
45
- end
46
-
47
- class ReversalDetails < Stripe::StripeObject
48
- attr_reader :deadline, :restricted_reason
49
- end
50
- # Amount (in cents) transferred.
51
- attr_reader :amount
52
- # Time at which the object was created. Measured in seconds since the Unix epoch.
53
- attr_reader :created
54
- # 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).
55
- attr_reader :currency
56
- # An arbitrary string attached to the object. Often useful for displaying to users.
57
- attr_reader :description
58
- # Reason for the failure. A ReceivedCredit might fail because the receiving FinancialAccount is closed or frozen.
59
- attr_reader :failure_code
60
- # The FinancialAccount that received the funds.
61
- attr_reader :financial_account
62
- # A [hosted transaction receipt](https://stripe.com/docs/treasury/moving-money/regulatory-receipts) URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
63
- attr_reader :hosted_regulatory_receipt_url
64
- # Unique identifier for the object.
65
- attr_reader :id
66
- # Attribute for field initiating_payment_method_details
67
- attr_reader :initiating_payment_method_details
68
- # Attribute for field linked_flows
69
- attr_reader :linked_flows
70
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
71
- attr_reader :livemode
72
- # The rails used to send the funds.
73
- attr_reader :network
74
- # Details specific to the money movement rails.
75
- attr_reader :network_details
76
- # String representing the object's type. Objects of the same type share the same value.
77
- attr_reader :object
78
- # Details describing when a ReceivedCredit may be reversed.
79
- attr_reader :reversal_details
80
- # Status of the ReceivedCredit. ReceivedCredits are created either `succeeded` (approved) or `failed` (declined). If a ReceivedCredit is declined, the failure reason can be found in the `failure_code` field.
81
- attr_reader :status
82
- # The Transaction associated with this object.
83
- attr_reader :transaction
84
-
85
15
  # Returns a list of ReceivedCredits.
86
- def self.list(filters = {}, opts = {})
16
+ def self.list(params = {}, opts = {})
87
17
  request_stripe_object(
88
18
  method: :get,
89
19
  path: "/v1/treasury/received_credits",
90
- params: filters,
20
+ params: params,
91
21
  opts: opts
92
22
  )
93
23
  end