stripe 19.3.0.pre.alpha.1 → 19.3.0.pre.alpha.3
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_requestor.rb +34 -1
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/event_types.rb +4 -0
- data/lib/stripe/events/v2_signals_account_signal_merchant_delinquency_ready_event.rb +44 -0
- data/lib/stripe/object_types.rb +9 -0
- data/lib/stripe/params/account_create_params.rb +35 -0
- data/lib/stripe/params/account_person_create_params.rb +28 -0
- data/lib/stripe/params/account_person_update_params.rb +28 -0
- data/lib/stripe/params/account_update_params.rb +35 -0
- data/lib/stripe/params/charge_capture_params.rb +0 -169
- data/lib/stripe/params/charge_update_params.rb +0 -169
- data/lib/stripe/params/delegated_checkout/order_retrieve_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_list_orders_params.rb +24 -0
- data/lib/stripe/params/delegated_checkout/requested_session_order_list_params.rb +24 -0
- data/lib/stripe/params/gift_card_activate_params.rb +30 -0
- data/lib/stripe/params/gift_card_cashout_params.rb +16 -0
- data/lib/stripe/params/gift_card_check_balance_params.rb +16 -0
- data/lib/stripe/params/gift_card_create_params.rb +28 -0
- data/lib/stripe/params/gift_card_operation_retrieve_params.rb +13 -0
- data/lib/stripe/params/gift_card_reload_params.rb +22 -0
- data/lib/stripe/params/gift_card_retrieve_params.rb +13 -0
- data/lib/stripe/params/gift_card_void_operation_params.rb +19 -0
- data/lib/stripe/params/issuing/dispute_update_params.rb +22 -1
- data/lib/stripe/params/payment_attempt_record_report_canceled_params.rb +10 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +0 -169
- data/lib/stripe/params/payment_intent_confirm_params.rb +82 -68
- data/lib/stripe/params/payment_intent_create_params.rb +86 -80
- data/lib/stripe/params/payment_intent_update_crypto_refund_address_params.rb +19 -0
- data/lib/stripe/params/payment_intent_update_params.rb +82 -68
- data/lib/stripe/params/payment_location_capability_list_params.rb +1 -1
- data/lib/stripe/params/payment_location_capability_retrieve_params.rb +1 -1
- data/lib/stripe/params/payment_location_capability_update_params.rb +1 -1
- data/lib/stripe/params/payment_location_list_params.rb +10 -1
- data/lib/stripe/params/payment_location_update_params.rb +1 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +10 -1
- data/lib/stripe/params/radar/account_evaluation_create_params.rb +38 -4
- data/lib/stripe/params/radar/customer_evaluation_create_params.rb +19 -2
- data/lib/stripe/params/tax/calculation_create_params.rb +42 -0
- data/lib/stripe/params/tax_fund_list_params.rb +42 -0
- data/lib/stripe/params/tax_fund_retrieve_params.rb +13 -0
- data/lib/stripe/params/token_create_params.rb +70 -0
- data/lib/stripe/params/v2/billing/contract_activate_params.rb +17 -0
- data/lib/stripe/params/v2/billing/contract_cancel_params.rb +17 -0
- data/lib/stripe/params/v2/billing/contract_create_params.rb +831 -0
- data/lib/stripe/params/v2/billing/contract_list_params.rb +20 -0
- data/lib/stripe/params/v2/billing/contract_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/billing/contract_update_params.rb +522 -0
- data/lib/stripe/params/v2/billing/contracts/license_pricing/quantity_change_list_quantity_changes_params.rb +21 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +4 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +4 -1
- data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +8 -1
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +1 -1
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +1 -1
- data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +8 -1
- data/lib/stripe/params/v2/signals/account_signal_list_params.rb +35 -0
- data/lib/stripe/params/v2/signals/account_signal_retrieve_params.rb +10 -0
- data/lib/stripe/params.rb +56 -0
- data/lib/stripe/resources/charge.rb +31 -1
- data/lib/stripe/resources/checkout/session.rb +16 -0
- data/lib/stripe/resources/confirmation_token.rb +16 -0
- data/lib/stripe/resources/delegated_checkout/order.rb +142 -0
- data/lib/stripe/resources/delegated_checkout/order_event.rb +118 -0
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +20 -0
- data/lib/stripe/resources/gift_card.rb +144 -0
- data/lib/stripe/resources/gift_card_operation.rb +289 -0
- data/lib/stripe/resources/issuing/authorization.rb +6 -0
- data/lib/stripe/resources/issuing/dispute.rb +24 -0
- data/lib/stripe/resources/issuing/token.rb +8 -0
- data/lib/stripe/resources/payment_attempt_record.rb +67 -1
- data/lib/stripe/resources/payment_intent.rb +88 -19
- data/lib/stripe/resources/payment_location.rb +1 -1
- data/lib/stripe/resources/payment_location_capability.rb +6 -6
- data/lib/stripe/resources/payment_method.rb +16 -0
- data/lib/stripe/resources/payment_record.rb +67 -1
- data/lib/stripe/resources/person.rb +26 -0
- data/lib/stripe/resources/setup_intent.rb +2 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +41 -1
- data/lib/stripe/resources/tax/transaction_line_item.rb +41 -1
- data/lib/stripe/resources/tax_fund.rb +179 -0
- data/lib/stripe/resources/v2/billing/contract.rb +978 -0
- data/lib/stripe/resources/v2/billing/contract_license_pricing_quantity_change.rb +43 -0
- data/lib/stripe/resources/v2/core/account.rb +1 -1
- data/lib/stripe/resources/v2/core/fee_batch.rb +86 -3
- data/lib/stripe/resources/v2/core/fee_entry.rb +40 -2
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +18 -1
- data/lib/stripe/resources/v2/money_management/inbound_transfer.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/resources/v2/reporting/report_run.rb +18 -1
- data/lib/stripe/resources/v2/signals/account_signal.rb +144 -0
- data/lib/stripe/resources.rb +25 -0
- data/lib/stripe/services/delegated_checkout/order_service.rb +19 -0
- data/lib/stripe/services/delegated_checkout/requested_session_order_service.rb +19 -0
- data/lib/stripe/services/delegated_checkout/requested_session_service.rb +7 -0
- data/lib/stripe/services/delegated_checkout_service.rb +2 -1
- data/lib/stripe/services/gift_card_operation_service.rb +17 -0
- data/lib/stripe/services/gift_card_service.rb +77 -0
- data/lib/stripe/services/payment_intent_service.rb +11 -0
- data/lib/stripe/services/payment_location_capability_service.rb +3 -3
- data/lib/stripe/services/tax_fund_service.rb +22 -0
- data/lib/stripe/services/v1_services.rb +4 -1
- data/lib/stripe/services/v2/billing/contract_service.rb +91 -0
- data/lib/stripe/services/v2/billing/contracts/license_pricing/quantity_change_service.rb +25 -0
- data/lib/stripe/services/v2/billing/contracts/license_pricing_service.rb +20 -0
- data/lib/stripe/services/v2/billing_service.rb +2 -1
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +1 -0
- data/lib/stripe/services/v2/{payment_service.rb → payments_service.rb} +1 -1
- data/lib/stripe/services/v2/signals/account_signal_service.rb +32 -0
- data/lib/stripe/services/v2/signals_service.rb +15 -0
- data/lib/stripe/services/v2_services.rb +3 -2
- data/lib/stripe/services.rb +32 -2
- data/lib/stripe/stripe_event_notification_handler.rb +6 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +7167 -2107
- metadata +45 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d30433088badf7a47839ee36785c170430d18e8aa077e3b830ab53ccd1c137a3
|
|
4
|
+
data.tar.gz: '04807a3cd716d35e479138e6ef26f5879d15d8fde68321c8e50a03b0c07adb6a'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 22e4c6ccf670a11d41d4f9c5219d8eb7c0f9dd96094ad66e38fa149697f449daea9cf6ad3c03c145e9783247a4157bb0d99690588d9e52af2c9c2de1cbd532f9
|
|
7
|
+
data.tar.gz: 96d9af074f01de4dc4e7ea3753cf32760486c6b98e82ee9b880de8d8b83c061abd0bb81a600c7e9821799a0ae0fa02551ffcba73c9ea3c3c014876b5c29c36c9
|
data/lib/stripe/api_requestor.rb
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require "digest"
|
|
4
|
+
require "socket"
|
|
3
5
|
require "stripe/instrumentation"
|
|
4
6
|
|
|
5
7
|
module Stripe
|
|
@@ -201,6 +203,9 @@ module Stripe
|
|
|
201
203
|
)
|
|
202
204
|
req_opts = RequestOptions.extract_opts_from_hash(req_opts)
|
|
203
205
|
|
|
206
|
+
notice = http_resp["stripe-notice"]
|
|
207
|
+
warn("WARNING: #{notice}") if notice
|
|
208
|
+
|
|
204
209
|
resp = interpret_response(http_resp)
|
|
205
210
|
|
|
206
211
|
# If being called from `APIRequestor#request`, put the last response in
|
|
@@ -1101,6 +1106,31 @@ module Stripe
|
|
|
1101
1106
|
# in so that we can generate a rich user agent header to help debug
|
|
1102
1107
|
# integrations.
|
|
1103
1108
|
class SystemProfiler
|
|
1109
|
+
UNAME_HASH = begin
|
|
1110
|
+
parts = []
|
|
1111
|
+
parts << if RUBY_PLATFORM.match?(/mswin|mingw|cygwin/)
|
|
1112
|
+
begin
|
|
1113
|
+
`ver 2>NUL`.strip
|
|
1114
|
+
rescue StandardError
|
|
1115
|
+
""
|
|
1116
|
+
end
|
|
1117
|
+
else
|
|
1118
|
+
begin
|
|
1119
|
+
`uname -a 2>/dev/null`.strip
|
|
1120
|
+
rescue StandardError
|
|
1121
|
+
""
|
|
1122
|
+
end
|
|
1123
|
+
end
|
|
1124
|
+
parts << begin
|
|
1125
|
+
Socket.gethostname
|
|
1126
|
+
rescue StandardError
|
|
1127
|
+
""
|
|
1128
|
+
end
|
|
1129
|
+
Digest::MD5.hexdigest(parts.join(" "))
|
|
1130
|
+
rescue StandardError
|
|
1131
|
+
""
|
|
1132
|
+
end
|
|
1133
|
+
|
|
1104
1134
|
AI_AGENTS = [
|
|
1105
1135
|
# aiAgents: The beginning of the section generated from our OpenAPI spec
|
|
1106
1136
|
%w[ANTIGRAVITY_CLI_ALIAS antigravity],
|
|
@@ -1136,7 +1166,10 @@ module Stripe
|
|
|
1136
1166
|
engine: defined?(RUBY_ENGINE) ? RUBY_ENGINE : "",
|
|
1137
1167
|
}.delete_if { |_k, v| v.nil? }
|
|
1138
1168
|
|
|
1139
|
-
|
|
1169
|
+
if Stripe.enable_telemetry?
|
|
1170
|
+
ua[:platform] = RUBY_PLATFORM
|
|
1171
|
+
ua[:source] = UNAME_HASH unless UNAME_HASH.empty?
|
|
1172
|
+
end
|
|
1140
1173
|
|
|
1141
1174
|
ai_agent = detect_ai_agent
|
|
1142
1175
|
ua[:ai_agent] = ai_agent unless ai_agent.empty?
|
data/lib/stripe/api_version.rb
CHANGED
data/lib/stripe/event_types.rb
CHANGED
|
@@ -638,6 +638,8 @@ module Stripe
|
|
|
638
638
|
Events::V2ReportingReportRunUpdatedEvent.lookup_type => Events::V2ReportingReportRunUpdatedEvent,
|
|
639
639
|
Events::V2SignalsAccountSignalFraudulentMerchantReadyEvent.lookup_type =>
|
|
640
640
|
Events::V2SignalsAccountSignalFraudulentMerchantReadyEvent,
|
|
641
|
+
Events::V2SignalsAccountSignalMerchantDelinquencyReadyEvent.lookup_type =>
|
|
642
|
+
Events::V2SignalsAccountSignalMerchantDelinquencyReadyEvent,
|
|
641
643
|
# v2 event types: The end of the section generated from our OpenAPI spec
|
|
642
644
|
}
|
|
643
645
|
end
|
|
@@ -1403,6 +1405,8 @@ module Stripe
|
|
|
1403
1405
|
Events::V2ReportingReportRunUpdatedEventNotification,
|
|
1404
1406
|
Events::V2SignalsAccountSignalFraudulentMerchantReadyEventNotification.lookup_type =>
|
|
1405
1407
|
Events::V2SignalsAccountSignalFraudulentMerchantReadyEventNotification,
|
|
1408
|
+
Events::V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification.lookup_type =>
|
|
1409
|
+
Events::V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification,
|
|
1406
1410
|
# event notification types: The end of the section generated from our OpenAPI spec
|
|
1407
1411
|
}
|
|
1408
1412
|
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Events
|
|
6
|
+
# Occurs when a merchant delinquency signal is ready for an account.
|
|
7
|
+
class V2SignalsAccountSignalMerchantDelinquencyReadyEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.signals.account_signal.merchant_delinquency_ready"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# Retrieves the related object from the API. Makes an API request on every call.
|
|
13
|
+
def fetch_related_object
|
|
14
|
+
_request(
|
|
15
|
+
method: :get,
|
|
16
|
+
path: related_object.url,
|
|
17
|
+
base_address: :api,
|
|
18
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
attr_reader :related_object
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# Occurs when a merchant delinquency signal is ready for an account.
|
|
25
|
+
class V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification < Stripe::V2::Core::EventNotification
|
|
26
|
+
def self.lookup_type
|
|
27
|
+
"v2.signals.account_signal.merchant_delinquency_ready"
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
attr_reader :related_object
|
|
31
|
+
|
|
32
|
+
# Retrieves the AccountSignal related to this EventNotification from the Stripe API. Makes an API request on every call.
|
|
33
|
+
def fetch_related_object
|
|
34
|
+
resp = @client.raw_request(
|
|
35
|
+
:get,
|
|
36
|
+
related_object.url,
|
|
37
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
38
|
+
usage: ["fetch_related_object"]
|
|
39
|
+
)
|
|
40
|
+
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
data/lib/stripe/object_types.rb
CHANGED
|
@@ -62,6 +62,8 @@ module Stripe
|
|
|
62
62
|
CustomerBalanceTransaction.object_name => CustomerBalanceTransaction,
|
|
63
63
|
CustomerCashBalanceTransaction.object_name => CustomerCashBalanceTransaction,
|
|
64
64
|
CustomerSession.object_name => CustomerSession,
|
|
65
|
+
DelegatedCheckout::Order.object_name => DelegatedCheckout::Order,
|
|
66
|
+
DelegatedCheckout::OrderEvent.object_name => DelegatedCheckout::OrderEvent,
|
|
65
67
|
DelegatedCheckout::RequestedSession.object_name => DelegatedCheckout::RequestedSession,
|
|
66
68
|
Discount.object_name => Discount,
|
|
67
69
|
Dispute.object_name => Dispute,
|
|
@@ -86,6 +88,8 @@ module Stripe
|
|
|
86
88
|
FrMealVouchersOnboarding.object_name => FrMealVouchersOnboarding,
|
|
87
89
|
FundingInstructions.object_name => FundingInstructions,
|
|
88
90
|
FxQuote.object_name => FxQuote,
|
|
91
|
+
GiftCard.object_name => GiftCard,
|
|
92
|
+
GiftCardOperation.object_name => GiftCardOperation,
|
|
89
93
|
Identity::BlocklistEntry.object_name => Identity::BlocklistEntry,
|
|
90
94
|
Identity::VerificationReport.object_name => Identity::VerificationReport,
|
|
91
95
|
Identity::VerificationSession.object_name => Identity::VerificationSession,
|
|
@@ -179,6 +183,7 @@ module Stripe
|
|
|
179
183
|
Tax::TransactionLineItem.object_name => Tax::TransactionLineItem,
|
|
180
184
|
TaxCode.object_name => TaxCode,
|
|
181
185
|
TaxDeductedAtSource.object_name => TaxDeductedAtSource,
|
|
186
|
+
TaxFund.object_name => TaxFund,
|
|
182
187
|
TaxId.object_name => TaxId,
|
|
183
188
|
TaxRate.object_name => TaxRate,
|
|
184
189
|
Terminal::Configuration.object_name => Terminal::Configuration,
|
|
@@ -219,6 +224,9 @@ module Stripe
|
|
|
219
224
|
V2::Billing::CadenceSpendModifier.object_name => V2::Billing::CadenceSpendModifier,
|
|
220
225
|
V2::Billing::CollectionSetting.object_name => V2::Billing::CollectionSetting,
|
|
221
226
|
V2::Billing::CollectionSettingVersion.object_name => V2::Billing::CollectionSettingVersion,
|
|
227
|
+
V2::Billing::Contract.object_name => V2::Billing::Contract,
|
|
228
|
+
V2::Billing::ContractLicensePricingQuantityChange.object_name =>
|
|
229
|
+
V2::Billing::ContractLicensePricingQuantityChange,
|
|
222
230
|
V2::Billing::CustomPricingUnit.object_name => V2::Billing::CustomPricingUnit,
|
|
223
231
|
V2::Billing::Intent.object_name => V2::Billing::Intent,
|
|
224
232
|
V2::Billing::IntentAction.object_name => V2::Billing::IntentAction,
|
|
@@ -297,6 +305,7 @@ module Stripe
|
|
|
297
305
|
V2::Payments::SettlementAllocationIntentSplit,
|
|
298
306
|
V2::Reporting::Report.object_name => V2::Reporting::Report,
|
|
299
307
|
V2::Reporting::ReportRun.object_name => V2::Reporting::ReportRun,
|
|
308
|
+
V2::Signals::AccountSignal.object_name => V2::Signals::AccountSignal,
|
|
300
309
|
V2::Tax::ManualRule.object_name => V2::Tax::ManualRule,
|
|
301
310
|
# v2 object classes: The end of the section generated from our OpenAPI spec
|
|
302
311
|
}
|
|
@@ -1904,6 +1904,37 @@ module Stripe
|
|
|
1904
1904
|
end
|
|
1905
1905
|
end
|
|
1906
1906
|
|
|
1907
|
+
class BirthAddress < ::Stripe::RequestParams
|
|
1908
|
+
# City, district, suburb, town, or village.
|
|
1909
|
+
attr_accessor :city
|
|
1910
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1911
|
+
attr_accessor :country
|
|
1912
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1913
|
+
attr_accessor :line1
|
|
1914
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1915
|
+
attr_accessor :line2
|
|
1916
|
+
# ZIP or postal code.
|
|
1917
|
+
attr_accessor :postal_code
|
|
1918
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1919
|
+
attr_accessor :state
|
|
1920
|
+
|
|
1921
|
+
def initialize(
|
|
1922
|
+
city: nil,
|
|
1923
|
+
country: nil,
|
|
1924
|
+
line1: nil,
|
|
1925
|
+
line2: nil,
|
|
1926
|
+
postal_code: nil,
|
|
1927
|
+
state: nil
|
|
1928
|
+
)
|
|
1929
|
+
@city = city
|
|
1930
|
+
@country = country
|
|
1931
|
+
@line1 = line1
|
|
1932
|
+
@line2 = line2
|
|
1933
|
+
@postal_code = postal_code
|
|
1934
|
+
@state = state
|
|
1935
|
+
end
|
|
1936
|
+
end
|
|
1937
|
+
|
|
1907
1938
|
class Dob < ::Stripe::RequestParams
|
|
1908
1939
|
# The day of birth, between 1 and 31.
|
|
1909
1940
|
attr_accessor :day
|
|
@@ -2041,6 +2072,8 @@ module Stripe
|
|
|
2041
2072
|
attr_accessor :address_kana
|
|
2042
2073
|
# The Kanji variation of the individual's primary address (Japan only).
|
|
2043
2074
|
attr_accessor :address_kanji
|
|
2075
|
+
# Attribute for param field birth_address
|
|
2076
|
+
attr_accessor :birth_address
|
|
2044
2077
|
# The individual's date of birth.
|
|
2045
2078
|
attr_accessor :dob
|
|
2046
2079
|
# The individual's email address.
|
|
@@ -2090,6 +2123,7 @@ module Stripe
|
|
|
2090
2123
|
address: nil,
|
|
2091
2124
|
address_kana: nil,
|
|
2092
2125
|
address_kanji: nil,
|
|
2126
|
+
birth_address: nil,
|
|
2093
2127
|
dob: nil,
|
|
2094
2128
|
email: nil,
|
|
2095
2129
|
first_name: nil,
|
|
@@ -2116,6 +2150,7 @@ module Stripe
|
|
|
2116
2150
|
@address = address
|
|
2117
2151
|
@address_kana = address_kana
|
|
2118
2152
|
@address_kanji = address_kanji
|
|
2153
|
+
@birth_address = birth_address
|
|
2119
2154
|
@dob = dob
|
|
2120
2155
|
@email = email
|
|
2121
2156
|
@first_name = first_name
|
|
@@ -120,6 +120,30 @@ module Stripe
|
|
|
120
120
|
end
|
|
121
121
|
end
|
|
122
122
|
|
|
123
|
+
class BirthAddress < ::Stripe::RequestParams
|
|
124
|
+
# City, district, suburb, town, or village.
|
|
125
|
+
attr_accessor :city
|
|
126
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
127
|
+
attr_accessor :country
|
|
128
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
129
|
+
attr_accessor :line1
|
|
130
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
131
|
+
attr_accessor :line2
|
|
132
|
+
# ZIP or postal code.
|
|
133
|
+
attr_accessor :postal_code
|
|
134
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
135
|
+
attr_accessor :state
|
|
136
|
+
|
|
137
|
+
def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil)
|
|
138
|
+
@city = city
|
|
139
|
+
@country = country
|
|
140
|
+
@line1 = line1
|
|
141
|
+
@line2 = line2
|
|
142
|
+
@postal_code = postal_code
|
|
143
|
+
@state = state
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
|
|
123
147
|
class Dob < ::Stripe::RequestParams
|
|
124
148
|
# The day of birth, between 1 and 31.
|
|
125
149
|
attr_accessor :day
|
|
@@ -343,6 +367,8 @@ module Stripe
|
|
|
343
367
|
attr_accessor :address_kana
|
|
344
368
|
# The Kanji variation of the person's address (Japan only).
|
|
345
369
|
attr_accessor :address_kanji
|
|
370
|
+
# The person's place of birth.
|
|
371
|
+
attr_accessor :birth_address
|
|
346
372
|
# The person's date of birth.
|
|
347
373
|
attr_accessor :dob
|
|
348
374
|
# Documents that may be submitted to satisfy various informational requests.
|
|
@@ -403,6 +429,7 @@ module Stripe
|
|
|
403
429
|
address: nil,
|
|
404
430
|
address_kana: nil,
|
|
405
431
|
address_kanji: nil,
|
|
432
|
+
birth_address: nil,
|
|
406
433
|
dob: nil,
|
|
407
434
|
documents: nil,
|
|
408
435
|
email: nil,
|
|
@@ -435,6 +462,7 @@ module Stripe
|
|
|
435
462
|
@address = address
|
|
436
463
|
@address_kana = address_kana
|
|
437
464
|
@address_kanji = address_kanji
|
|
465
|
+
@birth_address = birth_address
|
|
438
466
|
@dob = dob
|
|
439
467
|
@documents = documents
|
|
440
468
|
@email = email
|
|
@@ -120,6 +120,30 @@ module Stripe
|
|
|
120
120
|
end
|
|
121
121
|
end
|
|
122
122
|
|
|
123
|
+
class BirthAddress < ::Stripe::RequestParams
|
|
124
|
+
# City, district, suburb, town, or village.
|
|
125
|
+
attr_accessor :city
|
|
126
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
127
|
+
attr_accessor :country
|
|
128
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
129
|
+
attr_accessor :line1
|
|
130
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
131
|
+
attr_accessor :line2
|
|
132
|
+
# ZIP or postal code.
|
|
133
|
+
attr_accessor :postal_code
|
|
134
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
135
|
+
attr_accessor :state
|
|
136
|
+
|
|
137
|
+
def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil)
|
|
138
|
+
@city = city
|
|
139
|
+
@country = country
|
|
140
|
+
@line1 = line1
|
|
141
|
+
@line2 = line2
|
|
142
|
+
@postal_code = postal_code
|
|
143
|
+
@state = state
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
|
|
123
147
|
class Dob < ::Stripe::RequestParams
|
|
124
148
|
# The day of birth, between 1 and 31.
|
|
125
149
|
attr_accessor :day
|
|
@@ -343,6 +367,8 @@ module Stripe
|
|
|
343
367
|
attr_accessor :address_kana
|
|
344
368
|
# The Kanji variation of the person's address (Japan only).
|
|
345
369
|
attr_accessor :address_kanji
|
|
370
|
+
# The person's place of birth.
|
|
371
|
+
attr_accessor :birth_address
|
|
346
372
|
# The person's date of birth.
|
|
347
373
|
attr_accessor :dob
|
|
348
374
|
# Documents that may be submitted to satisfy various informational requests.
|
|
@@ -403,6 +429,7 @@ module Stripe
|
|
|
403
429
|
address: nil,
|
|
404
430
|
address_kana: nil,
|
|
405
431
|
address_kanji: nil,
|
|
432
|
+
birth_address: nil,
|
|
406
433
|
dob: nil,
|
|
407
434
|
documents: nil,
|
|
408
435
|
email: nil,
|
|
@@ -435,6 +462,7 @@ module Stripe
|
|
|
435
462
|
@address = address
|
|
436
463
|
@address_kana = address_kana
|
|
437
464
|
@address_kanji = address_kanji
|
|
465
|
+
@birth_address = birth_address
|
|
438
466
|
@dob = dob
|
|
439
467
|
@documents = documents
|
|
440
468
|
@email = email
|
|
@@ -1823,6 +1823,37 @@ module Stripe
|
|
|
1823
1823
|
end
|
|
1824
1824
|
end
|
|
1825
1825
|
|
|
1826
|
+
class BirthAddress < ::Stripe::RequestParams
|
|
1827
|
+
# City, district, suburb, town, or village.
|
|
1828
|
+
attr_accessor :city
|
|
1829
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1830
|
+
attr_accessor :country
|
|
1831
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1832
|
+
attr_accessor :line1
|
|
1833
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1834
|
+
attr_accessor :line2
|
|
1835
|
+
# ZIP or postal code.
|
|
1836
|
+
attr_accessor :postal_code
|
|
1837
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1838
|
+
attr_accessor :state
|
|
1839
|
+
|
|
1840
|
+
def initialize(
|
|
1841
|
+
city: nil,
|
|
1842
|
+
country: nil,
|
|
1843
|
+
line1: nil,
|
|
1844
|
+
line2: nil,
|
|
1845
|
+
postal_code: nil,
|
|
1846
|
+
state: nil
|
|
1847
|
+
)
|
|
1848
|
+
@city = city
|
|
1849
|
+
@country = country
|
|
1850
|
+
@line1 = line1
|
|
1851
|
+
@line2 = line2
|
|
1852
|
+
@postal_code = postal_code
|
|
1853
|
+
@state = state
|
|
1854
|
+
end
|
|
1855
|
+
end
|
|
1856
|
+
|
|
1826
1857
|
class Dob < ::Stripe::RequestParams
|
|
1827
1858
|
# The day of birth, between 1 and 31.
|
|
1828
1859
|
attr_accessor :day
|
|
@@ -1960,6 +1991,8 @@ module Stripe
|
|
|
1960
1991
|
attr_accessor :address_kana
|
|
1961
1992
|
# The Kanji variation of the individual's primary address (Japan only).
|
|
1962
1993
|
attr_accessor :address_kanji
|
|
1994
|
+
# Attribute for param field birth_address
|
|
1995
|
+
attr_accessor :birth_address
|
|
1963
1996
|
# The individual's date of birth.
|
|
1964
1997
|
attr_accessor :dob
|
|
1965
1998
|
# The individual's email address.
|
|
@@ -2009,6 +2042,7 @@ module Stripe
|
|
|
2009
2042
|
address: nil,
|
|
2010
2043
|
address_kana: nil,
|
|
2011
2044
|
address_kanji: nil,
|
|
2045
|
+
birth_address: nil,
|
|
2012
2046
|
dob: nil,
|
|
2013
2047
|
email: nil,
|
|
2014
2048
|
first_name: nil,
|
|
@@ -2035,6 +2069,7 @@ module Stripe
|
|
|
2035
2069
|
@address = address
|
|
2036
2070
|
@address_kana = address_kana
|
|
2037
2071
|
@address_kanji = address_kanji
|
|
2072
|
+
@birth_address = birth_address
|
|
2038
2073
|
@dob = dob
|
|
2039
2074
|
@email = email
|
|
2040
2075
|
@first_name = first_name
|
|
@@ -1638,171 +1638,6 @@ module Stripe
|
|
|
1638
1638
|
end
|
|
1639
1639
|
end
|
|
1640
1640
|
|
|
1641
|
-
class MoneyServices < ::Stripe::RequestParams
|
|
1642
|
-
class AccountFunding < ::Stripe::RequestParams
|
|
1643
|
-
class BeneficiaryDetails < ::Stripe::RequestParams
|
|
1644
|
-
class Address < ::Stripe::RequestParams
|
|
1645
|
-
# City, district, suburb, town, or village.
|
|
1646
|
-
attr_accessor :city
|
|
1647
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1648
|
-
attr_accessor :country
|
|
1649
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
1650
|
-
attr_accessor :line1
|
|
1651
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1652
|
-
attr_accessor :line2
|
|
1653
|
-
# ZIP or postal code.
|
|
1654
|
-
attr_accessor :postal_code
|
|
1655
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1656
|
-
attr_accessor :state
|
|
1657
|
-
|
|
1658
|
-
def initialize(
|
|
1659
|
-
city: nil,
|
|
1660
|
-
country: nil,
|
|
1661
|
-
line1: nil,
|
|
1662
|
-
line2: nil,
|
|
1663
|
-
postal_code: nil,
|
|
1664
|
-
state: nil
|
|
1665
|
-
)
|
|
1666
|
-
@city = city
|
|
1667
|
-
@country = country
|
|
1668
|
-
@line1 = line1
|
|
1669
|
-
@line2 = line2
|
|
1670
|
-
@postal_code = postal_code
|
|
1671
|
-
@state = state
|
|
1672
|
-
end
|
|
1673
|
-
end
|
|
1674
|
-
|
|
1675
|
-
class DateOfBirth < ::Stripe::RequestParams
|
|
1676
|
-
# Day of birth, between 1 and 31.
|
|
1677
|
-
attr_accessor :day
|
|
1678
|
-
# Month of birth, between 1 and 12.
|
|
1679
|
-
attr_accessor :month
|
|
1680
|
-
# Four-digit year of birth.
|
|
1681
|
-
attr_accessor :year
|
|
1682
|
-
|
|
1683
|
-
def initialize(day: nil, month: nil, year: nil)
|
|
1684
|
-
@day = day
|
|
1685
|
-
@month = month
|
|
1686
|
-
@year = year
|
|
1687
|
-
end
|
|
1688
|
-
end
|
|
1689
|
-
# Address.
|
|
1690
|
-
attr_accessor :address
|
|
1691
|
-
# Date of birth.
|
|
1692
|
-
attr_accessor :date_of_birth
|
|
1693
|
-
# Email address.
|
|
1694
|
-
attr_accessor :email
|
|
1695
|
-
# Full name.
|
|
1696
|
-
attr_accessor :name
|
|
1697
|
-
# Phone number.
|
|
1698
|
-
attr_accessor :phone
|
|
1699
|
-
|
|
1700
|
-
def initialize(address: nil, date_of_birth: nil, email: nil, name: nil, phone: nil)
|
|
1701
|
-
@address = address
|
|
1702
|
-
@date_of_birth = date_of_birth
|
|
1703
|
-
@email = email
|
|
1704
|
-
@name = name
|
|
1705
|
-
@phone = phone
|
|
1706
|
-
end
|
|
1707
|
-
end
|
|
1708
|
-
|
|
1709
|
-
class SenderDetails < ::Stripe::RequestParams
|
|
1710
|
-
class Address < ::Stripe::RequestParams
|
|
1711
|
-
# City, district, suburb, town, or village.
|
|
1712
|
-
attr_accessor :city
|
|
1713
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1714
|
-
attr_accessor :country
|
|
1715
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
1716
|
-
attr_accessor :line1
|
|
1717
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1718
|
-
attr_accessor :line2
|
|
1719
|
-
# ZIP or postal code.
|
|
1720
|
-
attr_accessor :postal_code
|
|
1721
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1722
|
-
attr_accessor :state
|
|
1723
|
-
|
|
1724
|
-
def initialize(
|
|
1725
|
-
city: nil,
|
|
1726
|
-
country: nil,
|
|
1727
|
-
line1: nil,
|
|
1728
|
-
line2: nil,
|
|
1729
|
-
postal_code: nil,
|
|
1730
|
-
state: nil
|
|
1731
|
-
)
|
|
1732
|
-
@city = city
|
|
1733
|
-
@country = country
|
|
1734
|
-
@line1 = line1
|
|
1735
|
-
@line2 = line2
|
|
1736
|
-
@postal_code = postal_code
|
|
1737
|
-
@state = state
|
|
1738
|
-
end
|
|
1739
|
-
end
|
|
1740
|
-
|
|
1741
|
-
class DateOfBirth < ::Stripe::RequestParams
|
|
1742
|
-
# Day of birth, between 1 and 31.
|
|
1743
|
-
attr_accessor :day
|
|
1744
|
-
# Month of birth, between 1 and 12.
|
|
1745
|
-
attr_accessor :month
|
|
1746
|
-
# Four-digit year of birth.
|
|
1747
|
-
attr_accessor :year
|
|
1748
|
-
|
|
1749
|
-
def initialize(day: nil, month: nil, year: nil)
|
|
1750
|
-
@day = day
|
|
1751
|
-
@month = month
|
|
1752
|
-
@year = year
|
|
1753
|
-
end
|
|
1754
|
-
end
|
|
1755
|
-
# Address.
|
|
1756
|
-
attr_accessor :address
|
|
1757
|
-
# Date of birth.
|
|
1758
|
-
attr_accessor :date_of_birth
|
|
1759
|
-
# Email address.
|
|
1760
|
-
attr_accessor :email
|
|
1761
|
-
# Full name.
|
|
1762
|
-
attr_accessor :name
|
|
1763
|
-
# Phone number.
|
|
1764
|
-
attr_accessor :phone
|
|
1765
|
-
|
|
1766
|
-
def initialize(address: nil, date_of_birth: nil, email: nil, name: nil, phone: nil)
|
|
1767
|
-
@address = address
|
|
1768
|
-
@date_of_birth = date_of_birth
|
|
1769
|
-
@email = email
|
|
1770
|
-
@name = name
|
|
1771
|
-
@phone = phone
|
|
1772
|
-
end
|
|
1773
|
-
end
|
|
1774
|
-
# ID of the Account representing the beneficiary in this account funding transaction.
|
|
1775
|
-
attr_accessor :beneficiary_account
|
|
1776
|
-
# Inline identity details for the beneficiary of this account funding transaction.
|
|
1777
|
-
attr_accessor :beneficiary_details
|
|
1778
|
-
# ID of the Account representing the sender in this account funding transaction.
|
|
1779
|
-
attr_accessor :sender_account
|
|
1780
|
-
# Inline identity details for the sender of this account funding transaction.
|
|
1781
|
-
attr_accessor :sender_details
|
|
1782
|
-
|
|
1783
|
-
def initialize(
|
|
1784
|
-
beneficiary_account: nil,
|
|
1785
|
-
beneficiary_details: nil,
|
|
1786
|
-
sender_account: nil,
|
|
1787
|
-
sender_details: nil
|
|
1788
|
-
)
|
|
1789
|
-
@beneficiary_account = beneficiary_account
|
|
1790
|
-
@beneficiary_details = beneficiary_details
|
|
1791
|
-
@sender_account = sender_account
|
|
1792
|
-
@sender_details = sender_details
|
|
1793
|
-
end
|
|
1794
|
-
end
|
|
1795
|
-
# Account funding transaction details including sender and beneficiary information.
|
|
1796
|
-
attr_accessor :account_funding
|
|
1797
|
-
# The type of money services transaction.
|
|
1798
|
-
attr_accessor :transaction_type
|
|
1799
|
-
|
|
1800
|
-
def initialize(account_funding: nil, transaction_type: nil)
|
|
1801
|
-
@account_funding = account_funding
|
|
1802
|
-
@transaction_type = transaction_type
|
|
1803
|
-
end
|
|
1804
|
-
end
|
|
1805
|
-
|
|
1806
1641
|
class Subscription < ::Stripe::RequestParams
|
|
1807
1642
|
class Affiliate < ::Stripe::RequestParams
|
|
1808
1643
|
# The name of the affiliate that originated the purchase.
|
|
@@ -1873,8 +1708,6 @@ module Stripe
|
|
|
1873
1708
|
attr_accessor :lodging
|
|
1874
1709
|
# Lodging data for this PaymentIntent.
|
|
1875
1710
|
attr_accessor :lodging_data
|
|
1876
|
-
# Money services details for this PaymentIntent.
|
|
1877
|
-
attr_accessor :money_services
|
|
1878
1711
|
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
1879
1712
|
#
|
|
1880
1713
|
# For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
|
|
@@ -1892,7 +1725,6 @@ module Stripe
|
|
|
1892
1725
|
flight_data: nil,
|
|
1893
1726
|
lodging: nil,
|
|
1894
1727
|
lodging_data: nil,
|
|
1895
|
-
money_services: nil,
|
|
1896
1728
|
order_reference: nil,
|
|
1897
1729
|
subscription: nil
|
|
1898
1730
|
)
|
|
@@ -1905,7 +1737,6 @@ module Stripe
|
|
|
1905
1737
|
@flight_data = flight_data
|
|
1906
1738
|
@lodging = lodging
|
|
1907
1739
|
@lodging_data = lodging_data
|
|
1908
|
-
@money_services = money_services
|
|
1909
1740
|
@order_reference = order_reference
|
|
1910
1741
|
@subscription = subscription
|
|
1911
1742
|
end
|