stripe 21.0.0 → 21.1.0
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.
- checksums.yaml +4 -4
- data/lib/stripe/api_operations/request.rb +16 -7
- data/lib/stripe/api_operations/save.rb +4 -4
- data/lib/stripe/api_requestor.rb +54 -34
- data/lib/stripe/api_resource.rb +1 -2
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/connection_manager.rb +3 -0
- data/lib/stripe/event_types.rb +20 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +2 -2
- data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_updated_event.rb +44 -0
- data/lib/stripe/object_types.rb +1 -0
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +1 -1
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +1 -1
- data/lib/stripe/params/checkout/session_create_params.rb +8 -1
- data/lib/stripe/params/coupon_create_params.rb +1 -1
- data/lib/stripe/params/financial_connections/session_create_params.rb +1 -1
- data/lib/stripe/params/invoice_item_create_params.rb +1 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +663 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +663 -1
- data/lib/stripe/params/payment_intent_create_params.rb +664 -2
- data/lib/stripe/params/payment_intent_update_params.rb +664 -2
- data/lib/stripe/params/payment_link_update_params.rb +4 -0
- data/lib/stripe/params/product_create_params.rb +4 -1
- data/lib/stripe/params/product_update_params.rb +4 -1
- data/lib/stripe/params/quote_create_params.rb +1 -1
- data/lib/stripe/params/quote_update_params.rb +1 -1
- data/lib/stripe/params/reporting/report_run_create_params.rb +4 -0
- data/lib/stripe/params/tax/registration_create_params.rb +13 -1
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +23 -1
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +34 -1
- data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +23 -1
- data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +34 -1
- data/lib/stripe/params/v2/core/account_create_params.rb +138 -4
- data/lib/stripe/params/v2/core/account_link_create_params.rb +19 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +138 -4
- data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +63 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_renew_onboarding_link_params.rb +32 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +1 -1
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +2 -2
- data/lib/stripe/params.rb +7 -0
- data/lib/stripe/request_options.rb +19 -2
- data/lib/stripe/resources/apps/install.rb +2 -2
- data/lib/stripe/resources/balance_transaction.rb +1 -1
- data/lib/stripe/resources/charge.rb +274 -5
- data/lib/stripe/resources/checkout/session.rb +4 -0
- data/lib/stripe/resources/confirmation_token.rb +2 -2
- data/lib/stripe/resources/coupon.rb +6 -3
- data/lib/stripe/resources/dispute.rb +1 -1
- data/lib/stripe/resources/event.rb +2 -2
- data/lib/stripe/resources/issuing/card.rb +1 -1
- data/lib/stripe/resources/payment_attempt_record.rb +4 -1
- data/lib/stripe/resources/payment_intent.rb +575 -2
- data/lib/stripe/resources/payment_method.rb +2 -2
- data/lib/stripe/resources/payment_record.rb +4 -1
- data/lib/stripe/resources/product.rb +2 -0
- data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
- data/lib/stripe/resources/refund.rb +38 -0
- data/lib/stripe/resources/reporting/report_run.rb +2 -0
- data/lib/stripe/resources/reserve/hold.rb +1 -1
- data/lib/stripe/resources/setup_attempt.rb +2 -2
- data/lib/stripe/resources/setup_intent.rb +1 -1
- data/lib/stripe/resources/tax/registration.rb +16 -1
- data/lib/stripe/resources/treasury/inbound_transfer.rb +35 -7
- data/lib/stripe/resources/treasury/outbound_payment.rb +37 -9
- data/lib/stripe/resources/treasury/outbound_transfer.rb +37 -9
- data/lib/stripe/resources/treasury/received_credit.rb +1 -1
- data/lib/stripe/resources/treasury/received_debit.rb +1 -1
- data/lib/stripe/resources/v2/core/account.rb +246 -3
- data/lib/stripe/resources/v2/core/account_link.rb +18 -1
- data/lib/stripe/resources/v2/core/account_person_token.rb +2 -0
- data/lib/stripe/resources/v2/core/account_token.rb +3 -1
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +269 -0
- data/lib/stripe/resources/v2/core/event_base.rb +8 -25
- data/lib/stripe/resources/v2/core/event_notification.rb +32 -0
- data/lib/stripe/resources.rb +17 -0
- data/lib/stripe/services/apps/install_service.rb +2 -2
- data/lib/stripe/services/checkout/session_service.rb +2 -0
- data/lib/stripe/services/event_service.rb +1 -1
- data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +3 -3
- data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +4 -4
- data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +4 -4
- data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +1 -1
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_link_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_token_service.rb +2 -2
- data/lib/stripe/services/v2/core/accounts/person_token_service.rb +2 -1
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +49 -0
- data/lib/stripe/services/v2/core_service.rb +2 -1
- data/lib/stripe/services.rb +2 -0
- data/lib/stripe/stripe_client.rb +6 -0
- data/lib/stripe/stripe_configuration.rb +9 -2
- data/lib/stripe/stripe_event_notification_handler.rb +26 -0
- data/lib/stripe/stripe_object.rb +22 -9
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +6888 -221
- metadata +12 -2
|
@@ -83,6 +83,21 @@ module Stripe
|
|
|
83
83
|
end
|
|
84
84
|
end
|
|
85
85
|
|
|
86
|
+
class Bizum < ::Stripe::StripeObject
|
|
87
|
+
# The reference assigned to the refund.
|
|
88
|
+
attr_reader :reference
|
|
89
|
+
# Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.
|
|
90
|
+
attr_reader :reference_status
|
|
91
|
+
|
|
92
|
+
def self.inner_class_types
|
|
93
|
+
@inner_class_types = {}
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
def self.field_remappings
|
|
97
|
+
@field_remappings = {}
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
86
101
|
class Blik < ::Stripe::StripeObject
|
|
87
102
|
# For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed.
|
|
88
103
|
attr_reader :network_decline_code
|
|
@@ -436,6 +451,21 @@ module Stripe
|
|
|
436
451
|
end
|
|
437
452
|
end
|
|
438
453
|
|
|
454
|
+
class Upi < ::Stripe::StripeObject
|
|
455
|
+
# The reference assigned to the refund.
|
|
456
|
+
attr_reader :reference
|
|
457
|
+
# Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.
|
|
458
|
+
attr_reader :reference_status
|
|
459
|
+
|
|
460
|
+
def self.inner_class_types
|
|
461
|
+
@inner_class_types = {}
|
|
462
|
+
end
|
|
463
|
+
|
|
464
|
+
def self.field_remappings
|
|
465
|
+
@field_remappings = {}
|
|
466
|
+
end
|
|
467
|
+
end
|
|
468
|
+
|
|
439
469
|
class UsBankTransfer < ::Stripe::StripeObject
|
|
440
470
|
# The reference assigned to the refund.
|
|
441
471
|
attr_reader :reference
|
|
@@ -482,6 +512,8 @@ module Stripe
|
|
|
482
512
|
attr_reader :amazon_pay
|
|
483
513
|
# Attribute for field au_bank_transfer
|
|
484
514
|
attr_reader :au_bank_transfer
|
|
515
|
+
# Attribute for field bizum
|
|
516
|
+
attr_reader :bizum
|
|
485
517
|
# Attribute for field blik
|
|
486
518
|
attr_reader :blik
|
|
487
519
|
# Attribute for field br_bank_transfer
|
|
@@ -538,6 +570,8 @@ module Stripe
|
|
|
538
570
|
attr_reader :twint
|
|
539
571
|
# The type of transaction-specific details of the payment method used in the refund (e.g., `card`). An additional hash is included on `destination_details` with a name matching this value. It contains information specific to the refund transaction.
|
|
540
572
|
attr_reader :type
|
|
573
|
+
# Attribute for field upi
|
|
574
|
+
attr_reader :upi
|
|
541
575
|
# Attribute for field us_bank_transfer
|
|
542
576
|
attr_reader :us_bank_transfer
|
|
543
577
|
# Attribute for field wechat_pay
|
|
@@ -553,6 +587,7 @@ module Stripe
|
|
|
553
587
|
alma: Alma,
|
|
554
588
|
amazon_pay: AmazonPay,
|
|
555
589
|
au_bank_transfer: AuBankTransfer,
|
|
590
|
+
bizum: Bizum,
|
|
556
591
|
blik: Blik,
|
|
557
592
|
br_bank_transfer: BrBankTransfer,
|
|
558
593
|
card: Card,
|
|
@@ -580,6 +615,7 @@ module Stripe
|
|
|
580
615
|
swish: Swish,
|
|
581
616
|
th_bank_transfer: ThBankTransfer,
|
|
582
617
|
twint: Twint,
|
|
618
|
+
upi: Upi,
|
|
583
619
|
us_bank_transfer: UsBankTransfer,
|
|
584
620
|
wechat_pay: WechatPay,
|
|
585
621
|
zip: Zip,
|
|
@@ -650,6 +686,8 @@ module Stripe
|
|
|
650
686
|
end
|
|
651
687
|
# Amount, in cents (or local equivalent).
|
|
652
688
|
attr_reader :amount
|
|
689
|
+
# ID of the Connect application that created the refund. This can differ from the application on the associated Charge or PaymentIntent. A null value does not necessarily mean the refund was created without a Connect application.
|
|
690
|
+
attr_reader :application
|
|
653
691
|
# Balance transaction that describes the impact on your account balance.
|
|
654
692
|
attr_reader :balance_transaction
|
|
655
693
|
# ID of the charge that's refunded.
|
|
@@ -35,6 +35,8 @@ module Stripe
|
|
|
35
35
|
attr_reader :payout
|
|
36
36
|
# Category of balance transactions to be included in the report run.
|
|
37
37
|
attr_reader :reporting_category
|
|
38
|
+
# The tax invoice month in YYYY-MM format.
|
|
39
|
+
attr_reader :tax_invoice_month
|
|
38
40
|
# Defaults to `Etc/UTC`. The output timezone for all timestamps in the report. A list of possible time zone values is maintained at the [IANA Time Zone Database](http://www.iana.org/time-zones). Has no effect on `interval_start` or `interval_end`.
|
|
39
41
|
attr_reader :timezone
|
|
40
42
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module Reserve
|
|
6
|
-
#
|
|
6
|
+
# A ReserveHold holds a portion of an account's funds until it's released. Stripe or the account's platform can create a ReserveHold directly, and a ReservePlan creates ReserveHolds automatically from incoming Charges.
|
|
7
7
|
class Hold < APIResource
|
|
8
8
|
OBJECT_NAME = "reserve.hold"
|
|
9
9
|
def self.object_name
|
|
@@ -109,9 +109,9 @@ module Stripe
|
|
|
109
109
|
|
|
110
110
|
class Card < ::Stripe::StripeObject
|
|
111
111
|
class Checks < ::Stripe::StripeObject
|
|
112
|
-
# If
|
|
112
|
+
# If an address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
113
113
|
attr_reader :address_line1_check
|
|
114
|
-
# If
|
|
114
|
+
# If an address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
115
115
|
attr_reader :address_postal_code_check
|
|
116
116
|
# If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
117
117
|
attr_reader :cvc_check
|
|
@@ -252,7 +252,7 @@ module Stripe
|
|
|
252
252
|
end
|
|
253
253
|
|
|
254
254
|
class VerifyWithMicrodeposits < ::Stripe::StripeObject
|
|
255
|
-
# The timestamp when the microdeposits are expected to land.
|
|
255
|
+
# The timestamp when the microdeposits are expected to land. Null for instant microdeposits.
|
|
256
256
|
attr_reader :arrival_date
|
|
257
257
|
# The URL for the hosted verification page, which allows customers to verify their bank account.
|
|
258
258
|
attr_reader :hosted_verification_url
|
|
@@ -643,6 +643,19 @@ module Stripe
|
|
|
643
643
|
end
|
|
644
644
|
|
|
645
645
|
class Es < ::Stripe::StripeObject
|
|
646
|
+
class Igic < ::Stripe::StripeObject
|
|
647
|
+
# Place of supply scheme used in an IGIC registration.
|
|
648
|
+
attr_reader :place_of_supply_scheme
|
|
649
|
+
|
|
650
|
+
def self.inner_class_types
|
|
651
|
+
@inner_class_types = {}
|
|
652
|
+
end
|
|
653
|
+
|
|
654
|
+
def self.field_remappings
|
|
655
|
+
@field_remappings = {}
|
|
656
|
+
end
|
|
657
|
+
end
|
|
658
|
+
|
|
646
659
|
class Standard < ::Stripe::StripeObject
|
|
647
660
|
# Place of supply scheme used in an EU standard registration.
|
|
648
661
|
attr_reader :place_of_supply_scheme
|
|
@@ -655,13 +668,15 @@ module Stripe
|
|
|
655
668
|
@field_remappings = {}
|
|
656
669
|
end
|
|
657
670
|
end
|
|
671
|
+
# Attribute for field igic
|
|
672
|
+
attr_reader :igic
|
|
658
673
|
# Attribute for field standard
|
|
659
674
|
attr_reader :standard
|
|
660
675
|
# Type of registration in ES.
|
|
661
676
|
attr_reader :type
|
|
662
677
|
|
|
663
678
|
def self.inner_class_types
|
|
664
|
-
@inner_class_types = { standard: Standard }
|
|
679
|
+
@inner_class_types = { igic: Igic, standard: Standard }
|
|
665
680
|
end
|
|
666
681
|
|
|
667
682
|
def self.field_remappings
|
|
@@ -18,11 +18,39 @@ module Stripe
|
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
class FailureDetails < ::Stripe::StripeObject
|
|
21
|
+
class NetworkDetails < ::Stripe::StripeObject
|
|
22
|
+
class Ach < ::Stripe::StripeObject
|
|
23
|
+
# NACHA ACH return code.
|
|
24
|
+
attr_reader :return_code
|
|
25
|
+
# NACHA ACH return reason.
|
|
26
|
+
attr_reader :return_reason
|
|
27
|
+
|
|
28
|
+
def self.inner_class_types
|
|
29
|
+
@inner_class_types = {}
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def self.field_remappings
|
|
33
|
+
@field_remappings = {}
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
# ACH return details.
|
|
37
|
+
attr_reader :ach
|
|
38
|
+
|
|
39
|
+
def self.inner_class_types
|
|
40
|
+
@inner_class_types = { ach: Ach }
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def self.field_remappings
|
|
44
|
+
@field_remappings = {}
|
|
45
|
+
end
|
|
46
|
+
end
|
|
21
47
|
# Reason for the failure.
|
|
22
48
|
attr_reader :code
|
|
49
|
+
# Money movement network-specific details regarding the failure.
|
|
50
|
+
attr_reader :network_details
|
|
23
51
|
|
|
24
52
|
def self.inner_class_types
|
|
25
|
-
@inner_class_types = {}
|
|
53
|
+
@inner_class_types = { network_details: NetworkDetails }
|
|
26
54
|
end
|
|
27
55
|
|
|
28
56
|
def self.field_remappings
|
|
@@ -232,7 +260,7 @@ module Stripe
|
|
|
232
260
|
"InboundTransfer"
|
|
233
261
|
end
|
|
234
262
|
|
|
235
|
-
# Transitions a test
|
|
263
|
+
# Transitions a test InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
|
|
236
264
|
def self.fail(id, params = {}, opts = {})
|
|
237
265
|
request_stripe_object(
|
|
238
266
|
method: :post,
|
|
@@ -242,7 +270,7 @@ module Stripe
|
|
|
242
270
|
)
|
|
243
271
|
end
|
|
244
272
|
|
|
245
|
-
# Transitions a test
|
|
273
|
+
# Transitions a test InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
|
|
246
274
|
def fail(params = {}, opts = {})
|
|
247
275
|
@resource.request_stripe_object(
|
|
248
276
|
method: :post,
|
|
@@ -252,7 +280,7 @@ module Stripe
|
|
|
252
280
|
)
|
|
253
281
|
end
|
|
254
282
|
|
|
255
|
-
# Marks the test
|
|
283
|
+
# Marks the test InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
|
|
256
284
|
def self.return_inbound_transfer(id, params = {}, opts = {})
|
|
257
285
|
request_stripe_object(
|
|
258
286
|
method: :post,
|
|
@@ -262,7 +290,7 @@ module Stripe
|
|
|
262
290
|
)
|
|
263
291
|
end
|
|
264
292
|
|
|
265
|
-
# Marks the test
|
|
293
|
+
# Marks the test InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
|
|
266
294
|
def return_inbound_transfer(params = {}, opts = {})
|
|
267
295
|
@resource.request_stripe_object(
|
|
268
296
|
method: :post,
|
|
@@ -272,7 +300,7 @@ module Stripe
|
|
|
272
300
|
)
|
|
273
301
|
end
|
|
274
302
|
|
|
275
|
-
# Transitions a test
|
|
303
|
+
# Transitions a test InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
|
|
276
304
|
def self.succeed(id, params = {}, opts = {})
|
|
277
305
|
request_stripe_object(
|
|
278
306
|
method: :post,
|
|
@@ -282,7 +310,7 @@ module Stripe
|
|
|
282
310
|
)
|
|
283
311
|
end
|
|
284
312
|
|
|
285
|
-
# Transitions a test
|
|
313
|
+
# Transitions a test InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
|
|
286
314
|
def succeed(params = {}, opts = {})
|
|
287
315
|
@resource.request_stripe_object(
|
|
288
316
|
method: :post,
|
|
@@ -138,13 +138,41 @@ module Stripe
|
|
|
138
138
|
end
|
|
139
139
|
|
|
140
140
|
class ReturnedDetails < ::Stripe::StripeObject
|
|
141
|
+
class NetworkDetails < ::Stripe::StripeObject
|
|
142
|
+
class Ach < ::Stripe::StripeObject
|
|
143
|
+
# NACHA ACH return code.
|
|
144
|
+
attr_reader :return_code
|
|
145
|
+
# NACHA ACH return reason.
|
|
146
|
+
attr_reader :return_reason
|
|
147
|
+
|
|
148
|
+
def self.inner_class_types
|
|
149
|
+
@inner_class_types = {}
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
def self.field_remappings
|
|
153
|
+
@field_remappings = {}
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
# ACH return details.
|
|
157
|
+
attr_reader :ach
|
|
158
|
+
|
|
159
|
+
def self.inner_class_types
|
|
160
|
+
@inner_class_types = { ach: Ach }
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
def self.field_remappings
|
|
164
|
+
@field_remappings = {}
|
|
165
|
+
end
|
|
166
|
+
end
|
|
141
167
|
# Reason for the return.
|
|
142
168
|
attr_reader :code
|
|
169
|
+
# Money movement network-specific details regarding the failure.
|
|
170
|
+
attr_reader :network_details
|
|
143
171
|
# The Transaction associated with this object.
|
|
144
172
|
attr_reader :transaction
|
|
145
173
|
|
|
146
174
|
def self.inner_class_types
|
|
147
|
-
@inner_class_types = {}
|
|
175
|
+
@inner_class_types = { network_details: NetworkDetails }
|
|
148
176
|
end
|
|
149
177
|
|
|
150
178
|
def self.field_remappings
|
|
@@ -311,7 +339,7 @@ module Stripe
|
|
|
311
339
|
"OutboundPayment"
|
|
312
340
|
end
|
|
313
341
|
|
|
314
|
-
# Transitions a test
|
|
342
|
+
# Transitions a test OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
|
|
315
343
|
def self.fail(id, params = {}, opts = {})
|
|
316
344
|
request_stripe_object(
|
|
317
345
|
method: :post,
|
|
@@ -321,7 +349,7 @@ module Stripe
|
|
|
321
349
|
)
|
|
322
350
|
end
|
|
323
351
|
|
|
324
|
-
# Transitions a test
|
|
352
|
+
# Transitions a test OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
|
|
325
353
|
def fail(params = {}, opts = {})
|
|
326
354
|
@resource.request_stripe_object(
|
|
327
355
|
method: :post,
|
|
@@ -331,7 +359,7 @@ module Stripe
|
|
|
331
359
|
)
|
|
332
360
|
end
|
|
333
361
|
|
|
334
|
-
# Transitions a test
|
|
362
|
+
# Transitions a test OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
|
|
335
363
|
def self.post(id, params = {}, opts = {})
|
|
336
364
|
request_stripe_object(
|
|
337
365
|
method: :post,
|
|
@@ -341,7 +369,7 @@ module Stripe
|
|
|
341
369
|
)
|
|
342
370
|
end
|
|
343
371
|
|
|
344
|
-
# Transitions a test
|
|
372
|
+
# Transitions a test OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
|
|
345
373
|
def post(params = {}, opts = {})
|
|
346
374
|
@resource.request_stripe_object(
|
|
347
375
|
method: :post,
|
|
@@ -351,7 +379,7 @@ module Stripe
|
|
|
351
379
|
)
|
|
352
380
|
end
|
|
353
381
|
|
|
354
|
-
# Transitions a test
|
|
382
|
+
# Transitions a test OutboundPayment to the returned status. The OutboundPayment must already be in the posted state.
|
|
355
383
|
def self.return_outbound_payment(id, params = {}, opts = {})
|
|
356
384
|
request_stripe_object(
|
|
357
385
|
method: :post,
|
|
@@ -361,7 +389,7 @@ module Stripe
|
|
|
361
389
|
)
|
|
362
390
|
end
|
|
363
391
|
|
|
364
|
-
# Transitions a test
|
|
392
|
+
# Transitions a test OutboundPayment to the returned status. The OutboundPayment must already be in the posted state.
|
|
365
393
|
def return_outbound_payment(params = {}, opts = {})
|
|
366
394
|
@resource.request_stripe_object(
|
|
367
395
|
method: :post,
|
|
@@ -371,7 +399,7 @@ module Stripe
|
|
|
371
399
|
)
|
|
372
400
|
end
|
|
373
401
|
|
|
374
|
-
# Updates a test
|
|
402
|
+
# Updates a test OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and can't be in the canceled or failed states.
|
|
375
403
|
def self.update(id, params = {}, opts = {})
|
|
376
404
|
request_stripe_object(
|
|
377
405
|
method: :post,
|
|
@@ -381,7 +409,7 @@ module Stripe
|
|
|
381
409
|
)
|
|
382
410
|
end
|
|
383
411
|
|
|
384
|
-
# Updates a test
|
|
412
|
+
# Updates a test OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and can't be in the canceled or failed states.
|
|
385
413
|
def update(params = {}, opts = {})
|
|
386
414
|
@resource.request_stripe_object(
|
|
387
415
|
method: :post,
|
|
@@ -123,13 +123,41 @@ module Stripe
|
|
|
123
123
|
end
|
|
124
124
|
|
|
125
125
|
class ReturnedDetails < ::Stripe::StripeObject
|
|
126
|
+
class NetworkDetails < ::Stripe::StripeObject
|
|
127
|
+
class Ach < ::Stripe::StripeObject
|
|
128
|
+
# NACHA ACH return code.
|
|
129
|
+
attr_reader :return_code
|
|
130
|
+
# NACHA ACH return reason.
|
|
131
|
+
attr_reader :return_reason
|
|
132
|
+
|
|
133
|
+
def self.inner_class_types
|
|
134
|
+
@inner_class_types = {}
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
def self.field_remappings
|
|
138
|
+
@field_remappings = {}
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
# ACH return details.
|
|
142
|
+
attr_reader :ach
|
|
143
|
+
|
|
144
|
+
def self.inner_class_types
|
|
145
|
+
@inner_class_types = { ach: Ach }
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
def self.field_remappings
|
|
149
|
+
@field_remappings = {}
|
|
150
|
+
end
|
|
151
|
+
end
|
|
126
152
|
# Reason for the return.
|
|
127
153
|
attr_reader :code
|
|
154
|
+
# Money movement network-specific details regarding the failure.
|
|
155
|
+
attr_reader :network_details
|
|
128
156
|
# The Transaction associated with this object.
|
|
129
157
|
attr_reader :transaction
|
|
130
158
|
|
|
131
159
|
def self.inner_class_types
|
|
132
|
-
@inner_class_types = {}
|
|
160
|
+
@inner_class_types = { network_details: NetworkDetails }
|
|
133
161
|
end
|
|
134
162
|
|
|
135
163
|
def self.field_remappings
|
|
@@ -292,7 +320,7 @@ module Stripe
|
|
|
292
320
|
"OutboundTransfer"
|
|
293
321
|
end
|
|
294
322
|
|
|
295
|
-
# Transitions a test
|
|
323
|
+
# Transitions a test OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
|
|
296
324
|
def self.fail(outbound_transfer, params = {}, opts = {})
|
|
297
325
|
request_stripe_object(
|
|
298
326
|
method: :post,
|
|
@@ -302,7 +330,7 @@ module Stripe
|
|
|
302
330
|
)
|
|
303
331
|
end
|
|
304
332
|
|
|
305
|
-
# Transitions a test
|
|
333
|
+
# Transitions a test OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
|
|
306
334
|
def fail(params = {}, opts = {})
|
|
307
335
|
@resource.request_stripe_object(
|
|
308
336
|
method: :post,
|
|
@@ -312,7 +340,7 @@ module Stripe
|
|
|
312
340
|
)
|
|
313
341
|
end
|
|
314
342
|
|
|
315
|
-
# Transitions a test
|
|
343
|
+
# Transitions a test OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
|
|
316
344
|
def self.post(outbound_transfer, params = {}, opts = {})
|
|
317
345
|
request_stripe_object(
|
|
318
346
|
method: :post,
|
|
@@ -322,7 +350,7 @@ module Stripe
|
|
|
322
350
|
)
|
|
323
351
|
end
|
|
324
352
|
|
|
325
|
-
# Transitions a test
|
|
353
|
+
# Transitions a test OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
|
|
326
354
|
def post(params = {}, opts = {})
|
|
327
355
|
@resource.request_stripe_object(
|
|
328
356
|
method: :post,
|
|
@@ -332,7 +360,7 @@ module Stripe
|
|
|
332
360
|
)
|
|
333
361
|
end
|
|
334
362
|
|
|
335
|
-
# Transitions a test
|
|
363
|
+
# Transitions a test OutboundTransfer to the returned status. The OutboundTransfer must already be in the posted state.
|
|
336
364
|
def self.return_outbound_transfer(outbound_transfer, params = {}, opts = {})
|
|
337
365
|
request_stripe_object(
|
|
338
366
|
method: :post,
|
|
@@ -342,7 +370,7 @@ module Stripe
|
|
|
342
370
|
)
|
|
343
371
|
end
|
|
344
372
|
|
|
345
|
-
# Transitions a test
|
|
373
|
+
# Transitions a test OutboundTransfer to the returned status. The OutboundTransfer must already be in the posted state.
|
|
346
374
|
def return_outbound_transfer(params = {}, opts = {})
|
|
347
375
|
@resource.request_stripe_object(
|
|
348
376
|
method: :post,
|
|
@@ -352,7 +380,7 @@ module Stripe
|
|
|
352
380
|
)
|
|
353
381
|
end
|
|
354
382
|
|
|
355
|
-
# Updates a test
|
|
383
|
+
# Updates a test OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and can't be in the canceled or failed states.
|
|
356
384
|
def self.update(outbound_transfer, params = {}, opts = {})
|
|
357
385
|
request_stripe_object(
|
|
358
386
|
method: :post,
|
|
@@ -362,7 +390,7 @@ module Stripe
|
|
|
362
390
|
)
|
|
363
391
|
end
|
|
364
392
|
|
|
365
|
-
# Updates a test
|
|
393
|
+
# Updates a test OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and can't be in the canceled or failed states.
|
|
366
394
|
def update(params = {}, opts = {})
|
|
367
395
|
@resource.request_stripe_object(
|
|
368
396
|
method: :post,
|
|
@@ -242,7 +242,7 @@ module Stripe
|
|
|
242
242
|
"ReceivedCredit"
|
|
243
243
|
end
|
|
244
244
|
|
|
245
|
-
#
|
|
245
|
+
# Simulates a test ReceivedCredit initiated by a third party. In live mode, you can't directly create ReceivedCredit objects initiated by third parties.
|
|
246
246
|
def self.create(params = {}, opts = {})
|
|
247
247
|
request_stripe_object(
|
|
248
248
|
method: :post,
|
|
@@ -201,7 +201,7 @@ module Stripe
|
|
|
201
201
|
"ReceivedDebit"
|
|
202
202
|
end
|
|
203
203
|
|
|
204
|
-
#
|
|
204
|
+
# Simulates a test ReceivedDebit initiated by a third party. In live mode, you can't directly create ReceivedDebit objects initiated by third parties.
|
|
205
205
|
def self.create(params = {}, opts = {})
|
|
206
206
|
request_stripe_object(
|
|
207
207
|
method: :post,
|