stripe 21.2.0.pre.alpha.1 → 21.2.0.pre.alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_operations/singleton_save.rb +4 -4
  3. data/lib/stripe/api_version.rb +1 -1
  4. data/lib/stripe/event_types.rb +22 -0
  5. data/lib/stripe/events/v2_money_management_dispute_adjustment_created_event.rb +44 -0
  6. data/lib/stripe/events/v2_money_management_dispute_created_event.rb +44 -0
  7. data/lib/stripe/events/v2_money_management_dispute_lost_event.rb +44 -0
  8. data/lib/stripe/events/v2_money_management_dispute_updated_event.rb +44 -0
  9. data/lib/stripe/events/v2_money_management_dispute_won_event.rb +44 -0
  10. data/lib/stripe/events/v2_risk_evaluation_outcome_delinquency_ready_event.rb +44 -0
  11. data/lib/stripe/object_types.rb +3 -0
  12. data/lib/stripe/params/balance_transaction_list_params.rb +2 -2
  13. data/lib/stripe/params/billing_portal/session_create_params.rb +13 -0
  14. data/lib/stripe/params/checkout/session_create_params.rb +208 -4
  15. data/lib/stripe/params/crypto/onramp_session_checkout_params.rb +37 -1
  16. data/lib/stripe/params/crypto/onramp_session_create_params.rb +4 -0
  17. data/lib/stripe/params/customer_create_params.rb +7 -1
  18. data/lib/stripe/params/customer_update_params.rb +7 -1
  19. data/lib/stripe/params/invoice_rendering_template_create_params.rb +14 -2
  20. data/lib/stripe/params/invoice_rendering_template_update_params.rb +14 -2
  21. data/lib/stripe/params/issuing/authorization_create_params.rb +1 -1
  22. data/lib/stripe/params/payment_intent_confirm_params.rb +96 -4
  23. data/lib/stripe/params/payment_intent_create_params.rb +96 -4
  24. data/lib/stripe/params/payment_intent_update_params.rb +96 -4
  25. data/lib/stripe/params/payment_method_configuration_create_params.rb +63 -0
  26. data/lib/stripe/params/payment_method_configuration_update_params.rb +63 -0
  27. data/lib/stripe/params/tax/calculation_create_params.rb +1 -1
  28. data/lib/stripe/params/terminal/configuration_create_params.rb +1 -1
  29. data/lib/stripe/params/terminal/configuration_update_params.rb +1 -1
  30. data/lib/stripe/params/terminal/reader_refund_payment_params.rb +15 -1
  31. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +1 -1
  32. data/lib/stripe/params/v2/billing/contract_create_params.rb +182 -9
  33. data/lib/stripe/params/v2/billing/contract_update_params.rb +328 -16
  34. data/lib/stripe/params/v2/core/account_create_params.rb +432 -3
  35. data/lib/stripe/params/v2/core/account_token_create_params.rb +4 -1
  36. data/lib/stripe/params/v2/core/account_update_params.rb +436 -4
  37. data/lib/stripe/params/v2/core/fee_batch_list_params.rb +7 -1
  38. data/lib/stripe/params/v2/money_management/dispute_adjustment_list_params.rb +23 -0
  39. data/lib/stripe/params/v2/money_management/dispute_adjustment_retrieve_params.rb +10 -0
  40. data/lib/stripe/params/v2/money_management/dispute_create_params.rb +37 -0
  41. data/lib/stripe/params/v2/money_management/dispute_list_params.rb +26 -0
  42. data/lib/stripe/params/v2/money_management/dispute_retrieve_params.rb +10 -0
  43. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +41 -1
  44. data/lib/stripe/params/v2/money_management/inbound_transfer_mandate_create_params.rb +24 -8
  45. data/lib/stripe/params/v2/money_management/spending_mandate_create_params.rb +51 -0
  46. data/lib/stripe/params/v2/money_management/spending_mandate_list_params.rb +4 -1
  47. data/lib/stripe/params/v2/money_management/spending_mandate_update_params.rb +39 -0
  48. data/lib/stripe/params/v2/money_management/test_helpers/financial_address_debit_params.rb +20 -1
  49. data/lib/stripe/params/v2/risk/evaluation_outcome_list_params.rb +34 -0
  50. data/lib/stripe/params/v2/risk/evaluation_outcome_retrieve_params.rb +10 -0
  51. data/lib/stripe/params/v2/test_helpers/money_management/inbound_transfer_fail_params.rb +19 -0
  52. data/lib/stripe/params/v2/test_helpers/money_management/inbound_transfer_succeed_params.rb +12 -0
  53. data/lib/stripe/params.rb +27 -5
  54. data/lib/stripe/resources/billing_portal/session.rb +16 -0
  55. data/lib/stripe/resources/cash_balance.rb +1 -1
  56. data/lib/stripe/resources/charge.rb +32 -0
  57. data/lib/stripe/resources/checkout/session.rb +65 -2
  58. data/lib/stripe/resources/confirmation_token.rb +54 -2
  59. data/lib/stripe/resources/customer.rb +4 -0
  60. data/lib/stripe/resources/customer_tax_exemption.rb +2 -0
  61. data/lib/stripe/resources/dispute.rb +4 -0
  62. data/lib/stripe/resources/identity/verification_report.rb +34 -0
  63. data/lib/stripe/resources/invoice.rb +0 -30
  64. data/lib/stripe/resources/invoice_rendering_template.rb +19 -1
  65. data/lib/stripe/resources/issuing/authorization.rb +18 -0
  66. data/lib/stripe/resources/issuing/card.rb +28 -0
  67. data/lib/stripe/resources/issuing/transaction.rb +18 -0
  68. data/lib/stripe/resources/mandate.rb +65 -0
  69. data/lib/stripe/resources/payment_attempt_record.rb +46 -0
  70. data/lib/stripe/resources/payment_intent.rb +113 -103
  71. data/lib/stripe/resources/payment_link.rb +2 -0
  72. data/lib/stripe/resources/payment_method.rb +53 -1
  73. data/lib/stripe/resources/payment_method_configuration.rb +102 -0
  74. data/lib/stripe/resources/payment_record.rb +46 -0
  75. data/lib/stripe/resources/quote_preview_invoice.rb +0 -30
  76. data/lib/stripe/resources/radar/account_evaluation.rb +36 -2
  77. data/lib/stripe/resources/reserve/plan.rb +1 -1
  78. data/lib/stripe/resources/risk/form.rb +44 -1
  79. data/lib/stripe/resources/setup_attempt.rb +91 -0
  80. data/lib/stripe/resources/setup_intent.rb +1 -1
  81. data/lib/stripe/resources/source.rb +2 -2
  82. data/lib/stripe/resources/subscription.rb +0 -20
  83. data/lib/stripe/resources/tax/calculation.rb +1 -1
  84. data/lib/stripe/resources/tax/form.rb +6 -0
  85. data/lib/stripe/resources/tax/transaction.rb +1 -1
  86. data/lib/stripe/resources/terminal/configuration.rb +1 -1
  87. data/lib/stripe/resources/terminal/onboarding_link.rb +2 -1
  88. data/lib/stripe/resources/terminal/reader.rb +17 -1
  89. data/lib/stripe/resources/test_helpers/test_clock.rb +1 -1
  90. data/lib/stripe/resources/three_d_secure/authentication.rb +1 -1
  91. data/lib/stripe/resources/v2/billing/contract.rb +285 -6
  92. data/lib/stripe/resources/v2/billing/contract_term.rb +133 -6
  93. data/lib/stripe/resources/v2/core/account.rb +2709 -322
  94. data/lib/stripe/resources/v2/core/fee_batch.rb +3 -0
  95. data/lib/stripe/resources/v2/core/fee_entry.rb +33 -3
  96. data/lib/stripe/resources/v2/money_management/dispute.rb +78 -0
  97. data/lib/stripe/resources/v2/money_management/dispute_adjustment.rb +53 -0
  98. data/lib/stripe/resources/v2/money_management/financial_account.rb +45 -0
  99. data/lib/stripe/resources/v2/money_management/inbound_transfer_mandate.rb +6 -4
  100. data/lib/stripe/resources/v2/money_management/received_debit.rb +27 -1
  101. data/lib/stripe/resources/v2/money_management/spending_mandate.rb +18 -2
  102. data/lib/stripe/resources/v2/money_management/transaction.rb +2 -0
  103. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +2 -0
  104. data/lib/stripe/resources/v2/risk/evaluation_outcome.rb +305 -0
  105. data/lib/stripe/resources/v2/signals/account_evaluation.rb +34 -0
  106. data/lib/stripe/resources/v2/signals/account_signal.rb +23 -0
  107. data/lib/stripe/resources.rb +30 -0
  108. data/lib/stripe/services/checkout/session_service.rb +1 -1
  109. data/lib/stripe/services/payment_intent_service.rb +0 -11
  110. data/lib/stripe/services/risk/form_service.rb +44 -1
  111. data/lib/stripe/services/subscription_service.rb +0 -11
  112. data/lib/stripe/services/terminal/onboarding_link_service.rb +1 -0
  113. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +1 -1
  114. data/lib/stripe/services/v2/core/fee_batch_service.rb +4 -1
  115. data/lib/stripe/services/v2/core/fee_entry_service.rb +3 -1
  116. data/lib/stripe/services/v2/money_management/debit_dispute_service.rb +1 -0
  117. data/lib/stripe/services/v2/money_management/dispute_adjustment_service.rb +32 -0
  118. data/lib/stripe/services/v2/money_management/dispute_service.rb +46 -0
  119. data/lib/stripe/services/v2/money_management/inbound_transfer_mandate_service.rb +6 -3
  120. data/lib/stripe/services/v2/money_management/spending_mandate_service.rb +26 -0
  121. data/lib/stripe/services/v2/money_management_service.rb +3 -1
  122. data/lib/stripe/services/v2/risk/evaluation_outcome_service.rb +32 -0
  123. data/lib/stripe/services/v2/risk_service.rb +2 -1
  124. data/lib/stripe/services/v2/test_helpers/money_management/inbound_transfer_service.rb +34 -0
  125. data/lib/stripe/services/v2/test_helpers/money_management_service.rb +8 -0
  126. data/lib/stripe/services.rb +11 -0
  127. data/lib/stripe/stripe_client.rb +1 -1
  128. data/lib/stripe/stripe_event_notification_handler.rb +24 -0
  129. data/lib/stripe/stripe_object.rb +14 -4
  130. data/lib/stripe/util.rb +21 -2
  131. data/lib/stripe/v2_type_coercion.rb +6 -2
  132. data/lib/stripe/version.rb +1 -1
  133. data/lib/stripe/webhook.rb +1 -0
  134. data/rbi/stripe.rbi +8211 -782
  135. metadata +26 -4
  136. data/lib/stripe/params/payment_intent_update_crypto_refund_address_params.rb +0 -19
  137. data/lib/stripe/params/subscription_attach_cadence_params.rb +0 -16
