stripe 15.5.0.pre.beta.2 → 15.6.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 -1
- data/CHANGELOG.md +53 -1
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_requestor.rb +18 -18
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/errors.rb +23 -23
- data/lib/stripe/resources/account.rb +2 -2
- data/lib/stripe/resources/account_session.rb +94 -13
- data/lib/stripe/resources/balance.rb +2 -7
- data/lib/stripe/resources/balance_settings.rb +72 -65
- data/lib/stripe/resources/billing/meter.rb +2 -2
- data/lib/stripe/resources/billing/meter_usage_row.rb +1 -1
- data/lib/stripe/resources/billing_portal/configuration.rb +12 -2
- data/lib/stripe/resources/charge.rb +40 -5
- data/lib/stripe/resources/checkout/session.rb +109 -5
- data/lib/stripe/resources/credit_note.rb +3 -3
- data/lib/stripe/resources/dispute.rb +1 -1
- data/lib/stripe/resources/file.rb +1 -1
- data/lib/stripe/resources/file_link.rb +1 -1
- data/lib/stripe/resources/invoice.rb +44 -1
- data/lib/stripe/resources/invoice_payment.rb +1 -1
- data/lib/stripe/resources/issuing/card.rb +8 -0
- data/lib/stripe/resources/mandate.rb +65 -1
- data/lib/stripe/resources/payment_attempt_record.rb +90 -10
- data/lib/stripe/resources/payment_intent.rb +182 -4
- data/lib/stripe/resources/payment_link.rb +1 -1
- data/lib/stripe/resources/payment_method.rb +2 -0
- data/lib/stripe/resources/payment_record.rb +111 -14
- data/lib/stripe/resources/promotion_code.rb +5 -2
- data/lib/stripe/resources/quote_preview_invoice.rb +1 -1
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +24 -0
- data/lib/stripe/resources/setup_attempt.rb +4 -1
- data/lib/stripe/resources/setup_intent.rb +194 -1
- data/lib/stripe/resources/subscription.rb +107 -9
- data/lib/stripe/resources/subscription_schedule.rb +124 -2
- data/lib/stripe/resources/terminal/configuration.rb +82 -0
- data/lib/stripe/resources/terminal/reader.rb +22 -0
- data/lib/stripe/resources/v2/core/account.rb +8 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +2 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +1 -1
- data/lib/stripe/resources/v2/money_management/transaction.rb +2 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +2 -0
- data/lib/stripe/services/account_session_service.rb +64 -13
- data/lib/stripe/services/balance_settings_service.rb +44 -41
- data/lib/stripe/services/billing/meter_service.rb +1 -1
- data/lib/stripe/services/billing_portal/configuration_service.rb +10 -2
- data/lib/stripe/services/checkout/session_service.rb +86 -4
- data/lib/stripe/services/credit_note_preview_lines_service.rb +1 -1
- data/lib/stripe/services/credit_note_service.rb +2 -2
- data/lib/stripe/services/customer_service.rb +4 -4
- data/lib/stripe/services/file_link_service.rb +1 -1
- data/lib/stripe/services/file_service.rb +1 -1
- data/lib/stripe/services/invoice_payment_service.rb +1 -1
- data/lib/stripe/services/invoice_service.rb +43 -0
- data/lib/stripe/services/issuing/card_service.rb +8 -0
- data/lib/stripe/services/mandate_service.rb +40 -0
- data/lib/stripe/services/payment_attempt_record_service.rb +4 -1
- data/lib/stripe/services/payment_intent_service.rb +157 -3
- data/lib/stripe/services/payment_link_service.rb +1 -1
- data/lib/stripe/services/payment_record_service.rb +25 -5
- data/lib/stripe/services/quote_service.rb +4 -4
- data/lib/stripe/services/setup_intent_service.rb +153 -0
- data/lib/stripe/services/subscription_schedule_service.rb +100 -2
- data/lib/stripe/services/subscription_service.rb +107 -9
- data/lib/stripe/services/terminal/configuration_service.rb +64 -0
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +22 -0
- data/lib/stripe/services/v1_services.rb +5 -5
- data/lib/stripe/services/v2/billing_service.rb +2 -2
- data/lib/stripe/services/v2/core/account_service.rb +16 -2
- data/lib/stripe/services/v2/core_service.rb +3 -3
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +4 -1
- data/lib/stripe/services/v2/money_management_service.rb +3 -3
- data/lib/stripe/stripe_service.rb +3 -1
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +142341 -140132
- metadata +2 -2
@@ -34,6 +34,15 @@ module Stripe
|
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
|
+
class ReaderSecurity < Stripe::RequestParams
|
38
|
+
# Passcode used to access a reader's admin menu.
|
39
|
+
attr_accessor :admin_menu_passcode
|
40
|
+
|
41
|
+
def initialize(admin_menu_passcode: nil)
|
42
|
+
@admin_menu_passcode = admin_menu_passcode
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
37
46
|
class RebootWindow < Stripe::RequestParams
|
38
47
|
# Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
|
39
48
|
attr_accessor :end_hour
|
@@ -236,6 +245,21 @@ module Stripe
|
|
236
245
|
end
|
237
246
|
end
|
238
247
|
|
248
|
+
class Mxn < Stripe::RequestParams
|
249
|
+
# Fixed amounts displayed when collecting a tip
|
250
|
+
attr_accessor :fixed_amounts
|
251
|
+
# Percentages displayed when collecting a tip
|
252
|
+
attr_accessor :percentages
|
253
|
+
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
254
|
+
attr_accessor :smart_tip_threshold
|
255
|
+
|
256
|
+
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
|
257
|
+
@fixed_amounts = fixed_amounts
|
258
|
+
@percentages = percentages
|
259
|
+
@smart_tip_threshold = smart_tip_threshold
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
239
263
|
class Myr < Stripe::RequestParams
|
240
264
|
# Fixed amounts displayed when collecting a tip
|
241
265
|
attr_accessor :fixed_amounts
|
@@ -379,6 +403,8 @@ module Stripe
|
|
379
403
|
attr_accessor :huf
|
380
404
|
# Tipping configuration for JPY
|
381
405
|
attr_accessor :jpy
|
406
|
+
# Tipping configuration for MXN
|
407
|
+
attr_accessor :mxn
|
382
408
|
# Tipping configuration for MYR
|
383
409
|
attr_accessor :myr
|
384
410
|
# Tipping configuration for NOK
|
@@ -409,6 +435,7 @@ module Stripe
|
|
409
435
|
hkd: nil,
|
410
436
|
huf: nil,
|
411
437
|
jpy: nil,
|
438
|
+
mxn: nil,
|
412
439
|
myr: nil,
|
413
440
|
nok: nil,
|
414
441
|
nzd: nil,
|
@@ -430,6 +457,7 @@ module Stripe
|
|
430
457
|
@hkd = hkd
|
431
458
|
@huf = huf
|
432
459
|
@jpy = jpy
|
460
|
+
@mxn = mxn
|
433
461
|
@myr = myr
|
434
462
|
@nok = nok
|
435
463
|
@nzd = nzd
|
@@ -536,6 +564,8 @@ module Stripe
|
|
536
564
|
attr_accessor :name
|
537
565
|
# Configurations for collecting transactions offline.
|
538
566
|
attr_accessor :offline
|
567
|
+
# Configurations for reader security settings.
|
568
|
+
attr_accessor :reader_security
|
539
569
|
# Reboot time settings for readers that support customized reboot time configuration.
|
540
570
|
attr_accessor :reboot_window
|
541
571
|
# An object containing device type specific settings for Stripe S700 readers
|
@@ -552,6 +582,7 @@ module Stripe
|
|
552
582
|
expand: nil,
|
553
583
|
name: nil,
|
554
584
|
offline: nil,
|
585
|
+
reader_security: nil,
|
555
586
|
reboot_window: nil,
|
556
587
|
stripe_s700: nil,
|
557
588
|
tipping: nil,
|
@@ -562,6 +593,7 @@ module Stripe
|
|
562
593
|
@expand = expand
|
563
594
|
@name = name
|
564
595
|
@offline = offline
|
596
|
+
@reader_security = reader_security
|
565
597
|
@reboot_window = reboot_window
|
566
598
|
@stripe_s700 = stripe_s700
|
567
599
|
@tipping = tipping
|
@@ -616,6 +648,15 @@ module Stripe
|
|
616
648
|
end
|
617
649
|
end
|
618
650
|
|
651
|
+
class ReaderSecurity < Stripe::RequestParams
|
652
|
+
# Passcode used to access a reader's admin menu.
|
653
|
+
attr_accessor :admin_menu_passcode
|
654
|
+
|
655
|
+
def initialize(admin_menu_passcode: nil)
|
656
|
+
@admin_menu_passcode = admin_menu_passcode
|
657
|
+
end
|
658
|
+
end
|
659
|
+
|
619
660
|
class RebootWindow < Stripe::RequestParams
|
620
661
|
# Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
|
621
662
|
attr_accessor :end_hour
|
@@ -818,6 +859,21 @@ module Stripe
|
|
818
859
|
end
|
819
860
|
end
|
820
861
|
|
862
|
+
class Mxn < Stripe::RequestParams
|
863
|
+
# Fixed amounts displayed when collecting a tip
|
864
|
+
attr_accessor :fixed_amounts
|
865
|
+
# Percentages displayed when collecting a tip
|
866
|
+
attr_accessor :percentages
|
867
|
+
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
868
|
+
attr_accessor :smart_tip_threshold
|
869
|
+
|
870
|
+
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
|
871
|
+
@fixed_amounts = fixed_amounts
|
872
|
+
@percentages = percentages
|
873
|
+
@smart_tip_threshold = smart_tip_threshold
|
874
|
+
end
|
875
|
+
end
|
876
|
+
|
821
877
|
class Myr < Stripe::RequestParams
|
822
878
|
# Fixed amounts displayed when collecting a tip
|
823
879
|
attr_accessor :fixed_amounts
|
@@ -961,6 +1017,8 @@ module Stripe
|
|
961
1017
|
attr_accessor :huf
|
962
1018
|
# Tipping configuration for JPY
|
963
1019
|
attr_accessor :jpy
|
1020
|
+
# Tipping configuration for MXN
|
1021
|
+
attr_accessor :mxn
|
964
1022
|
# Tipping configuration for MYR
|
965
1023
|
attr_accessor :myr
|
966
1024
|
# Tipping configuration for NOK
|
@@ -991,6 +1049,7 @@ module Stripe
|
|
991
1049
|
hkd: nil,
|
992
1050
|
huf: nil,
|
993
1051
|
jpy: nil,
|
1052
|
+
mxn: nil,
|
994
1053
|
myr: nil,
|
995
1054
|
nok: nil,
|
996
1055
|
nzd: nil,
|
@@ -1012,6 +1071,7 @@ module Stripe
|
|
1012
1071
|
@hkd = hkd
|
1013
1072
|
@huf = huf
|
1014
1073
|
@jpy = jpy
|
1074
|
+
@mxn = mxn
|
1015
1075
|
@myr = myr
|
1016
1076
|
@nok = nok
|
1017
1077
|
@nzd = nzd
|
@@ -1118,6 +1178,8 @@ module Stripe
|
|
1118
1178
|
attr_accessor :name
|
1119
1179
|
# Configurations for collecting transactions offline.
|
1120
1180
|
attr_accessor :offline
|
1181
|
+
# Configurations for reader security settings.
|
1182
|
+
attr_accessor :reader_security
|
1121
1183
|
# Reboot time settings for readers that support customized reboot time configuration.
|
1122
1184
|
attr_accessor :reboot_window
|
1123
1185
|
# An object containing device type specific settings for Stripe S700 readers
|
@@ -1134,6 +1196,7 @@ module Stripe
|
|
1134
1196
|
expand: nil,
|
1135
1197
|
name: nil,
|
1136
1198
|
offline: nil,
|
1199
|
+
reader_security: nil,
|
1137
1200
|
reboot_window: nil,
|
1138
1201
|
stripe_s700: nil,
|
1139
1202
|
tipping: nil,
|
@@ -1144,6 +1207,7 @@ module Stripe
|
|
1144
1207
|
@expand = expand
|
1145
1208
|
@name = name
|
1146
1209
|
@offline = offline
|
1210
|
+
@reader_security = reader_security
|
1147
1211
|
@reboot_window = reboot_window
|
1148
1212
|
@stripe_s700 = stripe_s700
|
1149
1213
|
@tipping = tipping
|
@@ -6,6 +6,24 @@ module Stripe
|
|
6
6
|
module Terminal
|
7
7
|
class ReaderService < StripeService
|
8
8
|
class PresentPaymentMethodParams < Stripe::RequestParams
|
9
|
+
class Card < Stripe::RequestParams
|
10
|
+
# Card security code.
|
11
|
+
attr_accessor :cvc
|
12
|
+
# Two-digit number representing the card's expiration month.
|
13
|
+
attr_accessor :exp_month
|
14
|
+
# Two- or four-digit number representing the card's expiration year.
|
15
|
+
attr_accessor :exp_year
|
16
|
+
# The card number, as a string without any separators.
|
17
|
+
attr_accessor :number
|
18
|
+
|
19
|
+
def initialize(cvc: nil, exp_month: nil, exp_year: nil, number: nil)
|
20
|
+
@cvc = cvc
|
21
|
+
@exp_month = exp_month
|
22
|
+
@exp_year = exp_year
|
23
|
+
@number = number
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
9
27
|
class CardPresent < Stripe::RequestParams
|
10
28
|
# The card number, as a string without any separators.
|
11
29
|
attr_accessor :number
|
@@ -25,6 +43,8 @@ module Stripe
|
|
25
43
|
end
|
26
44
|
# Simulated on-reader tip amount.
|
27
45
|
attr_accessor :amount_tip
|
46
|
+
# Simulated data for the card payment method.
|
47
|
+
attr_accessor :card
|
28
48
|
# Simulated data for the card_present payment method.
|
29
49
|
attr_accessor :card_present
|
30
50
|
# Specifies which fields in the response should be expanded.
|
@@ -36,12 +56,14 @@ module Stripe
|
|
36
56
|
|
37
57
|
def initialize(
|
38
58
|
amount_tip: nil,
|
59
|
+
card: nil,
|
39
60
|
card_present: nil,
|
40
61
|
expand: nil,
|
41
62
|
interac_present: nil,
|
42
63
|
type: nil
|
43
64
|
)
|
44
65
|
@amount_tip = amount_tip
|
66
|
+
@card = card
|
45
67
|
@card_present = card_present
|
46
68
|
@expand = expand
|
47
69
|
@interac_present = interac_present
|
@@ -4,7 +4,7 @@ module Stripe
|
|
4
4
|
class V1Services < StripeService
|
5
5
|
# v1 accessors: The beginning of the section generated from our OpenAPI spec
|
6
6
|
attr_reader :accounts
|
7
|
-
attr_reader :account_links, :account_notices, :account_sessions, :apple_pay_domains, :application_fees, :apps, :balance, :balance_settings, :balance_transactions, :billing, :billing_portal, :capital, :charges, :checkout, :climate, :confirmation_tokens, :
|
7
|
+
attr_reader :account_links, :account_notices, :account_sessions, :apple_pay_domains, :application_fees, :apps, :balance, :balance_settings, :balance_transactions, :billing, :billing_portal, :capital, :charges, :checkout, :climate, :confirmation_tokens, :country_specs, :coupons, :credit_notes, :customers, :customer_sessions, :disputes, :entitlements, :ephemeral_keys, :events, :exchange_rates, :external_accounts, :files, :file_links, :financial_connections, :forwarding, :fx_quotes, :identity, :invoices, :invoice_items, :invoice_payments, :invoice_rendering_templates, :issuing, :mandates, :margins, :orders, :payment_attempt_records, :payment_intents, :payment_links, :payment_methods, :payment_method_configurations, :payment_method_domains, :payment_records, :payouts, :plans, :prices, :privacy, :products, :promotion_codes, :quotes, :radar, :refunds, :reporting, :reviews, :setup_attempts, :setup_intents, :shipping_rates, :sigma, :sources, :subscriptions, :subscription_items, :subscription_schedules, :tax, :tax_codes, :tax_ids, :tax_rates, :terminal, :test_helpers, :tokens, :topups, :transfers, :treasury, :webhook_endpoints
|
8
8
|
# v1 accessors: The end of the section generated from our OpenAPI spec
|
9
9
|
|
10
10
|
# OAuthService is manually maintained, as it has special behaviors
|
@@ -30,7 +30,6 @@ module Stripe
|
|
30
30
|
@checkout = Stripe::CheckoutService.new(@requestor)
|
31
31
|
@climate = Stripe::ClimateService.new(@requestor)
|
32
32
|
@confirmation_tokens = Stripe::ConfirmationTokenService.new(@requestor)
|
33
|
-
@test_helpers = Stripe::TestHelpersService.new(@requestor)
|
34
33
|
@country_specs = Stripe::CountrySpecService.new(@requestor)
|
35
34
|
@coupons = Stripe::CouponService.new(@requestor)
|
36
35
|
@credit_notes = Stripe::CreditNoteService.new(@requestor)
|
@@ -41,6 +40,7 @@ module Stripe
|
|
41
40
|
@ephemeral_keys = Stripe::EphemeralKeyService.new(@requestor)
|
42
41
|
@events = Stripe::EventService.new(@requestor)
|
43
42
|
@exchange_rates = Stripe::ExchangeRateService.new(@requestor)
|
43
|
+
@external_accounts = Stripe::ExternalAccountService.new(@requestor)
|
44
44
|
@files = Stripe::FileService.new(@requestor)
|
45
45
|
@file_links = Stripe::FileLinkService.new(@requestor)
|
46
46
|
@financial_connections = Stripe::FinancialConnectionsService.new(@requestor)
|
@@ -48,9 +48,9 @@ module Stripe
|
|
48
48
|
@fx_quotes = Stripe::FxQuoteService.new(@requestor)
|
49
49
|
@identity = Stripe::IdentityService.new(@requestor)
|
50
50
|
@invoices = Stripe::InvoiceService.new(@requestor)
|
51
|
+
@invoice_items = Stripe::InvoiceItemService.new(@requestor)
|
51
52
|
@invoice_payments = Stripe::InvoicePaymentService.new(@requestor)
|
52
53
|
@invoice_rendering_templates = Stripe::InvoiceRenderingTemplateService.new(@requestor)
|
53
|
-
@invoice_items = Stripe::InvoiceItemService.new(@requestor)
|
54
54
|
@issuing = Stripe::IssuingService.new(@requestor)
|
55
55
|
@mandates = Stripe::MandateService.new(@requestor)
|
56
56
|
@margins = Stripe::MarginService.new(@requestor)
|
@@ -73,10 +73,10 @@ module Stripe
|
|
73
73
|
@refunds = Stripe::RefundService.new(@requestor)
|
74
74
|
@reporting = Stripe::ReportingService.new(@requestor)
|
75
75
|
@reviews = Stripe::ReviewService.new(@requestor)
|
76
|
-
@sigma = Stripe::SigmaService.new(@requestor)
|
77
76
|
@setup_attempts = Stripe::SetupAttemptService.new(@requestor)
|
78
77
|
@setup_intents = Stripe::SetupIntentService.new(@requestor)
|
79
78
|
@shipping_rates = Stripe::ShippingRateService.new(@requestor)
|
79
|
+
@sigma = Stripe::SigmaService.new(@requestor)
|
80
80
|
@sources = Stripe::SourceService.new(@requestor)
|
81
81
|
@subscriptions = Stripe::SubscriptionService.new(@requestor)
|
82
82
|
@subscription_items = Stripe::SubscriptionItemService.new(@requestor)
|
@@ -86,12 +86,12 @@ module Stripe
|
|
86
86
|
@tax_ids = Stripe::TaxIdService.new(@requestor)
|
87
87
|
@tax_rates = Stripe::TaxRateService.new(@requestor)
|
88
88
|
@terminal = Stripe::TerminalService.new(@requestor)
|
89
|
+
@test_helpers = Stripe::TestHelpersService.new(@requestor)
|
89
90
|
@tokens = Stripe::TokenService.new(@requestor)
|
90
91
|
@topups = Stripe::TopupService.new(@requestor)
|
91
92
|
@transfers = Stripe::TransferService.new(@requestor)
|
92
93
|
@treasury = Stripe::TreasuryService.new(@requestor)
|
93
94
|
@webhook_endpoints = Stripe::WebhookEndpointService.new(@requestor)
|
94
|
-
@external_accounts = Stripe::ExternalAccountService.new(@requestor)
|
95
95
|
# v1 services: The end of the section generated from our OpenAPI spec
|
96
96
|
|
97
97
|
@oauth = OAuthService.new(@requestor)
|
@@ -4,14 +4,14 @@
|
|
4
4
|
module Stripe
|
5
5
|
module V2
|
6
6
|
class BillingService < StripeService
|
7
|
-
attr_reader :meter_event_adjustments, :meter_event_session, :meter_event_stream
|
7
|
+
attr_reader :meter_events, :meter_event_adjustments, :meter_event_session, :meter_event_stream
|
8
8
|
|
9
9
|
def initialize(requestor)
|
10
10
|
super
|
11
|
+
@meter_events = Stripe::V2::Billing::MeterEventService.new(@requestor)
|
11
12
|
@meter_event_adjustments = Stripe::V2::Billing::MeterEventAdjustmentService.new(@requestor)
|
12
13
|
@meter_event_session = Stripe::V2::Billing::MeterEventSessionService.new(@requestor)
|
13
14
|
@meter_event_stream = Stripe::V2::Billing::MeterEventStreamService.new(@requestor)
|
14
|
-
@meter_events = Stripe::V2::Billing::MeterEventService.new(@requestor)
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -2384,6 +2384,8 @@ module Stripe
|
|
2384
2384
|
@phone = phone
|
2385
2385
|
end
|
2386
2386
|
end
|
2387
|
+
# Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
|
2388
|
+
attr_accessor :applied
|
2387
2389
|
# Automatic indirect tax settings to be used when automatic tax calculation is enabled on the customer's invoices, subscriptions, checkout sessions, or payment links. Surfaces if automatic tax calculation is possible given the current customer location information.
|
2388
2390
|
attr_accessor :automatic_indirect_tax
|
2389
2391
|
# Billing settings - default settings used for this customer in Billing flows such as Invoices and Subscriptions.
|
@@ -2396,12 +2398,14 @@ module Stripe
|
|
2396
2398
|
attr_accessor :test_clock
|
2397
2399
|
|
2398
2400
|
def initialize(
|
2401
|
+
applied: nil,
|
2399
2402
|
automatic_indirect_tax: nil,
|
2400
2403
|
billing: nil,
|
2401
2404
|
capabilities: nil,
|
2402
2405
|
shipping: nil,
|
2403
2406
|
test_clock: nil
|
2404
2407
|
)
|
2408
|
+
@applied = applied
|
2405
2409
|
@automatic_indirect_tax = automatic_indirect_tax
|
2406
2410
|
@billing = billing
|
2407
2411
|
@capabilities = capabilities
|
@@ -3099,6 +3103,8 @@ module Stripe
|
|
3099
3103
|
@url = url
|
3100
3104
|
end
|
3101
3105
|
end
|
3106
|
+
# Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
|
3107
|
+
attr_accessor :applied
|
3102
3108
|
# Settings used for Bacs debit payments.
|
3103
3109
|
attr_accessor :bacs_debit_payments
|
3104
3110
|
# Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and other products.
|
@@ -3115,6 +3121,7 @@ module Stripe
|
|
3115
3121
|
attr_accessor :support
|
3116
3122
|
|
3117
3123
|
def initialize(
|
3124
|
+
applied: nil,
|
3118
3125
|
bacs_debit_payments: nil,
|
3119
3126
|
branding: nil,
|
3120
3127
|
capabilities: nil,
|
@@ -3123,6 +3130,7 @@ module Stripe
|
|
3123
3130
|
statement_descriptor: nil,
|
3124
3131
|
support: nil
|
3125
3132
|
)
|
3133
|
+
@applied = applied
|
3126
3134
|
@bacs_debit_payments = bacs_debit_payments
|
3127
3135
|
@branding = branding
|
3128
3136
|
@capabilities = capabilities
|
@@ -3202,12 +3210,15 @@ module Stripe
|
|
3202
3210
|
@stripe_balance = stripe_balance
|
3203
3211
|
end
|
3204
3212
|
end
|
3213
|
+
# Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
|
3214
|
+
attr_accessor :applied
|
3205
3215
|
# Capabilities to request on the Recipient Configuration.
|
3206
3216
|
attr_accessor :capabilities
|
3207
3217
|
# The payout method id to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via dashboard. Can also be explicitly set to `null` to clear the existing default outbound destination.
|
3208
3218
|
attr_accessor :default_outbound_destination
|
3209
3219
|
|
3210
|
-
def initialize(capabilities: nil, default_outbound_destination: nil)
|
3220
|
+
def initialize(applied: nil, capabilities: nil, default_outbound_destination: nil)
|
3221
|
+
@applied = applied
|
3211
3222
|
@capabilities = capabilities
|
3212
3223
|
@default_outbound_destination = default_outbound_destination
|
3213
3224
|
end
|
@@ -3360,10 +3371,13 @@ module Stripe
|
|
3360
3371
|
@outbound_transfers = outbound_transfers
|
3361
3372
|
end
|
3362
3373
|
end
|
3374
|
+
# Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
|
3375
|
+
attr_accessor :applied
|
3363
3376
|
# Capabilities to request on the Storer Configuration.
|
3364
3377
|
attr_accessor :capabilities
|
3365
3378
|
|
3366
|
-
def initialize(capabilities: nil)
|
3379
|
+
def initialize(applied: nil, capabilities: nil)
|
3380
|
+
@applied = applied
|
3367
3381
|
@capabilities = capabilities
|
3368
3382
|
end
|
3369
3383
|
end
|
@@ -4,14 +4,14 @@
|
|
4
4
|
module Stripe
|
5
5
|
module V2
|
6
6
|
class CoreService < StripeService
|
7
|
-
attr_reader :
|
7
|
+
attr_reader :accounts, :account_links, :events, :event_destinations, :vault
|
8
8
|
|
9
9
|
def initialize(requestor)
|
10
10
|
super
|
11
|
-
@account_links = Stripe::V2::Core::AccountLinkService.new(@requestor)
|
12
11
|
@accounts = Stripe::V2::Core::AccountService.new(@requestor)
|
13
|
-
@
|
12
|
+
@account_links = Stripe::V2::Core::AccountLinkService.new(@requestor)
|
14
13
|
@events = Stripe::V2::Core::EventService.new(@requestor)
|
14
|
+
@event_destinations = Stripe::V2::Core::EventDestinationService.new(@requestor)
|
15
15
|
@vault = Stripe::V2::Core::VaultService.new(@requestor)
|
16
16
|
end
|
17
17
|
end
|
@@ -26,6 +26,8 @@ module Stripe
|
|
26
26
|
@holds_currencies = holds_currencies
|
27
27
|
end
|
28
28
|
end
|
29
|
+
# A descriptive name for the FinancialAccount, up to 50 characters long. This name will be used in the Stripe Dashboard and embedded components.
|
30
|
+
attr_accessor :display_name
|
29
31
|
# Metadata associated with the FinancialAccount.
|
30
32
|
attr_accessor :metadata
|
31
33
|
# Parameters specific to creating `storage` type FinancialAccounts.
|
@@ -33,7 +35,8 @@ module Stripe
|
|
33
35
|
# The type of FinancialAccount to create.
|
34
36
|
attr_accessor :type
|
35
37
|
|
36
|
-
def initialize(metadata: nil, storage: nil, type: nil)
|
38
|
+
def initialize(display_name: nil, metadata: nil, storage: nil, type: nil)
|
39
|
+
@display_name = display_name
|
37
40
|
@metadata = metadata
|
38
41
|
@storage = storage
|
39
42
|
@type = type
|
@@ -4,7 +4,7 @@
|
|
4
4
|
module Stripe
|
5
5
|
module V2
|
6
6
|
class MoneyManagementService < StripeService
|
7
|
-
attr_reader :adjustments, :financial_accounts, :financial_addresses, :inbound_transfers, :
|
7
|
+
attr_reader :adjustments, :financial_accounts, :financial_addresses, :inbound_transfers, :outbound_payments, :outbound_payment_quotes, :outbound_setup_intents, :outbound_transfers, :payout_methods, :payout_methods_bank_account_spec, :received_credits, :received_debits, :transactions, :transaction_entries
|
8
8
|
|
9
9
|
def initialize(requestor)
|
10
10
|
super
|
@@ -12,9 +12,9 @@ module Stripe
|
|
12
12
|
@financial_accounts = Stripe::V2::MoneyManagement::FinancialAccountService.new(@requestor)
|
13
13
|
@financial_addresses = Stripe::V2::MoneyManagement::FinancialAddressService.new(@requestor)
|
14
14
|
@inbound_transfers = Stripe::V2::MoneyManagement::InboundTransferService.new(@requestor)
|
15
|
+
@outbound_payments = Stripe::V2::MoneyManagement::OutboundPaymentService.new(@requestor)
|
15
16
|
@outbound_payment_quotes = Stripe::V2::MoneyManagement::OutboundPaymentQuoteService
|
16
17
|
.new(@requestor)
|
17
|
-
@outbound_payments = Stripe::V2::MoneyManagement::OutboundPaymentService.new(@requestor)
|
18
18
|
@outbound_setup_intents = Stripe::V2::MoneyManagement::OutboundSetupIntentService
|
19
19
|
.new(@requestor)
|
20
20
|
@outbound_transfers = Stripe::V2::MoneyManagement::OutboundTransferService.new(@requestor)
|
@@ -23,8 +23,8 @@ module Stripe
|
|
23
23
|
.new(@requestor)
|
24
24
|
@received_credits = Stripe::V2::MoneyManagement::ReceivedCreditService.new(@requestor)
|
25
25
|
@received_debits = Stripe::V2::MoneyManagement::ReceivedDebitService.new(@requestor)
|
26
|
-
@transaction_entries = Stripe::V2::MoneyManagement::TransactionEntryService.new(@requestor)
|
27
26
|
@transactions = Stripe::V2::MoneyManagement::TransactionService.new(@requestor)
|
27
|
+
@transaction_entries = Stripe::V2::MoneyManagement::TransactionEntryService.new(@requestor)
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
@@ -14,7 +14,8 @@ module Stripe
|
|
14
14
|
path,
|
15
15
|
base_address,
|
16
16
|
params: params,
|
17
|
-
opts: RequestOptions.extract_opts_from_hash(opts)
|
17
|
+
opts: RequestOptions.extract_opts_from_hash(opts),
|
18
|
+
usage: ["stripe_client"]
|
18
19
|
)
|
19
20
|
end
|
20
21
|
|
@@ -25,6 +26,7 @@ module Stripe
|
|
25
26
|
base_address,
|
26
27
|
params: params,
|
27
28
|
opts: RequestOptions.extract_opts_from_hash(opts),
|
29
|
+
usage: ["stripe_client"],
|
28
30
|
&read_body_chunk_block
|
29
31
|
)
|
30
32
|
end
|
data/lib/stripe/version.rb
CHANGED