stripe 19.2.0.pre.alpha.3 → 19.2.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/unknown_event_notification.rb +1 -0
- data/lib/stripe/object_types.rb +1 -0
- data/lib/stripe/params/account_create_params.rb +20 -1
- data/lib/stripe/params/account_update_params.rb +20 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +13 -0
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +4 -0
- data/lib/stripe/params/payment_intent_confirm_params.rb +13 -0
- data/lib/stripe/params/payment_intent_create_params.rb +13 -0
- data/lib/stripe/params/payment_intent_update_params.rb +13 -0
- data/lib/stripe/params/payment_location_create_params.rb +54 -0
- data/lib/stripe/params/payment_location_delete_params.rb +6 -0
- data/lib/stripe/params/payment_location_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_location_update_params.rb +54 -0
- data/lib/stripe/params/payment_method_create_params.rb +13 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +13 -0
- data/lib/stripe/params/setup_intent_create_params.rb +13 -0
- data/lib/stripe/params/setup_intent_update_params.rb +13 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +13 -0
- data/lib/stripe/params.rb +4 -0
- data/lib/stripe/resources/capability.rb +36 -1
- data/lib/stripe/resources/confirmation_token.rb +26 -0
- data/lib/stripe/resources/invoice_item.rb +34 -1
- data/lib/stripe/resources/issuing/dispute.rb +68 -0
- data/lib/stripe/resources/payment_location.rb +159 -0
- data/lib/stripe/resources/payment_method.rb +26 -0
- data/lib/stripe/resources/shared_payment/granted_token.rb +26 -0
- data/lib/stripe/resources/subscription.rb +44 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
- data/lib/stripe/resources.rb +1 -0
- data/lib/stripe/services/payment_location_service.rb +50 -0
- data/lib/stripe/services/v1_services.rb +2 -1
- data/lib/stripe/services.rb +1 -0
- data/lib/stripe/stripe_client.rb +8 -1
- data/lib/stripe/stripe_event_notification_handler.rb +2478 -0
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +1 -0
- data/rbi/stripe/resources/v2/core/event_notification.rbi +3 -0
- data/rbi/stripe/stripe_client.rbi +13 -0
- data/rbi/stripe.rbi +914 -76
- metadata +9 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '07849eee2d7a02956b874284a500a8c5f9bedd26baf841f5333285a255d941f3'
|
|
4
|
+
data.tar.gz: 959f95331d7025a32a1e9dc436f3828507c2da4994d97df232c21aa0de270c82
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 338256a4214fbd103da28b3139df17c74d1e8dda250696615af1f9c9a36f5b1fbe3153a7a7dab01b93cd52c8cd4accbe32ddc9857aa77d0b7a5e6fd4b4827475
|
|
7
|
+
data.tar.gz: 444bf63e759d097f1dd780999f8395d3892d59226062dcdd5d1052304b9e329f09699a33d05e07373a8c8c605cd109c93ed7b7ac0013b3054edaee1d32b9698d
|
data/lib/stripe/object_types.rb
CHANGED
|
@@ -117,6 +117,7 @@ module Stripe
|
|
|
117
117
|
PaymentIntent.object_name => PaymentIntent,
|
|
118
118
|
PaymentIntentAmountDetailsLineItem.object_name => PaymentIntentAmountDetailsLineItem,
|
|
119
119
|
PaymentLink.object_name => PaymentLink,
|
|
120
|
+
PaymentLocation.object_name => PaymentLocation,
|
|
120
121
|
PaymentMethod.object_name => PaymentMethod,
|
|
121
122
|
PaymentMethodBalance.object_name => PaymentMethodBalance,
|
|
122
123
|
PaymentMethodConfiguration.object_name => PaymentMethodConfiguration,
|
|
@@ -291,10 +291,29 @@ module Stripe
|
|
|
291
291
|
end
|
|
292
292
|
|
|
293
293
|
class CardPayments < ::Stripe::RequestParams
|
|
294
|
+
class Protections < ::Stripe::RequestParams
|
|
295
|
+
class PspMigration < ::Stripe::RequestParams
|
|
296
|
+
# Passing true requests the protection.
|
|
297
|
+
attr_accessor :requested
|
|
298
|
+
|
|
299
|
+
def initialize(requested: nil)
|
|
300
|
+
@requested = requested
|
|
301
|
+
end
|
|
302
|
+
end
|
|
303
|
+
# Protection for connected accounts migrating from another PSP.
|
|
304
|
+
attr_accessor :psp_migration
|
|
305
|
+
|
|
306
|
+
def initialize(psp_migration: nil)
|
|
307
|
+
@psp_migration = psp_migration
|
|
308
|
+
end
|
|
309
|
+
end
|
|
310
|
+
# Protections to apply to this capability.
|
|
311
|
+
attr_accessor :protections
|
|
294
312
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
295
313
|
attr_accessor :requested
|
|
296
314
|
|
|
297
|
-
def initialize(requested: nil)
|
|
315
|
+
def initialize(protections: nil, requested: nil)
|
|
316
|
+
@protections = protections
|
|
298
317
|
@requested = requested
|
|
299
318
|
end
|
|
300
319
|
end
|
|
@@ -291,10 +291,29 @@ module Stripe
|
|
|
291
291
|
end
|
|
292
292
|
|
|
293
293
|
class CardPayments < ::Stripe::RequestParams
|
|
294
|
+
class Protections < ::Stripe::RequestParams
|
|
295
|
+
class PspMigration < ::Stripe::RequestParams
|
|
296
|
+
# Passing true requests the protection.
|
|
297
|
+
attr_accessor :requested
|
|
298
|
+
|
|
299
|
+
def initialize(requested: nil)
|
|
300
|
+
@requested = requested
|
|
301
|
+
end
|
|
302
|
+
end
|
|
303
|
+
# Protection for connected accounts migrating from another PSP.
|
|
304
|
+
attr_accessor :psp_migration
|
|
305
|
+
|
|
306
|
+
def initialize(psp_migration: nil)
|
|
307
|
+
@psp_migration = psp_migration
|
|
308
|
+
end
|
|
309
|
+
end
|
|
310
|
+
# Protections to apply to this capability.
|
|
311
|
+
attr_accessor :protections
|
|
294
312
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
295
313
|
attr_accessor :requested
|
|
296
314
|
|
|
297
|
-
def initialize(requested: nil)
|
|
315
|
+
def initialize(protections: nil, requested: nil)
|
|
316
|
+
@protections = protections
|
|
298
317
|
@requested = requested
|
|
299
318
|
end
|
|
300
319
|
end
|
|
@@ -139,6 +139,15 @@ module Stripe
|
|
|
139
139
|
end
|
|
140
140
|
end
|
|
141
141
|
|
|
142
|
+
class GiftCard < ::Stripe::RequestParams
|
|
143
|
+
# The gift card ID to redeem
|
|
144
|
+
attr_accessor :gift_card
|
|
145
|
+
|
|
146
|
+
def initialize(gift_card: nil)
|
|
147
|
+
@gift_card = gift_card
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
|
|
142
151
|
class Giropay < ::Stripe::RequestParams; end
|
|
143
152
|
class Gopay < ::Stripe::RequestParams; end
|
|
144
153
|
class Grabpay < ::Stripe::RequestParams; end
|
|
@@ -432,6 +441,8 @@ module Stripe
|
|
|
432
441
|
attr_accessor :eps
|
|
433
442
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
|
434
443
|
attr_accessor :fpx
|
|
444
|
+
# If this is a `gift_card` PaymentMethod, this hash contains details about the gift card payment method.
|
|
445
|
+
attr_accessor :gift_card
|
|
435
446
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
436
447
|
attr_accessor :giropay
|
|
437
448
|
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
@@ -545,6 +556,7 @@ module Stripe
|
|
|
545
556
|
customer_balance: nil,
|
|
546
557
|
eps: nil,
|
|
547
558
|
fpx: nil,
|
|
559
|
+
gift_card: nil,
|
|
548
560
|
giropay: nil,
|
|
549
561
|
gopay: nil,
|
|
550
562
|
grabpay: nil,
|
|
@@ -611,6 +623,7 @@ module Stripe
|
|
|
611
623
|
@customer_balance = customer_balance
|
|
612
624
|
@eps = eps
|
|
613
625
|
@fpx = fpx
|
|
626
|
+
@gift_card = gift_card
|
|
614
627
|
@giropay = giropay
|
|
615
628
|
@gopay = gopay
|
|
616
629
|
@grabpay = grabpay
|
|
@@ -137,6 +137,8 @@ module Stripe
|
|
|
137
137
|
attr_accessor :buyer_consents
|
|
138
138
|
# Specifies which fields in the response should be expanded.
|
|
139
139
|
attr_accessor :expand
|
|
140
|
+
# The metadata for this requested session.
|
|
141
|
+
attr_accessor :metadata
|
|
140
142
|
# The PaymentMethod to use with the requested session.
|
|
141
143
|
attr_accessor :payment_method
|
|
142
144
|
# The URL to redirect your customer back to after they authenticate or complete a payment action. Required for redirect-based payment methods such as Affirm or Klarna.
|
|
@@ -148,6 +150,7 @@ module Stripe
|
|
|
148
150
|
affiliate_attribution: nil,
|
|
149
151
|
buyer_consents: nil,
|
|
150
152
|
expand: nil,
|
|
153
|
+
metadata: nil,
|
|
151
154
|
payment_method: nil,
|
|
152
155
|
return_url: nil,
|
|
153
156
|
risk_details: nil
|
|
@@ -155,6 +158,7 @@ module Stripe
|
|
|
155
158
|
@affiliate_attribution = affiliate_attribution
|
|
156
159
|
@buyer_consents = buyer_consents
|
|
157
160
|
@expand = expand
|
|
161
|
+
@metadata = metadata
|
|
158
162
|
@payment_method = payment_method
|
|
159
163
|
@return_url = return_url
|
|
160
164
|
@risk_details = risk_details
|
|
@@ -2359,6 +2359,15 @@ module Stripe
|
|
|
2359
2359
|
end
|
|
2360
2360
|
end
|
|
2361
2361
|
|
|
2362
|
+
class GiftCard < ::Stripe::RequestParams
|
|
2363
|
+
# The gift card ID to redeem
|
|
2364
|
+
attr_accessor :gift_card
|
|
2365
|
+
|
|
2366
|
+
def initialize(gift_card: nil)
|
|
2367
|
+
@gift_card = gift_card
|
|
2368
|
+
end
|
|
2369
|
+
end
|
|
2370
|
+
|
|
2362
2371
|
class Giropay < ::Stripe::RequestParams; end
|
|
2363
2372
|
class Gopay < ::Stripe::RequestParams; end
|
|
2364
2373
|
class Grabpay < ::Stripe::RequestParams; end
|
|
@@ -2652,6 +2661,8 @@ module Stripe
|
|
|
2652
2661
|
attr_accessor :eps
|
|
2653
2662
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
|
2654
2663
|
attr_accessor :fpx
|
|
2664
|
+
# If this is a `gift_card` PaymentMethod, this hash contains details about the gift card payment method.
|
|
2665
|
+
attr_accessor :gift_card
|
|
2655
2666
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
2656
2667
|
attr_accessor :giropay
|
|
2657
2668
|
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
@@ -2765,6 +2776,7 @@ module Stripe
|
|
|
2765
2776
|
customer_balance: nil,
|
|
2766
2777
|
eps: nil,
|
|
2767
2778
|
fpx: nil,
|
|
2779
|
+
gift_card: nil,
|
|
2768
2780
|
giropay: nil,
|
|
2769
2781
|
gopay: nil,
|
|
2770
2782
|
grabpay: nil,
|
|
@@ -2831,6 +2843,7 @@ module Stripe
|
|
|
2831
2843
|
@customer_balance = customer_balance
|
|
2832
2844
|
@eps = eps
|
|
2833
2845
|
@fpx = fpx
|
|
2846
|
+
@gift_card = gift_card
|
|
2834
2847
|
@giropay = giropay
|
|
2835
2848
|
@gopay = gopay
|
|
2836
2849
|
@grabpay = grabpay
|
|
@@ -2373,6 +2373,15 @@ module Stripe
|
|
|
2373
2373
|
end
|
|
2374
2374
|
end
|
|
2375
2375
|
|
|
2376
|
+
class GiftCard < ::Stripe::RequestParams
|
|
2377
|
+
# The gift card ID to redeem
|
|
2378
|
+
attr_accessor :gift_card
|
|
2379
|
+
|
|
2380
|
+
def initialize(gift_card: nil)
|
|
2381
|
+
@gift_card = gift_card
|
|
2382
|
+
end
|
|
2383
|
+
end
|
|
2384
|
+
|
|
2376
2385
|
class Giropay < ::Stripe::RequestParams; end
|
|
2377
2386
|
class Gopay < ::Stripe::RequestParams; end
|
|
2378
2387
|
class Grabpay < ::Stripe::RequestParams; end
|
|
@@ -2666,6 +2675,8 @@ module Stripe
|
|
|
2666
2675
|
attr_accessor :eps
|
|
2667
2676
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
|
2668
2677
|
attr_accessor :fpx
|
|
2678
|
+
# If this is a `gift_card` PaymentMethod, this hash contains details about the gift card payment method.
|
|
2679
|
+
attr_accessor :gift_card
|
|
2669
2680
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
2670
2681
|
attr_accessor :giropay
|
|
2671
2682
|
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
@@ -2779,6 +2790,7 @@ module Stripe
|
|
|
2779
2790
|
customer_balance: nil,
|
|
2780
2791
|
eps: nil,
|
|
2781
2792
|
fpx: nil,
|
|
2793
|
+
gift_card: nil,
|
|
2782
2794
|
giropay: nil,
|
|
2783
2795
|
gopay: nil,
|
|
2784
2796
|
grabpay: nil,
|
|
@@ -2845,6 +2857,7 @@ module Stripe
|
|
|
2845
2857
|
@customer_balance = customer_balance
|
|
2846
2858
|
@eps = eps
|
|
2847
2859
|
@fpx = fpx
|
|
2860
|
+
@gift_card = gift_card
|
|
2848
2861
|
@giropay = giropay
|
|
2849
2862
|
@gopay = gopay
|
|
2850
2863
|
@grabpay = grabpay
|
|
@@ -2351,6 +2351,15 @@ module Stripe
|
|
|
2351
2351
|
end
|
|
2352
2352
|
end
|
|
2353
2353
|
|
|
2354
|
+
class GiftCard < ::Stripe::RequestParams
|
|
2355
|
+
# The gift card ID to redeem
|
|
2356
|
+
attr_accessor :gift_card
|
|
2357
|
+
|
|
2358
|
+
def initialize(gift_card: nil)
|
|
2359
|
+
@gift_card = gift_card
|
|
2360
|
+
end
|
|
2361
|
+
end
|
|
2362
|
+
|
|
2354
2363
|
class Giropay < ::Stripe::RequestParams; end
|
|
2355
2364
|
class Gopay < ::Stripe::RequestParams; end
|
|
2356
2365
|
class Grabpay < ::Stripe::RequestParams; end
|
|
@@ -2644,6 +2653,8 @@ module Stripe
|
|
|
2644
2653
|
attr_accessor :eps
|
|
2645
2654
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
|
2646
2655
|
attr_accessor :fpx
|
|
2656
|
+
# If this is a `gift_card` PaymentMethod, this hash contains details about the gift card payment method.
|
|
2657
|
+
attr_accessor :gift_card
|
|
2647
2658
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
2648
2659
|
attr_accessor :giropay
|
|
2649
2660
|
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
@@ -2757,6 +2768,7 @@ module Stripe
|
|
|
2757
2768
|
customer_balance: nil,
|
|
2758
2769
|
eps: nil,
|
|
2759
2770
|
fpx: nil,
|
|
2771
|
+
gift_card: nil,
|
|
2760
2772
|
giropay: nil,
|
|
2761
2773
|
gopay: nil,
|
|
2762
2774
|
grabpay: nil,
|
|
@@ -2823,6 +2835,7 @@ module Stripe
|
|
|
2823
2835
|
@customer_balance = customer_balance
|
|
2824
2836
|
@eps = eps
|
|
2825
2837
|
@fpx = fpx
|
|
2838
|
+
@gift_card = gift_card
|
|
2826
2839
|
@giropay = giropay
|
|
2827
2840
|
@gopay = gopay
|
|
2828
2841
|
@grabpay = grabpay
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
class PaymentLocationCreateParams < ::Stripe::RequestParams
|
|
6
|
+
class Address < ::Stripe::RequestParams
|
|
7
|
+
# City, district, suburb, town, or village.
|
|
8
|
+
attr_accessor :city
|
|
9
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
10
|
+
attr_accessor :country
|
|
11
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
12
|
+
attr_accessor :line1
|
|
13
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
14
|
+
attr_accessor :line2
|
|
15
|
+
# ZIP or postal code.
|
|
16
|
+
attr_accessor :postal_code
|
|
17
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
18
|
+
attr_accessor :state
|
|
19
|
+
|
|
20
|
+
def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil)
|
|
21
|
+
@city = city
|
|
22
|
+
@country = country
|
|
23
|
+
@line1 = line1
|
|
24
|
+
@line2 = line2
|
|
25
|
+
@postal_code = postal_code
|
|
26
|
+
@state = state
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
class BusinessRegistration < ::Stripe::RequestParams
|
|
31
|
+
# 14-digit SIRET (Système d'identification du répertoire des établissements) number for the location.
|
|
32
|
+
attr_accessor :siret
|
|
33
|
+
|
|
34
|
+
def initialize(siret: nil)
|
|
35
|
+
@siret = siret
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
# The full address of the location.
|
|
39
|
+
attr_accessor :address
|
|
40
|
+
# Identification numbers associated with the location.
|
|
41
|
+
attr_accessor :business_registration
|
|
42
|
+
# A name for the location.
|
|
43
|
+
attr_accessor :display_name
|
|
44
|
+
# Specifies which fields in the response should be expanded.
|
|
45
|
+
attr_accessor :expand
|
|
46
|
+
|
|
47
|
+
def initialize(address: nil, business_registration: nil, display_name: nil, expand: nil)
|
|
48
|
+
@address = address
|
|
49
|
+
@business_registration = business_registration
|
|
50
|
+
@display_name = display_name
|
|
51
|
+
@expand = expand
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
class PaymentLocationRetrieveParams < ::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,54 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
class PaymentLocationUpdateParams < ::Stripe::RequestParams
|
|
6
|
+
class Address < ::Stripe::RequestParams
|
|
7
|
+
# City, district, suburb, town, or village.
|
|
8
|
+
attr_accessor :city
|
|
9
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
10
|
+
attr_accessor :country
|
|
11
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
12
|
+
attr_accessor :line1
|
|
13
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
14
|
+
attr_accessor :line2
|
|
15
|
+
# ZIP or postal code.
|
|
16
|
+
attr_accessor :postal_code
|
|
17
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
18
|
+
attr_accessor :state
|
|
19
|
+
|
|
20
|
+
def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil)
|
|
21
|
+
@city = city
|
|
22
|
+
@country = country
|
|
23
|
+
@line1 = line1
|
|
24
|
+
@line2 = line2
|
|
25
|
+
@postal_code = postal_code
|
|
26
|
+
@state = state
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
class BusinessRegistration < ::Stripe::RequestParams
|
|
31
|
+
# 14-digit SIRET (Système d'identification du répertoire des établissements) number for the location.
|
|
32
|
+
attr_accessor :siret
|
|
33
|
+
|
|
34
|
+
def initialize(siret: nil)
|
|
35
|
+
@siret = siret
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
# The full address of the location.
|
|
39
|
+
attr_accessor :address
|
|
40
|
+
# Identification numbers associated with the location.
|
|
41
|
+
attr_accessor :business_registration
|
|
42
|
+
# A name for the location.
|
|
43
|
+
attr_accessor :display_name
|
|
44
|
+
# Specifies which fields in the response should be expanded.
|
|
45
|
+
attr_accessor :expand
|
|
46
|
+
|
|
47
|
+
def initialize(address: nil, business_registration: nil, display_name: nil, expand: nil)
|
|
48
|
+
@address = address
|
|
49
|
+
@business_registration = business_registration
|
|
50
|
+
@display_name = display_name
|
|
51
|
+
@expand = expand
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -187,6 +187,15 @@ module Stripe
|
|
|
187
187
|
end
|
|
188
188
|
end
|
|
189
189
|
|
|
190
|
+
class GiftCard < ::Stripe::RequestParams
|
|
191
|
+
# The gift card ID to redeem
|
|
192
|
+
attr_accessor :gift_card
|
|
193
|
+
|
|
194
|
+
def initialize(gift_card: nil)
|
|
195
|
+
@gift_card = gift_card
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
|
|
190
199
|
class Giropay < ::Stripe::RequestParams; end
|
|
191
200
|
class Gopay < ::Stripe::RequestParams; end
|
|
192
201
|
class Grabpay < ::Stripe::RequestParams; end
|
|
@@ -488,6 +497,8 @@ module Stripe
|
|
|
488
497
|
attr_accessor :expand
|
|
489
498
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
|
490
499
|
attr_accessor :fpx
|
|
500
|
+
# If this is a `gift_card` PaymentMethod, this hash contains details about the gift card payment method.
|
|
501
|
+
attr_accessor :gift_card
|
|
491
502
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
492
503
|
attr_accessor :giropay
|
|
493
504
|
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
@@ -605,6 +616,7 @@ module Stripe
|
|
|
605
616
|
eps: nil,
|
|
606
617
|
expand: nil,
|
|
607
618
|
fpx: nil,
|
|
619
|
+
gift_card: nil,
|
|
608
620
|
giropay: nil,
|
|
609
621
|
gopay: nil,
|
|
610
622
|
grabpay: nil,
|
|
@@ -675,6 +687,7 @@ module Stripe
|
|
|
675
687
|
@eps = eps
|
|
676
688
|
@expand = expand
|
|
677
689
|
@fpx = fpx
|
|
690
|
+
@gift_card = gift_card
|
|
678
691
|
@giropay = giropay
|
|
679
692
|
@gopay = gopay
|
|
680
693
|
@grabpay = grabpay
|
|
@@ -178,6 +178,15 @@ module Stripe
|
|
|
178
178
|
end
|
|
179
179
|
end
|
|
180
180
|
|
|
181
|
+
class GiftCard < ::Stripe::RequestParams
|
|
182
|
+
# The gift card ID to redeem
|
|
183
|
+
attr_accessor :gift_card
|
|
184
|
+
|
|
185
|
+
def initialize(gift_card: nil)
|
|
186
|
+
@gift_card = gift_card
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
|
|
181
190
|
class Giropay < ::Stripe::RequestParams; end
|
|
182
191
|
class Gopay < ::Stripe::RequestParams; end
|
|
183
192
|
class Grabpay < ::Stripe::RequestParams; end
|
|
@@ -471,6 +480,8 @@ module Stripe
|
|
|
471
480
|
attr_accessor :eps
|
|
472
481
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
|
473
482
|
attr_accessor :fpx
|
|
483
|
+
# If this is a `gift_card` PaymentMethod, this hash contains details about the gift card payment method.
|
|
484
|
+
attr_accessor :gift_card
|
|
474
485
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
475
486
|
attr_accessor :giropay
|
|
476
487
|
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
@@ -584,6 +595,7 @@ module Stripe
|
|
|
584
595
|
customer_balance: nil,
|
|
585
596
|
eps: nil,
|
|
586
597
|
fpx: nil,
|
|
598
|
+
gift_card: nil,
|
|
587
599
|
giropay: nil,
|
|
588
600
|
gopay: nil,
|
|
589
601
|
grabpay: nil,
|
|
@@ -650,6 +662,7 @@ module Stripe
|
|
|
650
662
|
@customer_balance = customer_balance
|
|
651
663
|
@eps = eps
|
|
652
664
|
@fpx = fpx
|
|
665
|
+
@gift_card = gift_card
|
|
653
666
|
@giropay = giropay
|
|
654
667
|
@gopay = gopay
|
|
655
668
|
@grabpay = grabpay
|
|
@@ -192,6 +192,15 @@ module Stripe
|
|
|
192
192
|
end
|
|
193
193
|
end
|
|
194
194
|
|
|
195
|
+
class GiftCard < ::Stripe::RequestParams
|
|
196
|
+
# The gift card ID to redeem
|
|
197
|
+
attr_accessor :gift_card
|
|
198
|
+
|
|
199
|
+
def initialize(gift_card: nil)
|
|
200
|
+
@gift_card = gift_card
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
|
|
195
204
|
class Giropay < ::Stripe::RequestParams; end
|
|
196
205
|
class Gopay < ::Stripe::RequestParams; end
|
|
197
206
|
class Grabpay < ::Stripe::RequestParams; end
|
|
@@ -485,6 +494,8 @@ module Stripe
|
|
|
485
494
|
attr_accessor :eps
|
|
486
495
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
|
487
496
|
attr_accessor :fpx
|
|
497
|
+
# If this is a `gift_card` PaymentMethod, this hash contains details about the gift card payment method.
|
|
498
|
+
attr_accessor :gift_card
|
|
488
499
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
489
500
|
attr_accessor :giropay
|
|
490
501
|
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
@@ -598,6 +609,7 @@ module Stripe
|
|
|
598
609
|
customer_balance: nil,
|
|
599
610
|
eps: nil,
|
|
600
611
|
fpx: nil,
|
|
612
|
+
gift_card: nil,
|
|
601
613
|
giropay: nil,
|
|
602
614
|
gopay: nil,
|
|
603
615
|
grabpay: nil,
|
|
@@ -664,6 +676,7 @@ module Stripe
|
|
|
664
676
|
@customer_balance = customer_balance
|
|
665
677
|
@eps = eps
|
|
666
678
|
@fpx = fpx
|
|
679
|
+
@gift_card = gift_card
|
|
667
680
|
@giropay = giropay
|
|
668
681
|
@gopay = gopay
|
|
669
682
|
@grabpay = grabpay
|
|
@@ -139,6 +139,15 @@ module Stripe
|
|
|
139
139
|
end
|
|
140
140
|
end
|
|
141
141
|
|
|
142
|
+
class GiftCard < ::Stripe::RequestParams
|
|
143
|
+
# The gift card ID to redeem
|
|
144
|
+
attr_accessor :gift_card
|
|
145
|
+
|
|
146
|
+
def initialize(gift_card: nil)
|
|
147
|
+
@gift_card = gift_card
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
|
|
142
151
|
class Giropay < ::Stripe::RequestParams; end
|
|
143
152
|
class Gopay < ::Stripe::RequestParams; end
|
|
144
153
|
class Grabpay < ::Stripe::RequestParams; end
|
|
@@ -432,6 +441,8 @@ module Stripe
|
|
|
432
441
|
attr_accessor :eps
|
|
433
442
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
|
434
443
|
attr_accessor :fpx
|
|
444
|
+
# If this is a `gift_card` PaymentMethod, this hash contains details about the gift card payment method.
|
|
445
|
+
attr_accessor :gift_card
|
|
435
446
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
436
447
|
attr_accessor :giropay
|
|
437
448
|
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
@@ -545,6 +556,7 @@ module Stripe
|
|
|
545
556
|
customer_balance: nil,
|
|
546
557
|
eps: nil,
|
|
547
558
|
fpx: nil,
|
|
559
|
+
gift_card: nil,
|
|
548
560
|
giropay: nil,
|
|
549
561
|
gopay: nil,
|
|
550
562
|
grabpay: nil,
|
|
@@ -611,6 +623,7 @@ module Stripe
|
|
|
611
623
|
@customer_balance = customer_balance
|
|
612
624
|
@eps = eps
|
|
613
625
|
@fpx = fpx
|
|
626
|
+
@gift_card = gift_card
|
|
614
627
|
@giropay = giropay
|
|
615
628
|
@gopay = gopay
|
|
616
629
|
@grabpay = grabpay
|
|
@@ -140,6 +140,15 @@ module Stripe
|
|
|
140
140
|
end
|
|
141
141
|
end
|
|
142
142
|
|
|
143
|
+
class GiftCard < ::Stripe::RequestParams
|
|
144
|
+
# The gift card ID to redeem
|
|
145
|
+
attr_accessor :gift_card
|
|
146
|
+
|
|
147
|
+
def initialize(gift_card: nil)
|
|
148
|
+
@gift_card = gift_card
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
|
|
143
152
|
class Giropay < ::Stripe::RequestParams; end
|
|
144
153
|
class Gopay < ::Stripe::RequestParams; end
|
|
145
154
|
class Grabpay < ::Stripe::RequestParams; end
|
|
@@ -433,6 +442,8 @@ module Stripe
|
|
|
433
442
|
attr_accessor :eps
|
|
434
443
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
|
435
444
|
attr_accessor :fpx
|
|
445
|
+
# If this is a `gift_card` PaymentMethod, this hash contains details about the gift card payment method.
|
|
446
|
+
attr_accessor :gift_card
|
|
436
447
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
437
448
|
attr_accessor :giropay
|
|
438
449
|
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
@@ -546,6 +557,7 @@ module Stripe
|
|
|
546
557
|
customer_balance: nil,
|
|
547
558
|
eps: nil,
|
|
548
559
|
fpx: nil,
|
|
560
|
+
gift_card: nil,
|
|
549
561
|
giropay: nil,
|
|
550
562
|
gopay: nil,
|
|
551
563
|
grabpay: nil,
|
|
@@ -612,6 +624,7 @@ module Stripe
|
|
|
612
624
|
@customer_balance = customer_balance
|
|
613
625
|
@eps = eps
|
|
614
626
|
@fpx = fpx
|
|
627
|
+
@gift_card = gift_card
|
|
615
628
|
@giropay = giropay
|
|
616
629
|
@gopay = gopay
|
|
617
630
|
@grabpay = grabpay
|
data/lib/stripe/params.rb
CHANGED
|
@@ -368,6 +368,10 @@ require "stripe/params/payment_link_list_line_items_params"
|
|
|
368
368
|
require "stripe/params/payment_link_list_params"
|
|
369
369
|
require "stripe/params/payment_link_retrieve_params"
|
|
370
370
|
require "stripe/params/payment_link_update_params"
|
|
371
|
+
require "stripe/params/payment_location_create_params"
|
|
372
|
+
require "stripe/params/payment_location_delete_params"
|
|
373
|
+
require "stripe/params/payment_location_retrieve_params"
|
|
374
|
+
require "stripe/params/payment_location_update_params"
|
|
371
375
|
require "stripe/params/payment_method_attach_params"
|
|
372
376
|
require "stripe/params/payment_method_check_balance_params"
|
|
373
377
|
require "stripe/params/payment_method_configuration_create_params"
|