stripe 19.4.0.pre.alpha.4 → 19.4.0.pre.alpha.5
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/object_types.rb +2 -0
- data/lib/stripe/params/billing/alert_create_params.rb +1 -1
- data/lib/stripe/params/billing/alert_notification_list_params.rb +70 -0
- data/lib/stripe/params/confirmation_token_create_params.rb +5 -0
- data/lib/stripe/params/crypto/deposit_address_create_params.rb +24 -0
- data/lib/stripe/params/crypto/deposit_address_list_params.rb +45 -0
- data/lib/stripe/params/crypto/deposit_address_retrieve_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +5 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +43 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +104 -2
- data/lib/stripe/params/payment_intent_create_params.rb +103 -1
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +43 -1
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +43 -1
- data/lib/stripe/params/payment_intent_update_params.rb +103 -1
- data/lib/stripe/params/payment_method_configuration_create_params.rb +21 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +21 -0
- data/lib/stripe/params/payment_method_create_params.rb +5 -0
- data/lib/stripe/params/radar/payment_evaluation_create_params.rb +22 -1
- 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/test_helpers/confirmation_token_create_params.rb +5 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +32 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +32 -1
- data/lib/stripe/params.rb +8 -0
- data/lib/stripe/resources/account.rb +2 -2
- data/lib/stripe/resources/billing/alert.rb +3 -0
- data/lib/stripe/resources/billing/alert_notification.rb +56 -0
- data/lib/stripe/resources/charge.rb +2 -2
- data/lib/stripe/resources/confirmation_token.rb +13 -0
- data/lib/stripe/resources/crypto/deposit_address.rb +80 -0
- data/lib/stripe/resources/crypto/onramp_session.rb +2 -0
- data/lib/stripe/resources/payment_intent.rb +71 -9
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +30 -1
- data/lib/stripe/resources/payment_method.rb +13 -0
- data/lib/stripe/resources/payment_method_configuration.rb +34 -0
- data/lib/stripe/resources/shared_payment/granted_token.rb +11 -1170
- data/lib/stripe/resources/v2/core/account.rb +193 -1
- data/lib/stripe/resources.rb +4 -0
- data/lib/stripe/services/account_service.rb +1 -1
- data/lib/stripe/services/billing/alert_notification_service.rb +19 -0
- data/lib/stripe/services/billing/alert_service.rb +7 -0
- data/lib/stripe/services/crypto/deposit_address_service.rb +43 -0
- data/lib/stripe/services/crypto_service.rb +2 -1
- data/lib/stripe/services.rb +4 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +1742 -1268
- 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: 8771ba309353c5e551324e651771cb93d948289ea07c9dde6a47e6749c9a1988
|
|
4
|
+
data.tar.gz: 6fa8b5b899e44cf31c63ff98014dc2dc7590c34712b8a06750c2d48465de2c3d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8afeccea648d6810d1576d20ee5b5665d88024421233dea4efcb23e02ba3713f5039367ed4636089d5c8c76fa290b3afdc86ce3e04fc74002b2bd44aa89b2afe
|
|
7
|
+
data.tar.gz: 27bbee2932bf9e6bbd7c78b981c7509b747ca09eb9c10ac74d40f7124ac8ff67bfa25eab002147a0d56f85f903c831b582505ea6d4bebb972851f4a2f5847c08
|
data/lib/stripe/object_types.rb
CHANGED
|
@@ -28,6 +28,7 @@ module Stripe
|
|
|
28
28
|
BalanceTransfer.object_name => BalanceTransfer,
|
|
29
29
|
BankAccount.object_name => BankAccount,
|
|
30
30
|
Billing::Alert.object_name => Billing::Alert,
|
|
31
|
+
Billing::AlertNotification.object_name => Billing::AlertNotification,
|
|
31
32
|
Billing::AlertRecovered.object_name => Billing::AlertRecovered,
|
|
32
33
|
Billing::AlertTriggered.object_name => Billing::AlertTriggered,
|
|
33
34
|
Billing::Analytics::MeterUsage.object_name => Billing::Analytics::MeterUsage,
|
|
@@ -61,6 +62,7 @@ module Stripe
|
|
|
61
62
|
Crypto::Customer.object_name => Crypto::Customer,
|
|
62
63
|
Crypto::CustomerConsumerWallet.object_name => Crypto::CustomerConsumerWallet,
|
|
63
64
|
Crypto::CustomerPaymentToken.object_name => Crypto::CustomerPaymentToken,
|
|
65
|
+
Crypto::DepositAddress.object_name => Crypto::DepositAddress,
|
|
64
66
|
Crypto::OnrampSession.object_name => Crypto::OnrampSession,
|
|
65
67
|
Crypto::OnrampTransactionLimits.object_name => Crypto::OnrampTransactionLimits,
|
|
66
68
|
Customer.object_name => Customer,
|
|
@@ -245,7 +245,7 @@ module Stripe
|
|
|
245
245
|
end
|
|
246
246
|
# The filters allows limiting the scope of this usage alert. You can only specify up to one filter at this time.
|
|
247
247
|
attr_accessor :filters
|
|
248
|
-
# Defines the threshold value that triggers the alert.
|
|
248
|
+
# Defines the threshold value that triggers the alert. The value must be greater than 0.
|
|
249
249
|
attr_accessor :gte
|
|
250
250
|
# The [Billing Meter](/api/billing/meter) ID whose usage is monitored.
|
|
251
251
|
attr_accessor :meter
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Billing
|
|
6
|
+
class AlertNotificationListParams < ::Stripe::RequestParams
|
|
7
|
+
class NotifiedAt < ::Stripe::RequestParams
|
|
8
|
+
# Minimum value to filter by (exclusive)
|
|
9
|
+
attr_accessor :gt
|
|
10
|
+
# Minimum value to filter by (inclusive)
|
|
11
|
+
attr_accessor :gte
|
|
12
|
+
# Maximum value to filter by (exclusive)
|
|
13
|
+
attr_accessor :lt
|
|
14
|
+
# Maximum value to filter by (inclusive)
|
|
15
|
+
attr_accessor :lte
|
|
16
|
+
|
|
17
|
+
def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
|
|
18
|
+
@gt = gt
|
|
19
|
+
@gte = gte
|
|
20
|
+
@lt = lt
|
|
21
|
+
@lte = lte
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
# Filter results to only include triggered or recovered notifications.
|
|
25
|
+
attr_accessor :action
|
|
26
|
+
# Filter results to only include notifications for the given billing cadence.
|
|
27
|
+
attr_accessor :cadence
|
|
28
|
+
# The customer to list notifications for.
|
|
29
|
+
attr_accessor :customer
|
|
30
|
+
# 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.
|
|
31
|
+
attr_accessor :ending_before
|
|
32
|
+
# Specifies which fields in the response should be expanded.
|
|
33
|
+
attr_accessor :expand
|
|
34
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
|
35
|
+
attr_accessor :limit
|
|
36
|
+
# Filter results to only include notifications for the given meter.
|
|
37
|
+
attr_accessor :meter
|
|
38
|
+
# Filter results according to when the notification was sent.
|
|
39
|
+
attr_accessor :notified_at
|
|
40
|
+
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
|
41
|
+
attr_accessor :starting_after
|
|
42
|
+
# Filter results to only include notifications for the given subscription.
|
|
43
|
+
attr_accessor :subscription
|
|
44
|
+
|
|
45
|
+
def initialize(
|
|
46
|
+
action: nil,
|
|
47
|
+
cadence: nil,
|
|
48
|
+
customer: nil,
|
|
49
|
+
ending_before: nil,
|
|
50
|
+
expand: nil,
|
|
51
|
+
limit: nil,
|
|
52
|
+
meter: nil,
|
|
53
|
+
notified_at: nil,
|
|
54
|
+
starting_after: nil,
|
|
55
|
+
subscription: nil
|
|
56
|
+
)
|
|
57
|
+
@action = action
|
|
58
|
+
@cadence = cadence
|
|
59
|
+
@customer = customer
|
|
60
|
+
@ending_before = ending_before
|
|
61
|
+
@expand = expand
|
|
62
|
+
@limit = limit
|
|
63
|
+
@meter = meter
|
|
64
|
+
@notified_at = notified_at
|
|
65
|
+
@starting_after = starting_after
|
|
66
|
+
@subscription = subscription
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
@@ -404,6 +404,7 @@ module Stripe
|
|
|
404
404
|
end
|
|
405
405
|
end
|
|
406
406
|
|
|
407
|
+
class Vipps < ::Stripe::RequestParams; end
|
|
407
408
|
class WechatPay < ::Stripe::RequestParams; end
|
|
408
409
|
class Zip < ::Stripe::RequestParams; end
|
|
409
410
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
|
@@ -540,6 +541,8 @@ module Stripe
|
|
|
540
541
|
attr_accessor :upi
|
|
541
542
|
# If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
|
|
542
543
|
attr_accessor :us_bank_account
|
|
544
|
+
# If this is a `vipps` PaymentMethod, this hash contains details about the Vipps payment method.
|
|
545
|
+
attr_accessor :vipps
|
|
543
546
|
# If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
|
|
544
547
|
attr_accessor :wechat_pay
|
|
545
548
|
# If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
|
|
@@ -613,6 +616,7 @@ module Stripe
|
|
|
613
616
|
type: nil,
|
|
614
617
|
upi: nil,
|
|
615
618
|
us_bank_account: nil,
|
|
619
|
+
vipps: nil,
|
|
616
620
|
wechat_pay: nil,
|
|
617
621
|
zip: nil
|
|
618
622
|
)
|
|
@@ -683,6 +687,7 @@ module Stripe
|
|
|
683
687
|
@type = type
|
|
684
688
|
@upi = upi
|
|
685
689
|
@us_bank_account = us_bank_account
|
|
690
|
+
@vipps = vipps
|
|
686
691
|
@wechat_pay = wechat_pay
|
|
687
692
|
@zip = zip
|
|
688
693
|
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Crypto
|
|
6
|
+
class DepositAddressCreateParams < ::Stripe::RequestParams
|
|
7
|
+
# Attribute for param field customer
|
|
8
|
+
attr_accessor :customer
|
|
9
|
+
# Specifies which fields in the response should be expanded.
|
|
10
|
+
attr_accessor :expand
|
|
11
|
+
# Attribute for param field metadata
|
|
12
|
+
attr_accessor :metadata
|
|
13
|
+
# Attribute for param field network
|
|
14
|
+
attr_accessor :network
|
|
15
|
+
|
|
16
|
+
def initialize(customer: nil, expand: nil, metadata: nil, network: nil)
|
|
17
|
+
@customer = customer
|
|
18
|
+
@expand = expand
|
|
19
|
+
@metadata = metadata
|
|
20
|
+
@network = network
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Crypto
|
|
6
|
+
class DepositAddressListParams < ::Stripe::RequestParams
|
|
7
|
+
# Attribute for param field address
|
|
8
|
+
attr_accessor :address
|
|
9
|
+
# Attribute for param field customer
|
|
10
|
+
attr_accessor :customer
|
|
11
|
+
# Attribute for param field customer_account
|
|
12
|
+
attr_accessor :customer_account
|
|
13
|
+
# 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.
|
|
14
|
+
attr_accessor :ending_before
|
|
15
|
+
# Specifies which fields in the response should be expanded.
|
|
16
|
+
attr_accessor :expand
|
|
17
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
|
18
|
+
attr_accessor :limit
|
|
19
|
+
# Attribute for param field network
|
|
20
|
+
attr_accessor :network
|
|
21
|
+
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
|
22
|
+
attr_accessor :starting_after
|
|
23
|
+
|
|
24
|
+
def initialize(
|
|
25
|
+
address: nil,
|
|
26
|
+
customer: nil,
|
|
27
|
+
customer_account: nil,
|
|
28
|
+
ending_before: nil,
|
|
29
|
+
expand: nil,
|
|
30
|
+
limit: nil,
|
|
31
|
+
network: nil,
|
|
32
|
+
starting_after: nil
|
|
33
|
+
)
|
|
34
|
+
@address = address
|
|
35
|
+
@customer = customer
|
|
36
|
+
@customer_account = customer_account
|
|
37
|
+
@ending_before = ending_before
|
|
38
|
+
@expand = expand
|
|
39
|
+
@limit = limit
|
|
40
|
+
@network = network
|
|
41
|
+
@starting_after = starting_after
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Crypto
|
|
6
|
+
class DepositAddressRetrieveParams < ::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
|
|
@@ -145,6 +145,8 @@ module Stripe
|
|
|
145
145
|
attr_accessor :return_url
|
|
146
146
|
# Risk details/signals associated with the requested session
|
|
147
147
|
attr_accessor :risk_details
|
|
148
|
+
# Set to true when using Stripe.js, iOS, or Android client-side SDKs to handle next actions.
|
|
149
|
+
attr_accessor :use_stripe_sdk
|
|
148
150
|
|
|
149
151
|
def initialize(
|
|
150
152
|
affiliate_attribution: nil,
|
|
@@ -153,7 +155,8 @@ module Stripe
|
|
|
153
155
|
metadata: nil,
|
|
154
156
|
payment_method: nil,
|
|
155
157
|
return_url: nil,
|
|
156
|
-
risk_details: nil
|
|
158
|
+
risk_details: nil,
|
|
159
|
+
use_stripe_sdk: nil
|
|
157
160
|
)
|
|
158
161
|
@affiliate_attribution = affiliate_attribution
|
|
159
162
|
@buyer_consents = buyer_consents
|
|
@@ -162,6 +165,7 @@ module Stripe
|
|
|
162
165
|
@payment_method = payment_method
|
|
163
166
|
@return_url = return_url
|
|
164
167
|
@risk_details = risk_details
|
|
168
|
+
@use_stripe_sdk = use_stripe_sdk
|
|
165
169
|
end
|
|
166
170
|
end
|
|
167
171
|
end
|
|
@@ -7,6 +7,45 @@ module Stripe
|
|
|
7
7
|
class LineItem < ::Stripe::RequestParams
|
|
8
8
|
class PaymentMethodOptions < ::Stripe::RequestParams
|
|
9
9
|
class Card < ::Stripe::RequestParams
|
|
10
|
+
class EvCharging < ::Stripe::RequestParams
|
|
11
|
+
# The carbon footprint avoided by the charging session, in grams of CO2.
|
|
12
|
+
attr_accessor :carbon_footprint_avoided_grams_co2
|
|
13
|
+
# The time the charging session ended, measured in seconds since the Unix epoch.
|
|
14
|
+
attr_accessor :charging_ended_at
|
|
15
|
+
# The power output capacity of the charging station, in kilowatts (kW).
|
|
16
|
+
attr_accessor :charging_power_output_capacity_kw
|
|
17
|
+
# The time the charging session started, measured in seconds since the Unix epoch.
|
|
18
|
+
attr_accessor :charging_started_at
|
|
19
|
+
# The type of connector used for the charging session.
|
|
20
|
+
attr_accessor :connector_type
|
|
21
|
+
# The estimated distance in kilometers or miles added to the vehicle during the charging session.
|
|
22
|
+
attr_accessor :estimated_range_added
|
|
23
|
+
# The estimated distance in kilometers or miles remaining in the vehicle after the charging session.
|
|
24
|
+
attr_accessor :estimated_range_left
|
|
25
|
+
# The maximum power dispensed during the charging session, in kilowatts (kW).
|
|
26
|
+
attr_accessor :maximum_power_dispensed_kw
|
|
27
|
+
|
|
28
|
+
def initialize(
|
|
29
|
+
carbon_footprint_avoided_grams_co2: nil,
|
|
30
|
+
charging_ended_at: nil,
|
|
31
|
+
charging_power_output_capacity_kw: nil,
|
|
32
|
+
charging_started_at: nil,
|
|
33
|
+
connector_type: nil,
|
|
34
|
+
estimated_range_added: nil,
|
|
35
|
+
estimated_range_left: nil,
|
|
36
|
+
maximum_power_dispensed_kw: nil
|
|
37
|
+
)
|
|
38
|
+
@carbon_footprint_avoided_grams_co2 = carbon_footprint_avoided_grams_co2
|
|
39
|
+
@charging_ended_at = charging_ended_at
|
|
40
|
+
@charging_power_output_capacity_kw = charging_power_output_capacity_kw
|
|
41
|
+
@charging_started_at = charging_started_at
|
|
42
|
+
@connector_type = connector_type
|
|
43
|
+
@estimated_range_added = estimated_range_added
|
|
44
|
+
@estimated_range_left = estimated_range_left
|
|
45
|
+
@maximum_power_dispensed_kw = maximum_power_dispensed_kw
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
10
49
|
class FleetData < ::Stripe::RequestParams
|
|
11
50
|
# The type of product being purchased at this line item.
|
|
12
51
|
attr_accessor :product_type
|
|
@@ -20,11 +59,14 @@ module Stripe
|
|
|
20
59
|
end
|
|
21
60
|
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on.
|
|
22
61
|
attr_accessor :commodity_code
|
|
62
|
+
# EV charging data for this line item.
|
|
63
|
+
attr_accessor :ev_charging
|
|
23
64
|
# Fleet data for this line item.
|
|
24
65
|
attr_accessor :fleet_data
|
|
25
66
|
|
|
26
|
-
def initialize(commodity_code: nil, fleet_data: nil)
|
|
67
|
+
def initialize(commodity_code: nil, ev_charging: nil, fleet_data: nil)
|
|
27
68
|
@commodity_code = commodity_code
|
|
69
|
+
@ev_charging = ev_charging
|
|
28
70
|
@fleet_data = fleet_data
|
|
29
71
|
end
|
|
30
72
|
end
|
|
@@ -16,6 +16,45 @@ module Stripe
|
|
|
16
16
|
class LineItem < ::Stripe::RequestParams
|
|
17
17
|
class PaymentMethodOptions < ::Stripe::RequestParams
|
|
18
18
|
class Card < ::Stripe::RequestParams
|
|
19
|
+
class EvCharging < ::Stripe::RequestParams
|
|
20
|
+
# The carbon footprint avoided by the charging session, in grams of CO2.
|
|
21
|
+
attr_accessor :carbon_footprint_avoided_grams_co2
|
|
22
|
+
# The time the charging session ended, measured in seconds since the Unix epoch.
|
|
23
|
+
attr_accessor :charging_ended_at
|
|
24
|
+
# The power output capacity of the charging station, in kilowatts (kW).
|
|
25
|
+
attr_accessor :charging_power_output_capacity_kw
|
|
26
|
+
# The time the charging session started, measured in seconds since the Unix epoch.
|
|
27
|
+
attr_accessor :charging_started_at
|
|
28
|
+
# The type of connector used for the charging session.
|
|
29
|
+
attr_accessor :connector_type
|
|
30
|
+
# The estimated distance in kilometers or miles added to the vehicle during the charging session.
|
|
31
|
+
attr_accessor :estimated_range_added
|
|
32
|
+
# The estimated distance in kilometers or miles remaining in the vehicle after the charging session.
|
|
33
|
+
attr_accessor :estimated_range_left
|
|
34
|
+
# The maximum power dispensed during the charging session, in kilowatts (kW).
|
|
35
|
+
attr_accessor :maximum_power_dispensed_kw
|
|
36
|
+
|
|
37
|
+
def initialize(
|
|
38
|
+
carbon_footprint_avoided_grams_co2: nil,
|
|
39
|
+
charging_ended_at: nil,
|
|
40
|
+
charging_power_output_capacity_kw: nil,
|
|
41
|
+
charging_started_at: nil,
|
|
42
|
+
connector_type: nil,
|
|
43
|
+
estimated_range_added: nil,
|
|
44
|
+
estimated_range_left: nil,
|
|
45
|
+
maximum_power_dispensed_kw: nil
|
|
46
|
+
)
|
|
47
|
+
@carbon_footprint_avoided_grams_co2 = carbon_footprint_avoided_grams_co2
|
|
48
|
+
@charging_ended_at = charging_ended_at
|
|
49
|
+
@charging_power_output_capacity_kw = charging_power_output_capacity_kw
|
|
50
|
+
@charging_started_at = charging_started_at
|
|
51
|
+
@connector_type = connector_type
|
|
52
|
+
@estimated_range_added = estimated_range_added
|
|
53
|
+
@estimated_range_left = estimated_range_left
|
|
54
|
+
@maximum_power_dispensed_kw = maximum_power_dispensed_kw
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
19
58
|
class FleetData < ::Stripe::RequestParams
|
|
20
59
|
# The type of product being purchased at this line item.
|
|
21
60
|
attr_accessor :product_type
|
|
@@ -29,11 +68,14 @@ module Stripe
|
|
|
29
68
|
end
|
|
30
69
|
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on.
|
|
31
70
|
attr_accessor :commodity_code
|
|
71
|
+
# EV charging data for this line item.
|
|
72
|
+
attr_accessor :ev_charging
|
|
32
73
|
# Fleet data for this line item.
|
|
33
74
|
attr_accessor :fleet_data
|
|
34
75
|
|
|
35
|
-
def initialize(commodity_code: nil, fleet_data: nil)
|
|
76
|
+
def initialize(commodity_code: nil, ev_charging: nil, fleet_data: nil)
|
|
36
77
|
@commodity_code = commodity_code
|
|
78
|
+
@ev_charging = ev_charging
|
|
37
79
|
@fleet_data = fleet_data
|
|
38
80
|
end
|
|
39
81
|
end
|
|
@@ -2657,6 +2699,7 @@ module Stripe
|
|
|
2657
2699
|
end
|
|
2658
2700
|
end
|
|
2659
2701
|
|
|
2702
|
+
class Vipps < ::Stripe::RequestParams; end
|
|
2660
2703
|
class WechatPay < ::Stripe::RequestParams; end
|
|
2661
2704
|
class Zip < ::Stripe::RequestParams; end
|
|
2662
2705
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
|
@@ -2793,6 +2836,8 @@ module Stripe
|
|
|
2793
2836
|
attr_accessor :upi
|
|
2794
2837
|
# If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
|
|
2795
2838
|
attr_accessor :us_bank_account
|
|
2839
|
+
# If this is a `vipps` PaymentMethod, this hash contains details about the Vipps payment method.
|
|
2840
|
+
attr_accessor :vipps
|
|
2796
2841
|
# If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
|
|
2797
2842
|
attr_accessor :wechat_pay
|
|
2798
2843
|
# If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
|
|
@@ -2866,6 +2911,7 @@ module Stripe
|
|
|
2866
2911
|
type: nil,
|
|
2867
2912
|
upi: nil,
|
|
2868
2913
|
us_bank_account: nil,
|
|
2914
|
+
vipps: nil,
|
|
2869
2915
|
wechat_pay: nil,
|
|
2870
2916
|
zip: nil
|
|
2871
2917
|
)
|
|
@@ -2936,6 +2982,7 @@ module Stripe
|
|
|
2936
2982
|
@type = type
|
|
2937
2983
|
@upi = upi
|
|
2938
2984
|
@us_bank_account = us_bank_account
|
|
2985
|
+
@vipps = vipps
|
|
2939
2986
|
@wechat_pay = wechat_pay
|
|
2940
2987
|
@zip = zip
|
|
2941
2988
|
end
|
|
@@ -5910,6 +5957,57 @@ module Stripe
|
|
|
5910
5957
|
end
|
|
5911
5958
|
end
|
|
5912
5959
|
|
|
5960
|
+
class Vipps < ::Stripe::RequestParams
|
|
5961
|
+
class PaymentDetails < ::Stripe::RequestParams
|
|
5962
|
+
class MoneyServices < ::Stripe::RequestParams
|
|
5963
|
+
class AccountFunding < ::Stripe::RequestParams
|
|
5964
|
+
# The category of digital asset being acquired through this account funding transaction.
|
|
5965
|
+
attr_accessor :digital_asset_category
|
|
5966
|
+
|
|
5967
|
+
def initialize(digital_asset_category: nil)
|
|
5968
|
+
@digital_asset_category = digital_asset_category
|
|
5969
|
+
end
|
|
5970
|
+
end
|
|
5971
|
+
# Payment method specific account funding transaction details.
|
|
5972
|
+
attr_accessor :account_funding
|
|
5973
|
+
|
|
5974
|
+
def initialize(account_funding: nil)
|
|
5975
|
+
@account_funding = account_funding
|
|
5976
|
+
end
|
|
5977
|
+
end
|
|
5978
|
+
# Money services details for payment method specific funding fields.
|
|
5979
|
+
attr_accessor :money_services
|
|
5980
|
+
|
|
5981
|
+
def initialize(money_services: nil)
|
|
5982
|
+
@money_services = money_services
|
|
5983
|
+
end
|
|
5984
|
+
end
|
|
5985
|
+
# Controls when the funds are captured from the customer's account.
|
|
5986
|
+
#
|
|
5987
|
+
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
5988
|
+
#
|
|
5989
|
+
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
|
5990
|
+
attr_accessor :capture_method
|
|
5991
|
+
# Payment details for payment method specific funding transaction fields.
|
|
5992
|
+
attr_accessor :payment_details
|
|
5993
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5994
|
+
#
|
|
5995
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
5996
|
+
#
|
|
5997
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
5998
|
+
#
|
|
5999
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
6000
|
+
#
|
|
6001
|
+
# 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`.
|
|
6002
|
+
attr_accessor :setup_future_usage
|
|
6003
|
+
|
|
6004
|
+
def initialize(capture_method: nil, payment_details: nil, setup_future_usage: nil)
|
|
6005
|
+
@capture_method = capture_method
|
|
6006
|
+
@payment_details = payment_details
|
|
6007
|
+
@setup_future_usage = setup_future_usage
|
|
6008
|
+
end
|
|
6009
|
+
end
|
|
6010
|
+
|
|
5913
6011
|
class WechatPay < ::Stripe::RequestParams
|
|
5914
6012
|
# The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program.
|
|
5915
6013
|
attr_accessor :app_id
|
|
@@ -6076,6 +6174,8 @@ module Stripe
|
|
|
6076
6174
|
attr_accessor :upi
|
|
6077
6175
|
# If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
|
|
6078
6176
|
attr_accessor :us_bank_account
|
|
6177
|
+
# If this is a `Vipps` PaymentMethod, this sub-hash contains details about the Vipps payment method options.
|
|
6178
|
+
attr_accessor :vipps
|
|
6079
6179
|
# If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
|
|
6080
6180
|
attr_accessor :wechat_pay
|
|
6081
6181
|
# If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
|
|
@@ -6144,6 +6244,7 @@ module Stripe
|
|
|
6144
6244
|
twint: nil,
|
|
6145
6245
|
upi: nil,
|
|
6146
6246
|
us_bank_account: nil,
|
|
6247
|
+
vipps: nil,
|
|
6147
6248
|
wechat_pay: nil,
|
|
6148
6249
|
zip: nil
|
|
6149
6250
|
)
|
|
@@ -6209,6 +6310,7 @@ module Stripe
|
|
|
6209
6310
|
@twint = twint
|
|
6210
6311
|
@upi = upi
|
|
6211
6312
|
@us_bank_account = us_bank_account
|
|
6313
|
+
@vipps = vipps
|
|
6212
6314
|
@wechat_pay = wechat_pay
|
|
6213
6315
|
@zip = zip
|
|
6214
6316
|
end
|
|
@@ -6316,7 +6418,7 @@ module Stripe
|
|
|
6316
6418
|
attr_accessor :payment_method_data
|
|
6317
6419
|
# Payment method-specific configuration for this PaymentIntent.
|
|
6318
6420
|
attr_accessor :payment_method_options
|
|
6319
|
-
# The list of payment method types (for example, a card) that this PaymentIntent can use.
|
|
6421
|
+
# The list of payment method types (for example, a card) that this PaymentIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
|
|
6320
6422
|
attr_accessor :payment_method_types
|
|
6321
6423
|
# Options to configure Radar. Learn more about [Radar Sessions](https://docs.stripe.com/radar/radar-session).
|
|
6322
6424
|
attr_accessor :radar_options
|