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
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stripe
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 17.3.0.pre.alpha.
|
|
4
|
+
version: 17.3.0.pre.alpha.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stripe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-11-
|
|
11
|
+
date: 2025-11-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Stripe is the easiest way to accept payments online. See https://stripe.com
|
|
14
14
|
for details.
|
|
@@ -663,6 +663,10 @@ files:
|
|
|
663
663
|
- lib/stripe/params/issuing/personalization_design_update_params.rb
|
|
664
664
|
- lib/stripe/params/issuing/physical_bundle_list_params.rb
|
|
665
665
|
- lib/stripe/params/issuing/physical_bundle_retrieve_params.rb
|
|
666
|
+
- lib/stripe/params/issuing/program_create_params.rb
|
|
667
|
+
- lib/stripe/params/issuing/program_list_params.rb
|
|
668
|
+
- lib/stripe/params/issuing/program_retrieve_params.rb
|
|
669
|
+
- lib/stripe/params/issuing/program_update_params.rb
|
|
666
670
|
- lib/stripe/params/issuing/token_list_params.rb
|
|
667
671
|
- lib/stripe/params/issuing/token_retrieve_params.rb
|
|
668
672
|
- lib/stripe/params/issuing/token_update_params.rb
|
|
@@ -1197,11 +1201,6 @@ files:
|
|
|
1197
1201
|
- lib/stripe/params/v2/reporting/report_retrieve_params.rb
|
|
1198
1202
|
- lib/stripe/params/v2/reporting/report_run_create_params.rb
|
|
1199
1203
|
- lib/stripe/params/v2/reporting/report_run_retrieve_params.rb
|
|
1200
|
-
- lib/stripe/params/v2/tax/automatic_rule_create_params.rb
|
|
1201
|
-
- lib/stripe/params/v2/tax/automatic_rule_deactivate_params.rb
|
|
1202
|
-
- lib/stripe/params/v2/tax/automatic_rule_find_params.rb
|
|
1203
|
-
- lib/stripe/params/v2/tax/automatic_rule_retrieve_params.rb
|
|
1204
|
-
- lib/stripe/params/v2/tax/automatic_rule_update_params.rb
|
|
1205
1204
|
- lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb
|
|
1206
1205
|
- lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb
|
|
1207
1206
|
- lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb
|
|
@@ -1299,6 +1298,7 @@ files:
|
|
|
1299
1298
|
- lib/stripe/resources/issuing/fraud_liability_debit.rb
|
|
1300
1299
|
- lib/stripe/resources/issuing/personalization_design.rb
|
|
1301
1300
|
- lib/stripe/resources/issuing/physical_bundle.rb
|
|
1301
|
+
- lib/stripe/resources/issuing/program.rb
|
|
1302
1302
|
- lib/stripe/resources/issuing/settlement.rb
|
|
1303
1303
|
- lib/stripe/resources/issuing/token.rb
|
|
1304
1304
|
- lib/stripe/resources/issuing/transaction.rb
|
|
@@ -1441,7 +1441,6 @@ files:
|
|
|
1441
1441
|
- lib/stripe/resources/v2/payments/off_session_payment.rb
|
|
1442
1442
|
- lib/stripe/resources/v2/reporting/report.rb
|
|
1443
1443
|
- lib/stripe/resources/v2/reporting/report_run.rb
|
|
1444
|
-
- lib/stripe/resources/v2/tax/automatic_rule.rb
|
|
1445
1444
|
- lib/stripe/resources/webhook_endpoint.rb
|
|
1446
1445
|
- lib/stripe/search_result_object.rb
|
|
1447
1446
|
- lib/stripe/services.rb
|
|
@@ -1542,6 +1541,7 @@ files:
|
|
|
1542
1541
|
- lib/stripe/services/issuing/fraud_liability_debit_service.rb
|
|
1543
1542
|
- lib/stripe/services/issuing/personalization_design_service.rb
|
|
1544
1543
|
- lib/stripe/services/issuing/physical_bundle_service.rb
|
|
1544
|
+
- lib/stripe/services/issuing/program_service.rb
|
|
1545
1545
|
- lib/stripe/services/issuing/token_service.rb
|
|
1546
1546
|
- lib/stripe/services/issuing/transaction_service.rb
|
|
1547
1547
|
- lib/stripe/services/issuing_service.rb
|
|
@@ -1709,8 +1709,6 @@ files:
|
|
|
1709
1709
|
- lib/stripe/services/v2/reporting/report_run_service.rb
|
|
1710
1710
|
- lib/stripe/services/v2/reporting/report_service.rb
|
|
1711
1711
|
- lib/stripe/services/v2/reporting_service.rb
|
|
1712
|
-
- lib/stripe/services/v2/tax/automatic_rule_service.rb
|
|
1713
|
-
- lib/stripe/services/v2/tax_service.rb
|
|
1714
1712
|
- lib/stripe/services/v2/test_helper_service.rb
|
|
1715
1713
|
- lib/stripe/services/v2/test_helpers/financial_address_service.rb
|
|
1716
1714
|
- lib/stripe/services/v2/test_helpers/money_management_service.rb
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
module V2
|
|
6
|
-
module Tax
|
|
7
|
-
class AutomaticRuleCreateParams < ::Stripe::RequestParams
|
|
8
|
-
# The BillableItem ID to set automatic Tax configuration for.
|
|
9
|
-
attr_accessor :billable_item
|
|
10
|
-
# The TaxCode object to be used for automatic tax calculations.
|
|
11
|
-
attr_accessor :tax_code
|
|
12
|
-
|
|
13
|
-
def initialize(billable_item: nil, tax_code: nil)
|
|
14
|
-
@billable_item = billable_item
|
|
15
|
-
@tax_code = tax_code
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
module V2
|
|
6
|
-
module Tax
|
|
7
|
-
class AutomaticRuleFindParams < ::Stripe::RequestParams
|
|
8
|
-
# The BillableItem ID to search by.
|
|
9
|
-
attr_accessor :billable_item
|
|
10
|
-
|
|
11
|
-
def initialize(billable_item: nil)
|
|
12
|
-
@billable_item = billable_item
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
module V2
|
|
6
|
-
module Tax
|
|
7
|
-
class AutomaticRuleUpdateParams < ::Stripe::RequestParams
|
|
8
|
-
# The TaxCode object to be used for automatic tax calculations.
|
|
9
|
-
attr_accessor :tax_code
|
|
10
|
-
|
|
11
|
-
def initialize(tax_code: nil)
|
|
12
|
-
@tax_code = tax_code
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
module V2
|
|
6
|
-
module Tax
|
|
7
|
-
# An AutomaticRule holds automatic Tax configuration for a BillableItem.
|
|
8
|
-
class AutomaticRule < APIResource
|
|
9
|
-
OBJECT_NAME = "v2.tax.automatic_rule"
|
|
10
|
-
def self.object_name
|
|
11
|
-
"v2.tax.automatic_rule"
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
# The ID of the BillableItem.
|
|
15
|
-
attr_reader :billable_item
|
|
16
|
-
# The time at which the AutomaticRule object was created.
|
|
17
|
-
attr_reader :created
|
|
18
|
-
# The ID of the AutomaticRule object.
|
|
19
|
-
attr_reader :id
|
|
20
|
-
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
21
|
-
attr_reader :object
|
|
22
|
-
# The status of the AutomaticRule object.
|
|
23
|
-
attr_reader :status
|
|
24
|
-
# A TaxCode object that will be used for automatic tax calculations.
|
|
25
|
-
attr_reader :tax_code
|
|
26
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
27
|
-
attr_reader :livemode
|
|
28
|
-
|
|
29
|
-
def self.inner_class_types
|
|
30
|
-
@inner_class_types = {}
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
def self.field_remappings
|
|
34
|
-
@field_remappings = {}
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
end
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
module V2
|
|
6
|
-
module Tax
|
|
7
|
-
class AutomaticRuleService < StripeService
|
|
8
|
-
# Creates an AutomaticRule object.
|
|
9
|
-
def create(params = {}, opts = {})
|
|
10
|
-
request(
|
|
11
|
-
method: :post,
|
|
12
|
-
path: "/v2/tax/automatic_rules",
|
|
13
|
-
params: params,
|
|
14
|
-
opts: opts,
|
|
15
|
-
base_address: :api
|
|
16
|
-
)
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
# Deactivates an AutomaticRule object. Deactivated AutomaticRule objects are ignored in future tax calculations.
|
|
20
|
-
def deactivate(id, params = {}, opts = {})
|
|
21
|
-
request(
|
|
22
|
-
method: :post,
|
|
23
|
-
path: format("/v2/tax/automatic_rules/%<id>s/deactivate", { id: CGI.escape(id) }),
|
|
24
|
-
params: params,
|
|
25
|
-
opts: opts,
|
|
26
|
-
base_address: :api
|
|
27
|
-
)
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
# Finds an AutomaticRule object by BillableItem ID.
|
|
31
|
-
def find(params = {}, opts = {})
|
|
32
|
-
request(
|
|
33
|
-
method: :get,
|
|
34
|
-
path: "/v2/tax/automatic_rules/find",
|
|
35
|
-
params: params,
|
|
36
|
-
opts: opts,
|
|
37
|
-
base_address: :api
|
|
38
|
-
)
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
# Retrieves an AutomaticRule object by ID.
|
|
42
|
-
def retrieve(id, params = {}, opts = {})
|
|
43
|
-
request(
|
|
44
|
-
method: :get,
|
|
45
|
-
path: format("/v2/tax/automatic_rules/%<id>s", { id: CGI.escape(id) }),
|
|
46
|
-
params: params,
|
|
47
|
-
opts: opts,
|
|
48
|
-
base_address: :api
|
|
49
|
-
)
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
# Updates the automatic Tax configuration for an AutomaticRule object.
|
|
53
|
-
def update(id, params = {}, opts = {})
|
|
54
|
-
request(
|
|
55
|
-
method: :post,
|
|
56
|
-
path: format("/v2/tax/automatic_rules/%<id>s", { id: CGI.escape(id) }),
|
|
57
|
-
params: params,
|
|
58
|
-
opts: opts,
|
|
59
|
-
base_address: :api
|
|
60
|
-
)
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
end
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
module V2
|
|
6
|
-
class TaxService < StripeService
|
|
7
|
-
attr_reader :automatic_rules
|
|
8
|
-
|
|
9
|
-
def initialize(requestor)
|
|
10
|
-
super
|
|
11
|
-
@automatic_rules = Stripe::V2::Tax::AutomaticRuleService.new(@requestor)
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|