@@ -138,6 +138,9 @@ module Stripe
138
138
  class StatusTransitions < ::Stripe::StripeObject
139
139
  # Timestamp of when the batch transitioned to BILLED, if applicable.
140
140
  attr_reader :billed_at
141
+ # Present only when `status=canceled`;
142
+ # `billed_at` and `canceled_at` are mutually exclusive.
143
+ attr_reader :canceled_at
141
144
 
142
145
  def self.inner_class_types
143
146
  @inner_class_types = {}
@@ -4,7 +4,9 @@
4
4
  module Stripe
5
5
  module V2
6
6
  module Core
7
- # A FeeEntry is the atomic, append-only record of an assessed fee.
7
+ # A FeeEntry is an atomic record of an assessed fee. Its assessment attributes are
8
+ # immutable, while its FeeBatch association and derived status can change as the fee
9
+ # progresses through billing.
8
10
  class FeeEntry < APIResource
9
11
  OBJECT_NAME = "v2.core.fee_entry"
10
12
  def self.object_name
@@ -53,6 +55,19 @@ module Stripe
53
55
  end
54
56
  end
55
57
 
58
+ class SharedPaymentTokenIssuer < ::Stripe::StripeObject
59
+ # Human-readable product name, e.g. "Card payments - Stripe fee".
60
+ attr_reader :feature_name
61
+
62
+ def self.inner_class_types
63
+ @inner_class_types = {}
64
+ end
65
+
66
+ def self.field_remappings
67
+ @field_remappings = {}
68
+ end
69
+ end
70
+
56
71
  class Stripe < ::Stripe::StripeObject
