stripe 17.1.0.pre.alpha.3 → 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 +2 -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_create_params.rb +230 -1
- data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +195 -1
- 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 +6 -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 +218 -2
- 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 +1 -0
- 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 +1 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +1407 -36
- metadata +10 -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
|
@@ -209,6 +209,8 @@ module Stripe
|
|
|
209
209
|
V2::Billing::PricingPlan.object_name => V2::Billing::PricingPlan,
|
|
210
210
|
V2::Billing::PricingPlanComponent.object_name => V2::Billing::PricingPlanComponent,
|
|
211
211
|
V2::Billing::PricingPlanSubscription.object_name => V2::Billing::PricingPlanSubscription,
|
|
212
|
+
V2::Billing::PricingPlanSubscriptionComponents.object_name =>
|
|
213
|
+
V2::Billing::PricingPlanSubscriptionComponents,
|
|
212
214
|
V2::Billing::PricingPlanVersion.object_name => V2::Billing::PricingPlanVersion,
|
|
213
215
|
V2::Billing::Profile.object_name => V2::Billing::Profile,
|
|
214
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
|
|
@@ -4,11 +4,240 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module DelegatedCheckout
|
|
6
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
|
|
7
194
|
# Specifies which fields in the response should be expanded.
|
|
8
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
|
|
9
214
|
|
|
10
|
-
def initialize(
|
|
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
|
|
11
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
|
|
12
241
|
end
|
|
13
242
|
end
|
|
14
243
|
end
|
|
@@ -4,11 +4,205 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module DelegatedCheckout
|
|
6
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
|
|
7
175
|
# Specifies which fields in the response should be expanded.
|
|
8
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
|
|
9
189
|
|
|
10
|
-
def initialize(
|
|
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
|
+
)
|
|
11
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
|
|
12
206
|
end
|
|
13
207
|
end
|
|
14
208
|
end
|
|
@@ -9,7 +9,7 @@ module Stripe
|
|
|
9
9
|
class PaymentDue < ::Stripe::RequestParams
|
|
10
10
|
# If true an email for the invoice would be generated and sent out.
|
|
11
11
|
attr_accessor :enabled
|
|
12
|
-
# If true the payment link to hosted
|
|
12
|
+
# If true the payment link to hosted invoice page would be included in email and PDF of the invoice.
|
|
13
13
|
attr_accessor :include_payment_link
|
|
14
14
|
|
|
15
15
|
def initialize(enabled: nil, include_payment_link: nil)
|
|
@@ -17,7 +17,7 @@ module Stripe
|
|
|
17
17
|
@include_payment_link = include_payment_link
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
|
-
# Controls emails for when the payment is due. For example after the invoice is
|
|
20
|
+
# Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state.
|
|
21
21
|
attr_accessor :payment_due
|
|
22
22
|
|
|
23
23
|
def initialize(payment_due: nil)
|
|
@@ -9,7 +9,7 @@ module Stripe
|
|
|
9
9
|
class PaymentDue < ::Stripe::RequestParams
|
|
10
10
|
# If true an email for the invoice would be generated and sent out.
|
|
11
11
|
attr_accessor :enabled
|
|
12
|
-
# If true the payment link to hosted
|
|
12
|
+
# If true the payment link to hosted invoice page would be included in email and PDF of the invoice.
|
|
13
13
|
attr_accessor :include_payment_link
|
|
14
14
|
|
|
15
15
|
def initialize(enabled: nil, include_payment_link: nil)
|
|
@@ -17,7 +17,7 @@ module Stripe
|
|
|
17
17
|
@include_payment_link = include_payment_link
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
|
-
# Controls emails for when the payment is due. For example after the invoice is
|
|
20
|
+
# Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state.
|
|
21
21
|
attr_accessor :payment_due
|
|
22
22
|
|
|
23
23
|
def initialize(payment_due: nil)
|
|
@@ -1129,11 +1129,23 @@ module Stripe
|
|
|
1129
1129
|
@requested = requested
|
|
1130
1130
|
end
|
|
1131
1131
|
end
|
|
1132
|
+
|
|
1133
|
+
class Usd < ::Stripe::RequestParams
|
|
1134
|
+
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1135
|
+
attr_accessor :requested
|
|
1136
|
+
|
|
1137
|
+
def initialize(requested: nil)
|
|
1138
|
+
@requested = requested
|
|
1139
|
+
end
|
|
1140
|
+
end
|
|
1132
1141
|
# Can hold storage-type funds on Stripe in GBP.
|
|
1133
1142
|
attr_accessor :gbp
|
|
1143
|
+
# Can hold storage-type funds on Stripe in USD.
|
|
1144
|
+
attr_accessor :usd
|
|
1134
1145
|
|
|
1135
|
-
def initialize(gbp: nil)
|
|
1146
|
+
def initialize(gbp: nil, usd: nil)
|
|
1136
1147
|
@gbp = gbp
|
|
1148
|
+
@usd = usd
|
|
1137
1149
|
end
|
|
1138
1150
|
end
|
|
1139
1151
|
|
|
@@ -1380,6 +1392,21 @@ module Stripe
|
|
|
1380
1392
|
end
|
|
1381
1393
|
end
|
|
1382
1394
|
|
|
1395
|
+
class RepresentativeDeclaration < ::Stripe::RequestParams
|
|
1396
|
+
# The time marking when the representative attestation was made. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
1397
|
+
attr_accessor :date
|
|
1398
|
+
# The IP address from which the representative attestation was made.
|
|
1399
|
+
attr_accessor :ip
|
|
1400
|
+
# The user agent of the browser from which the representative attestation was made.
|
|
1401
|
+
attr_accessor :user_agent
|
|
1402
|
+
|
|
1403
|
+
def initialize(date: nil, ip: nil, user_agent: nil)
|
|
1404
|
+
@date = date
|
|
1405
|
+
@ip = ip
|
|
1406
|
+
@user_agent = user_agent
|
|
1407
|
+
end
|
|
1408
|
+
end
|
|
1409
|
+
|
|
1383
1410
|
class TermsOfService < ::Stripe::RequestParams
|
|
1384
1411
|
class Account < ::Stripe::RequestParams
|
|
1385
1412
|
# The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
@@ -1724,6 +1751,8 @@ module Stripe
|
|
|
1724
1751
|
attr_accessor :ownership_declaration
|
|
1725
1752
|
# Attestation that all Persons with a specific Relationship value have been provided.
|
|
1726
1753
|
attr_accessor :persons_provided
|
|
1754
|
+
# This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
|
|
1755
|
+
attr_accessor :representative_declaration
|
|
1727
1756
|
# Attestations of accepted terms of service agreements.
|
|
1728
1757
|
attr_accessor :terms_of_service
|
|
1729
1758
|
|
|
@@ -1731,11 +1760,13 @@ module Stripe
|
|
|
1731
1760
|
directorship_declaration: nil,
|
|
1732
1761
|
ownership_declaration: nil,
|
|
1733
1762
|
persons_provided: nil,
|
|
1763
|
+
representative_declaration: nil,
|
|
1734
1764
|
terms_of_service: nil
|
|
1735
1765
|
)
|
|
1736
1766
|
@directorship_declaration = directorship_declaration
|
|
1737
1767
|
@ownership_declaration = ownership_declaration
|
|
1738
1768
|
@persons_provided = persons_provided
|
|
1769
|
+
@representative_declaration = representative_declaration
|
|
1739
1770
|
@terms_of_service = terms_of_service
|
|
1740
1771
|
end
|
|
1741
1772
|
end
|
|
@@ -2591,7 +2622,7 @@ module Stripe
|
|
|
2591
2622
|
@surname = surname
|
|
2592
2623
|
end
|
|
2593
2624
|
end
|
|
2594
|
-
# Attestations from the identity's key people, e.g. owners, executives, directors.
|
|
2625
|
+
# Attestations from the identity's key people, e.g. owners, executives, directors, representatives.
|
|
2595
2626
|
attr_accessor :attestations
|
|
2596
2627
|
# Information about the company or business.
|
|
2597
2628
|
attr_accessor :business_details
|