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
@@ -14,37 +14,12 @@ module Stripe
|
|
14
14
|
|
15
15
|
class Credit < Stripe::StripeObject
|
16
16
|
class Amount < Stripe::StripeObject
|
17
|
-
class CustomPricingUnit < Stripe::StripeObject
|
18
|
-
class CustomPricingUnitDetails < Stripe::StripeObject
|
19
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
20
|
-
attr_reader :created
|
21
|
-
# The name of the custom pricing unit.
|
22
|
-
attr_reader :display_name
|
23
|
-
# Unique identifier for the object.
|
24
|
-
attr_reader :id
|
25
|
-
# A lookup key for the custom pricing unit.
|
26
|
-
attr_reader :lookup_key
|
27
|
-
# 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.
|
28
|
-
attr_reader :metadata
|
29
|
-
# The status of the custom pricing unit.
|
30
|
-
attr_reader :status
|
31
|
-
end
|
32
|
-
# The custom pricing unit object.
|
33
|
-
attr_reader :custom_pricing_unit_details
|
34
|
-
# Unique identifier for the object.
|
35
|
-
attr_reader :id
|
36
|
-
# A positive integer representing the amount.
|
37
|
-
attr_reader :value
|
38
|
-
end
|
39
|
-
|
40
17
|
class Monetary < Stripe::StripeObject
|
41
18
|
# 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).
|
42
19
|
attr_reader :currency
|
43
20
|
# A positive integer representing the amount.
|
44
21
|
attr_reader :value
|
45
22
|
end
|
46
|
-
# The custom pricing unit amount.
|
47
|
-
attr_reader :custom_pricing_unit
|
48
23
|
# The monetary amount.
|
49
24
|
attr_reader :monetary
|
50
25
|
# The type of this amount. We currently only support `monetary` billing credits.
|
@@ -67,37 +42,12 @@ module Stripe
|
|
67
42
|
|
68
43
|
class Debit < Stripe::StripeObject
|
69
44
|
class Amount < Stripe::StripeObject
|
70
|
-
class CustomPricingUnit < Stripe::StripeObject
|
71
|
-
class CustomPricingUnitDetails < Stripe::StripeObject
|
72
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
73
|
-
attr_reader :created
|
74
|
-
# The name of the custom pricing unit.
|
75
|
-
attr_reader :display_name
|
76
|
-
# Unique identifier for the object.
|
77
|
-
attr_reader :id
|
78
|
-
# A lookup key for the custom pricing unit.
|
79
|
-
attr_reader :lookup_key
|
80
|
-
# 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.
|
81
|
-
attr_reader :metadata
|
82
|
-
# The status of the custom pricing unit.
|
83
|
-
attr_reader :status
|
84
|
-
end
|
85
|
-
# The custom pricing unit object.
|
86
|
-
attr_reader :custom_pricing_unit_details
|
87
|
-
# Unique identifier for the object.
|
88
|
-
attr_reader :id
|
89
|
-
# A positive integer representing the amount.
|
90
|
-
attr_reader :value
|
91
|
-
end
|
92
|
-
|
93
45
|
class Monetary < Stripe::StripeObject
|
94
46
|
# 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).
|
95
47
|
attr_reader :currency
|
96
48
|
# A positive integer representing the amount.
|
97
49
|
attr_reader :value
|
98
50
|
end
|
99
|
-
# The custom pricing unit amount.
|
100
|
-
attr_reader :custom_pricing_unit
|
101
51
|
# The monetary amount.
|
102
52
|
attr_reader :monetary
|
103
53
|
# The type of this amount. We currently only support `monetary` billing credits.
|
@@ -17,37 +17,12 @@ module Stripe
|
|
17
17
|
end
|
18
18
|
|
19
19
|
class Amount < Stripe::StripeObject
|
20
|
-
class CustomPricingUnit < Stripe::StripeObject
|
21
|
-
class CustomPricingUnitDetails < Stripe::StripeObject
|
22
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
23
|
-
attr_reader :created
|
24
|
-
# The name of the custom pricing unit.
|
25
|
-
attr_reader :display_name
|
26
|
-
# Unique identifier for the object.
|
27
|
-
attr_reader :id
|
28
|
-
# A lookup key for the custom pricing unit.
|
29
|
-
attr_reader :lookup_key
|
30
|
-
# 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.
|
31
|
-
attr_reader :metadata
|
32
|
-
# The status of the custom pricing unit.
|
33
|
-
attr_reader :status
|
34
|
-
end
|
35
|
-
# The custom pricing unit object.
|
36
|
-
attr_reader :custom_pricing_unit_details
|
37
|
-
# Unique identifier for the object.
|
38
|
-
attr_reader :id
|
39
|
-
# A positive integer representing the amount.
|
40
|
-
attr_reader :value
|
41
|
-
end
|
42
|
-
|
43
20
|
class Monetary < Stripe::StripeObject
|
44
21
|
# 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).
|
45
22
|
attr_reader :currency
|
46
23
|
# A positive integer representing the amount.
|
47
24
|
attr_reader :value
|
48
25
|
end
|
49
|
-
# The custom pricing unit amount.
|
50
|
-
attr_reader :custom_pricing_unit
|
51
26
|
# The monetary amount.
|
52
27
|
attr_reader :monetary
|
53
28
|
# The type of this amount. We currently only support `monetary` billing credits.
|
@@ -56,17 +31,10 @@ module Stripe
|
|
56
31
|
|
57
32
|
class ApplicabilityConfig < Stripe::StripeObject
|
58
33
|
class Scope < Stripe::StripeObject
|
59
|
-
class BillableItem < Stripe::StripeObject
|
60
|
-
# Unique identifier for the object.
|
61
|
-
attr_reader :id
|
62
|
-
end
|
63
|
-
|
64
34
|
class Price < Stripe::StripeObject
|
65
35
|
# Unique identifier for the object.
|
66
36
|
attr_reader :id
|
67
37
|
end
|
68
|
-
# The billable items that credit grants can apply to. We currently only support metered billable items. Cannot be used in combination with `price_type` or `prices`.
|
69
|
-
attr_reader :billable_items
|
70
38
|
# The price type that credit grants can apply to. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `prices`.
|
71
39
|
attr_reader :price_type
|
72
40
|
# The prices that credit grants can apply to. We currently only support `metered` prices. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `price_type`.
|
@@ -109,18 +77,6 @@ module Stripe
|
|
109
77
|
|
110
78
|
class CreateParams < Stripe::RequestParams
|
111
79
|
class Amount < Stripe::RequestParams
|
112
|
-
class CustomPricingUnit < Stripe::RequestParams
|
113
|
-
# The ID of the custom pricing unit.
|
114
|
-
attr_accessor :id
|
115
|
-
# A positive integer representing the amount of the credit grant.
|
116
|
-
attr_accessor :value
|
117
|
-
|
118
|
-
def initialize(id: nil, value: nil)
|
119
|
-
@id = id
|
120
|
-
@value = value
|
121
|
-
end
|
122
|
-
end
|
123
|
-
|
124
80
|
class Monetary < Stripe::RequestParams
|
125
81
|
# Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `value` parameter.
|
126
82
|
attr_accessor :currency
|
@@ -132,15 +88,12 @@ module Stripe
|
|
132
88
|
@value = value
|
133
89
|
end
|
134
90
|
end
|
135
|
-
# The custom pricing unit amount.
|
136
|
-
attr_accessor :custom_pricing_unit
|
137
91
|
# The monetary amount.
|
138
92
|
attr_accessor :monetary
|
139
93
|
# The type of this amount. We currently only support `monetary` billing credits.
|
140
94
|
attr_accessor :type
|
141
95
|
|
142
|
-
def initialize(
|
143
|
-
@custom_pricing_unit = custom_pricing_unit
|
96
|
+
def initialize(monetary: nil, type: nil)
|
144
97
|
@monetary = monetary
|
145
98
|
@type = type
|
146
99
|
end
|
@@ -148,15 +101,6 @@ module Stripe
|
|
148
101
|
|
149
102
|
class ApplicabilityConfig < Stripe::RequestParams
|
150
103
|
class Scope < Stripe::RequestParams
|
151
|
-
class BillableItem < Stripe::RequestParams
|
152
|
-
# The billable item ID this credit grant should apply to.
|
153
|
-
attr_accessor :id
|
154
|
-
|
155
|
-
def initialize(id: nil)
|
156
|
-
@id = id
|
157
|
-
end
|
158
|
-
end
|
159
|
-
|
160
104
|
class Price < Stripe::RequestParams
|
161
105
|
# The price ID this credit grant should apply to.
|
162
106
|
attr_accessor :id
|
@@ -165,15 +109,12 @@ module Stripe
|
|
165
109
|
@id = id
|
166
110
|
end
|
167
111
|
end
|
168
|
-
# A list of billable items that the credit grant can apply to. We currently only support metered billable items. Cannot be used in combination with `price_type` or `prices`.
|
169
|
-
attr_accessor :billable_items
|
170
112
|
# The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.
|
171
113
|
attr_accessor :price_type
|
172
114
|
# A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`.
|
173
115
|
attr_accessor :prices
|
174
116
|
|
175
|
-
def initialize(
|
176
|
-
@billable_items = billable_items
|
117
|
+
def initialize(price_type: nil, prices: nil)
|
177
118
|
@price_type = price_type
|
178
119
|
@prices = prices
|
179
120
|
end
|
@@ -899,6 +899,10 @@ module Stripe
|
|
899
899
|
end
|
900
900
|
|
901
901
|
class Paynow < Stripe::StripeObject
|
902
|
+
# ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to.
|
903
|
+
attr_reader :location
|
904
|
+
# ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on.
|
905
|
+
attr_reader :reader
|
902
906
|
# Reference number associated with this PayNow payment
|
903
907
|
attr_reader :reference
|
904
908
|
end
|
@@ -1142,52 +1142,6 @@ module Stripe
|
|
1142
1142
|
attr_reader :link
|
1143
1143
|
end
|
1144
1144
|
|
1145
|
-
class CheckoutItem < Stripe::StripeObject
|
1146
|
-
class PricingPlanSubscriptionItem < Stripe::StripeObject
|
1147
|
-
class ComponentConfigurations < Stripe::StripeObject
|
1148
|
-
class LicenseFeeComponent < Stripe::StripeObject
|
1149
|
-
# Attribute for field quantity
|
1150
|
-
attr_reader :quantity
|
1151
|
-
end
|
1152
|
-
# Attribute for field type
|
1153
|
-
attr_reader :type
|
1154
|
-
# Attribute for field license_fee_component
|
1155
|
-
attr_reader :license_fee_component
|
1156
|
-
end
|
1157
|
-
# Attribute for field pricing_plan
|
1158
|
-
attr_reader :pricing_plan
|
1159
|
-
# Attribute for field pricing_plan_version
|
1160
|
-
attr_reader :pricing_plan_version
|
1161
|
-
# Attribute for field metadata
|
1162
|
-
attr_reader :metadata
|
1163
|
-
# Attribute for field component_configurations
|
1164
|
-
attr_reader :component_configurations
|
1165
|
-
# Attribute for field pricing_plan_subscription
|
1166
|
-
attr_reader :pricing_plan_subscription
|
1167
|
-
# Attribute for field billing_cadence
|
1168
|
-
attr_reader :billing_cadence
|
1169
|
-
end
|
1170
|
-
|
1171
|
-
class RateCardSubscriptionItem < Stripe::StripeObject
|
1172
|
-
# Attribute for field rate_card
|
1173
|
-
attr_reader :rate_card
|
1174
|
-
# Attribute for field metadata
|
1175
|
-
attr_reader :metadata
|
1176
|
-
# Attribute for field rate_card_version
|
1177
|
-
attr_reader :rate_card_version
|
1178
|
-
# Attribute for field billing_cadence
|
1179
|
-
attr_reader :billing_cadence
|
1180
|
-
# Attribute for field rate_card_subscription
|
1181
|
-
attr_reader :rate_card_subscription
|
1182
|
-
end
|
1183
|
-
# Attribute for field type
|
1184
|
-
attr_reader :type
|
1185
|
-
# Attribute for field rate_card_subscription_item
|
1186
|
-
attr_reader :rate_card_subscription_item
|
1187
|
-
# Attribute for field pricing_plan_subscription_item
|
1188
|
-
attr_reader :pricing_plan_subscription_item
|
1189
|
-
end
|
1190
|
-
|
1191
1145
|
class ListParams < Stripe::RequestParams
|
1192
1146
|
class Created < Stripe::RequestParams
|
1193
1147
|
# Minimum value to filter by (exclusive)
|
@@ -1326,81 +1280,6 @@ module Stripe
|
|
1326
1280
|
end
|
1327
1281
|
end
|
1328
1282
|
|
1329
|
-
class CheckoutItem < Stripe::RequestParams
|
1330
|
-
class PricingPlanSubscriptionItem < Stripe::RequestParams
|
1331
|
-
class ComponentConfigurations < Stripe::RequestParams
|
1332
|
-
class LicenseFeeComponent < Stripe::RequestParams
|
1333
|
-
# Attribute for param field quantity
|
1334
|
-
attr_accessor :quantity
|
1335
|
-
|
1336
|
-
def initialize(quantity: nil)
|
1337
|
-
@quantity = quantity
|
1338
|
-
end
|
1339
|
-
end
|
1340
|
-
# Attribute for param field type
|
1341
|
-
attr_accessor :type
|
1342
|
-
# Attribute for param field license_fee_component
|
1343
|
-
attr_accessor :license_fee_component
|
1344
|
-
|
1345
|
-
def initialize(type: nil, license_fee_component: nil)
|
1346
|
-
@type = type
|
1347
|
-
@license_fee_component = license_fee_component
|
1348
|
-
end
|
1349
|
-
end
|
1350
|
-
# Attribute for param field pricing_plan
|
1351
|
-
attr_accessor :pricing_plan
|
1352
|
-
# Attribute for param field pricing_plan_version
|
1353
|
-
attr_accessor :pricing_plan_version
|
1354
|
-
# Attribute for param field metadata
|
1355
|
-
attr_accessor :metadata
|
1356
|
-
# Attribute for param field component_configurations
|
1357
|
-
attr_accessor :component_configurations
|
1358
|
-
|
1359
|
-
def initialize(
|
1360
|
-
pricing_plan: nil,
|
1361
|
-
pricing_plan_version: nil,
|
1362
|
-
metadata: nil,
|
1363
|
-
component_configurations: nil
|
1364
|
-
)
|
1365
|
-
@pricing_plan = pricing_plan
|
1366
|
-
@pricing_plan_version = pricing_plan_version
|
1367
|
-
@metadata = metadata
|
1368
|
-
@component_configurations = component_configurations
|
1369
|
-
end
|
1370
|
-
end
|
1371
|
-
|
1372
|
-
class RateCardSubscriptionItem < Stripe::RequestParams
|
1373
|
-
# Attribute for param field rate_card
|
1374
|
-
attr_accessor :rate_card
|
1375
|
-
# Attribute for param field metadata
|
1376
|
-
attr_accessor :metadata
|
1377
|
-
# Attribute for param field rate_card_version
|
1378
|
-
attr_accessor :rate_card_version
|
1379
|
-
|
1380
|
-
def initialize(rate_card: nil, metadata: nil, rate_card_version: nil)
|
1381
|
-
@rate_card = rate_card
|
1382
|
-
@metadata = metadata
|
1383
|
-
@rate_card_version = rate_card_version
|
1384
|
-
end
|
1385
|
-
end
|
1386
|
-
# Attribute for param field type
|
1387
|
-
attr_accessor :type
|
1388
|
-
# Attribute for param field rate_card_subscription_item
|
1389
|
-
attr_accessor :rate_card_subscription_item
|
1390
|
-
# Attribute for param field pricing_plan_subscription_item
|
1391
|
-
attr_accessor :pricing_plan_subscription_item
|
1392
|
-
|
1393
|
-
def initialize(
|
1394
|
-
type: nil,
|
1395
|
-
rate_card_subscription_item: nil,
|
1396
|
-
pricing_plan_subscription_item: nil
|
1397
|
-
)
|
1398
|
-
@type = type
|
1399
|
-
@rate_card_subscription_item = rate_card_subscription_item
|
1400
|
-
@pricing_plan_subscription_item = pricing_plan_subscription_item
|
1401
|
-
end
|
1402
|
-
end
|
1403
|
-
|
1404
1283
|
class ConsentCollection < Stripe::RequestParams
|
1405
1284
|
class PaymentMethodReuseAgreement < Stripe::RequestParams
|
1406
1285
|
# Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's
|
@@ -3657,8 +3536,6 @@ module Stripe
|
|
3657
3536
|
attr_accessor :ui_mode
|
3658
3537
|
# Wallet-specific configuration.
|
3659
3538
|
attr_accessor :wallet_options
|
3660
|
-
# Attribute for param field checkout_items
|
3661
|
-
attr_accessor :checkout_items
|
3662
3539
|
|
3663
3540
|
def initialize(
|
3664
3541
|
adaptive_pricing: nil,
|
@@ -3706,8 +3583,7 @@ module Stripe
|
|
3706
3583
|
success_url: nil,
|
3707
3584
|
tax_id_collection: nil,
|
3708
3585
|
ui_mode: nil,
|
3709
|
-
wallet_options: nil
|
3710
|
-
checkout_items: nil
|
3586
|
+
wallet_options: nil
|
3711
3587
|
)
|
3712
3588
|
@adaptive_pricing = adaptive_pricing
|
3713
3589
|
@after_expiration = after_expiration
|
@@ -3755,7 +3631,6 @@ module Stripe
|
|
3755
3631
|
@tax_id_collection = tax_id_collection
|
3756
3632
|
@ui_mode = ui_mode
|
3757
3633
|
@wallet_options = wallet_options
|
3758
|
-
@checkout_items = checkout_items
|
3759
3634
|
end
|
3760
3635
|
end
|
3761
3636
|
|
@@ -4302,8 +4177,6 @@ module Stripe
|
|
4302
4177
|
attr_reader :url
|
4303
4178
|
# Wallet-specific configuration for this Checkout Session.
|
4304
4179
|
attr_reader :wallet_options
|
4305
|
-
# Attribute for field checkout_items
|
4306
|
-
attr_reader :checkout_items
|
4307
4180
|
|
4308
4181
|
# Creates a Checkout Session object.
|
4309
4182
|
def self.create(params = {}, opts = {})
|
@@ -234,11 +234,6 @@ module Stripe
|
|
234
234
|
end
|
235
235
|
|
236
236
|
class Parent < Stripe::StripeObject
|
237
|
-
class BillingCadenceDetails < Stripe::StripeObject
|
238
|
-
# The billing cadence that generated this invoice
|
239
|
-
attr_reader :billing_cadence
|
240
|
-
end
|
241
|
-
|
242
237
|
class QuoteDetails < Stripe::StripeObject
|
243
238
|
# The quote that generated this invoice
|
244
239
|
attr_reader :quote
|
@@ -261,8 +256,6 @@ module Stripe
|
|
261
256
|
# Only set for upcoming invoices that preview prorations. The time used to calculate prorations.
|
262
257
|
attr_reader :subscription_proration_date
|
263
258
|
end
|
264
|
-
# Details about the billing cadence that generated this invoice
|
265
|
-
attr_reader :billing_cadence_details
|
266
259
|
# Details about the quote that generated this invoice
|
267
260
|
attr_reader :quote_details
|
268
261
|
# Details about the subscription that generated this invoice
|
@@ -4283,8 +4276,6 @@ module Stripe
|
|
4283
4276
|
end
|
4284
4277
|
# Settings for automatic tax lookup for this invoice preview.
|
4285
4278
|
attr_accessor :automatic_tax
|
4286
|
-
# The identifier of the billing cadence for which you’d like to retrieve the upcoming invoice.Cannot be provided when `subscription`, `schedule`, `subscription_details` or `schedule_details` are provided.
|
4287
|
-
attr_accessor :billing_cadence
|
4288
4279
|
# The currency to preview this invoice in. Defaults to that of `customer` if not specified.
|
4289
4280
|
attr_accessor :currency
|
4290
4281
|
# The identifier of the customer whose upcoming invoice you'd like to retrieve. If `automatic_tax` is enabled then one of `customer`, `customer_details`, `subscription`, or `schedule` must be set.
|
@@ -4316,7 +4307,6 @@ module Stripe
|
|
4316
4307
|
|
4317
4308
|
def initialize(
|
4318
4309
|
automatic_tax: nil,
|
4319
|
-
billing_cadence: nil,
|
4320
4310
|
currency: nil,
|
4321
4311
|
customer: nil,
|
4322
4312
|
customer_account: nil,
|
@@ -4333,7 +4323,6 @@ module Stripe
|
|
4333
4323
|
subscription_details: nil
|
4334
4324
|
)
|
4335
4325
|
@automatic_tax = automatic_tax
|
4336
|
-
@billing_cadence = billing_cadence
|
4337
4326
|
@currency = currency
|
4338
4327
|
@customer = customer
|
4339
4328
|
@customer_account = customer_account
|
@@ -22,38 +22,12 @@ module Stripe
|
|
22
22
|
end
|
23
23
|
|
24
24
|
class Parent < Stripe::StripeObject
|
25
|
-
class LicenseFeeSubscriptionDetails < Stripe::StripeObject
|
26
|
-
# The license fee subscription that generated this invoice item
|
27
|
-
attr_reader :license_fee_subscription
|
28
|
-
# The license fee version that generated this invoice item
|
29
|
-
attr_reader :license_fee_version
|
30
|
-
# The pricing plan subscription that manages the license fee subscription
|
31
|
-
attr_reader :pricing_plan_subscription
|
32
|
-
# The pricing plan version at the time this invoice item was generated
|
33
|
-
attr_reader :pricing_plan_version
|
34
|
-
end
|
35
|
-
|
36
|
-
class RateCardSubscriptionDetails < Stripe::StripeObject
|
37
|
-
# The pricing plan subscription that manages the rate card subscription
|
38
|
-
attr_reader :pricing_plan_subscription
|
39
|
-
# The pricing plan version at the time this invoice item was generated
|
40
|
-
attr_reader :pricing_plan_version
|
41
|
-
# The rate card subscription that generated this invoice item
|
42
|
-
attr_reader :rate_card_subscription
|
43
|
-
# The rate card version that generated this invoice item
|
44
|
-
attr_reader :rate_card_version
|
45
|
-
end
|
46
|
-
|
47
25
|
class SubscriptionDetails < Stripe::StripeObject
|
48
26
|
# The subscription that generated this invoice item
|
49
27
|
attr_reader :subscription
|
50
28
|
# The subscription item that generated this invoice item
|
51
29
|
attr_reader :subscription_item
|
52
30
|
end
|
53
|
-
# Details about the license fee subscription that generated this invoice item
|
54
|
-
attr_reader :license_fee_subscription_details
|
55
|
-
# Details about the rate card subscription that generated this invoice item
|
56
|
-
attr_reader :rate_card_subscription_details
|
57
31
|
# Details about the subscription that generated this invoice item
|
58
32
|
attr_reader :subscription_details
|
59
33
|
# The type of parent that generated this invoice item
|
@@ -68,36 +42,14 @@ module Stripe
|
|
68
42
|
end
|
69
43
|
|
70
44
|
class Pricing < Stripe::StripeObject
|
71
|
-
class LicenseFeeDetails < Stripe::StripeObject
|
72
|
-
# The ID of the license fee this item is associated with
|
73
|
-
attr_reader :license_fee
|
74
|
-
# The version of the license fee this item is associated with
|
75
|
-
attr_reader :license_fee_version
|
76
|
-
# The ID of the licensed item this item is associated with
|
77
|
-
attr_reader :licensed_item
|
78
|
-
end
|
79
|
-
|
80
45
|
class PriceDetails < Stripe::StripeObject
|
81
46
|
# The ID of the price this item is associated with.
|
82
47
|
attr_reader :price
|
83
48
|
# The ID of the product this item is associated with.
|
84
49
|
attr_reader :product
|
85
50
|
end
|
86
|
-
|
87
|
-
class RateCardRateDetails < Stripe::StripeObject
|
88
|
-
# The ID of billable item this item is associated with
|
89
|
-
attr_reader :metered_item
|
90
|
-
# The ID of the rate card this item is associated with
|
91
|
-
attr_reader :rate_card
|
92
|
-
# The ID of the rate card rate this item is associated with
|
93
|
-
attr_reader :rate_card_rate
|
94
|
-
end
|
95
|
-
# Attribute for field license_fee_details
|
96
|
-
attr_reader :license_fee_details
|
97
51
|
# Attribute for field price_details
|
98
52
|
attr_reader :price_details
|
99
|
-
# Attribute for field rate_card_rate_details
|
100
|
-
attr_reader :rate_card_rate_details
|
101
53
|
# The type of the pricing details.
|
102
54
|
attr_reader :type
|
103
55
|
# The unit amount (in the `currency` specified) of the item which contains a decimal value with at most 12 decimal places.
|
@@ -49,32 +49,6 @@ module Stripe
|
|
49
49
|
attr_reader :subscription
|
50
50
|
end
|
51
51
|
|
52
|
-
class LicenseFeeSubscriptionDetails < Stripe::StripeObject
|
53
|
-
# The invoice item that generated this line item
|
54
|
-
attr_reader :invoice_item
|
55
|
-
# The license fee subscription that generated this line item
|
56
|
-
attr_reader :license_fee_subscription
|
57
|
-
# The license fee version at the time this line item was generated
|
58
|
-
attr_reader :license_fee_version
|
59
|
-
# The pricing plan subscription that manages the license fee subscription
|
60
|
-
attr_reader :pricing_plan_subscription
|
61
|
-
# The pricing plan version at the time this line item was generated
|
62
|
-
attr_reader :pricing_plan_version
|
63
|
-
end
|
64
|
-
|
65
|
-
class RateCardSubscriptionDetails < Stripe::StripeObject
|
66
|
-
# The invoice item that generated this line item
|
67
|
-
attr_reader :invoice_item
|
68
|
-
# The pricing plan subscription that manages the rate card subscription
|
69
|
-
attr_reader :pricing_plan_subscription
|
70
|
-
# The pricing plan version at the time this line item was generated
|
71
|
-
attr_reader :pricing_plan_version
|
72
|
-
# The rate card subscription that generated this line item
|
73
|
-
attr_reader :rate_card_subscription
|
74
|
-
# The rate card version at the time this line item was generated
|
75
|
-
attr_reader :rate_card_version
|
76
|
-
end
|
77
|
-
|
78
52
|
class SubscriptionItemDetails < Stripe::StripeObject
|
79
53
|
class ProrationDetails < Stripe::StripeObject
|
80
54
|
class CreditedItems < Stripe::StripeObject
|
@@ -99,10 +73,6 @@ module Stripe
|
|
99
73
|
end
|
100
74
|
# Details about the invoice item that generated this line item
|
101
75
|
attr_reader :invoice_item_details
|
102
|
-
# Details about the license fee subscription that generated this line item
|
103
|
-
attr_reader :license_fee_subscription_details
|
104
|
-
# Details about the rate card subscription that generated this line item
|
105
|
-
attr_reader :rate_card_subscription_details
|
106
76
|
# Details about the subscription item that generated this line item
|
107
77
|
attr_reader :subscription_item_details
|
108
78
|
# The type of parent that generated this line item
|
@@ -130,36 +100,14 @@ module Stripe
|
|
130
100
|
end
|
131
101
|
|
132
102
|
class Pricing < Stripe::StripeObject
|
133
|
-
class LicenseFeeDetails < Stripe::StripeObject
|
134
|
-
# The ID of the license fee this item is associated with
|
135
|
-
attr_reader :license_fee
|
136
|
-
# The version of the license fee this item is associated with
|
137
|
-
attr_reader :license_fee_version
|
138
|
-
# The ID of the licensed item this item is associated with
|
139
|
-
attr_reader :licensed_item
|
140
|
-
end
|
141
|
-
|
142
103
|
class PriceDetails < Stripe::StripeObject
|
143
104
|
# The ID of the price this item is associated with.
|
144
105
|
attr_reader :price
|
145
106
|
# The ID of the product this item is associated with.
|
146
107
|
attr_reader :product
|
147
108
|
end
|
148
|
-
|
149
|
-
class RateCardRateDetails < Stripe::StripeObject
|
150
|
-
# The ID of billable item this item is associated with
|
151
|
-
attr_reader :metered_item
|
152
|
-
# The ID of the rate card this item is associated with
|
153
|
-
attr_reader :rate_card
|
154
|
-
# The ID of the rate card rate this item is associated with
|
155
|
-
attr_reader :rate_card_rate
|
156
|
-
end
|
157
|
-
# Attribute for field license_fee_details
|
158
|
-
attr_reader :license_fee_details
|
159
109
|
# Attribute for field price_details
|
160
110
|
attr_reader :price_details
|
161
|
-
# Attribute for field rate_card_rate_details
|
162
|
-
attr_reader :rate_card_rate_details
|
163
111
|
# The type of the pricing details.
|
164
112
|
attr_reader :type
|
165
113
|
# The unit amount (in the `currency` specified) of the item which contains a decimal value with at most 12 decimal places.
|
@@ -343,6 +343,10 @@ module Stripe
|
|
343
343
|
attr_accessor :cardholder
|
344
344
|
# The currency for the card.
|
345
345
|
attr_accessor :currency
|
346
|
+
# The desired expiration month (1-12) for this card if [specifying a custom expiration date](/issuing/cards/virtual/issue-cards?testing-method=with-code#exp-dates).
|
347
|
+
attr_accessor :exp_month
|
348
|
+
# The desired 4-digit expiration year for this card if [specifying a custom expiration date](/issuing/cards/virtual/issue-cards?testing-method=with-code#exp-dates).
|
349
|
+
attr_accessor :exp_year
|
346
350
|
# Specifies which fields in the response should be expanded.
|
347
351
|
attr_accessor :expand
|
348
352
|
# The new financial account ID the card will be associated with. This field allows a card to be reassigned to a different financial account.
|
@@ -371,6 +375,8 @@ module Stripe
|
|
371
375
|
def initialize(
|
372
376
|
cardholder: nil,
|
373
377
|
currency: nil,
|
378
|
+
exp_month: nil,
|
379
|
+
exp_year: nil,
|
374
380
|
expand: nil,
|
375
381
|
financial_account: nil,
|
376
382
|
metadata: nil,
|
@@ -386,6 +392,8 @@ module Stripe
|
|
386
392
|
)
|
387
393
|
@cardholder = cardholder
|
388
394
|
@currency = currency
|
395
|
+
@exp_month = exp_month
|
396
|
+
@exp_year = exp_year
|
389
397
|
@expand = expand
|
390
398
|
@financial_account = financial_account
|
391
399
|
@metadata = metadata
|
@@ -691,6 +691,10 @@ module Stripe
|
|
691
691
|
end
|
692
692
|
|
693
693
|
class Paynow < Stripe::StripeObject
|
694
|
+
# ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to.
|
695
|
+
attr_reader :location
|
696
|
+
# ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on.
|
697
|
+
attr_reader :reader
|
694
698
|
# Reference number associated with this PayNow payment
|
695
699
|
attr_reader :reference
|
696
700
|
end
|
@@ -689,6 +689,10 @@ module Stripe
|
|
689
689
|
end
|
690
690
|
|
691
691
|
class Paynow < Stripe::StripeObject
|
692
|
+
# ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to.
|
693
|
+
attr_reader :location
|
694
|
+
# ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on.
|
695
|
+
attr_reader :reader
|
692
696
|
# Reference number associated with this PayNow payment
|
693
697
|
attr_reader :reference
|
694
698
|
end
|
@@ -234,11 +234,6 @@ module Stripe
|
|
234
234
|
end
|
235
235
|
|
236
236
|
class Parent < Stripe::StripeObject
|
237
|
-
class BillingCadenceDetails < Stripe::StripeObject
|
238
|
-
# The billing cadence that generated this invoice
|
239
|
-
attr_reader :billing_cadence
|
240
|
-
end
|
241
|
-
|
242
237
|
class QuoteDetails < Stripe::StripeObject
|
243
238
|
# The quote that generated this invoice
|
244
239
|
attr_reader :quote
|
@@ -261,8 +256,6 @@ module Stripe
|
|
261
256
|
# Only set for upcoming invoices that preview prorations. The time used to calculate prorations.
|
262
257
|
attr_reader :subscription_proration_date
|
263
258
|
end
|
264
|
-
# Details about the billing cadence that generated this invoice
|
265
|
-
attr_reader :billing_cadence_details
|
266
259
|
# Details about the quote that generated this invoice
|
267
260
|
attr_reader :quote_details
|
268
261
|
# Details about the subscription that generated this invoice
|