stripe 17.1.0.pre.alpha.3 → 17.1.0.pre.alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +18 -1
- data/lib/stripe/object_types.rb +2 -0
- data/lib/stripe/params/billing/meter_create_params.rb +5 -1
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +8 -0
- data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +230 -1
- data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +195 -1
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +2 -2
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +2 -2
- data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +33 -2
- data/lib/stripe/params/v2/core/account_list_params.rb +4 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +33 -2
- data/lib/stripe/params/v2/core/event_list_params.rb +24 -1
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
- data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +1 -0
- data/lib/stripe/params.rb +6 -0
- data/lib/stripe/resources/billing/meter.rb +2 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +218 -2
- data/lib/stripe/resources/v2/billing/cadence.rb +2 -2
- data/lib/stripe/resources/v2/billing/collection_setting.rb +2 -2
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +2 -2
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +49 -0
- data/lib/stripe/resources/v2/core/account.rb +57 -2
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +35 -1
- data/lib/stripe/resources.rb +1 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +8 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +23 -0
- data/lib/stripe/services/v2/core/account_service.rb +1 -1
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +11 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +33 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +11 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +1 -1
- data/lib/stripe/services.rb +1 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +1407 -36
- metadata +10 -2
|
@@ -7,11 +7,14 @@ module Stripe
|
|
|
7
7
|
class AccountListParams < ::Stripe::RequestParams
|
|
8
8
|
# Filter only accounts that have all of the configurations specified. If omitted, returns all accounts regardless of which configurations they have.
|
|
9
9
|
attr_accessor :applied_configurations
|
|
10
|
+
# Filter by whether the account is closed. If omitted, returns only Accounts that are not closed.
|
|
11
|
+
attr_accessor :closed
|
|
10
12
|
# The upper limit on the number of accounts returned by the List Account request.
|
|
11
13
|
attr_accessor :limit
|
|
12
14
|
|
|
13
|
-
def initialize(applied_configurations: nil, limit: nil)
|
|
15
|
+
def initialize(applied_configurations: nil, closed: nil, limit: nil)
|
|
14
16
|
@applied_configurations = applied_configurations
|
|
17
|
+
@closed = closed
|
|
15
18
|
@limit = limit
|
|
16
19
|
end
|
|
17
20
|
end
|
|
@@ -1157,11 +1157,23 @@ module Stripe
|
|
|
1157
1157
|
@requested = requested
|
|
1158
1158
|
end
|
|
1159
1159
|
end
|
|
1160
|
+
|
|
1161
|
+
class Usd < ::Stripe::RequestParams
|
|
1162
|
+
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1163
|
+
attr_accessor :requested
|
|
1164
|
+
|
|
1165
|
+
def initialize(requested: nil)
|
|
1166
|
+
@requested = requested
|
|
1167
|
+
end
|
|
1168
|
+
end
|
|
1160
1169
|
# Can hold storage-type funds on Stripe in GBP.
|
|
1161
1170
|
attr_accessor :gbp
|
|
1171
|
+
# Can hold storage-type funds on Stripe in USD.
|
|
1172
|
+
attr_accessor :usd
|
|
1162
1173
|
|
|
1163
|
-
def initialize(gbp: nil)
|
|
1174
|
+
def initialize(gbp: nil, usd: nil)
|
|
1164
1175
|
@gbp = gbp
|
|
1176
|
+
@usd = usd
|
|
1165
1177
|
end
|
|
1166
1178
|
end
|
|
1167
1179
|
|
|
@@ -1411,6 +1423,21 @@ module Stripe
|
|
|
1411
1423
|
end
|
|
1412
1424
|
end
|
|
1413
1425
|
|
|
1426
|
+
class RepresentativeDeclaration < ::Stripe::RequestParams
|
|
1427
|
+
# The time marking when the representative attestation was made. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
1428
|
+
attr_accessor :date
|
|
1429
|
+
# The IP address from which the representative attestation was made.
|
|
1430
|
+
attr_accessor :ip
|
|
1431
|
+
# The user agent of the browser from which the representative attestation was made.
|
|
1432
|
+
attr_accessor :user_agent
|
|
1433
|
+
|
|
1434
|
+
def initialize(date: nil, ip: nil, user_agent: nil)
|
|
1435
|
+
@date = date
|
|
1436
|
+
@ip = ip
|
|
1437
|
+
@user_agent = user_agent
|
|
1438
|
+
end
|
|
1439
|
+
end
|
|
1440
|
+
|
|
1414
1441
|
class TermsOfService < ::Stripe::RequestParams
|
|
1415
1442
|
class Account < ::Stripe::RequestParams
|
|
1416
1443
|
# The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
@@ -1755,6 +1782,8 @@ module Stripe
|
|
|
1755
1782
|
attr_accessor :ownership_declaration
|
|
1756
1783
|
# Attestation that all Persons with a specific Relationship value have been provided.
|
|
1757
1784
|
attr_accessor :persons_provided
|
|
1785
|
+
# This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
|
|
1786
|
+
attr_accessor :representative_declaration
|
|
1758
1787
|
# Attestations of accepted terms of service agreements.
|
|
1759
1788
|
attr_accessor :terms_of_service
|
|
1760
1789
|
|
|
@@ -1762,11 +1791,13 @@ module Stripe
|
|
|
1762
1791
|
directorship_declaration: nil,
|
|
1763
1792
|
ownership_declaration: nil,
|
|
1764
1793
|
persons_provided: nil,
|
|
1794
|
+
representative_declaration: nil,
|
|
1765
1795
|
terms_of_service: nil
|
|
1766
1796
|
)
|
|
1767
1797
|
@directorship_declaration = directorship_declaration
|
|
1768
1798
|
@ownership_declaration = ownership_declaration
|
|
1769
1799
|
@persons_provided = persons_provided
|
|
1800
|
+
@representative_declaration = representative_declaration
|
|
1770
1801
|
@terms_of_service = terms_of_service
|
|
1771
1802
|
end
|
|
1772
1803
|
end
|
|
@@ -2622,7 +2653,7 @@ module Stripe
|
|
|
2622
2653
|
@surname = surname
|
|
2623
2654
|
end
|
|
2624
2655
|
end
|
|
2625
|
-
# Attestations from the identity's key people, e.g. owners, executives, directors.
|
|
2656
|
+
# Attestations from the identity's key people, e.g. owners, executives, directors, representatives.
|
|
2626
2657
|
attr_accessor :attestations
|
|
2627
2658
|
# Information about the company or business.
|
|
2628
2659
|
attr_accessor :business_details
|
|
@@ -5,16 +5,39 @@ module Stripe
|
|
|
5
5
|
module V2
|
|
6
6
|
module Core
|
|
7
7
|
class EventListParams < ::Stripe::RequestParams
|
|
8
|
+
# Filter for events created after the specified timestamp.
|
|
9
|
+
attr_accessor :gt
|
|
10
|
+
# Filter for events created at or after the specified timestamp.
|
|
11
|
+
attr_accessor :gte
|
|
8
12
|
# The page size.
|
|
9
13
|
attr_accessor :limit
|
|
14
|
+
# Filter for events created before the specified timestamp.
|
|
15
|
+
attr_accessor :lt
|
|
16
|
+
# Filter for events created at or before the specified timestamp.
|
|
17
|
+
attr_accessor :lte
|
|
10
18
|
# Primary object ID used to retrieve related events.
|
|
11
19
|
#
|
|
12
20
|
# To avoid conflict with Ruby's ':object_id', this attribute has been renamed. If using a hash parameter map instead, please use the original name ':object_id' with NO trailing underscore as the provided param key.
|
|
13
21
|
attr_accessor :object_id_
|
|
22
|
+
# An array of up to 20 strings containing specific event names.
|
|
23
|
+
attr_accessor :types
|
|
14
24
|
|
|
15
|
-
def initialize(
|
|
25
|
+
def initialize(
|
|
26
|
+
gt: nil,
|
|
27
|
+
gte: nil,
|
|
28
|
+
limit: nil,
|
|
29
|
+
lt: nil,
|
|
30
|
+
lte: nil,
|
|
31
|
+
object_id_: nil,
|
|
32
|
+
types: nil
|
|
33
|
+
)
|
|
34
|
+
@gt = gt
|
|
35
|
+
@gte = gte
|
|
16
36
|
@limit = limit
|
|
37
|
+
@lt = lt
|
|
38
|
+
@lte = lte
|
|
17
39
|
@object_id_ = object_id_
|
|
40
|
+
@types = types
|
|
18
41
|
end
|
|
19
42
|
end
|
|
20
43
|
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Core
|
|
7
|
+
module Vault
|
|
8
|
+
class GbBankAccountListParams < ::Stripe::RequestParams
|
|
9
|
+
# Optionally set the maximum number of results per page. Defaults to 10.
|
|
10
|
+
attr_accessor :limit
|
|
11
|
+
|
|
12
|
+
def initialize(limit: nil)
|
|
13
|
+
@limit = limit
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Core
|
|
7
|
+
module Vault
|
|
8
|
+
class UsBankAccountConfirmMicrodepositsParams < ::Stripe::RequestParams
|
|
9
|
+
# Two amounts received through Send Microdeposits must match the input to Confirm Microdeposits to verify US Bank Account.
|
|
10
|
+
attr_accessor :amounts
|
|
11
|
+
# Descriptor code received through Send Microdeposits must match the input to Confirm Microdeposits to verify US Bank Account.
|
|
12
|
+
attr_accessor :descriptor_code
|
|
13
|
+
|
|
14
|
+
def initialize(amounts: nil, descriptor_code: nil)
|
|
15
|
+
@amounts = amounts
|
|
16
|
+
@descriptor_code = descriptor_code
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Core
|
|
7
|
+
module Vault
|
|
8
|
+
class UsBankAccountListParams < ::Stripe::RequestParams
|
|
9
|
+
# Optionally set the maximum number of results per page. Defaults to 10.
|
|
10
|
+
attr_accessor :limit
|
|
11
|
+
# Optionally filter by verification status. Mutually exclusive with `unverified`, `verified`, `awaiting_verification`, and `verification_failed`.
|
|
12
|
+
attr_accessor :verification_status
|
|
13
|
+
|
|
14
|
+
def initialize(limit: nil, verification_status: nil)
|
|
15
|
+
@limit = limit
|
|
16
|
+
@verification_status = verification_status
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module MoneyManagement
|
|
7
|
+
class FinancialAccountUpdateParams < ::Stripe::RequestParams
|
|
8
|
+
# A descriptive name for the FinancialAccount, up to 50 characters long. This name will be used in the Stripe Dashboard and embedded components.
|
|
9
|
+
attr_accessor :display_name
|
|
10
|
+
# Metadata associated with the FinancialAccount.
|
|
11
|
+
attr_accessor :metadata
|
|
12
|
+
|
|
13
|
+
def initialize(display_name: nil, metadata: nil)
|
|
14
|
+
@display_name = display_name
|
|
15
|
+
@metadata = metadata
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -6,6 +6,7 @@ module Stripe
|
|
|
6
6
|
module TestHelpers
|
|
7
7
|
class MoneyManagementRecipientVerificationsParams < ::Stripe::RequestParams
|
|
8
8
|
# Expected match level of the RecipientVerification to be created: `match`, `close_match`, `no_match`, `unavailable`.
|
|
9
|
+
# For `close_match`, the simulated response appends "close_match" to the provided name in match_result_details.matched_name.
|
|
9
10
|
attr_accessor :match_result
|
|
10
11
|
# ID of the payout method.
|
|
11
12
|
attr_accessor :payout_method
|
data/lib/stripe/params.rb
CHANGED
|
@@ -713,6 +713,7 @@ require "stripe/params/v2/billing/pricing_plan_retrieve_params"
|
|
|
713
713
|
require "stripe/params/v2/billing/pricing_plan_subscription_list_params"
|
|
714
714
|
require "stripe/params/v2/billing/pricing_plan_subscription_retrieve_params"
|
|
715
715
|
require "stripe/params/v2/billing/pricing_plan_subscription_update_params"
|
|
716
|
+
require "stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params"
|
|
716
717
|
require "stripe/params/v2/billing/pricing_plan_update_params"
|
|
717
718
|
require "stripe/params/v2/billing/pricing_plans/component_create_params"
|
|
718
719
|
require "stripe/params/v2/billing/pricing_plans/component_delete_params"
|
|
@@ -770,10 +771,14 @@ require "stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of
|
|
|
770
771
|
require "stripe/params/v2/core/vault/gb_bank_account_archive_params"
|
|
771
772
|
require "stripe/params/v2/core/vault/gb_bank_account_create_params"
|
|
772
773
|
require "stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params"
|
|
774
|
+
require "stripe/params/v2/core/vault/gb_bank_account_list_params"
|
|
773
775
|
require "stripe/params/v2/core/vault/gb_bank_account_retrieve_params"
|
|
774
776
|
require "stripe/params/v2/core/vault/us_bank_account_archive_params"
|
|
777
|
+
require "stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params"
|
|
775
778
|
require "stripe/params/v2/core/vault/us_bank_account_create_params"
|
|
779
|
+
require "stripe/params/v2/core/vault/us_bank_account_list_params"
|
|
776
780
|
require "stripe/params/v2/core/vault/us_bank_account_retrieve_params"
|
|
781
|
+
require "stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params"
|
|
777
782
|
require "stripe/params/v2/core/vault/us_bank_account_update_params"
|
|
778
783
|
require "stripe/params/v2/money_management/adjustment_list_params"
|
|
779
784
|
require "stripe/params/v2/money_management/adjustment_retrieve_params"
|
|
@@ -781,6 +786,7 @@ require "stripe/params/v2/money_management/financial_account_close_params"
|
|
|
781
786
|
require "stripe/params/v2/money_management/financial_account_create_params"
|
|
782
787
|
require "stripe/params/v2/money_management/financial_account_list_params"
|
|
783
788
|
require "stripe/params/v2/money_management/financial_account_retrieve_params"
|
|
789
|
+
require "stripe/params/v2/money_management/financial_account_update_params"
|
|
784
790
|
require "stripe/params/v2/money_management/financial_address_create_params"
|
|
785
791
|
require "stripe/params/v2/money_management/financial_address_list_params"
|
|
786
792
|
require "stripe/params/v2/money_management/financial_address_retrieve_params"
|
|
@@ -100,6 +100,8 @@ module Stripe
|
|
|
100
100
|
attr_reader :updated
|
|
101
101
|
# Attribute for field value_settings
|
|
102
102
|
attr_reader :value_settings
|
|
103
|
+
# Set of keys that will be used to group meter events by.
|
|
104
|
+
attr_reader :dimension_payload_keys
|
|
103
105
|
|
|
104
106
|
# Creates a billing meter.
|
|
105
107
|
def self.create(params = {}, opts = {})
|
|
@@ -27,6 +27,8 @@ module Stripe
|
|
|
27
27
|
attr_reader :object
|
|
28
28
|
# Start timestamp for this event summary (inclusive). Must be aligned with minute boundaries.
|
|
29
29
|
attr_reader :start_time
|
|
30
|
+
# Key-value pairs of dimension values for event summaries with grouping on dimensions.
|
|
31
|
+
attr_reader :dimensions
|
|
30
32
|
|
|
31
33
|
def self.inner_class_types
|
|
32
34
|
@inner_class_types = {}
|
|
@@ -14,6 +14,186 @@ module Stripe
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
class FulfillmentDetails < ::Stripe::StripeObject
|
|
17
|
+
class Address < ::Stripe::StripeObject
|
|
18
|
+
# City, district, suburb, town, or village.
|
|
19
|
+
attr_reader :city
|
|
20
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
21
|
+
attr_reader :country
|
|
22
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
23
|
+
attr_reader :line1
|
|
24
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
25
|
+
attr_reader :line2
|
|
26
|
+
# ZIP or postal code.
|
|
27
|
+
attr_reader :postal_code
|
|
28
|
+
# State, county, province, or region.
|
|
29
|
+
attr_reader :state
|
|
30
|
+
|
|
31
|
+
def self.inner_class_types
|
|
32
|
+
@inner_class_types = {}
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def self.field_remappings
|
|
36
|
+
@field_remappings = {}
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
class FulfillmentOption < ::Stripe::StripeObject
|
|
41
|
+
class Shipping < ::Stripe::StripeObject
|
|
42
|
+
class ShippingOption < ::Stripe::StripeObject
|
|
43
|
+
# The description of the shipping option.
|
|
44
|
+
attr_reader :description
|
|
45
|
+
# The display name of the shipping option.
|
|
46
|
+
attr_reader :display_name
|
|
47
|
+
# The earliest delivery time of the shipping option.
|
|
48
|
+
attr_reader :earliest_delivery_time
|
|
49
|
+
# The key of the shipping option.
|
|
50
|
+
attr_reader :key
|
|
51
|
+
# The latest delivery time of the shipping option.
|
|
52
|
+
attr_reader :latest_delivery_time
|
|
53
|
+
# The shipping amount of the shipping option.
|
|
54
|
+
attr_reader :shipping_amount
|
|
55
|
+
|
|
56
|
+
def self.inner_class_types
|
|
57
|
+
@inner_class_types = {}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def self.field_remappings
|
|
61
|
+
@field_remappings = {}
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
# The shipping options.
|
|
65
|
+
attr_reader :shipping_options
|
|
66
|
+
|
|
67
|
+
def self.inner_class_types
|
|
68
|
+
@inner_class_types = { shipping_options: ShippingOption }
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
def self.field_remappings
|
|
72
|
+
@field_remappings = {}
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
# The shipping option.
|
|
76
|
+
attr_reader :shipping
|
|
77
|
+
# The type of the fulfillment option.
|
|
78
|
+
attr_reader :type
|
|
79
|
+
|
|
80
|
+
def self.inner_class_types
|
|
81
|
+
@inner_class_types = { shipping: Shipping }
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
def self.field_remappings
|
|
85
|
+
@field_remappings = {}
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
class SelectedFulfillmentOption < ::Stripe::StripeObject
|
|
90
|
+
class Shipping < ::Stripe::StripeObject
|
|
91
|
+
# The shipping option.
|
|
92
|
+
attr_reader :shipping_option
|
|
93
|
+
|
|
94
|
+
def self.inner_class_types
|
|
95
|
+
@inner_class_types = {}
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
def self.field_remappings
|
|
99
|
+
@field_remappings = {}
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
# The shipping option.
|
|
103
|
+
attr_reader :shipping
|
|
104
|
+
# The type of the selected fulfillment option.
|
|
105
|
+
attr_reader :type
|
|
106
|
+
|
|
107
|
+
def self.inner_class_types
|
|
108
|
+
@inner_class_types = { shipping: Shipping }
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
def self.field_remappings
|
|
112
|
+
@field_remappings = {}
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
# The fulfillment address.
|
|
116
|
+
attr_reader :address
|
|
117
|
+
# The email address for the fulfillment details.
|
|
118
|
+
attr_reader :email
|
|
119
|
+
# The fulfillment options.
|
|
120
|
+
attr_reader :fulfillment_options
|
|
121
|
+
# The name for the fulfillment details.
|
|
122
|
+
attr_reader :name
|
|
123
|
+
# The phone number for the fulfillment details.
|
|
124
|
+
attr_reader :phone
|
|
125
|
+
# The fulfillment option.
|
|
126
|
+
attr_reader :selected_fulfillment_option
|
|
127
|
+
|
|
128
|
+
def self.inner_class_types
|
|
129
|
+
@inner_class_types = {
|
|
130
|
+
address: Address,
|
|
131
|
+
fulfillment_options: FulfillmentOption,
|
|
132
|
+
selected_fulfillment_option: SelectedFulfillmentOption,
|
|
133
|
+
}
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
def self.field_remappings
|
|
137
|
+
@field_remappings = {}
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
class LineItemDetail < ::Stripe::StripeObject
|
|
142
|
+
# The description of the line item.
|
|
143
|
+
attr_reader :description
|
|
144
|
+
# The images of the line item.
|
|
145
|
+
attr_reader :images
|
|
146
|
+
# The key of the line item.
|
|
147
|
+
attr_reader :key
|
|
148
|
+
# The name of the line item.
|
|
149
|
+
attr_reader :name
|
|
150
|
+
# The quantity of the line item.
|
|
151
|
+
attr_reader :quantity
|
|
152
|
+
# The SKU ID of the line item.
|
|
153
|
+
attr_reader :sku_id
|
|
154
|
+
# The unit amount of the line item.
|
|
155
|
+
attr_reader :unit_amount
|
|
156
|
+
|
|
157
|
+
def self.inner_class_types
|
|
158
|
+
@inner_class_types = {}
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
def self.field_remappings
|
|
162
|
+
@field_remappings = {}
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
class OrderDetails < ::Stripe::StripeObject
|
|
167
|
+
# The URL to the order status.
|
|
168
|
+
attr_reader :order_status_url
|
|
169
|
+
|
|
170
|
+
def self.inner_class_types
|
|
171
|
+
@inner_class_types = {}
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
def self.field_remappings
|
|
175
|
+
@field_remappings = {}
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
class SellerDetails < ::Stripe::StripeObject
|
|
180
|
+
def self.inner_class_types
|
|
181
|
+
@inner_class_types = {}
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
def self.field_remappings
|
|
185
|
+
@field_remappings = {}
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
class TotalDetails < ::Stripe::StripeObject
|
|
190
|
+
# The amount discount of the total details.
|
|
191
|
+
attr_reader :amount_discount
|
|
192
|
+
# The amount fulfillment of the total details.
|
|
193
|
+
attr_reader :amount_fulfillment
|
|
194
|
+
# The amount tax of the total details.
|
|
195
|
+
attr_reader :amount_tax
|
|
196
|
+
|
|
17
197
|
def self.inner_class_types
|
|
18
198
|
@inner_class_types = {}
|
|
19
199
|
end
|
|
@@ -22,18 +202,48 @@ module Stripe
|
|
|
22
202
|
@field_remappings = {}
|
|
23
203
|
end
|
|
24
204
|
end
|
|
205
|
+
# The subtotal amount of the requested session.
|
|
206
|
+
attr_reader :amount_subtotal
|
|
207
|
+
# The total amount of the requested session.
|
|
208
|
+
attr_reader :amount_total
|
|
209
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
210
|
+
attr_reader :created_at
|
|
25
211
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
26
212
|
attr_reader :currency
|
|
27
213
|
# The customer for this requested session.
|
|
28
214
|
attr_reader :customer
|
|
29
|
-
#
|
|
215
|
+
# Time at which the requested session expires. Measured in seconds since the Unix epoch.
|
|
216
|
+
attr_reader :expires_at
|
|
217
|
+
# The details of the fulfillment.
|
|
30
218
|
attr_reader :fulfillment_details
|
|
31
219
|
# Unique identifier for the object.
|
|
32
220
|
attr_reader :id
|
|
221
|
+
# The line items to be purchased.
|
|
222
|
+
attr_reader :line_item_details
|
|
33
223
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
34
224
|
attr_reader :livemode
|
|
225
|
+
# 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.
|
|
226
|
+
attr_reader :metadata
|
|
35
227
|
# String representing the object's type. Objects of the same type share the same value.
|
|
36
228
|
attr_reader :object
|
|
229
|
+
# The details of the order.
|
|
230
|
+
attr_reader :order_details
|
|
231
|
+
# The payment method used for the requested session.
|
|
232
|
+
attr_reader :payment_method
|
|
233
|
+
# Attribute for field seller_details
|
|
234
|
+
attr_reader :seller_details
|
|
235
|
+
# Whether or not the payment method should be saved for future use.
|
|
236
|
+
attr_reader :setup_future_usage
|
|
237
|
+
# The metadata shared with the seller.
|
|
238
|
+
attr_reader :shared_metadata
|
|
239
|
+
# The SPT used for payment.
|
|
240
|
+
attr_reader :shared_payment_issued_token
|
|
241
|
+
# The status of the requested session.
|
|
242
|
+
attr_reader :status
|
|
243
|
+
# Attribute for field total_details
|
|
244
|
+
attr_reader :total_details
|
|
245
|
+
# Time at which the object was last updated. Measured in seconds since the Unix epoch.
|
|
246
|
+
attr_reader :updated_at
|
|
37
247
|
|
|
38
248
|
# Confirms a requested session
|
|
39
249
|
def confirm(params = {}, opts = {})
|
|
@@ -96,7 +306,13 @@ module Stripe
|
|
|
96
306
|
end
|
|
97
307
|
|
|
98
308
|
def self.inner_class_types
|
|
99
|
-
@inner_class_types = {
|
|
309
|
+
@inner_class_types = {
|
|
310
|
+
fulfillment_details: FulfillmentDetails,
|
|
311
|
+
line_item_details: LineItemDetail,
|
|
312
|
+
order_details: OrderDetails,
|
|
313
|
+
seller_details: SellerDetails,
|
|
314
|
+
total_details: TotalDetails,
|
|
315
|
+
}
|
|
100
316
|
end
|
|
101
317
|
|
|
102
318
|
def self.field_remappings
|
|
@@ -359,7 +359,7 @@ module Stripe
|
|
|
359
359
|
class PaymentDue < ::Stripe::StripeObject
|
|
360
360
|
# If true an email for the invoice would be generated and sent out.
|
|
361
361
|
attr_reader :enabled
|
|
362
|
-
# If true the payment link to hosted
|
|
362
|
+
# If true the payment link to hosted invoice page would be included in email and PDF of the invoice.
|
|
363
363
|
attr_reader :include_payment_link
|
|
364
364
|
|
|
365
365
|
def self.inner_class_types
|
|
@@ -370,7 +370,7 @@ module Stripe
|
|
|
370
370
|
@field_remappings = {}
|
|
371
371
|
end
|
|
372
372
|
end
|
|
373
|
-
# Controls emails for when the payment is due. For example after the invoice is
|
|
373
|
+
# Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state.
|
|
374
374
|
attr_reader :payment_due
|
|
375
375
|
|
|
376
376
|
def self.inner_class_types
|
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
class PaymentDue < ::Stripe::StripeObject
|
|
16
16
|
# If true an email for the invoice would be generated and sent out.
|
|
17
17
|
attr_reader :enabled
|
|
18
|
-
# If true the payment link to hosted
|
|
18
|
+
# If true the payment link to hosted invoice page would be included in email and PDF of the invoice.
|
|
19
19
|
attr_reader :include_payment_link
|
|
20
20
|
|
|
21
21
|
def self.inner_class_types
|
|
@@ -26,7 +26,7 @@ module Stripe
|
|
|
26
26
|
@field_remappings = {}
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
|
-
# Controls emails for when the payment is due. For example after the invoice is
|
|
29
|
+
# Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state.
|
|
30
30
|
attr_reader :payment_due
|
|
31
31
|
|
|
32
32
|
def self.inner_class_types
|
|
@@ -14,7 +14,7 @@ module Stripe
|
|
|
14
14
|
class PaymentDue < ::Stripe::StripeObject
|
|
15
15
|
# If true an email for the invoice would be generated and sent out.
|
|
16
16
|
attr_reader :enabled
|
|
17
|
-
# If true the payment link to hosted
|
|
17
|
+
# If true the payment link to hosted invoice page would be included in email and PDF of the invoice.
|
|
18
18
|
attr_reader :include_payment_link
|
|
19
19
|
|
|
20
20
|
def self.inner_class_types
|
|
@@ -25,7 +25,7 @@ module Stripe
|
|
|
25
25
|
@field_remappings = {}
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
|
-
# Controls emails for when the payment is due. For example after the invoice is
|
|
28
|
+
# Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state.
|
|
29
29
|
attr_reader :payment_due
|
|
30
30
|
|
|
31
31
|
def self.inner_class_types
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Billing
|
|
7
|
+
# A set of component subscriptions for a Pricing Plan Subscription.
|
|
8
|
+
class PricingPlanSubscriptionComponents < APIResource
|
|
9
|
+
OBJECT_NAME = "v2.billing.pricing_plan_subscription_components"
|
|
10
|
+
def self.object_name
|
|
11
|
+
"v2.billing.pricing_plan_subscription_components"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
class Component < ::Stripe::StripeObject
|
|
15
|
+
# The Pricing Plan Component associated with this component subscription.
|
|
16
|
+
attr_reader :pricing_plan_component
|
|
17
|
+
# The type of subscription.
|
|
18
|
+
attr_reader :type
|
|
19
|
+
# The ID of the License Fee Subscription.
|
|
20
|
+
attr_reader :license_fee_subscription
|
|
21
|
+
# The ID of the Rate Card Subscription.
|
|
22
|
+
attr_reader :rate_card_subscription
|
|
23
|
+
|
|
24
|
+
def self.inner_class_types
|
|
25
|
+
@inner_class_types = {}
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def self.field_remappings
|
|
29
|
+
@field_remappings = {}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
# The component subscriptions of the Pricing Plan Subscription.
|
|
33
|
+
attr_reader :components
|
|
34
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
35
|
+
attr_reader :object
|
|
36
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
37
|
+
attr_reader :livemode
|
|
38
|
+
|
|
39
|
+
def self.inner_class_types
|
|
40
|
+
@inner_class_types = { components: Component }
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def self.field_remappings
|
|
44
|
+
@field_remappings = {}
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|