stripe 19.3.0.pre.alpha.2 → 19.3.0.pre.alpha.4
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 +31 -1
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/object_types.rb +3 -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/checkout/session_create_params.rb +13 -0
- data/lib/stripe/params/confirmation_token_create_params.rb +5 -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/order_create_params.rb +4 -1
- data/lib/stripe/params/order_update_params.rb +4 -1
- data/lib/stripe/params/payment_attempt_record_report_canceled_params.rb +10 -1
- data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +38 -0
- data/lib/stripe/params/payment_attempt_record_report_refund_params.rb +20 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +0 -169
- data/lib/stripe/params/payment_intent_confirm_params.rb +197 -211
- data/lib/stripe/params/payment_intent_create_params.rb +197 -211
- data/lib/stripe/params/payment_intent_update_crypto_refund_address_params.rb +19 -0
- data/lib/stripe/params/payment_intent_update_params.rb +197 -211
- data/lib/stripe/params/payment_method_create_params.rb +5 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +10 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +38 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +27 -1
- data/lib/stripe/params/payment_record_report_payment_params.rb +27 -1
- data/lib/stripe/params/payment_record_report_refund_params.rb +20 -0
- 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/radar/customer_evaluation_retrieve_params.rb +15 -0
- data/lib/stripe/params/refund_create_params.rb +4 -0
- data/lib/stripe/params/refund_list_params.rb +8 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +5 -0
- data/lib/stripe/params/setup_intent_create_params.rb +5 -0
- data/lib/stripe/params/setup_intent_update_params.rb +5 -0
- 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/test_helpers/confirmation_token_create_params.rb +5 -0
- data/lib/stripe/params/v2/billing/contract_create_params.rb +1 -1
- data/lib/stripe/params/v2/billing/contract_update_params.rb +1 -1
- data/lib/stripe/params/v2/core/account_create_params.rb +1620 -81
- data/lib/stripe/params/v2/core/account_update_params.rb +1620 -81
- data/lib/stripe/params.rb +25 -0
- data/lib/stripe/resources/account_session.rb +2 -0
- data/lib/stripe/resources/charge.rb +49 -3
- data/lib/stripe/resources/checkout/session.rb +16 -2
- data/lib/stripe/resources/confirmation_token.rb +29 -2
- data/lib/stripe/resources/gift_card.rb +146 -0
- data/lib/stripe/resources/gift_card_operation.rb +289 -0
- data/lib/stripe/resources/issuing/authorization.rb +1 -1
- data/lib/stripe/resources/issuing/dispute.rb +24 -0
- data/lib/stripe/resources/issuing/token.rb +1 -1
- data/lib/stripe/resources/mandate.rb +18 -0
- data/lib/stripe/resources/order.rb +2 -0
- data/lib/stripe/resources/payment_attempt_record.rb +83 -1
- data/lib/stripe/resources/payment_intent.rb +281 -82
- data/lib/stripe/resources/payment_method.rb +29 -2
- data/lib/stripe/resources/payment_record.rb +83 -1
- data/lib/stripe/resources/product.rb +32 -0
- data/lib/stripe/resources/setup_intent.rb +18 -0
- data/lib/stripe/resources/shared_payment/granted_token.rb +13 -2
- 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/core/account.rb +11540 -326
- 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/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.rb +6 -0
- 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/radar/customer_evaluation_service.rb +11 -0
- data/lib/stripe/services/tax_fund_service.rb +22 -0
- data/lib/stripe/services/v1_services.rb +4 -1
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +1 -0
- data/lib/stripe/services.rb +6 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +19043 -2521
- metadata +23 -5
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
class GiftCardRetrieveParams < ::Stripe::RequestParams
|
|
6
|
+
# Specifies which fields in the response should be expanded.
|
|
7
|
+
attr_accessor :expand
|
|
8
|
+
|
|
9
|
+
def initialize(expand: nil)
|
|
10
|
+
@expand = expand
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
class GiftCardVoidOperationParams < ::Stripe::RequestParams
|
|
6
|
+
# Specifies which fields in the response should be expanded.
|
|
7
|
+
attr_accessor :expand
|
|
8
|
+
# The Stripe account ID to process the gift card operation on behalf of.
|
|
9
|
+
attr_accessor :on_behalf_of
|
|
10
|
+
# The ID of the gift card operation to void.
|
|
11
|
+
attr_accessor :operation
|
|
12
|
+
|
|
13
|
+
def initialize(expand: nil, on_behalf_of: nil, operation: nil)
|
|
14
|
+
@expand = expand
|
|
15
|
+
@on_behalf_of = on_behalf_of
|
|
16
|
+
@operation = operation
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -255,6 +255,18 @@ module Stripe
|
|
|
255
255
|
@service_not_as_described = service_not_as_described
|
|
256
256
|
end
|
|
257
257
|
end
|
|
258
|
+
|
|
259
|
+
class ProvisionalCredit < ::Stripe::RequestParams
|
|
260
|
+
# The time at which the platform granted the provisional credit to their user.
|
|
261
|
+
attr_accessor :granted_at
|
|
262
|
+
# The time at which the platform revoked the provisional credit from their user.
|
|
263
|
+
attr_accessor :revoked_at
|
|
264
|
+
|
|
265
|
+
def initialize(granted_at: nil, revoked_at: nil)
|
|
266
|
+
@granted_at = granted_at
|
|
267
|
+
@revoked_at = revoked_at
|
|
268
|
+
end
|
|
269
|
+
end
|
|
258
270
|
# The dispute amount in the card's currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
259
271
|
attr_accessor :amount
|
|
260
272
|
# Evidence provided for the dispute.
|
|
@@ -263,12 +275,21 @@ module Stripe
|
|
|
263
275
|
attr_accessor :expand
|
|
264
276
|
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
265
277
|
attr_accessor :metadata
|
|
278
|
+
# Provisional credit information for this dispute.
|
|
279
|
+
attr_accessor :provisional_credit
|
|
266
280
|
|
|
267
|
-
def initialize(
|
|
281
|
+
def initialize(
|
|
282
|
+
amount: nil,
|
|
283
|
+
evidence: nil,
|
|
284
|
+
expand: nil,
|
|
285
|
+
metadata: nil,
|
|
286
|
+
provisional_credit: nil
|
|
287
|
+
)
|
|
268
288
|
@amount = amount
|
|
269
289
|
@evidence = evidence
|
|
270
290
|
@expand = expand
|
|
271
291
|
@metadata = metadata
|
|
292
|
+
@provisional_credit = provisional_credit
|
|
272
293
|
end
|
|
273
294
|
end
|
|
274
295
|
end
|
|
@@ -1728,6 +1728,8 @@ module Stripe
|
|
|
1728
1728
|
class WechatPay < ::Stripe::RequestParams
|
|
1729
1729
|
# The app ID registered with WeChat Pay. Only required when client is ios or android.
|
|
1730
1730
|
attr_accessor :app_id
|
|
1731
|
+
# The unique buyer ID for the app ID registered with WeChat Pay. Only required when client is mini_program.
|
|
1732
|
+
attr_accessor :buyer_id
|
|
1731
1733
|
# The client type that the end customer will pay from
|
|
1732
1734
|
attr_accessor :client
|
|
1733
1735
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1741,8 +1743,9 @@ module Stripe
|
|
|
1741
1743
|
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
1742
1744
|
attr_accessor :setup_future_usage
|
|
1743
1745
|
|
|
1744
|
-
def initialize(app_id: nil, client: nil, setup_future_usage: nil)
|
|
1746
|
+
def initialize(app_id: nil, buyer_id: nil, client: nil, setup_future_usage: nil)
|
|
1745
1747
|
@app_id = app_id
|
|
1748
|
+
@buyer_id = buyer_id
|
|
1746
1749
|
@client = client
|
|
1747
1750
|
@setup_future_usage = setup_future_usage
|
|
1748
1751
|
end
|
|
@@ -1732,6 +1732,8 @@ module Stripe
|
|
|
1732
1732
|
class WechatPay < ::Stripe::RequestParams
|
|
1733
1733
|
# The app ID registered with WeChat Pay. Only required when client is ios or android.
|
|
1734
1734
|
attr_accessor :app_id
|
|
1735
|
+
# The unique buyer ID for the app ID registered with WeChat Pay. Only required when client is mini_program.
|
|
1736
|
+
attr_accessor :buyer_id
|
|
1735
1737
|
# The client type that the end customer will pay from
|
|
1736
1738
|
attr_accessor :client
|
|
1737
1739
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1745,8 +1747,9 @@ module Stripe
|
|
|
1745
1747
|
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
1746
1748
|
attr_accessor :setup_future_usage
|
|
1747
1749
|
|
|
1748
|
-
def initialize(app_id: nil, client: nil, setup_future_usage: nil)
|
|
1750
|
+
def initialize(app_id: nil, buyer_id: nil, client: nil, setup_future_usage: nil)
|
|
1749
1751
|
@app_id = app_id
|
|
1752
|
+
@buyer_id = buyer_id
|
|
1750
1753
|
@client = client
|
|
1751
1754
|
@setup_future_usage = setup_future_usage
|
|
1752
1755
|
end
|
|
@@ -11,12 +11,21 @@ module Stripe
|
|
|
11
11
|
attr_accessor :metadata
|
|
12
12
|
# Payment evaluations associated with this reported payment.
|
|
13
13
|
attr_accessor :payment_evaluations
|
|
14
|
+
# The reason the payment attempt was canceled.
|
|
15
|
+
attr_accessor :reason
|
|
14
16
|
|
|
15
|
-
def initialize(
|
|
17
|
+
def initialize(
|
|
18
|
+
canceled_at: nil,
|
|
19
|
+
expand: nil,
|
|
20
|
+
metadata: nil,
|
|
21
|
+
payment_evaluations: nil,
|
|
22
|
+
reason: nil
|
|
23
|
+
)
|
|
16
24
|
@canceled_at = canceled_at
|
|
17
25
|
@expand = expand
|
|
18
26
|
@metadata = metadata
|
|
19
27
|
@payment_evaluations = payment_evaluations
|
|
28
|
+
@reason = reason
|
|
20
29
|
end
|
|
21
30
|
end
|
|
22
31
|
end
|
|
@@ -3,6 +3,40 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class PaymentAttemptRecordReportGuaranteedParams < ::Stripe::RequestParams
|
|
6
|
+
class PaymentMethodDetails < ::Stripe::RequestParams
|
|
7
|
+
class Card < ::Stripe::RequestParams
|
|
8
|
+
class Checks < ::Stripe::RequestParams
|
|
9
|
+
# The result of the check on the cardholder's address line 1.
|
|
10
|
+
attr_accessor :address_line1_check
|
|
11
|
+
# The result of the check on the cardholder's postal code.
|
|
12
|
+
attr_accessor :address_postal_code_check
|
|
13
|
+
# The result of the check on the card's CVC.
|
|
14
|
+
attr_accessor :cvc_check
|
|
15
|
+
|
|
16
|
+
def initialize(address_line1_check: nil, address_postal_code_check: nil, cvc_check: nil)
|
|
17
|
+
@address_line1_check = address_line1_check
|
|
18
|
+
@address_postal_code_check = address_postal_code_check
|
|
19
|
+
@cvc_check = cvc_check
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
# Verification checks performed on the card.
|
|
23
|
+
attr_accessor :checks
|
|
24
|
+
|
|
25
|
+
def initialize(checks: nil)
|
|
26
|
+
@checks = checks
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
# Information about the card payment method used to make this payment.
|
|
30
|
+
attr_accessor :card
|
|
31
|
+
# The type of the payment method details. An additional hash is included on the payment_method_details with a name matching this value. It contains additional information specific to the type.
|
|
32
|
+
attr_accessor :type
|
|
33
|
+
|
|
34
|
+
def initialize(card: nil, type: nil)
|
|
35
|
+
@card = card
|
|
36
|
+
@type = type
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
6
40
|
class ProcessorDetails < ::Stripe::RequestParams
|
|
7
41
|
class Custom < ::Stripe::RequestParams
|
|
8
42
|
# An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID.
|
|
@@ -30,6 +64,8 @@ module Stripe
|
|
|
30
64
|
attr_accessor :metadata
|
|
31
65
|
# Payment evaluations associated with this reported payment.
|
|
32
66
|
attr_accessor :payment_evaluations
|
|
67
|
+
# Information about the Payment Method debited for this payment.
|
|
68
|
+
attr_accessor :payment_method_details
|
|
33
69
|
# Processor information for this payment.
|
|
34
70
|
attr_accessor :processor_details
|
|
35
71
|
|
|
@@ -38,12 +74,14 @@ module Stripe
|
|
|
38
74
|
guaranteed_at: nil,
|
|
39
75
|
metadata: nil,
|
|
40
76
|
payment_evaluations: nil,
|
|
77
|
+
payment_method_details: nil,
|
|
41
78
|
processor_details: nil
|
|
42
79
|
)
|
|
43
80
|
@expand = expand
|
|
44
81
|
@guaranteed_at = guaranteed_at
|
|
45
82
|
@metadata = metadata
|
|
46
83
|
@payment_evaluations = payment_evaluations
|
|
84
|
+
@payment_method_details = payment_method_details
|
|
47
85
|
@processor_details = processor_details
|
|
48
86
|
end
|
|
49
87
|
end
|
|
@@ -15,6 +15,18 @@ module Stripe
|
|
|
15
15
|
end
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
class Failed < ::Stripe::RequestParams
|
|
19
|
+
# When the reported refund failed. Measured in seconds since the Unix epoch.
|
|
20
|
+
attr_accessor :failed_at
|
|
21
|
+
# Provides the reason for the refund failure. Possible values are: `lost_or_stolen_card`, `expired_or_canceled_card`, `charge_for_pending_refund_disputed`, `insufficient_funds`, `declined`, `merchant_request`, or `unknown`.
|
|
22
|
+
attr_accessor :failure_reason
|
|
23
|
+
|
|
24
|
+
def initialize(failed_at: nil, failure_reason: nil)
|
|
25
|
+
@failed_at = failed_at
|
|
26
|
+
@failure_reason = failure_reason
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
18
30
|
class ProcessorDetails < ::Stripe::RequestParams
|
|
19
31
|
class Custom < ::Stripe::RequestParams
|
|
20
32
|
# A reference to the external refund. This field must be unique across all refunds.
|
|
@@ -47,6 +59,8 @@ module Stripe
|
|
|
47
59
|
attr_accessor :amount
|
|
48
60
|
# Specifies which fields in the response should be expanded.
|
|
49
61
|
attr_accessor :expand
|
|
62
|
+
# Information about the refund failure.
|
|
63
|
+
attr_accessor :failed
|
|
50
64
|
# When the reported refund was initiated. Measured in seconds since the Unix epoch.
|
|
51
65
|
attr_accessor :initiated_at
|
|
52
66
|
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
@@ -55,24 +69,30 @@ module Stripe
|
|
|
55
69
|
attr_accessor :outcome
|
|
56
70
|
# Processor information for this refund.
|
|
57
71
|
attr_accessor :processor_details
|
|
72
|
+
# A key to group refunds together.
|
|
73
|
+
attr_accessor :refund_group
|
|
58
74
|
# Information about the payment attempt refund.
|
|
59
75
|
attr_accessor :refunded
|
|
60
76
|
|
|
61
77
|
def initialize(
|
|
62
78
|
amount: nil,
|
|
63
79
|
expand: nil,
|
|
80
|
+
failed: nil,
|
|
64
81
|
initiated_at: nil,
|
|
65
82
|
metadata: nil,
|
|
66
83
|
outcome: nil,
|
|
67
84
|
processor_details: nil,
|
|
85
|
+
refund_group: nil,
|
|
68
86
|
refunded: nil
|
|
69
87
|
)
|
|
70
88
|
@amount = amount
|
|
71
89
|
@expand = expand
|
|
90
|
+
@failed = failed
|
|
72
91
|
@initiated_at = initiated_at
|
|
73
92
|
@metadata = metadata
|
|
74
93
|
@outcome = outcome
|
|
75
94
|
@processor_details = processor_details
|
|
95
|
+
@refund_group = refund_group
|
|
76
96
|
@refunded = refunded
|
|
77
97
|
end
|
|
78
98
|
end
|
|
@@ -1881,171 +1881,6 @@ module Stripe
|
|
|
1881
1881
|
end
|
|
1882
1882
|
end
|
|
1883
1883
|
|
|
1884
|
-
class MoneyServices < ::Stripe::RequestParams
|
|
1885
|
-
class AccountFunding < ::Stripe::RequestParams
|
|
1886
|
-
class BeneficiaryDetails < ::Stripe::RequestParams
|
|
1887
|
-
class Address < ::Stripe::RequestParams
|
|
1888
|
-
# City, district, suburb, town, or village.
|
|
1889
|
-
attr_accessor :city
|
|
1890
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1891
|
-
attr_accessor :country
|
|
1892
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
1893
|
-
attr_accessor :line1
|
|
1894
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1895
|
-
attr_accessor :line2
|
|
1896
|
-
# ZIP or postal code.
|
|
1897
|
-
attr_accessor :postal_code
|
|
1898
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1899
|
-
attr_accessor :state
|
|
1900
|
-
|
|
1901
|
-
def initialize(
|
|
1902
|
-
city: nil,
|
|
1903
|
-
country: nil,
|
|
1904
|
-
line1: nil,
|
|
1905
|
-
line2: nil,
|
|
1906
|
-
postal_code: nil,
|
|
1907
|
-
state: nil
|
|
1908
|
-
)
|
|
1909
|
-
@city = city
|
|
1910
|
-
@country = country
|
|
1911
|
-
@line1 = line1
|
|
1912
|
-
@line2 = line2
|
|
1913
|
-
@postal_code = postal_code
|
|
1914
|
-
@state = state
|
|
1915
|
-
end
|
|
1916
|
-
end
|
|
1917
|
-
|
|
1918
|
-
class DateOfBirth < ::Stripe::RequestParams
|
|
1919
|
-
# Day of birth, between 1 and 31.
|
|
1920
|
-
attr_accessor :day
|
|
1921
|
-
# Month of birth, between 1 and 12.
|
|
1922
|
-
attr_accessor :month
|
|
1923
|
-
# Four-digit year of birth.
|
|
1924
|
-
attr_accessor :year
|
|
1925
|
-
|
|
1926
|
-
def initialize(day: nil, month: nil, year: nil)
|
|
1927
|
-
@day = day
|
|
1928
|
-
@month = month
|
|
1929
|
-
@year = year
|
|
1930
|
-
end
|
|
1931
|
-
end
|
|
1932
|
-
# Address.
|
|
1933
|
-
attr_accessor :address
|
|
1934
|
-
# Date of birth.
|
|
1935
|
-
attr_accessor :date_of_birth
|
|
1936
|
-
# Email address.
|
|
1937
|
-
attr_accessor :email
|
|
1938
|
-
# Full name.
|
|
1939
|
-
attr_accessor :name
|
|
1940
|
-
# Phone number.
|
|
1941
|
-
attr_accessor :phone
|
|
1942
|
-
|
|
1943
|
-
def initialize(address: nil, date_of_birth: nil, email: nil, name: nil, phone: nil)
|
|
1944
|
-
@address = address
|
|
1945
|
-
@date_of_birth = date_of_birth
|
|
1946
|
-
@email = email
|
|
1947
|
-
@name = name
|
|
1948
|
-
@phone = phone
|
|
1949
|
-
end
|
|
1950
|
-
end
|
|
1951
|
-
|
|
1952
|
-
class SenderDetails < ::Stripe::RequestParams
|
|
1953
|
-
class Address < ::Stripe::RequestParams
|
|
1954
|
-
# City, district, suburb, town, or village.
|
|
1955
|
-
attr_accessor :city
|
|
1956
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1957
|
-
attr_accessor :country
|
|
1958
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
1959
|
-
attr_accessor :line1
|
|
1960
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1961
|
-
attr_accessor :line2
|
|
1962
|
-
# ZIP or postal code.
|
|
1963
|
-
attr_accessor :postal_code
|
|
1964
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1965
|
-
attr_accessor :state
|
|
1966
|
-
|
|
1967
|
-
def initialize(
|
|
1968
|
-
city: nil,
|
|
1969
|
-
country: nil,
|
|
1970
|
-
line1: nil,
|
|
1971
|
-
line2: nil,
|
|
1972
|
-
postal_code: nil,
|
|
1973
|
-
state: nil
|
|
1974
|
-
)
|
|
1975
|
-
@city = city
|
|
1976
|
-
@country = country
|
|
1977
|
-
@line1 = line1
|
|
1978
|
-
@line2 = line2
|
|
1979
|
-
@postal_code = postal_code
|
|
1980
|
-
@state = state
|
|
1981
|
-
end
|
|
1982
|
-
end
|
|
1983
|
-
|
|
1984
|
-
class DateOfBirth < ::Stripe::RequestParams
|
|
1985
|
-
# Day of birth, between 1 and 31.
|
|
1986
|
-
attr_accessor :day
|
|
1987
|
-
# Month of birth, between 1 and 12.
|
|
1988
|
-
attr_accessor :month
|
|
1989
|
-
# Four-digit year of birth.
|
|
1990
|
-
attr_accessor :year
|
|
1991
|
-
|
|
1992
|
-
def initialize(day: nil, month: nil, year: nil)
|
|
1993
|
-
@day = day
|
|
1994
|
-
@month = month
|
|
1995
|
-
@year = year
|
|
1996
|
-
end
|
|
1997
|
-
end
|
|
1998
|
-
# Address.
|
|
1999
|
-
attr_accessor :address
|
|
2000
|
-
# Date of birth.
|
|
2001
|
-
attr_accessor :date_of_birth
|
|
2002
|
-
# Email address.
|
|
2003
|
-
attr_accessor :email
|
|
2004
|
-
# Full name.
|
|
2005
|
-
attr_accessor :name
|
|
2006
|
-
# Phone number.
|
|
2007
|
-
attr_accessor :phone
|
|
2008
|
-
|
|
2009
|
-
def initialize(address: nil, date_of_birth: nil, email: nil, name: nil, phone: nil)
|
|
2010
|
-
@address = address
|
|
2011
|
-
@date_of_birth = date_of_birth
|
|
2012
|
-
@email = email
|
|
2013
|
-
@name = name
|
|
2014
|
-
@phone = phone
|
|
2015
|
-
end
|
|
2016
|
-
end
|
|
2017
|
-
# ID of the Account representing the beneficiary in this account funding transaction.
|
|
2018
|
-
attr_accessor :beneficiary_account
|
|
2019
|
-
# Inline identity details for the beneficiary of this account funding transaction.
|
|
2020
|
-
attr_accessor :beneficiary_details
|
|
2021
|
-
# ID of the Account representing the sender in this account funding transaction.
|
|
2022
|
-
attr_accessor :sender_account
|
|
2023
|
-
# Inline identity details for the sender of this account funding transaction.
|
|
2024
|
-
attr_accessor :sender_details
|
|
2025
|
-
|
|
2026
|
-
def initialize(
|
|
2027
|
-
beneficiary_account: nil,
|
|
2028
|
-
beneficiary_details: nil,
|
|
2029
|
-
sender_account: nil,
|
|
2030
|
-
sender_details: nil
|
|
2031
|
-
)
|
|
2032
|
-
@beneficiary_account = beneficiary_account
|
|
2033
|
-
@beneficiary_details = beneficiary_details
|
|
2034
|
-
@sender_account = sender_account
|
|
2035
|
-
@sender_details = sender_details
|
|
2036
|
-
end
|
|
2037
|
-
end
|
|
2038
|
-
# Account funding transaction details including sender and beneficiary information.
|
|
2039
|
-
attr_accessor :account_funding
|
|
2040
|
-
# The type of money services transaction.
|
|
2041
|
-
attr_accessor :transaction_type
|
|
2042
|
-
|
|
2043
|
-
def initialize(account_funding: nil, transaction_type: nil)
|
|
2044
|
-
@account_funding = account_funding
|
|
2045
|
-
@transaction_type = transaction_type
|
|
2046
|
-
end
|
|
2047
|
-
end
|
|
2048
|
-
|
|
2049
1884
|
class Subscription < ::Stripe::RequestParams
|
|
2050
1885
|
class Affiliate < ::Stripe::RequestParams
|
|
2051
1886
|
# The name of the affiliate that originated the purchase.
|
|
@@ -2116,8 +1951,6 @@ module Stripe
|
|
|
2116
1951
|
attr_accessor :lodging
|
|
2117
1952
|
# Lodging data for this PaymentIntent.
|
|
2118
1953
|
attr_accessor :lodging_data
|
|
2119
|
-
# Money services details for this PaymentIntent.
|
|
2120
|
-
attr_accessor :money_services
|
|
2121
1954
|
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
2122
1955
|
#
|
|
2123
1956
|
# 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.
|
|
@@ -2135,7 +1968,6 @@ module Stripe
|
|
|
2135
1968
|
flight_data: nil,
|
|
2136
1969
|
lodging: nil,
|
|
2137
1970
|
lodging_data: nil,
|
|
2138
|
-
money_services: nil,
|
|
2139
1971
|
order_reference: nil,
|
|
2140
1972
|
subscription: nil
|
|
2141
1973
|
)
|
|
@@ -2148,7 +1980,6 @@ module Stripe
|
|
|
2148
1980
|
@flight_data = flight_data
|
|
2149
1981
|
@lodging = lodging
|
|
2150
1982
|
@lodging_data = lodging_data
|
|
2151
|
-
@money_services = money_services
|
|
2152
1983
|
@order_reference = order_reference
|
|
2153
1984
|
@subscription = subscription
|
|
2154
1985
|
end
|