stripe 15.6.0.pre.alpha.1 → 15.6.0.pre.beta.1
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/API_VERSION +1 -1
- data/CHANGELOG.md +1 -65
- data/OPENAPI_VERSION +1 -1
- data/README.md +4 -6
- data/VERSION +1 -1
- data/lib/stripe/api_requestor.rb +0 -2
- data/lib/stripe/errors.rb +0 -3
- data/lib/stripe/event_types.rb +0 -83
- data/lib/stripe/object_types.rb +0 -27
- data/lib/stripe/resources/billing/alert.rb +1 -128
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -6
- data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -50
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +0 -50
- data/lib/stripe/resources/billing/credit_grant.rb +2 -61
- data/lib/stripe/resources/charge.rb +4 -0
- data/lib/stripe/resources/checkout/session.rb +1 -128
- data/lib/stripe/resources/invoice.rb +0 -11
- data/lib/stripe/resources/invoice_item.rb +0 -48
- data/lib/stripe/resources/invoice_line_item.rb +0 -52
- data/lib/stripe/resources/issuing/card.rb +8 -0
- data/lib/stripe/resources/payment_attempt_record.rb +4 -0
- data/lib/stripe/resources/payment_record.rb +4 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -7
- data/lib/stripe/resources/subscription.rb +0 -38
- data/lib/stripe/resources/v2/event.rb +0 -2
- data/lib/stripe/resources/v2/money_management/financial_account.rb +2 -2
- data/lib/stripe/resources.rb +0 -85
- data/lib/stripe/services/billing/alert_service.rb +1 -75
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +1 -13
- data/lib/stripe/services/billing/credit_grant_service.rb +2 -29
- data/lib/stripe/services/checkout/session_service.rb +1 -80
- data/lib/stripe/services/invoice_service.rb +0 -4
- data/lib/stripe/services/issuing/card_service.rb +8 -0
- data/lib/stripe/services/subscription_service.rb +0 -27
- data/lib/stripe/services/v2/billing_service.rb +1 -18
- data/lib/stripe/services/v2/core_service.rb +1 -2
- data/lib/stripe/services/v2_services.rb +1 -3
- data/lib/stripe/services.rb +0 -29
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +201354 -0
- metadata +2 -115
- data/lib/stripe/events/v2_billing_cadence_billed_event.rb +0 -21
- data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_billing_cadence_created_event.rb +0 -23
- data/lib/stripe/events/v2_billing_cadence_errored_event.rb +0 -21
- data/lib/stripe/events/v2_billing_license_fee_created_event.rb +0 -21
- data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +0 -23
- data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +0 -21
- data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_metered_item_created_event.rb +0 -21
- data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +0 -23
- data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +0 -23
- data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +0 -23
- data/lib/stripe/events/v2_billing_rate_card_created_event.rb +0 -23
- data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +0 -23
- data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +0 -23
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_reporting_report_run_created_event.rb +0 -21
- data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +0 -21
- data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +0 -21
- data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +0 -21
- data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -62
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -50
- data/lib/stripe/resources/v2/billing/cadence.rb +0 -182
- data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -148
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -136
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +0 -35
- data/lib/stripe/resources/v2/billing/intent.rb +0 -59
- data/lib/stripe/resources/v2/billing/intent_action.rb +0 -200
- data/lib/stripe/resources/v2/billing/license_fee.rb +0 -79
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +0 -36
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +0 -56
- data/lib/stripe/resources/v2/billing/licensed_item.rb +0 -44
- data/lib/stripe/resources/v2/billing/metered_item.rb +0 -58
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +0 -43
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +0 -58
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +0 -63
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +0 -30
- data/lib/stripe/resources/v2/billing/profile.rb +0 -38
- data/lib/stripe/resources/v2/billing/rate_card.rb +0 -53
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +0 -71
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +0 -63
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +0 -26
- data/lib/stripe/resources/v2/billing/service_action.rb +0 -117
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +0 -57
- data/lib/stripe/resources/v2/reporting/report.rb +0 -64
- data/lib/stripe/resources/v2/reporting/report_run.rb +0 -89
- data/lib/stripe/resources/v2/tax/automatic_rule.rb +0 -31
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -214
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -45
- data/lib/stripe/services/v2/billing/cadence_service.rb +0 -428
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -518
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -45
- data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +0 -108
- data/lib/stripe/services/v2/billing/intent_service.rb +0 -465
- data/lib/stripe/services/v2/billing/intents/action_service.rb +0 -45
- data/lib/stripe/services/v2/billing/license_fee_service.rb +0 -250
- data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +0 -23
- data/lib/stripe/services/v2/billing/license_fees/version_service.rb +0 -45
- data/lib/stripe/services/v2/billing/licensed_item_service.rb +0 -149
- data/lib/stripe/services/v2/billing/metered_item_service.rb +0 -176
- data/lib/stripe/services/v2/billing/pricing_plan_service.rb +0 -142
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +0 -76
- data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +0 -162
- data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +0 -45
- data/lib/stripe/services/v2/billing/profile_service.rb +0 -144
- data/lib/stripe/services/v2/billing/rate_card_service.rb +0 -151
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +0 -144
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +0 -161
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +0 -45
- data/lib/stripe/services/v2/billing/service_action_service.rb +0 -259
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +0 -50
- data/lib/stripe/services/v2/reporting/report_run_service.rb +0 -88
- data/lib/stripe/services/v2/reporting/report_service.rb +0 -25
- data/lib/stripe/services/v2/reporting_service.rb +0 -16
- data/lib/stripe/services/v2/tax/automatic_rule_service.rb +0 -99
- data/lib/stripe/services/v2/tax_service.rb +0 -15
@@ -1,59 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module V2
|
6
|
-
module Billing
|
7
|
-
class Intent < APIResource
|
8
|
-
OBJECT_NAME = "v2.billing.intent"
|
9
|
-
def self.object_name
|
10
|
-
"v2.billing.intent"
|
11
|
-
end
|
12
|
-
|
13
|
-
class AmountDetails < Stripe::StripeObject
|
14
|
-
# Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
15
|
-
attr_reader :currency
|
16
|
-
# Amount of discount applied.
|
17
|
-
attr_reader :discount
|
18
|
-
# Amount of shipping charges.
|
19
|
-
attr_reader :shipping
|
20
|
-
# Subtotal amount before tax and discounts.
|
21
|
-
attr_reader :subtotal
|
22
|
-
# Amount of tax.
|
23
|
-
attr_reader :tax
|
24
|
-
# Total amount for the Billing Intent.
|
25
|
-
attr_reader :total
|
26
|
-
end
|
27
|
-
|
28
|
-
class StatusTransitions < Stripe::StripeObject
|
29
|
-
# Time at which the Billing Intent was canceled.
|
30
|
-
attr_reader :canceled_at
|
31
|
-
# Time at which the Billing Intent was committed.
|
32
|
-
attr_reader :committed_at
|
33
|
-
# Time at which the Billing Intent was drafted.
|
34
|
-
attr_reader :drafted_at
|
35
|
-
# Time at which the Billing Intent was reserved.
|
36
|
-
attr_reader :reserved_at
|
37
|
-
end
|
38
|
-
# Breakdown of the amount for this Billing Intent.
|
39
|
-
attr_reader :amount_details
|
40
|
-
# Time at which the object was created.
|
41
|
-
attr_reader :created
|
42
|
-
# Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
43
|
-
attr_reader :currency
|
44
|
-
# Unique identifier for the object.
|
45
|
-
attr_reader :id
|
46
|
-
# String representing the object's type. Objects of the same type share the same value of the object field.
|
47
|
-
attr_reader :object
|
48
|
-
# Current status of the Billing Intent.
|
49
|
-
attr_reader :status
|
50
|
-
# Timestamps for status transitions of the Billing Intent.
|
51
|
-
attr_reader :status_transitions
|
52
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
53
|
-
attr_reader :livemode
|
54
|
-
# ID of an existing Cadence to use.
|
55
|
-
attr_reader :cadence
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
@@ -1,200 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module V2
|
6
|
-
module Billing
|
7
|
-
class IntentAction < APIResource
|
8
|
-
OBJECT_NAME = "v2.billing.intent_action"
|
9
|
-
def self.object_name
|
10
|
-
"v2.billing.intent_action"
|
11
|
-
end
|
12
|
-
|
13
|
-
class Apply < Stripe::StripeObject
|
14
|
-
class InvoiceDiscountRule < Stripe::StripeObject
|
15
|
-
class PercentOff < Stripe::StripeObject
|
16
|
-
class MaximumApplications < Stripe::StripeObject
|
17
|
-
# The type of maximum applications configuration.
|
18
|
-
attr_reader :type
|
19
|
-
end
|
20
|
-
# The maximum number of times this discount can be applied for this Billing Cadence.
|
21
|
-
attr_reader :maximum_applications
|
22
|
-
# Percent that will be taken off of the amount. For example, percent_off of 50.0 will make $100 amount $50 instead.
|
23
|
-
attr_reader :percent_off
|
24
|
-
end
|
25
|
-
# The entity that the discount rule applies to, for example, the Billing Cadence.
|
26
|
-
attr_reader :applies_to
|
27
|
-
# The ID of the created discount rule. This is only present once the Billing Intent is committed and the discount rule is created.
|
28
|
-
attr_reader :invoice_discount_rule
|
29
|
-
# Type of the discount rule.
|
30
|
-
attr_reader :type
|
31
|
-
# Configuration for percentage off discount.
|
32
|
-
attr_reader :percent_off
|
33
|
-
end
|
34
|
-
# Type of the apply action details.
|
35
|
-
attr_reader :type
|
36
|
-
# Details for applying a discount rule to future invoices.
|
37
|
-
attr_reader :invoice_discount_rule
|
38
|
-
end
|
39
|
-
|
40
|
-
class Deactivate < Stripe::StripeObject
|
41
|
-
class BillingDetails < Stripe::StripeObject
|
42
|
-
# This controls the proration adjustment for the partial servicing period.
|
43
|
-
attr_reader :proration_behavior
|
44
|
-
end
|
45
|
-
|
46
|
-
class EffectiveAt < Stripe::StripeObject
|
47
|
-
# The timestamp at which the deactivate action will take effect. Only present if type is timestamp.
|
48
|
-
attr_reader :timestamp
|
49
|
-
# When the deactivate action will take effect.
|
50
|
-
attr_reader :type
|
51
|
-
end
|
52
|
-
|
53
|
-
class PricingPlanSubscriptionDetails < Stripe::StripeObject
|
54
|
-
# ID of the Pricing Plan Subscription to deactivate.
|
55
|
-
attr_reader :pricing_plan_subscription
|
56
|
-
end
|
57
|
-
# Configuration for the billing details.
|
58
|
-
attr_reader :billing_details
|
59
|
-
# When the deactivate action will take effect. If not specified, the default behavior is on_reserve.
|
60
|
-
attr_reader :effective_at
|
61
|
-
# Type of the action details.
|
62
|
-
attr_reader :type
|
63
|
-
# Details for deactivating a Pricing Plan Subscription.
|
64
|
-
attr_reader :pricing_plan_subscription_details
|
65
|
-
end
|
66
|
-
|
67
|
-
class Modify < Stripe::StripeObject
|
68
|
-
class BillingDetails < Stripe::StripeObject
|
69
|
-
# This controls the proration adjustment for the partial servicing period.
|
70
|
-
attr_reader :proration_behavior
|
71
|
-
end
|
72
|
-
|
73
|
-
class EffectiveAt < Stripe::StripeObject
|
74
|
-
# The timestamp at which the modify action will take effect. Only present if type is timestamp.
|
75
|
-
attr_reader :timestamp
|
76
|
-
# When the modify action will take effect.
|
77
|
-
attr_reader :type
|
78
|
-
end
|
79
|
-
|
80
|
-
class PricingPlanSubscriptionDetails < Stripe::StripeObject
|
81
|
-
class ComponentConfiguration < Stripe::StripeObject
|
82
|
-
# Quantity of the component to be used.
|
83
|
-
attr_reader :quantity
|
84
|
-
# Lookup key for the pricing plan component.
|
85
|
-
attr_reader :lookup_key
|
86
|
-
# ID of the pricing plan component.
|
87
|
-
attr_reader :pricing_plan_component
|
88
|
-
end
|
89
|
-
# New configurations for the components of the Pricing Plan.
|
90
|
-
attr_reader :component_configurations
|
91
|
-
# ID of the new Pricing Plan.
|
92
|
-
attr_reader :new_pricing_plan
|
93
|
-
# Version of the Pricing Plan to use.
|
94
|
-
attr_reader :new_pricing_plan_version
|
95
|
-
# ID of the Pricing Plan Subscription to modify.
|
96
|
-
attr_reader :pricing_plan_subscription
|
97
|
-
end
|
98
|
-
# Configuration for the billing details.
|
99
|
-
attr_reader :billing_details
|
100
|
-
# When the modify action will take effect. If not specified, the default behavior is on_reserve.
|
101
|
-
attr_reader :effective_at
|
102
|
-
# Type of the action details.
|
103
|
-
attr_reader :type
|
104
|
-
# Details for modifying a Pricing Plan Subscription.
|
105
|
-
attr_reader :pricing_plan_subscription_details
|
106
|
-
end
|
107
|
-
|
108
|
-
class Remove < Stripe::StripeObject
|
109
|
-
# Type of the remove action.
|
110
|
-
attr_reader :type
|
111
|
-
# The ID of the discount rule to remove for future invoices.
|
112
|
-
attr_reader :invoice_discount_rule
|
113
|
-
end
|
114
|
-
|
115
|
-
class Subscribe < Stripe::StripeObject
|
116
|
-
class BillingDetails < Stripe::StripeObject
|
117
|
-
# This controls the proration adjustment for the partial servicing period.
|
118
|
-
attr_reader :proration_behavior
|
119
|
-
end
|
120
|
-
|
121
|
-
class EffectiveAt < Stripe::StripeObject
|
122
|
-
# The timestamp at which the subscribe action will take effect. Only present if type is timestamp.
|
123
|
-
attr_reader :timestamp
|
124
|
-
# When the subscribe action will take effect.
|
125
|
-
attr_reader :type
|
126
|
-
end
|
127
|
-
|
128
|
-
class PricingPlanSubscriptionDetails < Stripe::StripeObject
|
129
|
-
class ComponentConfiguration < Stripe::StripeObject
|
130
|
-
# Quantity of the component to be used.
|
131
|
-
attr_reader :quantity
|
132
|
-
# Lookup key for the pricing plan component.
|
133
|
-
attr_reader :lookup_key
|
134
|
-
# ID of the pricing plan component.
|
135
|
-
attr_reader :pricing_plan_component
|
136
|
-
end
|
137
|
-
# Configurations for the components of the Pricing Plan.
|
138
|
-
attr_reader :component_configurations
|
139
|
-
# Set of [key-value pairs](/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.
|
140
|
-
attr_reader :metadata
|
141
|
-
# ID of the Pricing Plan to subscribe to.
|
142
|
-
attr_reader :pricing_plan
|
143
|
-
# ID of the created Pricing Plan Subscription. This is only present once the Billing Intent is committed and the Pricing Plan Subscription is created.
|
144
|
-
attr_reader :pricing_plan_subscription
|
145
|
-
# Version of the Pricing Plan to use.
|
146
|
-
attr_reader :pricing_plan_version
|
147
|
-
end
|
148
|
-
|
149
|
-
class V1SubscriptionDetails < Stripe::StripeObject
|
150
|
-
class Item < Stripe::StripeObject
|
151
|
-
# Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
152
|
-
attr_reader :metadata
|
153
|
-
# The ID of the price object.
|
154
|
-
attr_reader :price
|
155
|
-
# Quantity for this item. If not provided, will default to 1.
|
156
|
-
attr_reader :quantity
|
157
|
-
end
|
158
|
-
# The subscription’s description, meant to be displayable to the customer.
|
159
|
-
# Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
160
|
-
attr_reader :description
|
161
|
-
# A list of up to 20 subscription items, each with an attached price.
|
162
|
-
attr_reader :items
|
163
|
-
# Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
164
|
-
attr_reader :metadata
|
165
|
-
end
|
166
|
-
# Configuration for the billing details. If not specified, see the default behavior for individual attributes.
|
167
|
-
attr_reader :billing_details
|
168
|
-
# When the subscribe action will take effect. If not specified, the default behavior is on_reserve.
|
169
|
-
attr_reader :effective_at
|
170
|
-
# Type of the action details.
|
171
|
-
attr_reader :type
|
172
|
-
# Details for subscribing to a Pricing Plan.
|
173
|
-
attr_reader :pricing_plan_subscription_details
|
174
|
-
# Details for subscribing to a V1 subscription.
|
175
|
-
attr_reader :v1_subscription_details
|
176
|
-
end
|
177
|
-
# Time at which the object was created.
|
178
|
-
attr_reader :created
|
179
|
-
# Unique identifier for the object.
|
180
|
-
attr_reader :id
|
181
|
-
# String representing the object's type. Objects of the same type share the same value of the object field.
|
182
|
-
attr_reader :object
|
183
|
-
# Type of the Billing Intent Action.
|
184
|
-
attr_reader :type
|
185
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
186
|
-
attr_reader :livemode
|
187
|
-
# Details for an apply action.
|
188
|
-
attr_reader :apply
|
189
|
-
# Details for a deactivate action.
|
190
|
-
attr_reader :deactivate
|
191
|
-
# Details for a modify action.
|
192
|
-
attr_reader :modify
|
193
|
-
# Details for a remove action.
|
194
|
-
attr_reader :remove
|
195
|
-
# Details for a subscribe action.
|
196
|
-
attr_reader :subscribe
|
197
|
-
end
|
198
|
-
end
|
199
|
-
end
|
200
|
-
end
|
@@ -1,79 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module V2
|
6
|
-
module Billing
|
7
|
-
class LicenseFee < APIResource
|
8
|
-
OBJECT_NAME = "v2.billing.license_fee"
|
9
|
-
def self.object_name
|
10
|
-
"v2.billing.license_fee"
|
11
|
-
end
|
12
|
-
|
13
|
-
class Tier < Stripe::StripeObject
|
14
|
-
# Price for the entire tier, represented as a decimal string in minor currency units with at most 12 decimal places.
|
15
|
-
attr_reader :flat_amount
|
16
|
-
# Per-unit price for units included in this tier, represented as a decimal string in minor currency units with at
|
17
|
-
# most 12 decimal places.
|
18
|
-
attr_reader :unit_amount
|
19
|
-
# Up to and including this quantity will be contained in the tier. Only one of `up_to_decimal` and `up_to_inf` may
|
20
|
-
# be set.
|
21
|
-
attr_reader :up_to_decimal
|
22
|
-
# No upper bound to this tier. Only one of `up_to_decimal` and `up_to_inf` may be set.
|
23
|
-
attr_reader :up_to_inf
|
24
|
-
end
|
25
|
-
|
26
|
-
class TransformQuantity < Stripe::StripeObject
|
27
|
-
# Divide usage by this number.
|
28
|
-
attr_reader :divide_by
|
29
|
-
# After division, round the result up or down.
|
30
|
-
attr_reader :round
|
31
|
-
end
|
32
|
-
# Whether this License Fee is active. Inactive License Fees cannot be used in new activations or be modified.
|
33
|
-
attr_reader :active
|
34
|
-
# Timestamp of when the object was created.
|
35
|
-
attr_reader :created
|
36
|
-
# Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
37
|
-
attr_reader :currency
|
38
|
-
# A customer-facing name for the license fee.
|
39
|
-
# This name is used in Stripe-hosted products like the Customer Portal and Checkout. It does not show up on Invoices.
|
40
|
-
# Maximum length of 250 characters.
|
41
|
-
attr_reader :display_name
|
42
|
-
# Unique identifier for the object.
|
43
|
-
attr_reader :id
|
44
|
-
# The ID of the license fee's most recently created version.
|
45
|
-
attr_reader :latest_version
|
46
|
-
# The Licensed Item that this License Fee binds to.
|
47
|
-
attr_reader :licensed_item
|
48
|
-
# The ID of the License Fee Version that will be used by all subscriptions when no specific version is specified.
|
49
|
-
attr_reader :live_version
|
50
|
-
# An internal key you can use to search for a particular License Fee. Maximum length of 200 characters.
|
51
|
-
attr_reader :lookup_key
|
52
|
-
# Set of [key-value pairs](/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.
|
53
|
-
attr_reader :metadata
|
54
|
-
# String representing the object's type. Objects of the same type share the same value of the object field.
|
55
|
-
attr_reader :object
|
56
|
-
# The interval for assessing service.
|
57
|
-
attr_reader :service_interval
|
58
|
-
# The length of the interval for assessing service. For example, set this to 3 and `service_interval` to `"month"` in
|
59
|
-
# order to specify quarterly service.
|
60
|
-
attr_reader :service_interval_count
|
61
|
-
# The Stripe Tax tax behavior - whether the license fee is inclusive or exclusive of tax.
|
62
|
-
attr_reader :tax_behavior
|
63
|
-
# Defines whether the tiering price should be graduated or volume-based. In volume-based tiering, the maximum
|
64
|
-
# quantity within a period determines the per-unit price. In graduated tiering, the pricing changes as the quantity
|
65
|
-
# grows into new tiers. Can only be set if `tiers` is set.
|
66
|
-
attr_reader :tiering_mode
|
67
|
-
# Each element represents a pricing tier. Cannot be set if `unit_amount` is provided.
|
68
|
-
attr_reader :tiers
|
69
|
-
# Apply a transformation to the reported usage or set quantity before computing the amount billed.
|
70
|
-
attr_reader :transform_quantity
|
71
|
-
# The per-unit amount to be charged, represented as a decimal string in minor currency units with at most 12 decimal
|
72
|
-
# places. Cannot be set if `tiers` is provided.
|
73
|
-
attr_reader :unit_amount
|
74
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
75
|
-
attr_reader :livemode
|
76
|
-
end
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
@@ -1,36 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module V2
|
6
|
-
module Billing
|
7
|
-
class LicenseFeeSubscription < APIResource
|
8
|
-
OBJECT_NAME = "v2.billing.license_fee_subscription"
|
9
|
-
def self.object_name
|
10
|
-
"v2.billing.license_fee_subscription"
|
11
|
-
end
|
12
|
-
|
13
|
-
# The ID of the Billing Cadence.
|
14
|
-
attr_reader :billing_cadence
|
15
|
-
# Timestamp of when the object was created.
|
16
|
-
attr_reader :created
|
17
|
-
# Unique identifier for the object.
|
18
|
-
attr_reader :id
|
19
|
-
# The ID of the License Fee.
|
20
|
-
attr_reader :license_fee
|
21
|
-
# The ID of the License Fee Version.
|
22
|
-
attr_reader :license_fee_version
|
23
|
-
# Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
24
|
-
attr_reader :metadata
|
25
|
-
# String representing the object's type. Objects of the same type share the same value of the object field.
|
26
|
-
attr_reader :object
|
27
|
-
# Quantity of the License Fee subscribed to.
|
28
|
-
attr_reader :quantity
|
29
|
-
# The ID of the Test Clock, if any.
|
30
|
-
attr_reader :test_clock
|
31
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
32
|
-
attr_reader :livemode
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
@@ -1,56 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module V2
|
6
|
-
module Billing
|
7
|
-
class LicenseFeeVersion < APIResource
|
8
|
-
OBJECT_NAME = "v2.billing.license_fee_version"
|
9
|
-
def self.object_name
|
10
|
-
"v2.billing.license_fee_version"
|
11
|
-
end
|
12
|
-
|
13
|
-
class Tier < Stripe::StripeObject
|
14
|
-
# Price for the entire tier, represented as a decimal string in minor currency units with at most 12 decimal places.
|
15
|
-
attr_reader :flat_amount
|
16
|
-
# Per-unit price for units included in this tier, represented as a decimal string in minor currency units with at
|
17
|
-
# most 12 decimal places.
|
18
|
-
attr_reader :unit_amount
|
19
|
-
# Up to and including this quantity will be contained in the tier. Only one of `up_to_decimal` and `up_to_inf` may
|
20
|
-
# be set.
|
21
|
-
attr_reader :up_to_decimal
|
22
|
-
# No upper bound to this tier. Only one of `up_to_decimal` and `up_to_inf` may be set.
|
23
|
-
attr_reader :up_to_inf
|
24
|
-
end
|
25
|
-
|
26
|
-
class TransformQuantity < Stripe::StripeObject
|
27
|
-
# Divide usage by this number.
|
28
|
-
attr_reader :divide_by
|
29
|
-
# After division, round the result up or down.
|
30
|
-
attr_reader :round
|
31
|
-
end
|
32
|
-
# Timestamp of when the object was created.
|
33
|
-
attr_reader :created
|
34
|
-
# Unique identifier for the object.
|
35
|
-
attr_reader :id
|
36
|
-
# The ID of the parent License Fee.
|
37
|
-
attr_reader :license_fee_id
|
38
|
-
# String representing the object's type. Objects of the same type share the same value of the object field.
|
39
|
-
attr_reader :object
|
40
|
-
# Defines whether the tiering price should be graduated or volume-based. In volume-based tiering, the maximum
|
41
|
-
# quantity within a period determines the per-unit price. In graduated tiering, the pricing changes as the quantity
|
42
|
-
# grows into new tiers. Can only be set if `tiers` is set.
|
43
|
-
attr_reader :tiering_mode
|
44
|
-
# Each element represents a pricing tier. Cannot be set if `unit_amount` is provided.
|
45
|
-
attr_reader :tiers
|
46
|
-
# Apply a transformation to the reported usage or set quantity before computing the amount billed.
|
47
|
-
attr_reader :transform_quantity
|
48
|
-
# The per-unit amount to be charged, represented as a decimal string in minor currency units with at most 12 decimal
|
49
|
-
# places. Cannot be set if `tiers` is provided.
|
50
|
-
attr_reader :unit_amount
|
51
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
52
|
-
attr_reader :livemode
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
@@ -1,44 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module V2
|
6
|
-
module Billing
|
7
|
-
# A Licensed Item represents a billable item whose pricing is based on license fees. You can use license fees
|
8
|
-
# to specify the pricing and create subscriptions to these items.
|
9
|
-
class LicensedItem < APIResource
|
10
|
-
OBJECT_NAME = "v2.billing.licensed_item"
|
11
|
-
def self.object_name
|
12
|
-
"v2.billing.licensed_item"
|
13
|
-
end
|
14
|
-
|
15
|
-
class TaxDetails < Stripe::StripeObject
|
16
|
-
# Product tax code (PTC).
|
17
|
-
attr_reader :tax_code
|
18
|
-
end
|
19
|
-
# Timestamp of when the object was created.
|
20
|
-
attr_reader :created
|
21
|
-
# Description that customers will see in the invoice line item.
|
22
|
-
# Maximum length of 250 characters.
|
23
|
-
attr_reader :display_name
|
24
|
-
# Unique identifier for the object.
|
25
|
-
attr_reader :id
|
26
|
-
# An internal key you can use to search for a particular billable item.
|
27
|
-
# Maximum length of 200 characters.
|
28
|
-
attr_reader :lookup_key
|
29
|
-
# Set of [key-value pairs](/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.
|
30
|
-
attr_reader :metadata
|
31
|
-
# String representing the object's type. Objects of the same type share the same value of the object field.
|
32
|
-
attr_reader :object
|
33
|
-
# Stripe Tax details.
|
34
|
-
attr_reader :tax_details
|
35
|
-
# The unit to use when displaying prices for this billable item in places like Checkout. For example, set this field
|
36
|
-
# to "seat" for Checkout to display "(price) per seat", or "environment" to display "(price) per environment".
|
37
|
-
# Maximum length of 100 characters.
|
38
|
-
attr_reader :unit_label
|
39
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
40
|
-
attr_reader :livemode
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
@@ -1,58 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module V2
|
6
|
-
module Billing
|
7
|
-
# A Metered Item represents a billable item whose pricing is based on usage, measured by a meter. You can use rate cards
|
8
|
-
# to specify the pricing and create subscriptions to these items.
|
9
|
-
class MeteredItem < APIResource
|
10
|
-
OBJECT_NAME = "v2.billing.metered_item"
|
11
|
-
def self.object_name
|
12
|
-
"v2.billing.metered_item"
|
13
|
-
end
|
14
|
-
|
15
|
-
class MeterSegmentCondition < Stripe::StripeObject
|
16
|
-
# A Meter dimension.
|
17
|
-
attr_reader :dimension
|
18
|
-
# To count usage towards this metered item, the dimension must have this value.
|
19
|
-
attr_reader :value
|
20
|
-
end
|
21
|
-
|
22
|
-
class TaxDetails < Stripe::StripeObject
|
23
|
-
# Product tax code (PTC).
|
24
|
-
attr_reader :tax_code
|
25
|
-
end
|
26
|
-
# Timestamp of when the object was created.
|
27
|
-
attr_reader :created
|
28
|
-
# Description that customers will see in the invoice line item.
|
29
|
-
# Maximum length of 250 characters.
|
30
|
-
attr_reader :display_name
|
31
|
-
# Unique identifier for the object.
|
32
|
-
attr_reader :id
|
33
|
-
# Optional array of Meter dimensions to group event dimension keys for invoice line items.
|
34
|
-
attr_reader :invoice_presentation_dimensions
|
35
|
-
# An internal key you can use to search for a particular billable item.
|
36
|
-
# Maximum length of 200 characters.
|
37
|
-
attr_reader :lookup_key
|
38
|
-
# Set of [key-value pairs](/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.
|
39
|
-
attr_reader :metadata
|
40
|
-
# ID of the Meter that measures usage for this Metered Item.
|
41
|
-
attr_reader :meter
|
42
|
-
# Optional array of Meter segments to filter event dimension keys for billing.
|
43
|
-
attr_reader :meter_segment_conditions
|
44
|
-
# String representing the object's type. Objects of the same type share the same value of the object field.
|
45
|
-
attr_reader :object
|
46
|
-
# Stripe Tax details.
|
47
|
-
attr_reader :tax_details
|
48
|
-
# The unit to use when displaying prices for this billable item in places like Checkout. For example, set this field
|
49
|
-
# to "CPU-hour" for Checkout to display "(price) per CPU-hour", or "1 million events" to display "(price) per 1
|
50
|
-
# million events".
|
51
|
-
# Maximum length of 100 characters.
|
52
|
-
attr_reader :unit_label
|
53
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
54
|
-
attr_reader :livemode
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
@@ -1,43 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module V2
|
6
|
-
module Billing
|
7
|
-
class PricingPlan < APIResource
|
8
|
-
OBJECT_NAME = "v2.billing.pricing_plan"
|
9
|
-
def self.object_name
|
10
|
-
"v2.billing.pricing_plan"
|
11
|
-
end
|
12
|
-
|
13
|
-
# Whether the PricingPlan is active.
|
14
|
-
attr_reader :active
|
15
|
-
# Time at which the object was created.
|
16
|
-
attr_reader :created
|
17
|
-
# The currency of the PricingPlan.
|
18
|
-
attr_reader :currency
|
19
|
-
# A description for pricing plan subscription.
|
20
|
-
# Maximum length of 500 characters.
|
21
|
-
attr_reader :description
|
22
|
-
# Display name of the PricingPlan.
|
23
|
-
attr_reader :display_name
|
24
|
-
# Unique identifier for the object.
|
25
|
-
attr_reader :id
|
26
|
-
# The ID of the latest version of the PricingPlan.
|
27
|
-
attr_reader :latest_version
|
28
|
-
# The ID of the live version of the PricingPlan.
|
29
|
-
attr_reader :live_version
|
30
|
-
# An internal key you can use to search for a particular PricingPlan. Maximum length of 200 characters.
|
31
|
-
attr_reader :lookup_key
|
32
|
-
# Set of [key-value pairs](/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.
|
33
|
-
attr_reader :metadata
|
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
|
-
# The Stripe Tax tax behavior - whether the PricingPlan is inclusive or exclusive of tax.
|
37
|
-
attr_reader :tax_behavior
|
38
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
39
|
-
attr_reader :livemode
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
@@ -1,58 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module V2
|
6
|
-
module Billing
|
7
|
-
class PricingPlanComponent < APIResource
|
8
|
-
OBJECT_NAME = "v2.billing.pricing_plan_component"
|
9
|
-
def self.object_name
|
10
|
-
"v2.billing.pricing_plan_component"
|
11
|
-
end
|
12
|
-
|
13
|
-
class LicenseFee < Stripe::StripeObject
|
14
|
-
# The ID of the License Fee.
|
15
|
-
attr_reader :id
|
16
|
-
# The version of the LicenseFee. Defaults to 'latest', if not specified.
|
17
|
-
attr_reader :version
|
18
|
-
end
|
19
|
-
|
20
|
-
class RateCard < Stripe::StripeObject
|
21
|
-
# The ID of the Rate Card.
|
22
|
-
attr_reader :id
|
23
|
-
# The version of the RateCard. Defaults to 'latest', if not specified.
|
24
|
-
attr_reader :version
|
25
|
-
end
|
26
|
-
|
27
|
-
class ServiceAction < Stripe::StripeObject
|
28
|
-
# The ID of the service action.
|
29
|
-
attr_reader :id
|
30
|
-
end
|
31
|
-
# Time at which the object was created.
|
32
|
-
attr_reader :created
|
33
|
-
# Unique identifier for the object.
|
34
|
-
attr_reader :id
|
35
|
-
# An internal key you can use to search for a particular PricingPlanComponent.
|
36
|
-
attr_reader :lookup_key
|
37
|
-
# Set of [key-value pairs](/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.
|
38
|
-
attr_reader :metadata
|
39
|
-
# String representing the object's type. Objects of the same type share the same value of the object field.
|
40
|
-
attr_reader :object
|
41
|
-
# The ID of the Pricing Plan this component belongs to.
|
42
|
-
attr_reader :pricing_plan
|
43
|
-
# The ID of the Pricing Plan Version this component belongs to.
|
44
|
-
attr_reader :pricing_plan_version
|
45
|
-
# The type of the PricingPlanComponent.
|
46
|
-
attr_reader :type
|
47
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
48
|
-
attr_reader :livemode
|
49
|
-
# Details if this component is a License Fee.
|
50
|
-
attr_reader :license_fee
|
51
|
-
# Details if this component is a Rate Card.
|
52
|
-
attr_reader :rate_card
|
53
|
-
# Details if this component is a Service Action.
|
54
|
-
attr_reader :service_action
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|