57
72
  # Human-readable product name, e.g. "Card payments - Stripe fee".
58
73
  attr_reader :feature_name
@@ -69,13 +84,20 @@ module Stripe
69
84
  attr_reader :application
70
85
  # Details for a fee charged by the payment network.
71
86
  attr_reader :network
87
+ # Details for a referral fee charged by a Shared Payment Token issuer.
88
+ attr_reader :shared_payment_token_issuer
72
89
  # Details for a fee charged by Stripe.
73
90
  attr_reader :stripe
74
91
  # The type of entity that charged this fee.
75
92
  attr_reader :type
76
93
 
77
94
  def self.inner_class_types
78
- @inner_class_types = { application: Application, network: Network, stripe: Stripe }
95
+ @inner_class_types = {
96
+ application: Application,
97
+ network: Network,
98
+ shared_payment_token_issuer: SharedPaymentTokenIssuer,
99
+ stripe: Stripe,
100
+ }
79
101
  end
80
102
 
81
103
  def self.field_remappings
@@ -134,7 +156,10 @@ module Stripe
134
156
  attr_reader :charged_by
135
157
  # Timestamp of when this fee entry was created.
136
158
  attr_reader :created
137
- # The ID of the FeeBatch that collected this fee, if any.
159
+ # The ID of the FeeBatch currently assigned to collect this fee, if any. If Stripe
160
+ # cancels the assigned FeeBatch before billing, Stripe reassigns the FeeEntry to a
161
+ # replacement FeeBatch. During reassociation, this field can temporarily continue
162
+ # to reference the canceled FeeBatch.
138
163
  attr_reader :fee_batch
