stripe 17.1.0.pre.alpha.2 → 17.1.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/events/v2_money_management_transaction_created_event.rb +18 -1
- data/lib/stripe/object_types.rb +4 -0
- data/lib/stripe/params/billing/meter_create_params.rb +5 -1
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +8 -0
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +18 -0
- data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +244 -0
- data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +209 -0
- data/lib/stripe/params/identity/blocklist_entry_create_params.rb +29 -0
- data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +15 -0
- data/lib/stripe/params/identity/blocklist_entry_list_params.rb +62 -0
- data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_report_list_params.rb +4 -0
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +2 -2
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +2 -2
- data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +33 -2
- data/lib/stripe/params/v2/core/account_list_params.rb +4 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +33 -2
- data/lib/stripe/params/v2/core/event_list_params.rb +24 -1
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
- data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +1 -0
- data/lib/stripe/params.rb +15 -0
- data/lib/stripe/resources/billing/meter.rb +2 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +323 -0
- data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
- data/lib/stripe/resources/identity/verification_report.rb +4 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +2 -2
- data/lib/stripe/resources/v2/billing/collection_setting.rb +2 -2
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +2 -2
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +49 -0
- data/lib/stripe/resources/v2/core/account.rb +57 -2
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +35 -1
- data/lib/stripe/resources.rb +3 -0
- data/lib/stripe/services/delegated_checkout/requested_session_service.rb +63 -0
- data/lib/stripe/services/delegated_checkout_service.rb +13 -0
- data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
- data/lib/stripe/services/identity_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +2 -1
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +8 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +23 -0
- data/lib/stripe/services/v2/core/account_service.rb +1 -1
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +11 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +33 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +11 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +1 -1
- data/lib/stripe/services.rb +4 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +1897 -32
- metadata +24 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 07d5affaa4404f5e635dbf1e2f23ea9e705ed2f5b64ec9a03919cdf0f4ebaffb
|
|
4
|
+
data.tar.gz: 064aa21e36d20c66abd7aca444a50dea20f71517d2d80f4e38273c7bde650c18
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3be48a920f1ceb0feef2ad4d9ca073805491d57aefe631c9bd771d7001464a80cdd7f6667fe6005902c245f928e28b48ff15e27bfcf9b07a11e77325608b7251
|
|
7
|
+
data.tar.gz: 65a06e61d50f5afd0aee74eedb2ffcbc4b80a52846ce882e52ac1fcd1d96240859bb28aa1e4b636780c1858914d3a3412a35208f63969dade615651406fae913
|
|
@@ -9,6 +9,24 @@ module Stripe
|
|
|
9
9
|
"v2.money_management.transaction.created"
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
+
class V2MoneyManagementTransactionCreatedEventData < ::Stripe::StripeObject
|
|
13
|
+
# Id of the v1 Transaction corresponding to this Transaction.
|
|
14
|
+
attr_reader :v1_id
|
|
15
|
+
|
|
16
|
+
def self.inner_class_types
|
|
17
|
+
@inner_class_types = {}
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def self.field_remappings
|
|
21
|
+
@field_remappings = {}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def self.inner_class_types
|
|
26
|
+
@inner_class_types = { data: V2MoneyManagementTransactionCreatedEventData }
|
|
27
|
+
end
|
|
28
|
+
attr_reader :data, :related_object
|
|
29
|
+
|
|
12
30
|
# Retrieves the related object from the API. Makes an API request on every call.
|
|
13
31
|
def fetch_related_object
|
|
14
32
|
_request(
|
|
@@ -18,7 +36,6 @@ module Stripe
|
|
|
18
36
|
opts: { stripe_context: context }
|
|
19
37
|
)
|
|
20
38
|
end
|
|
21
|
-
attr_reader :related_object
|
|
22
39
|
end
|
|
23
40
|
|
|
24
41
|
# Occurs when a Transaction is created.
|
data/lib/stripe/object_types.rb
CHANGED
|
@@ -59,6 +59,7 @@ module Stripe
|
|
|
59
59
|
CustomerBalanceTransaction.object_name => CustomerBalanceTransaction,
|
|
60
60
|
CustomerCashBalanceTransaction.object_name => CustomerCashBalanceTransaction,
|
|
61
61
|
CustomerSession.object_name => CustomerSession,
|
|
62
|
+
DelegatedCheckout::RequestedSession.object_name => DelegatedCheckout::RequestedSession,
|
|
62
63
|
Discount.object_name => Discount,
|
|
63
64
|
Dispute.object_name => Dispute,
|
|
64
65
|
Entitlements::ActiveEntitlement.object_name => Entitlements::ActiveEntitlement,
|
|
@@ -80,6 +81,7 @@ module Stripe
|
|
|
80
81
|
Forwarding::Request.object_name => Forwarding::Request,
|
|
81
82
|
FundingInstructions.object_name => FundingInstructions,
|
|
82
83
|
FxQuote.object_name => FxQuote,
|
|
84
|
+
Identity::BlocklistEntry.object_name => Identity::BlocklistEntry,
|
|
83
85
|
Identity::VerificationReport.object_name => Identity::VerificationReport,
|
|
84
86
|
Identity::VerificationSession.object_name => Identity::VerificationSession,
|
|
85
87
|
Invoice.object_name => Invoice,
|
|
@@ -207,6 +209,8 @@ module Stripe
|
|
|
207
209
|
V2::Billing::PricingPlan.object_name => V2::Billing::PricingPlan,
|
|
208
210
|
V2::Billing::PricingPlanComponent.object_name => V2::Billing::PricingPlanComponent,
|
|
209
211
|
V2::Billing::PricingPlanSubscription.object_name => V2::Billing::PricingPlanSubscription,
|
|
212
|
+
V2::Billing::PricingPlanSubscriptionComponents.object_name =>
|
|
213
|
+
V2::Billing::PricingPlanSubscriptionComponents,
|
|
210
214
|
V2::Billing::PricingPlanVersion.object_name => V2::Billing::PricingPlanVersion,
|
|
211
215
|
V2::Billing::Profile.object_name => V2::Billing::Profile,
|
|
212
216
|
V2::Billing::RateCard.object_name => V2::Billing::RateCard,
|
|
@@ -47,6 +47,8 @@ module Stripe
|
|
|
47
47
|
attr_accessor :expand
|
|
48
48
|
# Fields that specify how to calculate a meter event's value.
|
|
49
49
|
attr_accessor :value_settings
|
|
50
|
+
# Set of keys that will be used to group meter events by. Each key must be present in the event payload.
|
|
51
|
+
attr_accessor :dimension_payload_keys
|
|
50
52
|
|
|
51
53
|
def initialize(
|
|
52
54
|
customer_mapping: nil,
|
|
@@ -55,7 +57,8 @@ module Stripe
|
|
|
55
57
|
event_name: nil,
|
|
56
58
|
event_time_window: nil,
|
|
57
59
|
expand: nil,
|
|
58
|
-
value_settings: nil
|
|
60
|
+
value_settings: nil,
|
|
61
|
+
dimension_payload_keys: nil
|
|
59
62
|
)
|
|
60
63
|
@customer_mapping = customer_mapping
|
|
61
64
|
@default_aggregation = default_aggregation
|
|
@@ -64,6 +67,7 @@ module Stripe
|
|
|
64
67
|
@event_time_window = event_time_window
|
|
65
68
|
@expand = expand
|
|
66
69
|
@value_settings = value_settings
|
|
70
|
+
@dimension_payload_keys = dimension_payload_keys
|
|
67
71
|
end
|
|
68
72
|
end
|
|
69
73
|
end
|
|
@@ -6,6 +6,10 @@ module Stripe
|
|
|
6
6
|
class MeterEventSummaryListParams < ::Stripe::RequestParams
|
|
7
7
|
# The customer for which to fetch event summaries.
|
|
8
8
|
attr_accessor :customer
|
|
9
|
+
# Key-value pairs used to filter meter events by dimension values. If specified, event summaries will be generated with only matching meter events.
|
|
10
|
+
attr_accessor :dimension_filters
|
|
11
|
+
# List of dimension payload keys to group by. If specified, event summaries will be grouped by the given dimension payload key values.
|
|
12
|
+
attr_accessor :dimension_group_by_keys
|
|
9
13
|
# The timestamp from when to stop aggregating meter events (exclusive). Must be aligned with minute boundaries.
|
|
10
14
|
attr_accessor :end_time
|
|
11
15
|
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
|
@@ -23,6 +27,8 @@ module Stripe
|
|
|
23
27
|
|
|
24
28
|
def initialize(
|
|
25
29
|
customer: nil,
|
|
30
|
+
dimension_filters: nil,
|
|
31
|
+
dimension_group_by_keys: nil,
|
|
26
32
|
end_time: nil,
|
|
27
33
|
ending_before: nil,
|
|
28
34
|
expand: nil,
|
|
@@ -32,6 +38,8 @@ module Stripe
|
|
|
32
38
|
value_grouping_window: nil
|
|
33
39
|
)
|
|
34
40
|
@customer = customer
|
|
41
|
+
@dimension_filters = dimension_filters
|
|
42
|
+
@dimension_group_by_keys = dimension_group_by_keys
|
|
35
43
|
@end_time = end_time
|
|
36
44
|
@ending_before = ending_before
|
|
37
45
|
@expand = expand
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module DelegatedCheckout
|
|
6
|
+
class RequestedSessionConfirmParams < ::Stripe::RequestParams
|
|
7
|
+
# Specifies which fields in the response should be expanded.
|
|
8
|
+
attr_accessor :expand
|
|
9
|
+
# The PaymentMethod to use with the requested session.
|
|
10
|
+
attr_accessor :payment_method
|
|
11
|
+
|
|
12
|
+
def initialize(expand: nil, payment_method: nil)
|
|
13
|
+
@expand = expand
|
|
14
|
+
@payment_method = payment_method
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module DelegatedCheckout
|
|
6
|
+
class RequestedSessionCreateParams < ::Stripe::RequestParams
|
|
7
|
+
class FulfillmentDetails < ::Stripe::RequestParams
|
|
8
|
+
class Address < ::Stripe::RequestParams
|
|
9
|
+
# City, district, suburb, town, or village.
|
|
10
|
+
attr_accessor :city
|
|
11
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
12
|
+
attr_accessor :country
|
|
13
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
14
|
+
attr_accessor :line1
|
|
15
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
16
|
+
attr_accessor :line2
|
|
17
|
+
# ZIP or postal code.
|
|
18
|
+
attr_accessor :postal_code
|
|
19
|
+
# State, county, province, or region.
|
|
20
|
+
attr_accessor :state
|
|
21
|
+
|
|
22
|
+
def initialize(
|
|
23
|
+
city: nil,
|
|
24
|
+
country: nil,
|
|
25
|
+
line1: nil,
|
|
26
|
+
line2: nil,
|
|
27
|
+
postal_code: nil,
|
|
28
|
+
state: nil
|
|
29
|
+
)
|
|
30
|
+
@city = city
|
|
31
|
+
@country = country
|
|
32
|
+
@line1 = line1
|
|
33
|
+
@line2 = line2
|
|
34
|
+
@postal_code = postal_code
|
|
35
|
+
@state = state
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
# Attribute for param field address
|
|
39
|
+
attr_accessor :address
|
|
40
|
+
# The customer's email address.
|
|
41
|
+
attr_accessor :email
|
|
42
|
+
# The customer's name.
|
|
43
|
+
attr_accessor :name
|
|
44
|
+
# The customer's phone number.
|
|
45
|
+
attr_accessor :phone
|
|
46
|
+
|
|
47
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil)
|
|
48
|
+
@address = address
|
|
49
|
+
@email = email
|
|
50
|
+
@name = name
|
|
51
|
+
@phone = phone
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
class LineItemDetail < ::Stripe::RequestParams
|
|
56
|
+
# The quantity of the line item.
|
|
57
|
+
attr_accessor :quantity
|
|
58
|
+
# The SKU ID of the line item.
|
|
59
|
+
attr_accessor :sku_id
|
|
60
|
+
|
|
61
|
+
def initialize(quantity: nil, sku_id: nil)
|
|
62
|
+
@quantity = quantity
|
|
63
|
+
@sku_id = sku_id
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
class PaymentMethodData < ::Stripe::RequestParams
|
|
68
|
+
class BillingDetails < ::Stripe::RequestParams
|
|
69
|
+
class Address < ::Stripe::RequestParams
|
|
70
|
+
# City, district, suburb, town, or village.
|
|
71
|
+
attr_accessor :city
|
|
72
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
73
|
+
attr_accessor :country
|
|
74
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
75
|
+
attr_accessor :line1
|
|
76
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
77
|
+
attr_accessor :line2
|
|
78
|
+
# ZIP or postal code.
|
|
79
|
+
attr_accessor :postal_code
|
|
80
|
+
# State, county, province, or region.
|
|
81
|
+
attr_accessor :state
|
|
82
|
+
|
|
83
|
+
def initialize(
|
|
84
|
+
city: nil,
|
|
85
|
+
country: nil,
|
|
86
|
+
line1: nil,
|
|
87
|
+
line2: nil,
|
|
88
|
+
postal_code: nil,
|
|
89
|
+
state: nil
|
|
90
|
+
)
|
|
91
|
+
@city = city
|
|
92
|
+
@country = country
|
|
93
|
+
@line1 = line1
|
|
94
|
+
@line2 = line2
|
|
95
|
+
@postal_code = postal_code
|
|
96
|
+
@state = state
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
# The address for the billing details.
|
|
100
|
+
attr_accessor :address
|
|
101
|
+
# The email for the billing details.
|
|
102
|
+
attr_accessor :email
|
|
103
|
+
# The name for the billing details.
|
|
104
|
+
attr_accessor :name
|
|
105
|
+
# The phone for the billing details.
|
|
106
|
+
attr_accessor :phone
|
|
107
|
+
|
|
108
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil)
|
|
109
|
+
@address = address
|
|
110
|
+
@email = email
|
|
111
|
+
@name = name
|
|
112
|
+
@phone = phone
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
class Card < ::Stripe::RequestParams
|
|
117
|
+
# The CVC of the card.
|
|
118
|
+
attr_accessor :cvc
|
|
119
|
+
# The expiration month of the card.
|
|
120
|
+
attr_accessor :exp_month
|
|
121
|
+
# The expiration year of the card.
|
|
122
|
+
attr_accessor :exp_year
|
|
123
|
+
# The number of the card.
|
|
124
|
+
attr_accessor :number
|
|
125
|
+
|
|
126
|
+
def initialize(cvc: nil, exp_month: nil, exp_year: nil, number: nil)
|
|
127
|
+
@cvc = cvc
|
|
128
|
+
@exp_month = exp_month
|
|
129
|
+
@exp_year = exp_year
|
|
130
|
+
@number = number
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
# The billing details for the payment method data.
|
|
134
|
+
attr_accessor :billing_details
|
|
135
|
+
# The card for the payment method data.
|
|
136
|
+
attr_accessor :card
|
|
137
|
+
# The type of the payment method data.
|
|
138
|
+
attr_accessor :type
|
|
139
|
+
|
|
140
|
+
def initialize(billing_details: nil, card: nil, type: nil)
|
|
141
|
+
@billing_details = billing_details
|
|
142
|
+
@card = card
|
|
143
|
+
@type = type
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
class RiskDetails < ::Stripe::RequestParams
|
|
148
|
+
class ClientDeviceMetadataDetails < ::Stripe::RequestParams
|
|
149
|
+
# The radar session.
|
|
150
|
+
attr_accessor :radar_session
|
|
151
|
+
# The referrer of the client device.
|
|
152
|
+
attr_accessor :referrer
|
|
153
|
+
# The remote IP address of the client device.
|
|
154
|
+
attr_accessor :remote_ip
|
|
155
|
+
# The time on page in seconds.
|
|
156
|
+
attr_accessor :time_on_page
|
|
157
|
+
# The user agent of the client device.
|
|
158
|
+
attr_accessor :user_agent
|
|
159
|
+
|
|
160
|
+
def initialize(
|
|
161
|
+
radar_session: nil,
|
|
162
|
+
referrer: nil,
|
|
163
|
+
remote_ip: nil,
|
|
164
|
+
time_on_page: nil,
|
|
165
|
+
user_agent: nil
|
|
166
|
+
)
|
|
167
|
+
@radar_session = radar_session
|
|
168
|
+
@referrer = referrer
|
|
169
|
+
@remote_ip = remote_ip
|
|
170
|
+
@time_on_page = time_on_page
|
|
171
|
+
@user_agent = user_agent
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
# The client device metadata details for this requested session.
|
|
175
|
+
attr_accessor :client_device_metadata_details
|
|
176
|
+
|
|
177
|
+
def initialize(client_device_metadata_details: nil)
|
|
178
|
+
@client_device_metadata_details = client_device_metadata_details
|
|
179
|
+
end
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
class SellerDetails < ::Stripe::RequestParams
|
|
183
|
+
# The network profile for the seller.
|
|
184
|
+
attr_accessor :network_profile
|
|
185
|
+
|
|
186
|
+
def initialize(network_profile: nil)
|
|
187
|
+
@network_profile = network_profile
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
# The currency for this requested session.
|
|
191
|
+
attr_accessor :currency
|
|
192
|
+
# The customer for this requested session.
|
|
193
|
+
attr_accessor :customer
|
|
194
|
+
# Specifies which fields in the response should be expanded.
|
|
195
|
+
attr_accessor :expand
|
|
196
|
+
# The details of the fulfillment.
|
|
197
|
+
attr_accessor :fulfillment_details
|
|
198
|
+
# The details of the line items.
|
|
199
|
+
attr_accessor :line_item_details
|
|
200
|
+
# The metadata for this requested session.
|
|
201
|
+
attr_accessor :metadata
|
|
202
|
+
# The payment method for this requested session.
|
|
203
|
+
attr_accessor :payment_method
|
|
204
|
+
# The payment method data for this requested session.
|
|
205
|
+
attr_accessor :payment_method_data
|
|
206
|
+
# The risk details for this requested session.
|
|
207
|
+
attr_accessor :risk_details
|
|
208
|
+
# The details of the seller.
|
|
209
|
+
attr_accessor :seller_details
|
|
210
|
+
# The setup future usage for this requested session.
|
|
211
|
+
attr_accessor :setup_future_usage
|
|
212
|
+
# The shared metadata for this requested session.
|
|
213
|
+
attr_accessor :shared_metadata
|
|
214
|
+
|
|
215
|
+
def initialize(
|
|
216
|
+
currency: nil,
|
|
217
|
+
customer: nil,
|
|
218
|
+
expand: nil,
|
|
219
|
+
fulfillment_details: nil,
|
|
220
|
+
line_item_details: nil,
|
|
221
|
+
metadata: nil,
|
|
222
|
+
payment_method: nil,
|
|
223
|
+
payment_method_data: nil,
|
|
224
|
+
risk_details: nil,
|
|
225
|
+
seller_details: nil,
|
|
226
|
+
setup_future_usage: nil,
|
|
227
|
+
shared_metadata: nil
|
|
228
|
+
)
|
|
229
|
+
@currency = currency
|
|
230
|
+
@customer = customer
|
|
231
|
+
@expand = expand
|
|
232
|
+
@fulfillment_details = fulfillment_details
|
|
233
|
+
@line_item_details = line_item_details
|
|
234
|
+
@metadata = metadata
|
|
235
|
+
@payment_method = payment_method
|
|
236
|
+
@payment_method_data = payment_method_data
|
|
237
|
+
@risk_details = risk_details
|
|
238
|
+
@seller_details = seller_details
|
|
239
|
+
@setup_future_usage = setup_future_usage
|
|
240
|
+
@shared_metadata = shared_metadata
|
|
241
|
+
end
|
|
242
|
+
end
|
|
243
|
+
end
|
|
244
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module DelegatedCheckout
|
|
6
|
+
class RequestedSessionExpireParams < ::Stripe::RequestParams
|
|
7
|
+
# Specifies which fields in the response should be expanded.
|
|
8
|
+
attr_accessor :expand
|
|
9
|
+
|
|
10
|
+
def initialize(expand: nil)
|
|
11
|
+
@expand = expand
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module DelegatedCheckout
|
|
6
|
+
class RequestedSessionRetrieveParams < ::Stripe::RequestParams
|
|
7
|
+
# Specifies which fields in the response should be expanded.
|
|
8
|
+
attr_accessor :expand
|
|
9
|
+
|
|
10
|
+
def initialize(expand: nil)
|
|
11
|
+
@expand = expand
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module DelegatedCheckout
|
|
6
|
+
class RequestedSessionUpdateParams < ::Stripe::RequestParams
|
|
7
|
+
class FulfillmentDetails < ::Stripe::RequestParams
|
|
8
|
+
class Address < ::Stripe::RequestParams
|
|
9
|
+
# City, district, suburb, town, or village.
|
|
10
|
+
attr_accessor :city
|
|
11
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
12
|
+
attr_accessor :country
|
|
13
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
14
|
+
attr_accessor :line1
|
|
15
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
16
|
+
attr_accessor :line2
|
|
17
|
+
# ZIP or postal code.
|
|
18
|
+
attr_accessor :postal_code
|
|
19
|
+
# State, county, province, or region.
|
|
20
|
+
attr_accessor :state
|
|
21
|
+
|
|
22
|
+
def initialize(
|
|
23
|
+
city: nil,
|
|
24
|
+
country: nil,
|
|
25
|
+
line1: nil,
|
|
26
|
+
line2: nil,
|
|
27
|
+
postal_code: nil,
|
|
28
|
+
state: nil
|
|
29
|
+
)
|
|
30
|
+
@city = city
|
|
31
|
+
@country = country
|
|
32
|
+
@line1 = line1
|
|
33
|
+
@line2 = line2
|
|
34
|
+
@postal_code = postal_code
|
|
35
|
+
@state = state
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
class SelectedFulfillmentOption < ::Stripe::RequestParams
|
|
40
|
+
class Shipping < ::Stripe::RequestParams
|
|
41
|
+
# The shipping option identifer.
|
|
42
|
+
attr_accessor :shipping_option
|
|
43
|
+
|
|
44
|
+
def initialize(shipping_option: nil)
|
|
45
|
+
@shipping_option = shipping_option
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
# The shipping fulfillment option.
|
|
49
|
+
attr_accessor :shipping
|
|
50
|
+
# The type of fulfillment option.
|
|
51
|
+
attr_accessor :type
|
|
52
|
+
|
|
53
|
+
def initialize(shipping: nil, type: nil)
|
|
54
|
+
@shipping = shipping
|
|
55
|
+
@type = type
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
# Attribute for param field address
|
|
59
|
+
attr_accessor :address
|
|
60
|
+
# The customer's email address.
|
|
61
|
+
attr_accessor :email
|
|
62
|
+
# The customer's name.
|
|
63
|
+
attr_accessor :name
|
|
64
|
+
# The customer's phone number.
|
|
65
|
+
attr_accessor :phone
|
|
66
|
+
# The fulfillment option to select.
|
|
67
|
+
attr_accessor :selected_fulfillment_option
|
|
68
|
+
|
|
69
|
+
def initialize(
|
|
70
|
+
address: nil,
|
|
71
|
+
email: nil,
|
|
72
|
+
name: nil,
|
|
73
|
+
phone: nil,
|
|
74
|
+
selected_fulfillment_option: nil
|
|
75
|
+
)
|
|
76
|
+
@address = address
|
|
77
|
+
@email = email
|
|
78
|
+
@name = name
|
|
79
|
+
@phone = phone
|
|
80
|
+
@selected_fulfillment_option = selected_fulfillment_option
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
class LineItemDetail < ::Stripe::RequestParams
|
|
85
|
+
# The key of the line item.
|
|
86
|
+
attr_accessor :key
|
|
87
|
+
# The quantity of the line item.
|
|
88
|
+
attr_accessor :quantity
|
|
89
|
+
|
|
90
|
+
def initialize(key: nil, quantity: nil)
|
|
91
|
+
@key = key
|
|
92
|
+
@quantity = quantity
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
class PaymentMethodData < ::Stripe::RequestParams
|
|
97
|
+
class BillingDetails < ::Stripe::RequestParams
|
|
98
|
+
class Address < ::Stripe::RequestParams
|
|
99
|
+
# City, district, suburb, town, or village.
|
|
100
|
+
attr_accessor :city
|
|
101
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
102
|
+
attr_accessor :country
|
|
103
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
104
|
+
attr_accessor :line1
|
|
105
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
106
|
+
attr_accessor :line2
|
|
107
|
+
# ZIP or postal code.
|
|
108
|
+
attr_accessor :postal_code
|
|
109
|
+
# State, county, province, or region.
|
|
110
|
+
attr_accessor :state
|
|
111
|
+
|
|
112
|
+
def initialize(
|
|
113
|
+
city: nil,
|
|
114
|
+
country: nil,
|
|
115
|
+
line1: nil,
|
|
116
|
+
line2: nil,
|
|
117
|
+
postal_code: nil,
|
|
118
|
+
state: nil
|
|
119
|
+
)
|
|
120
|
+
@city = city
|
|
121
|
+
@country = country
|
|
122
|
+
@line1 = line1
|
|
123
|
+
@line2 = line2
|
|
124
|
+
@postal_code = postal_code
|
|
125
|
+
@state = state
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
# The address for the billing details.
|
|
129
|
+
attr_accessor :address
|
|
130
|
+
# The email for the billing details.
|
|
131
|
+
attr_accessor :email
|
|
132
|
+
# The name for the billing details.
|
|
133
|
+
attr_accessor :name
|
|
134
|
+
# The phone for the billing details.
|
|
135
|
+
attr_accessor :phone
|
|
136
|
+
|
|
137
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil)
|
|
138
|
+
@address = address
|
|
139
|
+
@email = email
|
|
140
|
+
@name = name
|
|
141
|
+
@phone = phone
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
class Card < ::Stripe::RequestParams
|
|
146
|
+
# The CVC of the card.
|
|
147
|
+
attr_accessor :cvc
|
|
148
|
+
# The expiration month of the card.
|
|
149
|
+
attr_accessor :exp_month
|
|
150
|
+
# The expiration year of the card.
|
|
151
|
+
attr_accessor :exp_year
|
|
152
|
+
# The number of the card.
|
|
153
|
+
attr_accessor :number
|
|
154
|
+
|
|
155
|
+
def initialize(cvc: nil, exp_month: nil, exp_year: nil, number: nil)
|
|
156
|
+
@cvc = cvc
|
|
157
|
+
@exp_month = exp_month
|
|
158
|
+
@exp_year = exp_year
|
|
159
|
+
@number = number
|
|
160
|
+
end
|
|
161
|
+
end
|
|
162
|
+
# The billing details for the payment method data.
|
|
163
|
+
attr_accessor :billing_details
|
|
164
|
+
# The card for the payment method data.
|
|
165
|
+
attr_accessor :card
|
|
166
|
+
# The type of the payment method data.
|
|
167
|
+
attr_accessor :type
|
|
168
|
+
|
|
169
|
+
def initialize(billing_details: nil, card: nil, type: nil)
|
|
170
|
+
@billing_details = billing_details
|
|
171
|
+
@card = card
|
|
172
|
+
@type = type
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
# Specifies which fields in the response should be expanded.
|
|
176
|
+
attr_accessor :expand
|
|
177
|
+
# The details of the fulfillment.
|
|
178
|
+
attr_accessor :fulfillment_details
|
|
179
|
+
# The details of the line items.
|
|
180
|
+
attr_accessor :line_item_details
|
|
181
|
+
# The metadata for this requested session.
|
|
182
|
+
attr_accessor :metadata
|
|
183
|
+
# The payment method for this requested session.
|
|
184
|
+
attr_accessor :payment_method
|
|
185
|
+
# The payment method data for this requested session.
|
|
186
|
+
attr_accessor :payment_method_data
|
|
187
|
+
# The shared metadata for this requested session.
|
|
188
|
+
attr_accessor :shared_metadata
|
|
189
|
+
|
|
190
|
+
def initialize(
|
|
191
|
+
expand: nil,
|
|
192
|
+
fulfillment_details: nil,
|
|
193
|
+
line_item_details: nil,
|
|
194
|
+
metadata: nil,
|
|
195
|
+
payment_method: nil,
|
|
196
|
+
payment_method_data: nil,
|
|
197
|
+
shared_metadata: nil
|
|
198
|
+
)
|
|
199
|
+
@expand = expand
|
|
200
|
+
@fulfillment_details = fulfillment_details
|
|
201
|
+
@line_item_details = line_item_details
|
|
202
|
+
@metadata = metadata
|
|
203
|
+
@payment_method = payment_method
|
|
204
|
+
@payment_method_data = payment_method_data
|
|
205
|
+
@shared_metadata = shared_metadata
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
end
|
|
209
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Identity
|
|
6
|
+
class BlocklistEntryCreateParams < ::Stripe::RequestParams
|
|
7
|
+
# When true, the created BlocklistEntry will be used to retroactively unverify matching verifications.
|
|
8
|
+
attr_accessor :check_existing_verifications
|
|
9
|
+
# The type of blocklist entry to be created.
|
|
10
|
+
attr_accessor :entry_type
|
|
11
|
+
# Specifies which fields in the response should be expanded.
|
|
12
|
+
attr_accessor :expand
|
|
13
|
+
# The identifier of the VerificationReport to create the BlocklistEntry from.
|
|
14
|
+
attr_accessor :verification_report
|
|
15
|
+
|
|
16
|
+
def initialize(
|
|
17
|
+
check_existing_verifications: nil,
|
|
18
|
+
entry_type: nil,
|
|
19
|
+
expand: nil,
|
|
20
|
+
verification_report: nil
|
|
21
|
+
)
|
|
22
|
+
@check_existing_verifications = check_existing_verifications
|
|
23
|
+
@entry_type = entry_type
|
|
24
|
+
@expand = expand
|
|
25
|
+
@verification_report = verification_report
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Identity
|
|
6
|
+
class BlocklistEntryDisableParams < ::Stripe::RequestParams
|
|
7
|
+
# Specifies which fields in the response should be expanded.
|
|
8
|
+
attr_accessor :expand
|
|
9
|
+
|
|
10
|
+
def initialize(expand: nil)
|
|
11
|
+
@expand = expand
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|