stripe 15.3.0.pre.beta.2 → 15.4.0.pre.beta.1
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/API_VERSION +1 -0
- data/CHANGELOG.md +42 -16
- data/OPENAPI_VERSION +1 -1
- data/README.md +13 -49
- data/VERSION +1 -1
- data/lib/stripe/api_requestor.rb +2 -2
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/errors.rb +3 -3
- data/lib/stripe/events/v2_core_event_destination_ping_event.rb +1 -1
- data/lib/stripe/resources/account.rb +89 -5
- data/lib/stripe/resources/account_session.rb +93 -93
- data/lib/stripe/resources/billing_portal/session.rb +2 -2
- data/lib/stripe/resources/charge.rb +28 -15
- data/lib/stripe/resources/checkout/session.rb +53 -7
- data/lib/stripe/resources/confirmation_token.rb +19 -11
- data/lib/stripe/resources/credit_note.rb +9 -9
- data/lib/stripe/resources/customer_session.rb +2 -2
- data/lib/stripe/resources/dispute.rb +2 -0
- data/lib/stripe/resources/event.rb +1 -1
- data/lib/stripe/resources/identity/verification_session.rb +34 -0
- data/lib/stripe/resources/invoice.rb +21 -3
- data/lib/stripe/resources/invoice_item.rb +1 -4
- data/lib/stripe/resources/mandate.rb +3 -0
- data/lib/stripe/resources/order.rb +154 -2
- data/lib/stripe/resources/payment_attempt_record.rb +30 -17
- data/lib/stripe/resources/payment_intent.rb +331 -12
- data/lib/stripe/resources/payment_method.rb +17 -9
- data/lib/stripe/resources/payment_record.rb +30 -17
- data/lib/stripe/resources/quote.rb +15 -1
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +8 -1
- data/lib/stripe/resources/setup_attempt.rb +1 -1
- data/lib/stripe/resources/setup_intent.rb +285 -3
- data/lib/stripe/resources/subscription.rb +27 -10
- data/lib/stripe/resources/subscription_schedule.rb +17 -1
- data/lib/stripe/resources/tax/registration.rb +20 -0
- data/lib/stripe/resources/terminal/configuration.rb +1 -0
- data/lib/stripe/resources/terminal/reader.rb +10 -10
- data/lib/stripe/resources/token.rb +1 -1
- data/lib/stripe/resources/treasury/financial_account.rb +5 -1
- data/lib/stripe/resources/v2/core/account.rb +9 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +3 -3
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +1 -1
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +1 -1
- data/lib/stripe/resources/v2/money_management/received_credit.rb +8 -2
- data/lib/stripe/services/account_service.rb +83 -5
- data/lib/stripe/services/account_session_service.rb +62 -62
- data/lib/stripe/services/billing_portal/session_service.rb +1 -1
- data/lib/stripe/services/checkout/session_service.rb +53 -7
- data/lib/stripe/services/credit_note_preview_lines_service.rb +3 -3
- data/lib/stripe/services/credit_note_service.rb +6 -6
- data/lib/stripe/services/customer_session_service.rb +1 -1
- data/lib/stripe/services/identity/verification_session_service.rb +16 -0
- data/lib/stripe/services/invoice_service.rb +21 -3
- data/lib/stripe/services/order_service.rb +154 -2
- data/lib/stripe/services/payment_intent_service.rb +315 -9
- data/lib/stripe/services/payment_method_service.rb +5 -0
- data/lib/stripe/services/quote_service.rb +9 -0
- data/lib/stripe/services/setup_intent_service.rb +275 -2
- data/lib/stripe/services/subscription_schedule_service.rb +9 -0
- data/lib/stripe/services/subscription_service.rb +21 -4
- data/lib/stripe/services/tax/registration_service.rb +13 -0
- data/lib/stripe/services/terminal/reader_service.rb +4 -4
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +6 -1
- data/lib/stripe/services/token_service.rb +1 -1
- data/lib/stripe/services/treasury/financial_account_service.rb +5 -1
- data/lib/stripe/services/v2/billing_service.rb +2 -2
- data/lib/stripe/services/v2/core/account_service.rb +47 -15
- data/lib/stripe/services/v2/core/accounts/person_service.rb +9 -10
- data/lib/stripe/services/v2/core/event_destination_service.rb +16 -16
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +4 -5
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +2 -2
- data/lib/stripe/services/v2/core_service.rb +2 -2
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +13 -12
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +36 -36
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +44 -45
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +10 -10
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +41 -41
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +1 -2
- data/lib/stripe/services/v2/money_management_service.rb +4 -4
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +9 -10
- data/lib/stripe/services/v2_services.rb +3 -3
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +1 -1
- data/rbi/stripe.rbi +14445 -12226
- metadata +3 -2
@@ -4,12 +4,12 @@
|
|
4
4
|
module Stripe
|
5
5
|
module V2
|
6
6
|
class BillingService < StripeService
|
7
|
-
attr_reader :
|
7
|
+
attr_reader :meter_event_adjustments, :meter_event_session, :meter_event_stream, :meter_events
|
8
8
|
|
9
9
|
def initialize(requestor)
|
10
10
|
super
|
11
|
-
@meter_event_session = Stripe::V2::Billing::MeterEventSessionService.new(@requestor)
|
12
11
|
@meter_event_adjustments = Stripe::V2::Billing::MeterEventAdjustmentService.new(@requestor)
|
12
|
+
@meter_event_session = Stripe::V2::Billing::MeterEventSessionService.new(@requestor)
|
13
13
|
@meter_event_stream = Stripe::V2::Billing::MeterEventStreamService.new(@requestor)
|
14
14
|
@meter_events = Stripe::V2::Billing::MeterEventService.new(@requestor)
|
15
15
|
end
|
@@ -12,12 +12,15 @@ module Stripe
|
|
12
12
|
@persons = Stripe::V2::Core::Accounts::PersonService.new(@requestor)
|
13
13
|
end
|
14
14
|
|
15
|
-
class
|
16
|
-
#
|
15
|
+
class ListParams < Stripe::RequestParams
|
16
|
+
# Filter only accounts that have all of the configurations specified. If omitted, returns all accounts regardless of which configurations they have.
|
17
17
|
attr_accessor :applied_configurations
|
18
|
+
# The upper limit on the number of accounts returned by the List Account request.
|
19
|
+
attr_accessor :limit
|
18
20
|
|
19
|
-
def initialize(applied_configurations: nil)
|
21
|
+
def initialize(applied_configurations: nil, limit: nil)
|
20
22
|
@applied_configurations = applied_configurations
|
23
|
+
@limit = limit
|
21
24
|
end
|
22
25
|
end
|
23
26
|
|
@@ -1266,6 +1269,18 @@ module Stripe
|
|
1266
1269
|
end
|
1267
1270
|
end
|
1268
1271
|
|
1272
|
+
class ProofOfAddress < Stripe::RequestParams
|
1273
|
+
# One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
|
1274
|
+
attr_accessor :files
|
1275
|
+
# The format of the document. Currently supports `files` only.
|
1276
|
+
attr_accessor :type
|
1277
|
+
|
1278
|
+
def initialize(files: nil, type: nil)
|
1279
|
+
@files = files
|
1280
|
+
@type = type
|
1281
|
+
end
|
1282
|
+
end
|
1283
|
+
|
1269
1284
|
class ProofOfRegistration < Stripe::RequestParams
|
1270
1285
|
# One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
|
1271
1286
|
attr_accessor :files
|
@@ -1303,6 +1318,8 @@ module Stripe
|
|
1303
1318
|
attr_accessor :company_tax_id_verification
|
1304
1319
|
# A document verifying the business.
|
1305
1320
|
attr_accessor :primary_verification
|
1321
|
+
# One or more documents that demonstrate proof of address.
|
1322
|
+
attr_accessor :proof_of_address
|
1306
1323
|
# One or more documents showing the company’s proof of registration with the national business registry.
|
1307
1324
|
attr_accessor :proof_of_registration
|
1308
1325
|
# One or more documents that demonstrate proof of ultimate beneficial ownership.
|
@@ -1316,6 +1333,7 @@ module Stripe
|
|
1316
1333
|
company_registration_verification: nil,
|
1317
1334
|
company_tax_id_verification: nil,
|
1318
1335
|
primary_verification: nil,
|
1336
|
+
proof_of_address: nil,
|
1319
1337
|
proof_of_registration: nil,
|
1320
1338
|
proof_of_ultimate_beneficial_ownership: nil
|
1321
1339
|
)
|
@@ -1326,6 +1344,7 @@ module Stripe
|
|
1326
1344
|
@company_registration_verification = company_registration_verification
|
1327
1345
|
@company_tax_id_verification = company_tax_id_verification
|
1328
1346
|
@primary_verification = primary_verification
|
1347
|
+
@proof_of_address = proof_of_address
|
1329
1348
|
@proof_of_registration = proof_of_registration
|
1330
1349
|
@proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
|
1331
1350
|
end
|
@@ -2032,18 +2051,6 @@ module Stripe
|
|
2032
2051
|
end
|
2033
2052
|
end
|
2034
2053
|
|
2035
|
-
class ListParams < Stripe::RequestParams
|
2036
|
-
# Filter only accounts that have all of the configurations specified. If omitted, returns all accounts regardless of which configurations they have.
|
2037
|
-
attr_accessor :applied_configurations
|
2038
|
-
# The upper limit on the number of accounts returned by the List Account request.
|
2039
|
-
attr_accessor :limit
|
2040
|
-
|
2041
|
-
def initialize(applied_configurations: nil, limit: nil)
|
2042
|
-
@applied_configurations = applied_configurations
|
2043
|
-
@limit = limit
|
2044
|
-
end
|
2045
|
-
end
|
2046
|
-
|
2047
2054
|
class RetrieveParams < Stripe::RequestParams
|
2048
2055
|
# Additional fields to include in the response.
|
2049
2056
|
attr_accessor :include
|
@@ -3312,6 +3319,18 @@ module Stripe
|
|
3312
3319
|
end
|
3313
3320
|
end
|
3314
3321
|
|
3322
|
+
class ProofOfAddress < Stripe::RequestParams
|
3323
|
+
# One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
|
3324
|
+
attr_accessor :files
|
3325
|
+
# The format of the document. Currently supports `files` only.
|
3326
|
+
attr_accessor :type
|
3327
|
+
|
3328
|
+
def initialize(files: nil, type: nil)
|
3329
|
+
@files = files
|
3330
|
+
@type = type
|
3331
|
+
end
|
3332
|
+
end
|
3333
|
+
|
3315
3334
|
class ProofOfRegistration < Stripe::RequestParams
|
3316
3335
|
# One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
|
3317
3336
|
attr_accessor :files
|
@@ -3349,6 +3368,8 @@ module Stripe
|
|
3349
3368
|
attr_accessor :company_tax_id_verification
|
3350
3369
|
# A document verifying the business.
|
3351
3370
|
attr_accessor :primary_verification
|
3371
|
+
# One or more documents that demonstrate proof of address.
|
3372
|
+
attr_accessor :proof_of_address
|
3352
3373
|
# One or more documents showing the company’s proof of registration with the national business registry.
|
3353
3374
|
attr_accessor :proof_of_registration
|
3354
3375
|
# One or more documents that demonstrate proof of ultimate beneficial ownership.
|
@@ -3362,6 +3383,7 @@ module Stripe
|
|
3362
3383
|
company_registration_verification: nil,
|
3363
3384
|
company_tax_id_verification: nil,
|
3364
3385
|
primary_verification: nil,
|
3386
|
+
proof_of_address: nil,
|
3365
3387
|
proof_of_registration: nil,
|
3366
3388
|
proof_of_ultimate_beneficial_ownership: nil
|
3367
3389
|
)
|
@@ -3372,6 +3394,7 @@ module Stripe
|
|
3372
3394
|
@company_registration_verification = company_registration_verification
|
3373
3395
|
@company_tax_id_verification = company_tax_id_verification
|
3374
3396
|
@primary_verification = primary_verification
|
3397
|
+
@proof_of_address = proof_of_address
|
3375
3398
|
@proof_of_registration = proof_of_registration
|
3376
3399
|
@proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
|
3377
3400
|
end
|
@@ -4078,6 +4101,15 @@ module Stripe
|
|
4078
4101
|
end
|
4079
4102
|
end
|
4080
4103
|
|
4104
|
+
class CloseParams < Stripe::RequestParams
|
4105
|
+
# Configurations on the Account to be closed. All configurations on the Account must be passed in for this request to succeed.
|
4106
|
+
attr_accessor :applied_configurations
|
4107
|
+
|
4108
|
+
def initialize(applied_configurations: nil)
|
4109
|
+
@applied_configurations = applied_configurations
|
4110
|
+
end
|
4111
|
+
end
|
4112
|
+
|
4081
4113
|
# Removes access to the Account and its associated resources.
|
4082
4114
|
def close(id, params = {}, opts = {})
|
4083
4115
|
request(
|
@@ -6,6 +6,15 @@ module Stripe
|
|
6
6
|
module Core
|
7
7
|
module Accounts
|
8
8
|
class PersonService < StripeService
|
9
|
+
class ListParams < Stripe::RequestParams
|
10
|
+
# The upper limit on the number of accounts returned by the List Account request.
|
11
|
+
attr_accessor :limit
|
12
|
+
|
13
|
+
def initialize(limit: nil)
|
14
|
+
@limit = limit
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
9
18
|
class CreateParams < Stripe::RequestParams
|
10
19
|
class AdditionalAddress < Stripe::RequestParams
|
11
20
|
# City, district, suburb, town, or village.
|
@@ -490,16 +499,6 @@ module Stripe
|
|
490
499
|
end
|
491
500
|
|
492
501
|
class DeleteParams < Stripe::RequestParams; end
|
493
|
-
|
494
|
-
class ListParams < Stripe::RequestParams
|
495
|
-
# The upper limit on the number of accounts returned by the List Account request.
|
496
|
-
attr_accessor :limit
|
497
|
-
|
498
|
-
def initialize(limit: nil)
|
499
|
-
@limit = limit
|
500
|
-
end
|
501
|
-
end
|
502
|
-
|
503
502
|
class RetrieveParams < Stripe::RequestParams; end
|
504
503
|
|
505
504
|
class UpdateParams < Stripe::RequestParams
|
@@ -5,6 +5,18 @@ module Stripe
|
|
5
5
|
module V2
|
6
6
|
module Core
|
7
7
|
class EventDestinationService < StripeService
|
8
|
+
class ListParams < Stripe::RequestParams
|
9
|
+
# Additional fields to include in the response. Currently supports `webhook_endpoint.url`.
|
10
|
+
attr_accessor :include
|
11
|
+
# The page size.
|
12
|
+
attr_accessor :limit
|
13
|
+
|
14
|
+
def initialize(include: nil, limit: nil)
|
15
|
+
@include = include
|
16
|
+
@limit = limit
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
8
20
|
class CreateParams < Stripe::RequestParams
|
9
21
|
class AmazonEventbridge < Stripe::RequestParams
|
10
22
|
# The AWS account ID.
|
@@ -77,22 +89,6 @@ module Stripe
|
|
77
89
|
end
|
78
90
|
|
79
91
|
class DeleteParams < Stripe::RequestParams; end
|
80
|
-
class DisableParams < Stripe::RequestParams; end
|
81
|
-
class EnableParams < Stripe::RequestParams; end
|
82
|
-
|
83
|
-
class ListParams < Stripe::RequestParams
|
84
|
-
# Additional fields to include in the response. Currently supports `webhook_endpoint.url`.
|
85
|
-
attr_accessor :include
|
86
|
-
# The page size.
|
87
|
-
attr_accessor :limit
|
88
|
-
|
89
|
-
def initialize(include: nil, limit: nil)
|
90
|
-
@include = include
|
91
|
-
@limit = limit
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
class PingParams < Stripe::RequestParams; end
|
96
92
|
|
97
93
|
class RetrieveParams < Stripe::RequestParams
|
98
94
|
# Additional fields to include in the response.
|
@@ -142,6 +138,10 @@ module Stripe
|
|
142
138
|
end
|
143
139
|
end
|
144
140
|
|
141
|
+
class DisableParams < Stripe::RequestParams; end
|
142
|
+
class EnableParams < Stripe::RequestParams; end
|
143
|
+
class PingParams < Stripe::RequestParams; end
|
144
|
+
|
145
145
|
# Create a new event destination.
|
146
146
|
def create(params = {}, opts = {})
|
147
147
|
request(
|
@@ -6,9 +6,6 @@ module Stripe
|
|
6
6
|
module Core
|
7
7
|
module Vault
|
8
8
|
class GbBankAccountService < StripeService
|
9
|
-
class AcknowledgeConfirmationOfPayeeParams < Stripe::RequestParams; end
|
10
|
-
class ArchiveParams < Stripe::RequestParams; end
|
11
|
-
|
12
9
|
class CreateParams < Stripe::RequestParams
|
13
10
|
class ConfirmationOfPayee < Stripe::RequestParams
|
14
11
|
# The business type to be checked against. Legal entity information will be used if unspecified.
|
@@ -49,6 +46,10 @@ module Stripe
|
|
49
46
|
end
|
50
47
|
end
|
51
48
|
|
49
|
+
class RetrieveParams < Stripe::RequestParams; end
|
50
|
+
class AcknowledgeConfirmationOfPayeeParams < Stripe::RequestParams; end
|
51
|
+
class ArchiveParams < Stripe::RequestParams; end
|
52
|
+
|
52
53
|
class InitiateConfirmationOfPayeeParams < Stripe::RequestParams
|
53
54
|
# The business type to be checked against. Legal entity information will be used if unspecified.
|
54
55
|
attr_accessor :business_type
|
@@ -61,8 +62,6 @@ module Stripe
|
|
61
62
|
end
|
62
63
|
end
|
63
64
|
|
64
|
-
class RetrieveParams < Stripe::RequestParams; end
|
65
|
-
|
66
65
|
# Confirm that you have received the result of the Confirmation of Payee request, and that you are okay with
|
67
66
|
# proceeding to pay out to this bank account despite the account not matching, partially matching, or the service
|
68
67
|
# being unavailable. Once you confirm this, you will be able to send OutboundPayments, but this may lead to
|
@@ -6,8 +6,6 @@ module Stripe
|
|
6
6
|
module Core
|
7
7
|
module Vault
|
8
8
|
class UsBankAccountService < StripeService
|
9
|
-
class ArchiveParams < Stripe::RequestParams; end
|
10
|
-
|
11
9
|
class CreateParams < Stripe::RequestParams
|
12
10
|
# The account number of the bank account.
|
13
11
|
attr_accessor :account_number
|
@@ -45,6 +43,8 @@ module Stripe
|
|
45
43
|
end
|
46
44
|
end
|
47
45
|
|
46
|
+
class ArchiveParams < Stripe::RequestParams; end
|
47
|
+
|
48
48
|
# Archive a USBankAccount object. USBankAccount objects will not be automatically archived by Stripe.
|
49
49
|
# Archived USBankAccount objects cannot be used as outbound destinations
|
50
50
|
# and will not appear in the outbound destination list.
|
@@ -4,12 +4,12 @@
|
|
4
4
|
module Stripe
|
5
5
|
module V2
|
6
6
|
class CoreService < StripeService
|
7
|
-
attr_reader :
|
7
|
+
attr_reader :account_links, :accounts, :event_destinations, :events, :vault
|
8
8
|
|
9
9
|
def initialize(requestor)
|
10
10
|
super
|
11
|
-
@accounts = Stripe::V2::Core::AccountService.new(@requestor)
|
12
11
|
@account_links = Stripe::V2::Core::AccountLinkService.new(@requestor)
|
12
|
+
@accounts = Stripe::V2::Core::AccountService.new(@requestor)
|
13
13
|
@event_destinations = Stripe::V2::Core::EventDestinationService.new(@requestor)
|
14
14
|
@events = Stripe::V2::Core::EventService.new(@requestor)
|
15
15
|
@vault = Stripe::V2::Core::VaultService.new(@requestor)
|
@@ -5,18 +5,6 @@ module Stripe
|
|
5
5
|
module V2
|
6
6
|
module MoneyManagement
|
7
7
|
class FinancialAddressService < StripeService
|
8
|
-
class CreateParams < Stripe::RequestParams
|
9
|
-
# Open Enum. The currency the FinancialAddress should support. Currently, only the `usd` and `gbp` values are supported.
|
10
|
-
attr_accessor :currency
|
11
|
-
# The ID of the FinancialAccount the new FinancialAddress should be associated with.
|
12
|
-
attr_accessor :financial_account
|
13
|
-
|
14
|
-
def initialize(currency: nil, financial_account: nil)
|
15
|
-
@currency = currency
|
16
|
-
@financial_account = financial_account
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
8
|
class ListParams < Stripe::RequestParams
|
21
9
|
# The ID of the FinancialAccount for which FinancialAddresses are to be returned.
|
22
10
|
attr_accessor :financial_account
|
@@ -32,6 +20,18 @@ module Stripe
|
|
32
20
|
end
|
33
21
|
end
|
34
22
|
|
23
|
+
class CreateParams < Stripe::RequestParams
|
24
|
+
# Open Enum. The currency the FinancialAddress should support. Currently, only the `usd` and `gbp` values are supported.
|
25
|
+
attr_accessor :currency
|
26
|
+
# The ID of the FinancialAccount the new FinancialAddress should be associated with.
|
27
|
+
attr_accessor :financial_account
|
28
|
+
|
29
|
+
def initialize(currency: nil, financial_account: nil)
|
30
|
+
@currency = currency
|
31
|
+
@financial_account = financial_account
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
35
|
class RetrieveParams < Stripe::RequestParams
|
36
36
|
# Open Enum. A list of fields to reveal in the FinancialAddresses returned.
|
37
37
|
attr_accessor :include
|
@@ -44,6 +44,7 @@ module Stripe
|
|
44
44
|
# Create a new FinancialAddress for a FinancialAccount.
|
45
45
|
#
|
46
46
|
# ** raises FinancialAccountNotOpenError
|
47
|
+
# ** raises FeatureNotEnabledError
|
47
48
|
def create(params = {}, opts = {})
|
48
49
|
request(
|
49
50
|
method: :post,
|
@@ -5,6 +5,42 @@ module Stripe
|
|
5
5
|
module V2
|
6
6
|
module MoneyManagement
|
7
7
|
class InboundTransferService < StripeService
|
8
|
+
class ListParams < Stripe::RequestParams
|
9
|
+
# Filter for objects created at the specified timestamp.
|
10
|
+
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
11
|
+
attr_accessor :created
|
12
|
+
# Filter for objects created after the specified timestamp.
|
13
|
+
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
14
|
+
attr_accessor :created_gt
|
15
|
+
# Filter for objects created on or after the specified timestamp.
|
16
|
+
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
17
|
+
attr_accessor :created_gte
|
18
|
+
# Filter for objects created before the specified timestamp.
|
19
|
+
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
20
|
+
attr_accessor :created_lt
|
21
|
+
# Filter for objects created on or before the specified timestamp.
|
22
|
+
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
23
|
+
attr_accessor :created_lte
|
24
|
+
# The page limit.
|
25
|
+
attr_accessor :limit
|
26
|
+
|
27
|
+
def initialize(
|
28
|
+
created: nil,
|
29
|
+
created_gt: nil,
|
30
|
+
created_gte: nil,
|
31
|
+
created_lt: nil,
|
32
|
+
created_lte: nil,
|
33
|
+
limit: nil
|
34
|
+
)
|
35
|
+
@created = created
|
36
|
+
@created_gt = created_gt
|
37
|
+
@created_gte = created_gte
|
38
|
+
@created_lt = created_lt
|
39
|
+
@created_lte = created_lte
|
40
|
+
@limit = limit
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
8
44
|
class CreateParams < Stripe::RequestParams
|
9
45
|
class From < Stripe::RequestParams
|
10
46
|
# An optional currency field used to specify which currency is debited from the Payment Method.
|
@@ -47,42 +83,6 @@ module Stripe
|
|
47
83
|
end
|
48
84
|
end
|
49
85
|
|
50
|
-
class ListParams < Stripe::RequestParams
|
51
|
-
# Filter for objects created at the specified timestamp.
|
52
|
-
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
53
|
-
attr_accessor :created
|
54
|
-
# Filter for objects created after the specified timestamp.
|
55
|
-
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
56
|
-
attr_accessor :created_gt
|
57
|
-
# Filter for objects created on or after the specified timestamp.
|
58
|
-
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
59
|
-
attr_accessor :created_gte
|
60
|
-
# Filter for objects created before the specified timestamp.
|
61
|
-
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
62
|
-
attr_accessor :created_lt
|
63
|
-
# Filter for objects created on or before the specified timestamp.
|
64
|
-
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
65
|
-
attr_accessor :created_lte
|
66
|
-
# The page limit.
|
67
|
-
attr_accessor :limit
|
68
|
-
|
69
|
-
def initialize(
|
70
|
-
created: nil,
|
71
|
-
created_gt: nil,
|
72
|
-
created_gte: nil,
|
73
|
-
created_lt: nil,
|
74
|
-
created_lte: nil,
|
75
|
-
limit: nil
|
76
|
-
)
|
77
|
-
@created = created
|
78
|
-
@created_gt = created_gt
|
79
|
-
@created_gte = created_gte
|
80
|
-
@created_lt = created_lt
|
81
|
-
@created_lte = created_lte
|
82
|
-
@limit = limit
|
83
|
-
end
|
84
|
-
end
|
85
|
-
|
86
86
|
class RetrieveParams < Stripe::RequestParams; end
|
87
87
|
|
88
88
|
# InboundTransfers APIs are used to create, retrieve or list InboundTransfers.
|
@@ -5,7 +5,49 @@ module Stripe
|
|
5
5
|
module V2
|
6
6
|
module MoneyManagement
|
7
7
|
class OutboundPaymentService < StripeService
|
8
|
-
class
|
8
|
+
class ListParams < Stripe::RequestParams
|
9
|
+
# Filter for objects created at the specified timestamp.
|
10
|
+
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
11
|
+
attr_accessor :created
|
12
|
+
# Filter for objects created after the specified timestamp.
|
13
|
+
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
14
|
+
attr_accessor :created_gt
|
15
|
+
# Filter for objects created on or after the specified timestamp.
|
16
|
+
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
17
|
+
attr_accessor :created_gte
|
18
|
+
# Filter for objects created before the specified timestamp.
|
19
|
+
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
20
|
+
attr_accessor :created_lt
|
21
|
+
# Filter for objects created on or before the specified timestamp.
|
22
|
+
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
23
|
+
attr_accessor :created_lte
|
24
|
+
# The maximum number of results to return.
|
25
|
+
attr_accessor :limit
|
26
|
+
# Only return OutboundPayments sent to this recipient.
|
27
|
+
attr_accessor :recipient
|
28
|
+
# Closed Enum. Only return OutboundPayments with this status.
|
29
|
+
attr_accessor :status
|
30
|
+
|
31
|
+
def initialize(
|
32
|
+
created: nil,
|
33
|
+
created_gt: nil,
|
34
|
+
created_gte: nil,
|
35
|
+
created_lt: nil,
|
36
|
+
created_lte: nil,
|
37
|
+
limit: nil,
|
38
|
+
recipient: nil,
|
39
|
+
status: nil
|
40
|
+
)
|
41
|
+
@created = created
|
42
|
+
@created_gt = created_gt
|
43
|
+
@created_gte = created_gte
|
44
|
+
@created_lt = created_lt
|
45
|
+
@created_lte = created_lte
|
46
|
+
@limit = limit
|
47
|
+
@recipient = recipient
|
48
|
+
@status = status
|
49
|
+
end
|
50
|
+
end
|
9
51
|
|
10
52
|
class CreateParams < Stripe::RequestParams
|
11
53
|
class DeliveryOptions < Stripe::RequestParams
|
@@ -97,51 +139,8 @@ module Stripe
|
|
97
139
|
end
|
98
140
|
end
|
99
141
|
|
100
|
-
class ListParams < Stripe::RequestParams
|
101
|
-
# Filter for objects created at the specified timestamp.
|
102
|
-
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
103
|
-
attr_accessor :created
|
104
|
-
# Filter for objects created after the specified timestamp.
|
105
|
-
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
106
|
-
attr_accessor :created_gt
|
107
|
-
# Filter for objects created on or after the specified timestamp.
|
108
|
-
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
109
|
-
attr_accessor :created_gte
|
110
|
-
# Filter for objects created before the specified timestamp.
|
111
|
-
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
112
|
-
attr_accessor :created_lt
|
113
|
-
# Filter for objects created on or before the specified timestamp.
|
114
|
-
# Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
115
|
-
attr_accessor :created_lte
|
116
|
-
# The maximum number of results to return.
|
117
|
-
attr_accessor :limit
|
118
|
-
# Only return OutboundPayments sent to this recipient.
|
119
|
-
attr_accessor :recipient
|
120
|
-
# Closed Enum. Only return OutboundPayments with this status.
|
121
|
-
attr_accessor :status
|
122
|
-
|
123
|
-
def initialize(
|
124
|
-
created: nil,
|
125
|
-
created_gt: nil,
|
126
|
-
created_gte: nil,
|
127
|
-
created_lt: nil,
|
128
|
-
created_lte: nil,
|
129
|
-
limit: nil,
|
130
|
-
recipient: nil,
|
131
|
-
status: nil
|
132
|
-
)
|
133
|
-
@created = created
|
134
|
-
@created_gt = created_gt
|
135
|
-
@created_gte = created_gte
|
136
|
-
@created_lt = created_lt
|
137
|
-
@created_lte = created_lte
|
138
|
-
@limit = limit
|
139
|
-
@recipient = recipient
|
140
|
-
@status = status
|
141
|
-
end
|
142
|
-
end
|
143
|
-
|
144
142
|
class RetrieveParams < Stripe::RequestParams; end
|
143
|
+
class CancelParams < Stripe::RequestParams; end
|
145
144
|
|
146
145
|
# Cancels an OutboundPayment. Only processing OutboundPayments can be canceled.
|
147
146
|
#
|
@@ -5,7 +5,14 @@ module Stripe
|
|
5
5
|
module V2
|
6
6
|
module MoneyManagement
|
7
7
|
class OutboundSetupIntentService < StripeService
|
8
|
-
class
|
8
|
+
class ListParams < Stripe::RequestParams
|
9
|
+
# The page size.
|
10
|
+
attr_accessor :limit
|
11
|
+
|
12
|
+
def initialize(limit: nil)
|
13
|
+
@limit = limit
|
14
|
+
end
|
15
|
+
end
|
9
16
|
|
10
17
|
class CreateParams < Stripe::RequestParams
|
11
18
|
class PayoutMethodData < Stripe::RequestParams
|
@@ -84,15 +91,6 @@ module Stripe
|
|
84
91
|
end
|
85
92
|
end
|
86
93
|
|
87
|
-
class ListParams < Stripe::RequestParams
|
88
|
-
# The page size.
|
89
|
-
attr_accessor :limit
|
90
|
-
|
91
|
-
def initialize(limit: nil)
|
92
|
-
@limit = limit
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
94
|
class RetrieveParams < Stripe::RequestParams; end
|
97
95
|
|
98
96
|
class UpdateParams < Stripe::RequestParams
|
@@ -167,6 +165,8 @@ module Stripe
|
|
167
165
|
end
|
168
166
|
end
|
169
167
|
|
168
|
+
class CancelParams < Stripe::RequestParams; end
|
169
|
+
|
170
170
|
# Cancel an OutboundSetupIntent object.
|
171
171
|
def cancel(id, params = {}, opts = {})
|
172
172
|
request(
|