139
164
  # Unique identifier for the FeeEntry.
140
165
  attr_reader :id
@@ -146,6 +171,11 @@ module Stripe
146
171
  attr_reader :object
147
172
  # The reason this fee entry was created.
148
173
  attr_reader :reason
174
+ # The current billing status of the fee. Every FeeEntry eventually transitions
175
+ # from `assessed` to `billed` when its associated FeeBatch is billed. While
176
+ # `assessed`, its FeeBatch association can change if the assigned batch is canceled.
177
+ # Once `billed`, the status and FeeBatch association are terminal.
178
+ attr_reader :status
149
179
  # The tax portion of the fee, if applicable.
150
180
  attr_reader :tax
151
181
  # The category of this fee.
@@ -0,0 +1,78 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module MoneyManagement
7
+ # A Dispute tracks a claim challenging a money movement on behalf of a FinancialAccount holder.
8
+ class Dispute < APIResource
9
+ OBJECT_NAME = "v2.money_management.dispute"
10
+ def self.object_name
11
+ "v2.money_management.dispute"
12
+ end
13
+
14
+ class StatusTransitions < ::Stripe::StripeObject
15
+ # The time at which the Dispute became lost. Only present if status == lost.
16
+ attr_reader :lost_at
17
+ # The time at which the Dispute became won. Only present if status == won.
18
+ attr_reader :won_at
19
+
20
+ def self.inner_class_types
21
+ @inner_class_types = {}
22
+ end
23
+
24
+ def self.field_remappings
25
+ @field_remappings = {}
26
+ end
27
+ end
28
+
29
+ class Target < ::Stripe::StripeObject
30
+ # If applicable, the ID of the ReceivedDebit being disputed.
31
+ attr_reader :received_debit
32
+ # The type of money movement being disputed.
33
+ attr_reader :type
34
+
35
+ def self.inner_class_types
36
+ @inner_class_types = {}
37
+ end
38
+
39
+ def self.field_remappings
40
+ @field_remappings = {}
41
+ end
42
+ end
43
+ # The amount and currency of the disputed money movement.
44
+ attr_reader :amount
45
+ # The time at which the dispute was created.
46
+ attr_reader :created
47
+ # Additional explanation for the dispute, if supplied.
48
+ attr_reader :explanation
49
+ # The FinancialAccount associated with the disputed money movement.
50
+ attr_reader :financial_account
51
+ # Unique identifier for the Dispute.
52
+ attr_reader :id
53
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
54
+ attr_reader :livemode
55
+ # Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
56
+ attr_reader :metadata
57
+ # String representing the object's type. Objects of the same type share the same value of the object field.
58
+ attr_reader :object
59
+ # The FinancialAccount holder's reason for disputing the money movement.
60
+ attr_reader :reason
61
+ # The current status of the dispute.
62
+ attr_reader :status
63
+ # Timestamps describing when the dispute changed status.
64
+ attr_reader :status_transitions
65
+ # The money movement being disputed.
66
+ attr_reader :target
67
+
68
+ def self.inner_class_types
69
+ @inner_class_types = { status_transitions: StatusTransitions, target: Target }
70
+ end
71
+
72
+ def self.field_remappings
73
+ @field_remappings = {}
74
+ end
75
+ end
76
+ end
77
+ end
78
+ end
@@ -0,0 +1,53 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module MoneyManagement
7
+ # A DisputeAdjustment records a money movement associated with a Dispute.
8
+ class DisputeAdjustment < APIResource
9
+ OBJECT_NAME = "v2.money_management.dispute_adjustment"
10
+ def self.object_name
11
+ "v2.money_management.dispute_adjustment"
12
+ end
13
+
14
+ class RelatedDispute < ::Stripe::StripeObject
15
+ # The ID of the Dispute associated with this DisputeAdjustment. Present when `type` is `dispute`.
16
+ attr_reader :dispute
17
+ # The type of Dispute associated with this DisputeAdjustment.
18
+ attr_reader :type
19
+
20
+ def self.inner_class_types
21
+ @inner_class_types = {}
22
+ end
23
+
24
+ def self.field_remappings
25
+ @field_remappings = {}
26
+ end
27
+ end
28
+ # The amount and currency of the DisputeAdjustment.
29
+ attr_reader :amount
30
+ # The time at which the DisputeAdjustment was created.
31
+ attr_reader :created
32
+ # The ID of the FinancialAccount associated with the DisputeAdjustment.
33
+ attr_reader :financial_account
34
+ # Unique identifier for the DisputeAdjustment.
35
+ attr_reader :id
36
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
37
+ attr_reader :livemode
38
+ # String representing the object's type. Objects of the same type share the same value of the object field.
39
+ attr_reader :object
40
+ # The Dispute associated with this DisputeAdjustment.
41
+ attr_reader :related_dispute
42
+
43
+ def self.inner_class_types
44
+ @inner_class_types = { related_dispute: RelatedDispute }
45
+ end
46
+
47
+ def self.field_remappings
48
+ @field_remappings = {}
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
@@ -84,6 +84,48 @@ module Stripe
84
84
  end
