stripe 17.3.0.pre.alpha.1 → 17.3.0.pre.alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/object_types.rb +1 -1
- data/lib/stripe/params/account_create_params.rb +33 -1
- data/lib/stripe/params/account_person_create_params.rb +33 -1
- data/lib/stripe/params/account_person_update_params.rb +33 -1
- data/lib/stripe/params/account_update_params.rb +33 -1
- data/lib/stripe/params/capital/financing_offer_create_params.rb +5 -5
- data/lib/stripe/params/capital/financing_offer_refill_params.rb +5 -5
- data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +1 -1
- data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +1 -1
- data/lib/stripe/params/invoice_create_preview_params.rb +57 -1
- data/lib/stripe/params/issuing/program_create_params.rb +21 -0
- data/lib/stripe/params/issuing/program_list_params.rb +24 -0
- data/lib/stripe/params/issuing/program_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/program_update_params.rb +21 -0
- data/lib/stripe/params/quote_create_params.rb +210 -2
- data/lib/stripe/params/quote_update_params.rb +210 -2
- data/lib/stripe/params/subscription_schedule_create_params.rb +62 -2
- data/lib/stripe/params/subscription_schedule_update_params.rb +62 -2
- data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +5 -5
- data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +5 -5
- data/lib/stripe/params/token_create_params.rb +66 -2
- data/lib/stripe/params.rb +4 -5
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +19 -1
- data/lib/stripe/resources/discount.rb +2 -0
- data/lib/stripe/resources/invoice.rb +16 -0
- data/lib/stripe/resources/invoice_item.rb +16 -0
- data/lib/stripe/resources/invoice_line_item.rb +16 -0
- data/lib/stripe/resources/issuing/program.rb +69 -0
- data/lib/stripe/resources/person.rb +36 -0
- data/lib/stripe/resources/quote.rb +348 -1
- data/lib/stripe/resources/quote_preview_invoice.rb +16 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +174 -0
- data/lib/stripe/resources/subscription.rb +105 -2
- data/lib/stripe/resources/subscription_schedule.rb +174 -0
- data/lib/stripe/resources.rb +1 -1
- data/lib/stripe/services/issuing/program_service.rb +52 -0
- data/lib/stripe/services/issuing_service.rb +2 -1
- data/lib/stripe/services/v2_services.rb +1 -2
- data/lib/stripe/services.rb +1 -2
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +2356 -203
- metadata +8 -10
- data/lib/stripe/params/v2/tax/automatic_rule_create_params.rb +0 -20
- data/lib/stripe/params/v2/tax/automatic_rule_deactivate_params.rb +0 -10
- data/lib/stripe/params/v2/tax/automatic_rule_find_params.rb +0 -17
- data/lib/stripe/params/v2/tax/automatic_rule_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/tax/automatic_rule_update_params.rb +0 -17
- data/lib/stripe/resources/v2/tax/automatic_rule.rb +0 -39
- data/lib/stripe/services/v2/tax/automatic_rule_service.rb +0 -65
- data/lib/stripe/services/v2/tax_service.rb +0 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c31ae29ddaf0f6ec74f612be51b27f8cbb35b26c099ac2fcc974c0d50d0c617f
|
|
4
|
+
data.tar.gz: ffd2d27b3a0fe5a4f63d1b294faf56f70dd4acad17635ff06ba75cd056128cef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '089d9919a183366dd5cab2f9717c1aa16bd2d65e355b763f6c430aaae7a4526ed4d9f96ad112b5e5a6bfa0f710ef4f35d9d893c844f6f12baf7ebc925557b3ee'
|
|
7
|
+
data.tar.gz: c91f3855248ff9fa0cc9ceb27d7c6525237980aa54e6e1cc9d97c42802bf7e2999712d8c21a0173ccf7cd33c595048eb1e5b3047d6001eb809f71b08a1e6e090
|
data/lib/stripe/api_version.rb
CHANGED
data/lib/stripe/object_types.rb
CHANGED
|
@@ -98,6 +98,7 @@ module Stripe
|
|
|
98
98
|
Issuing::FraudLiabilityDebit.object_name => Issuing::FraudLiabilityDebit,
|
|
99
99
|
Issuing::PersonalizationDesign.object_name => Issuing::PersonalizationDesign,
|
|
100
100
|
Issuing::PhysicalBundle.object_name => Issuing::PhysicalBundle,
|
|
101
|
+
Issuing::Program.object_name => Issuing::Program,
|
|
101
102
|
Issuing::Settlement.object_name => Issuing::Settlement,
|
|
102
103
|
Issuing::Token.object_name => Issuing::Token,
|
|
103
104
|
Issuing::Transaction.object_name => Issuing::Transaction,
|
|
@@ -250,7 +251,6 @@ module Stripe
|
|
|
250
251
|
V2::Payments::OffSessionPayment.object_name => V2::Payments::OffSessionPayment,
|
|
251
252
|
V2::Reporting::Report.object_name => V2::Reporting::Report,
|
|
252
253
|
V2::Reporting::ReportRun.object_name => V2::Reporting::ReportRun,
|
|
253
|
-
V2::Tax::AutomaticRule.object_name => V2::Tax::AutomaticRule,
|
|
254
254
|
# v2 object classes: The end of the section generated from our OpenAPI spec
|
|
255
255
|
}
|
|
256
256
|
end
|
|
@@ -1867,6 +1867,30 @@ module Stripe
|
|
|
1867
1867
|
end
|
|
1868
1868
|
end
|
|
1869
1869
|
|
|
1870
|
+
class SelfReportedIncome < ::Stripe::RequestParams
|
|
1871
|
+
# Attribute for param field amount
|
|
1872
|
+
attr_accessor :amount
|
|
1873
|
+
# Attribute for param field currency
|
|
1874
|
+
attr_accessor :currency
|
|
1875
|
+
|
|
1876
|
+
def initialize(amount: nil, currency: nil)
|
|
1877
|
+
@amount = amount
|
|
1878
|
+
@currency = currency
|
|
1879
|
+
end
|
|
1880
|
+
end
|
|
1881
|
+
|
|
1882
|
+
class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
|
|
1883
|
+
# Attribute for param field amount
|
|
1884
|
+
attr_accessor :amount
|
|
1885
|
+
# Attribute for param field currency
|
|
1886
|
+
attr_accessor :currency
|
|
1887
|
+
|
|
1888
|
+
def initialize(amount: nil, currency: nil)
|
|
1889
|
+
@amount = amount
|
|
1890
|
+
@currency = currency
|
|
1891
|
+
end
|
|
1892
|
+
end
|
|
1893
|
+
|
|
1870
1894
|
class Verification < ::Stripe::RequestParams
|
|
1871
1895
|
class AdditionalDocument < ::Stripe::RequestParams
|
|
1872
1896
|
# The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
|
@@ -1947,6 +1971,10 @@ module Stripe
|
|
|
1947
1971
|
attr_accessor :ssn_last_4
|
|
1948
1972
|
# The individual's verification document information.
|
|
1949
1973
|
attr_accessor :verification
|
|
1974
|
+
# The credit applicant's self-reported yearly income in minor units.
|
|
1975
|
+
attr_accessor :self_reported_income
|
|
1976
|
+
# The credit applicant's self-reported monthly housing payment in minor units.
|
|
1977
|
+
attr_accessor :self_reported_monthly_housing_payment
|
|
1950
1978
|
|
|
1951
1979
|
def initialize(
|
|
1952
1980
|
address: nil,
|
|
@@ -1971,7 +1999,9 @@ module Stripe
|
|
|
1971
1999
|
registered_address: nil,
|
|
1972
2000
|
relationship: nil,
|
|
1973
2001
|
ssn_last_4: nil,
|
|
1974
|
-
verification: nil
|
|
2002
|
+
verification: nil,
|
|
2003
|
+
self_reported_income: nil,
|
|
2004
|
+
self_reported_monthly_housing_payment: nil
|
|
1975
2005
|
)
|
|
1976
2006
|
@address = address
|
|
1977
2007
|
@address_kana = address_kana
|
|
@@ -1996,6 +2026,8 @@ module Stripe
|
|
|
1996
2026
|
@relationship = relationship
|
|
1997
2027
|
@ssn_last_4 = ssn_last_4
|
|
1998
2028
|
@verification = verification
|
|
2029
|
+
@self_reported_income = self_reported_income
|
|
2030
|
+
@self_reported_monthly_housing_payment = self_reported_monthly_housing_payment
|
|
1999
2031
|
end
|
|
2000
2032
|
end
|
|
2001
2033
|
|
|
@@ -239,6 +239,30 @@ module Stripe
|
|
|
239
239
|
end
|
|
240
240
|
end
|
|
241
241
|
|
|
242
|
+
class SelfReportedIncome < ::Stripe::RequestParams
|
|
243
|
+
# Attribute for param field amount
|
|
244
|
+
attr_accessor :amount
|
|
245
|
+
# Attribute for param field currency
|
|
246
|
+
attr_accessor :currency
|
|
247
|
+
|
|
248
|
+
def initialize(amount: nil, currency: nil)
|
|
249
|
+
@amount = amount
|
|
250
|
+
@currency = currency
|
|
251
|
+
end
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
|
|
255
|
+
# Attribute for param field amount
|
|
256
|
+
attr_accessor :amount
|
|
257
|
+
# Attribute for param field currency
|
|
258
|
+
attr_accessor :currency
|
|
259
|
+
|
|
260
|
+
def initialize(amount: nil, currency: nil)
|
|
261
|
+
@amount = amount
|
|
262
|
+
@currency = currency
|
|
263
|
+
end
|
|
264
|
+
end
|
|
265
|
+
|
|
242
266
|
class UsCfpbData < ::Stripe::RequestParams
|
|
243
267
|
class EthnicityDetails < ::Stripe::RequestParams
|
|
244
268
|
# The persons ethnicity
|
|
@@ -369,6 +393,10 @@ module Stripe
|
|
|
369
393
|
attr_accessor :us_cfpb_data
|
|
370
394
|
# The person's verification status.
|
|
371
395
|
attr_accessor :verification
|
|
396
|
+
# The credit applicant's self-reported yearly income in minor units.
|
|
397
|
+
attr_accessor :self_reported_income
|
|
398
|
+
# The credit applicant's self-reported monthly housing payment in minor units.
|
|
399
|
+
attr_accessor :self_reported_monthly_housing_payment
|
|
372
400
|
|
|
373
401
|
def initialize(
|
|
374
402
|
additional_tos_acceptances: nil,
|
|
@@ -399,7 +427,9 @@ module Stripe
|
|
|
399
427
|
relationship: nil,
|
|
400
428
|
ssn_last_4: nil,
|
|
401
429
|
us_cfpb_data: nil,
|
|
402
|
-
verification: nil
|
|
430
|
+
verification: nil,
|
|
431
|
+
self_reported_income: nil,
|
|
432
|
+
self_reported_monthly_housing_payment: nil
|
|
403
433
|
)
|
|
404
434
|
@additional_tos_acceptances = additional_tos_acceptances
|
|
405
435
|
@address = address
|
|
@@ -430,6 +460,8 @@ module Stripe
|
|
|
430
460
|
@ssn_last_4 = ssn_last_4
|
|
431
461
|
@us_cfpb_data = us_cfpb_data
|
|
432
462
|
@verification = verification
|
|
463
|
+
@self_reported_income = self_reported_income
|
|
464
|
+
@self_reported_monthly_housing_payment = self_reported_monthly_housing_payment
|
|
433
465
|
end
|
|
434
466
|
end
|
|
435
467
|
end
|
|
@@ -239,6 +239,30 @@ module Stripe
|
|
|
239
239
|
end
|
|
240
240
|
end
|
|
241
241
|
|
|
242
|
+
class SelfReportedIncome < ::Stripe::RequestParams
|
|
243
|
+
# Attribute for param field amount
|
|
244
|
+
attr_accessor :amount
|
|
245
|
+
# Attribute for param field currency
|
|
246
|
+
attr_accessor :currency
|
|
247
|
+
|
|
248
|
+
def initialize(amount: nil, currency: nil)
|
|
249
|
+
@amount = amount
|
|
250
|
+
@currency = currency
|
|
251
|
+
end
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
|
|
255
|
+
# Attribute for param field amount
|
|
256
|
+
attr_accessor :amount
|
|
257
|
+
# Attribute for param field currency
|
|
258
|
+
attr_accessor :currency
|
|
259
|
+
|
|
260
|
+
def initialize(amount: nil, currency: nil)
|
|
261
|
+
@amount = amount
|
|
262
|
+
@currency = currency
|
|
263
|
+
end
|
|
264
|
+
end
|
|
265
|
+
|
|
242
266
|
class UsCfpbData < ::Stripe::RequestParams
|
|
243
267
|
class EthnicityDetails < ::Stripe::RequestParams
|
|
244
268
|
# The persons ethnicity
|
|
@@ -369,6 +393,10 @@ module Stripe
|
|
|
369
393
|
attr_accessor :us_cfpb_data
|
|
370
394
|
# The person's verification status.
|
|
371
395
|
attr_accessor :verification
|
|
396
|
+
# The credit applicant's self-reported yearly income in minor units.
|
|
397
|
+
attr_accessor :self_reported_income
|
|
398
|
+
# The credit applicant's self-reported monthly housing payment in minor units.
|
|
399
|
+
attr_accessor :self_reported_monthly_housing_payment
|
|
372
400
|
|
|
373
401
|
def initialize(
|
|
374
402
|
additional_tos_acceptances: nil,
|
|
@@ -399,7 +427,9 @@ module Stripe
|
|
|
399
427
|
relationship: nil,
|
|
400
428
|
ssn_last_4: nil,
|
|
401
429
|
us_cfpb_data: nil,
|
|
402
|
-
verification: nil
|
|
430
|
+
verification: nil,
|
|
431
|
+
self_reported_income: nil,
|
|
432
|
+
self_reported_monthly_housing_payment: nil
|
|
403
433
|
)
|
|
404
434
|
@additional_tos_acceptances = additional_tos_acceptances
|
|
405
435
|
@address = address
|
|
@@ -430,6 +460,8 @@ module Stripe
|
|
|
430
460
|
@ssn_last_4 = ssn_last_4
|
|
431
461
|
@us_cfpb_data = us_cfpb_data
|
|
432
462
|
@verification = verification
|
|
463
|
+
@self_reported_income = self_reported_income
|
|
464
|
+
@self_reported_monthly_housing_payment = self_reported_monthly_housing_payment
|
|
433
465
|
end
|
|
434
466
|
end
|
|
435
467
|
end
|
|
@@ -1786,6 +1786,30 @@ module Stripe
|
|
|
1786
1786
|
end
|
|
1787
1787
|
end
|
|
1788
1788
|
|
|
1789
|
+
class SelfReportedIncome < ::Stripe::RequestParams
|
|
1790
|
+
# Attribute for param field amount
|
|
1791
|
+
attr_accessor :amount
|
|
1792
|
+
# Attribute for param field currency
|
|
1793
|
+
attr_accessor :currency
|
|
1794
|
+
|
|
1795
|
+
def initialize(amount: nil, currency: nil)
|
|
1796
|
+
@amount = amount
|
|
1797
|
+
@currency = currency
|
|
1798
|
+
end
|
|
1799
|
+
end
|
|
1800
|
+
|
|
1801
|
+
class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
|
|
1802
|
+
# Attribute for param field amount
|
|
1803
|
+
attr_accessor :amount
|
|
1804
|
+
# Attribute for param field currency
|
|
1805
|
+
attr_accessor :currency
|
|
1806
|
+
|
|
1807
|
+
def initialize(amount: nil, currency: nil)
|
|
1808
|
+
@amount = amount
|
|
1809
|
+
@currency = currency
|
|
1810
|
+
end
|
|
1811
|
+
end
|
|
1812
|
+
|
|
1789
1813
|
class Verification < ::Stripe::RequestParams
|
|
1790
1814
|
class AdditionalDocument < ::Stripe::RequestParams
|
|
1791
1815
|
# The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
|
@@ -1866,6 +1890,10 @@ module Stripe
|
|
|
1866
1890
|
attr_accessor :ssn_last_4
|
|
1867
1891
|
# The individual's verification document information.
|
|
1868
1892
|
attr_accessor :verification
|
|
1893
|
+
# The credit applicant's self-reported yearly income in minor units.
|
|
1894
|
+
attr_accessor :self_reported_income
|
|
1895
|
+
# The credit applicant's self-reported monthly housing payment in minor units.
|
|
1896
|
+
attr_accessor :self_reported_monthly_housing_payment
|
|
1869
1897
|
|
|
1870
1898
|
def initialize(
|
|
1871
1899
|
address: nil,
|
|
@@ -1890,7 +1918,9 @@ module Stripe
|
|
|
1890
1918
|
registered_address: nil,
|
|
1891
1919
|
relationship: nil,
|
|
1892
1920
|
ssn_last_4: nil,
|
|
1893
|
-
verification: nil
|
|
1921
|
+
verification: nil,
|
|
1922
|
+
self_reported_income: nil,
|
|
1923
|
+
self_reported_monthly_housing_payment: nil
|
|
1894
1924
|
)
|
|
1895
1925
|
@address = address
|
|
1896
1926
|
@address_kana = address_kana
|
|
@@ -1915,6 +1945,8 @@ module Stripe
|
|
|
1915
1945
|
@relationship = relationship
|
|
1916
1946
|
@ssn_last_4 = ssn_last_4
|
|
1917
1947
|
@verification = verification
|
|
1948
|
+
@self_reported_income = self_reported_income
|
|
1949
|
+
@self_reported_monthly_housing_payment = self_reported_monthly_housing_payment
|
|
1918
1950
|
end
|
|
1919
1951
|
end
|
|
1920
1952
|
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module Capital
|
|
6
6
|
class FinancingOfferCreateParams < ::Stripe::RequestParams
|
|
7
|
-
#
|
|
7
|
+
# Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000.
|
|
8
8
|
attr_accessor :advance_amount
|
|
9
9
|
# Specifies which fields in the response should be expanded.
|
|
10
10
|
attr_accessor :expand
|
|
11
|
-
#
|
|
11
|
+
# Fixed fee amount, in minor units. For example, 100 USD is represented as 10000.
|
|
12
12
|
attr_accessor :fee_amount
|
|
13
|
-
#
|
|
13
|
+
# The type of financing offer.
|
|
14
14
|
attr_accessor :financing_type
|
|
15
|
-
#
|
|
15
|
+
# The status of the financing offer.
|
|
16
16
|
attr_accessor :status
|
|
17
|
-
#
|
|
17
|
+
# Per-transaction rate at which Stripe withholds funds to repay the financing.
|
|
18
18
|
attr_accessor :withhold_rate
|
|
19
19
|
|
|
20
20
|
def initialize(
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module Capital
|
|
6
6
|
class FinancingOfferRefillParams < ::Stripe::RequestParams
|
|
7
|
-
#
|
|
7
|
+
# Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000.
|
|
8
8
|
attr_accessor :advance_amount
|
|
9
9
|
# Specifies which fields in the response should be expanded.
|
|
10
10
|
attr_accessor :expand
|
|
11
|
-
#
|
|
11
|
+
# Fixed fee amount, in minor units. For example, 100 USD is represented as 10000.
|
|
12
12
|
attr_accessor :fee_amount
|
|
13
|
-
#
|
|
13
|
+
# The type of financing offer
|
|
14
14
|
attr_accessor :financing_type
|
|
15
|
-
#
|
|
15
|
+
# The status of the financing offer
|
|
16
16
|
attr_accessor :status
|
|
17
|
-
#
|
|
17
|
+
# Per-transaction rate at which Stripe withholds funds to repay the financing.
|
|
18
18
|
attr_accessor :withhold_rate
|
|
19
19
|
|
|
20
20
|
def initialize(
|
|
@@ -823,6 +823,58 @@ module Stripe
|
|
|
823
823
|
end
|
|
824
824
|
end
|
|
825
825
|
|
|
826
|
+
class BillingSchedule < ::Stripe::RequestParams
|
|
827
|
+
class AppliesTo < ::Stripe::RequestParams
|
|
828
|
+
# The ID of the price object.
|
|
829
|
+
attr_accessor :price
|
|
830
|
+
# Controls which subscription items the billing schedule applies to.
|
|
831
|
+
attr_accessor :type
|
|
832
|
+
|
|
833
|
+
def initialize(price: nil, type: nil)
|
|
834
|
+
@price = price
|
|
835
|
+
@type = type
|
|
836
|
+
end
|
|
837
|
+
end
|
|
838
|
+
|
|
839
|
+
class BillUntil < ::Stripe::RequestParams
|
|
840
|
+
class Duration < ::Stripe::RequestParams
|
|
841
|
+
# Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
842
|
+
attr_accessor :interval
|
|
843
|
+
# The multiplier applied to the interval.
|
|
844
|
+
attr_accessor :interval_count
|
|
845
|
+
|
|
846
|
+
def initialize(interval: nil, interval_count: nil)
|
|
847
|
+
@interval = interval
|
|
848
|
+
@interval_count = interval_count
|
|
849
|
+
end
|
|
850
|
+
end
|
|
851
|
+
# Specifies the billing period.
|
|
852
|
+
attr_accessor :duration
|
|
853
|
+
# The end date of the billing schedule.
|
|
854
|
+
attr_accessor :timestamp
|
|
855
|
+
# Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
856
|
+
attr_accessor :type
|
|
857
|
+
|
|
858
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
859
|
+
@duration = duration
|
|
860
|
+
@timestamp = timestamp
|
|
861
|
+
@type = type
|
|
862
|
+
end
|
|
863
|
+
end
|
|
864
|
+
# Configure billing schedule differently for individual subscription items.
|
|
865
|
+
attr_accessor :applies_to
|
|
866
|
+
# The end date for the billing schedule.
|
|
867
|
+
attr_accessor :bill_until
|
|
868
|
+
# Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated.
|
|
869
|
+
attr_accessor :key
|
|
870
|
+
|
|
871
|
+
def initialize(applies_to: nil, bill_until: nil, key: nil)
|
|
872
|
+
@applies_to = applies_to
|
|
873
|
+
@bill_until = bill_until
|
|
874
|
+
@key = key
|
|
875
|
+
end
|
|
876
|
+
end
|
|
877
|
+
|
|
826
878
|
class Phase < ::Stripe::RequestParams
|
|
827
879
|
class AddInvoiceItem < ::Stripe::RequestParams
|
|
828
880
|
class Discount < ::Stripe::RequestParams
|
|
@@ -1432,6 +1484,8 @@ module Stripe
|
|
|
1432
1484
|
attr_accessor :prebilling
|
|
1433
1485
|
# In cases where the `schedule_details` params update the currently active phase, specifies if and how to prorate at the time of the request.
|
|
1434
1486
|
attr_accessor :proration_behavior
|
|
1487
|
+
# Sets the billing schedules for the subscription schedule.
|
|
1488
|
+
attr_accessor :billing_schedules
|
|
1435
1489
|
|
|
1436
1490
|
def initialize(
|
|
1437
1491
|
amendments: nil,
|
|
@@ -1440,7 +1494,8 @@ module Stripe
|
|
|
1440
1494
|
end_behavior: nil,
|
|
1441
1495
|
phases: nil,
|
|
1442
1496
|
prebilling: nil,
|
|
1443
|
-
proration_behavior: nil
|
|
1497
|
+
proration_behavior: nil,
|
|
1498
|
+
billing_schedules: nil
|
|
1444
1499
|
)
|
|
1445
1500
|
@amendments = amendments
|
|
1446
1501
|
@billing_behavior = billing_behavior
|
|
@@ -1449,6 +1504,7 @@ module Stripe
|
|
|
1449
1504
|
@phases = phases
|
|
1450
1505
|
@prebilling = prebilling
|
|
1451
1506
|
@proration_behavior = proration_behavior
|
|
1507
|
+
@billing_schedules = billing_schedules
|
|
1452
1508
|
end
|
|
1453
1509
|
end
|
|
1454
1510
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Issuing
|
|
6
|
+
class ProgramCreateParams < ::Stripe::RequestParams
|
|
7
|
+
# Specifies which fields in the response should be expanded.
|
|
8
|
+
attr_accessor :expand
|
|
9
|
+
# If true, makes the specified program the default for the given account.
|
|
10
|
+
attr_accessor :is_default
|
|
11
|
+
# The program to use as the parent for the new program to create.
|
|
12
|
+
attr_accessor :platform_program
|
|
13
|
+
|
|
14
|
+
def initialize(expand: nil, is_default: nil, platform_program: nil)
|
|
15
|
+
@expand = expand
|
|
16
|
+
@is_default = is_default
|
|
17
|
+
@platform_program = platform_program
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Issuing
|
|
6
|
+
class ProgramListParams < ::Stripe::RequestParams
|
|
7
|
+
# 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.
|
|
8
|
+
attr_accessor :ending_before
|
|
9
|
+
# Specifies which fields in the response should be expanded.
|
|
10
|
+
attr_accessor :expand
|
|
11
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
|
12
|
+
attr_accessor :limit
|
|
13
|
+
# 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.
|
|
14
|
+
attr_accessor :starting_after
|
|
15
|
+
|
|
16
|
+
def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil)
|
|
17
|
+
@ending_before = ending_before
|
|
18
|
+
@expand = expand
|
|
19
|
+
@limit = limit
|
|
20
|
+
@starting_after = starting_after
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Issuing
|
|
6
|
+
class ProgramRetrieveParams < ::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,21 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Issuing
|
|
6
|
+
class ProgramUpdateParams < ::Stripe::RequestParams
|
|
7
|
+
# Specifies which fields in the response should be expanded.
|
|
8
|
+
attr_accessor :expand
|
|
9
|
+
# If true, makes the specified program the default.
|
|
10
|
+
attr_accessor :is_default
|
|
11
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
12
|
+
attr_accessor :metadata
|
|
13
|
+
|
|
14
|
+
def initialize(expand: nil, is_default: nil, metadata: nil)
|
|
15
|
+
@expand = expand
|
|
16
|
+
@is_default = is_default
|
|
17
|
+
@metadata = metadata
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|