85
85
  end
86
86
 
87
+ class FlowSettings < ::Stripe::StripeObject
88
+ class ReceivedDebits < ::Stripe::StripeObject
89
+ class Ach < ::Stripe::StripeObject
90
+ # Whether ACH received debits are enabled. Defaults to true. Other restrictions still apply.
91
+ attr_reader :enabled
92
+ # Controls whether ACH debits without a matching active SpendingMandate are allowed or rejected
93
+ # Defaults to `optional`. Other restrictions still apply.
94
+ attr_reader :mandate_behavior
95
+ # Account-level per-debit limit. Set to null to clear the limit.
96
+ attr_reader :transaction_limit
97
+
98
+ def self.inner_class_types
99
+ @inner_class_types = {}
100
+ end
101
+
102
+ def self.field_remappings
103
+ @field_remappings = {}
104
+ end
105
+ end
106
+ # Settings for ACH received debits.
107
+ attr_reader :ach
108
+
109
+ def self.inner_class_types
110
+ @inner_class_types = { ach: Ach }
111
+ end
112
+
113
+ def self.field_remappings
114
+ @field_remappings = {}
115
+ end
116
+ end
117
+ # Settings for received debit flows.
118
+ attr_reader :received_debits
119
+
120
+ def self.inner_class_types
121
+ @inner_class_types = { received_debits: ReceivedDebits }
122
+ end
123
+
124
+ def self.field_remappings
125
+ @field_remappings = {}
126
+ end
127
+ end
128
+
87
129
  class MultiprocessorSettlement < ::Stripe::StripeObject
88
130
  # Settlement currencies enabled for this FinancialAccount.
89
131
  attr_reader :settlement_currencies
@@ -368,6 +410,8 @@ module Stripe
368
410
  attr_reader :credit
369
411
  # A descriptive name for the FinancialAccount, up to 50 characters long. This name appears in the Stripe Dashboard and embedded components.
370
412
  attr_reader :display_name
413
+ # Settings that control behavior for money movement flows.
414
+ attr_reader :flow_settings
371
415
  # Unique identifier for the object.
372
416
  attr_reader :id
373
417
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
@@ -401,6 +445,7 @@ module Stripe
401
445
  accrued_fees: AccruedFees,
402
446
  balance: Balance,
403
447
  credit: Credit,
448
+ flow_settings: FlowSettings,
404
449
  multiprocessor_settlement: MultiprocessorSettlement,
405
450
  other: Other,
406
451
  payments: Payments,
@@ -84,8 +84,10 @@ module Stripe
84
84
 
85
85
  class UserAcceptedDetails < ::Stripe::StripeObject
86
86
  class Online < ::Stripe::StripeObject
87
- # The IP address from which the merchant accepted the mandate. For direct account requests,
88
- # derived from the request when not supplied; rejected if obtainable from neither.
87
+ # The IP address from which the merchant accepted the mandate. For connected account
88
+ # requests, you must provide a valid IPv4 or IPv6 address. For direct account requests,
89
+ # Stripe derives the address from the request when you don't supply it and rejects the
90
+ # request if it can't obtain one.
89
91
  attr_reader :ip_address
90
92
  # The user agent of the browser from which the merchant accepted the mandate. For direct
91
93
  # account requests, derived from the request when not supplied.
@@ -99,8 +101,8 @@ module Stripe
99
101
  @field_remappings = {}
100
102
  end
101
103
  end
102
- # When the merchant accepted the mandate. Must be a past timestamp. For direct account
103
- # requests, defaults to the mandate's creation time when not supplied.
104
+ # When the account holder accepted the mandate. Must be in the past.
105
+ # For direct account requests, defaults to the mandate's creation time when not supplied.
104
106
  attr_reader :accepted_at
105
107
  # Optional details for online acceptance.
106
108
  attr_reader :online
@@ -110,6 +110,27 @@ module Stripe
110
110
  end
111
111
  end
112
112
 
113
+ class Iban < ::Stripe::StripeObject
114
+ # The creditor's name.
115
+ attr_reader :account_holder_name
116
+ # The name of the creditor's bank.
117
+ attr_reader :bank_name
118
+ # The Bank Identifier Code (BIC) of the creditor's bank.
119
+ attr_reader :bic
120
+ # Uppercase ISO 3166-1 alpha-2 country code of the creditor's bank account.
121
+ attr_reader :country
122
+ # The creditor's IBAN, masked with X except for the country code and last four characters.
123
+ attr_reader :iban
124
+
125
+ def self.inner_class_types
126
+ @inner_class_types = {}
127
+ end
128
+
129
+ def self.field_remappings
130
+ @field_remappings = {}
131
+ end
132
+ end
133
+
113
134
  class SortCode < ::Stripe::StripeObject
114
135
  # The name of the account holder that originated the debit.
115
136
  attr_reader :account_holder_name
@@ -130,13 +151,15 @@ module Stripe
130
151
  end
131
152
  # Details of the originating account. Present when type is `aba`.
132
153
  attr_reader :aba
154
+ # Creditor details. Present when type is `iban`.
155
+ attr_reader :iban
133
156
  # Details of the originating account. Present when type is `sort_code`.
134
157
  attr_reader :sort_code
135
158
  # The credential type identifying the originating bank account.
136
159
  attr_reader :type
137
160
 
138
161
  def self.inner_class_types
139
- @inner_class_types = { aba: Aba, sort_code: SortCode }
162
+ @inner_class_types = { aba: Aba, iban: Iban, sort_code: SortCode }
140
163
  end
141
164
 
142
165
  def self.field_remappings
@@ -356,6 +379,9 @@ module Stripe
356
379
  attr_reader :description
357
380
  # The dispute details.
358
381
  attr_reader :dispute_details
382
+ # Has the value `true` if the object has an associated Dispute otherwise or the value `false`.
383
+ # Use the Disputes List API with `target` to see details.
384
+ attr_reader :disputed
359
385
  # The amount and currency of the original/external debit request.
360
386
  attr_reader :external_amount
361
387
  # Financial Account on which funds for ReceivedDebit were debited.
@@ -12,17 +12,33 @@ module Stripe
12
12
  end
13
13
 
14
14
  class BankTransfer < ::Stripe::StripeObject
15
+ class Ach < ::Stripe::StripeObject
16
+ # ACH Company ID used to identify the authorized originator.
17
+ attr_reader :originator_company_id
18
+ # Maximum amount authorized for a single debit. If absent, the Financial Account limit applies.
19
+ attr_reader :transaction_limit
20
+
21
+ def self.inner_class_types
22
+ @inner_class_types = {}
23
+ end
24
+
25
+ def self.field_remappings
26
+ @field_remappings = {}
27
+ end
28
+ end
15
29
  # The name of the account holder that initiated the debit.
16
30
  attr_reader :account_holder_name
31
+ # ACH-specific authorization details. Present when `network` is `ach`.
32
+ attr_reader :ach
17
33
  # The financial address associated with this mandate.
18
34
  attr_reader :financial_address
19
35
  # The bank transfer network for this mandate.
20
36
  attr_reader :network
21
- # The bank transfer reference provided by the bank. Only present when `network` is `bacs`.
37
+ # The mandate reference provided by the bank for Bacs or the creditor's unique mandate reference (UMR) for SEPA.
22
38
  attr_reader :reference
23
39
 
24
40
  def self.inner_class_types
25
- @inner_class_types = {}
41
+ @inner_class_types = { ach: Ach }
26
42
  end
27
43
 
28
44
  def self.field_remappings
@@ -59,6 +59,8 @@ module Stripe
59
59
  attr_reader :debit_dispute
60
60
  # If applicable, the ID of the Dispute that created this Transaction.
61
61
  attr_reader :dispute
62
+ # If applicable, the ID of the DisputeAdjustment that created this Transaction.
63
+ attr_reader :dispute_adjustment
62
64
  # If applicable, the ID of the EarnedCredit that created this Transaction.
63
65
  attr_reader :earned_credit
64
66
  # If applicable, the ID of the FeeBatch that created this Transaction.
@@ -46,6 +46,8 @@ module Stripe
46
46
  attr_reader :debit_dispute
47
47
  # If applicable, the ID of the Dispute that created this Transaction.
48
48
  attr_reader :dispute
49
+ # If applicable, the ID of the DisputeAdjustment that created this Transaction.
50
+ attr_reader :dispute_adjustment
49
51
  # If applicable, the ID of the EarnedCredit that created this Transaction.
50
52
  attr_reader :earned_credit
51
53
  # If applicable, the ID of the FeeBatch that created this Transaction.