stripe 15.5.0.pre.beta.2 → 15.6.0.pre.alpha.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 +117 -1
- data/OPENAPI_VERSION +1 -1
- data/README.md +6 -4
- data/VERSION +1 -1
- data/lib/stripe/api_requestor.rb +20 -18
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/errors.rb +26 -23
- data/lib/stripe/event_types.rb +83 -0
- data/lib/stripe/events/v2_billing_cadence_billed_event.rb +21 -0
- data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_billing_cadence_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_cadence_errored_event.rb +21 -0
- data/lib/stripe/events/v2_billing_license_fee_created_event.rb +21 -0
- data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +21 -0
- data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_metered_item_created_event.rb +21 -0
- data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +23 -0
- data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_rate_card_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +23 -0
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_reporting_report_run_created_event.rb +21 -0
- data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +21 -0
- data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +21 -0
- data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +21 -0
- data/lib/stripe/object_types.rb +27 -0
- data/lib/stripe/resources/account.rb +2 -2
- data/lib/stripe/resources/account_session.rb +94 -13
- data/lib/stripe/resources/balance.rb +2 -7
- data/lib/stripe/resources/balance_settings.rb +72 -65
- data/lib/stripe/resources/billing/alert.rb +128 -1
- data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +50 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +50 -0
- data/lib/stripe/resources/billing/credit_grant.rb +61 -2
- data/lib/stripe/resources/billing/meter.rb +2 -2
- data/lib/stripe/resources/billing/meter_usage_row.rb +1 -1
- data/lib/stripe/resources/billing_portal/configuration.rb +12 -2
- data/lib/stripe/resources/charge.rb +36 -5
- data/lib/stripe/resources/checkout/session.rb +237 -6
- data/lib/stripe/resources/credit_note.rb +3 -3
- data/lib/stripe/resources/dispute.rb +1 -1
- data/lib/stripe/resources/file.rb +1 -1
- data/lib/stripe/resources/file_link.rb +1 -1
- data/lib/stripe/resources/invoice.rb +55 -1
- data/lib/stripe/resources/invoice_item.rb +48 -0
- data/lib/stripe/resources/invoice_line_item.rb +52 -0
- data/lib/stripe/resources/invoice_payment.rb +1 -1
- data/lib/stripe/resources/mandate.rb +65 -1
- data/lib/stripe/resources/payment_attempt_record.rb +86 -10
- data/lib/stripe/resources/payment_intent.rb +182 -4
- data/lib/stripe/resources/payment_link.rb +1 -1
- data/lib/stripe/resources/payment_method.rb +2 -0
- data/lib/stripe/resources/payment_record.rb +107 -14
- data/lib/stripe/resources/promotion_code.rb +5 -2
- data/lib/stripe/resources/quote_preview_invoice.rb +8 -1
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +24 -0
- data/lib/stripe/resources/setup_attempt.rb +4 -1
- data/lib/stripe/resources/setup_intent.rb +194 -1
- data/lib/stripe/resources/subscription.rb +145 -9
- data/lib/stripe/resources/subscription_schedule.rb +124 -2
- data/lib/stripe/resources/terminal/configuration.rb +82 -0
- data/lib/stripe/resources/terminal/reader.rb +22 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +62 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +50 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +182 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +148 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +136 -0
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +35 -0
- data/lib/stripe/resources/v2/billing/intent.rb +59 -0
- data/lib/stripe/resources/v2/billing/intent_action.rb +200 -0
- data/lib/stripe/resources/v2/billing/license_fee.rb +79 -0
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +36 -0
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +56 -0
- data/lib/stripe/resources/v2/billing/licensed_item.rb +44 -0
- data/lib/stripe/resources/v2/billing/metered_item.rb +58 -0
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +43 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +58 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +63 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +30 -0
- data/lib/stripe/resources/v2/billing/profile.rb +38 -0
- data/lib/stripe/resources/v2/billing/rate_card.rb +53 -0
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +71 -0
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +63 -0
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +26 -0
- data/lib/stripe/resources/v2/billing/service_action.rb +117 -0
- data/lib/stripe/resources/v2/core/account.rb +8 -0
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +57 -0
- data/lib/stripe/resources/v2/event.rb +2 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +4 -2
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +1 -1
- data/lib/stripe/resources/v2/money_management/transaction.rb +2 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +2 -0
- data/lib/stripe/resources/v2/reporting/report.rb +64 -0
- data/lib/stripe/resources/v2/reporting/report_run.rb +89 -0
- data/lib/stripe/resources/v2/tax/automatic_rule.rb +31 -0
- data/lib/stripe/resources.rb +85 -0
- data/lib/stripe/services/account_session_service.rb +64 -13
- data/lib/stripe/services/balance_settings_service.rb +44 -41
- data/lib/stripe/services/billing/alert_service.rb +75 -1
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +13 -1
- data/lib/stripe/services/billing/credit_grant_service.rb +29 -2
- data/lib/stripe/services/billing/meter_service.rb +1 -1
- data/lib/stripe/services/billing_portal/configuration_service.rb +10 -2
- data/lib/stripe/services/checkout/session_service.rb +166 -5
- data/lib/stripe/services/credit_note_preview_lines_service.rb +1 -1
- data/lib/stripe/services/credit_note_service.rb +2 -2
- data/lib/stripe/services/customer_service.rb +4 -4
- data/lib/stripe/services/file_link_service.rb +1 -1
- data/lib/stripe/services/file_service.rb +1 -1
- data/lib/stripe/services/invoice_payment_service.rb +1 -1
- data/lib/stripe/services/invoice_service.rb +47 -0
- data/lib/stripe/services/mandate_service.rb +40 -0
- data/lib/stripe/services/payment_attempt_record_service.rb +4 -1
- data/lib/stripe/services/payment_intent_service.rb +157 -3
- data/lib/stripe/services/payment_link_service.rb +1 -1
- data/lib/stripe/services/payment_record_service.rb +25 -5
- data/lib/stripe/services/quote_service.rb +4 -4
- data/lib/stripe/services/setup_intent_service.rb +153 -0
- data/lib/stripe/services/subscription_schedule_service.rb +100 -2
- data/lib/stripe/services/subscription_service.rb +134 -9
- data/lib/stripe/services/terminal/configuration_service.rb +64 -0
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +22 -0
- data/lib/stripe/services/v1_services.rb +5 -5
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +214 -0
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/cadence_service.rb +428 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +518 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +108 -0
- data/lib/stripe/services/v2/billing/intent_service.rb +465 -0
- data/lib/stripe/services/v2/billing/intents/action_service.rb +45 -0
- data/lib/stripe/services/v2/billing/license_fee_service.rb +250 -0
- data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +23 -0
- data/lib/stripe/services/v2/billing/license_fees/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/licensed_item_service.rb +149 -0
- data/lib/stripe/services/v2/billing/metered_item_service.rb +176 -0
- data/lib/stripe/services/v2/billing/pricing_plan_service.rb +142 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +76 -0
- data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +162 -0
- data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/profile_service.rb +144 -0
- data/lib/stripe/services/v2/billing/rate_card_service.rb +151 -0
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +144 -0
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +161 -0
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/service_action_service.rb +259 -0
- data/lib/stripe/services/v2/billing_service.rb +19 -2
- data/lib/stripe/services/v2/core/account_service.rb +16 -2
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +50 -0
- data/lib/stripe/services/v2/core_service.rb +4 -3
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +4 -1
- data/lib/stripe/services/v2/money_management_service.rb +3 -3
- data/lib/stripe/services/v2/reporting/report_run_service.rb +88 -0
- data/lib/stripe/services/v2/reporting/report_service.rb +25 -0
- data/lib/stripe/services/v2/reporting_service.rb +16 -0
- data/lib/stripe/services/v2/tax/automatic_rule_service.rb +99 -0
- data/lib/stripe/services/v2/tax_service.rb +15 -0
- data/lib/stripe/services/v2_services.rb +3 -1
- data/lib/stripe/services.rb +29 -0
- data/lib/stripe/stripe_service.rb +3 -1
- data/lib/stripe/version.rb +1 -1
- metadata +116 -3
- data/rbi/stripe.rbi +0 -199145
@@ -0,0 +1,38 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module V2
|
6
|
+
module Billing
|
7
|
+
class Profile < APIResource
|
8
|
+
OBJECT_NAME = "v2.billing.profile"
|
9
|
+
def self.object_name
|
10
|
+
"v2.billing.profile"
|
11
|
+
end
|
12
|
+
|
13
|
+
# Timestamp of when the object was created.
|
14
|
+
attr_reader :created
|
15
|
+
# The ID of the customer object.
|
16
|
+
attr_reader :customer
|
17
|
+
# The ID of the payment method object.
|
18
|
+
attr_reader :default_payment_method
|
19
|
+
# A customer-facing name for the billing profile.
|
20
|
+
# Maximum length of 250 characters.
|
21
|
+
attr_reader :display_name
|
22
|
+
# The ID of the billing profile object.
|
23
|
+
attr_reader :id
|
24
|
+
# An internal key you can use to search for a particular billing profile.
|
25
|
+
# Maximum length of 200 characters.
|
26
|
+
attr_reader :lookup_key
|
27
|
+
# 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.
|
28
|
+
attr_reader :metadata
|
29
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
30
|
+
attr_reader :object
|
31
|
+
# The current status of the billing profile.
|
32
|
+
attr_reader :status
|
33
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
34
|
+
attr_reader :livemode
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module V2
|
6
|
+
module Billing
|
7
|
+
# A Rate Card represents a versioned set of usage-based prices (rates). Each rate is associated with one Metered Item and
|
8
|
+
# defines how much to charge for usage of that item. After you've set up a RateCard, you can subscribe customers to it
|
9
|
+
# by creating a Rate Card Subscription.
|
10
|
+
class RateCard < APIResource
|
11
|
+
OBJECT_NAME = "v2.billing.rate_card"
|
12
|
+
def self.object_name
|
13
|
+
"v2.billing.rate_card"
|
14
|
+
end
|
15
|
+
|
16
|
+
# Whether this RateCard is active. Inactive RateCards cannot be used in new activations or have new rates added.
|
17
|
+
attr_reader :active
|
18
|
+
# Timestamp of when the object was created.
|
19
|
+
attr_reader :created
|
20
|
+
# Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
21
|
+
attr_reader :currency
|
22
|
+
# A customer-facing name for the Rate Card.
|
23
|
+
# This name is used in Stripe-hosted products like the Customer Portal and Checkout. It does not show up on Invoices.
|
24
|
+
# Maximum length of 250 characters.
|
25
|
+
attr_reader :display_name
|
26
|
+
# Unique identifier for the object.
|
27
|
+
attr_reader :id
|
28
|
+
# The ID of this rate card's most recently created version.
|
29
|
+
attr_reader :latest_version
|
30
|
+
# The ID of the Rate Card Version that will be used by all subscriptions when no specific version is specified.
|
31
|
+
attr_reader :live_version
|
32
|
+
# An internal key you can use to search for a particular RateCard. Maximum length of 200 characters.
|
33
|
+
attr_reader :lookup_key
|
34
|
+
# 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.
|
35
|
+
attr_reader :metadata
|
36
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
37
|
+
attr_reader :object
|
38
|
+
# The interval for assessing service. For example, a monthly Rate Card with a rate of $1 for the first 10 "workloads"
|
39
|
+
# and $2 thereafter means "$1 per workload up to 10 workloads during a month of service." This is similar to but
|
40
|
+
# distinct from billing interval; the service interval deals with the rate at which the customer accumulates fees,
|
41
|
+
# while the billing interval in Cadence deals with the rate the customer is billed.
|
42
|
+
attr_reader :service_interval
|
43
|
+
# The length of the interval for assessing service. For example, set this to 3 and `service_interval` to `"month"` in
|
44
|
+
# order to specify quarterly service.
|
45
|
+
attr_reader :service_interval_count
|
46
|
+
# The Stripe Tax tax behavior - whether the rates are inclusive or exclusive of tax.
|
47
|
+
attr_reader :tax_behavior
|
48
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
49
|
+
attr_reader :livemode
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module V2
|
6
|
+
module Billing
|
7
|
+
class RateCardRate < APIResource
|
8
|
+
OBJECT_NAME = "v2.billing.rate_card_rate"
|
9
|
+
def self.object_name
|
10
|
+
"v2.billing.rate_card_rate"
|
11
|
+
end
|
12
|
+
|
13
|
+
class CustomPricingUnitAmount < Stripe::StripeObject
|
14
|
+
# The id of the custom pricing unit.
|
15
|
+
attr_reader :id
|
16
|
+
# The unit value for the custom pricing unit, as a string.
|
17
|
+
attr_reader :value
|
18
|
+
end
|
19
|
+
|
20
|
+
class Tier < Stripe::StripeObject
|
21
|
+
# Price for the entire tier, represented as a decimal string in minor currency units with at most 12 decimal places.
|
22
|
+
attr_reader :flat_amount
|
23
|
+
# Per-unit price for units included in this tier, represented as a decimal string in minor currency units with at
|
24
|
+
# most 12 decimal places.
|
25
|
+
attr_reader :unit_amount
|
26
|
+
# Up to and including this quantity will be contained in the tier. Only one of `up_to_decimal` and `up_to_inf` may
|
27
|
+
# be set.
|
28
|
+
attr_reader :up_to_decimal
|
29
|
+
# No upper bound to this tier. Only one of `up_to_decimal` and `up_to_inf` may be set.
|
30
|
+
attr_reader :up_to_inf
|
31
|
+
end
|
32
|
+
|
33
|
+
class TransformQuantity < Stripe::StripeObject
|
34
|
+
# Divide usage by this number.
|
35
|
+
attr_reader :divide_by
|
36
|
+
# After division, round the result up or down.
|
37
|
+
attr_reader :round
|
38
|
+
end
|
39
|
+
# Timestamp of when the object was created.
|
40
|
+
attr_reader :created
|
41
|
+
# The custom pricing unit that this rate binds to.
|
42
|
+
attr_reader :custom_pricing_unit_amount
|
43
|
+
# Unique identifier for the object.
|
44
|
+
attr_reader :id
|
45
|
+
# 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.
|
46
|
+
attr_reader :metadata
|
47
|
+
# The Metered Item that this rate binds to.
|
48
|
+
attr_reader :metered_item
|
49
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
50
|
+
attr_reader :object
|
51
|
+
# The ID of the Rate Card it belongs to.
|
52
|
+
attr_reader :rate_card
|
53
|
+
# The ID of the Rate Card Version it was created on.
|
54
|
+
attr_reader :rate_card_version
|
55
|
+
# Defines whether the tiering price should be graduated or volume-based. In volume-based tiering, the maximum
|
56
|
+
# quantity within a period determines the per-unit price. In graduated tiering, the pricing changes as the quantity
|
57
|
+
# grows into new tiers. Can only be set if `tiers` is set.
|
58
|
+
attr_reader :tiering_mode
|
59
|
+
# Each element represents a pricing tier. Cannot be set if `unit_amount` is provided.
|
60
|
+
attr_reader :tiers
|
61
|
+
# Apply a transformation to the reported usage or set quantity before computing the amount billed.
|
62
|
+
attr_reader :transform_quantity
|
63
|
+
# The per-unit amount to be charged, represented as a decimal string in minor currency units with at most 12 decimal
|
64
|
+
# places. Cannot be set if `tiers` is provided.
|
65
|
+
attr_reader :unit_amount
|
66
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
67
|
+
attr_reader :livemode
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module V2
|
6
|
+
module Billing
|
7
|
+
class RateCardSubscription < APIResource
|
8
|
+
OBJECT_NAME = "v2.billing.rate_card_subscription"
|
9
|
+
def self.object_name
|
10
|
+
"v2.billing.rate_card_subscription"
|
11
|
+
end
|
12
|
+
|
13
|
+
class CollectionStatusTransitions < Stripe::StripeObject
|
14
|
+
# When the collection status transitioned to awaiting customer action.
|
15
|
+
attr_reader :awaiting_customer_action_at
|
16
|
+
# When the collection status transitioned to current.
|
17
|
+
attr_reader :current_at
|
18
|
+
# When the collection status transitioned to past due.
|
19
|
+
attr_reader :past_due_at
|
20
|
+
# When the collection status transitioned to paused.
|
21
|
+
attr_reader :paused_at
|
22
|
+
# When the collection status transitioned to unpaid.
|
23
|
+
attr_reader :unpaid_at
|
24
|
+
end
|
25
|
+
|
26
|
+
class ServicingStatusTransitions < Stripe::StripeObject
|
27
|
+
# When the servicing status transitioned to activated.
|
28
|
+
attr_reader :activated_at
|
29
|
+
# When the servicing status transitioned to canceled.
|
30
|
+
attr_reader :canceled_at
|
31
|
+
# When the servicing status transitioned to paused.
|
32
|
+
attr_reader :paused_at
|
33
|
+
end
|
34
|
+
# The ID of the Billing Cadence.
|
35
|
+
attr_reader :billing_cadence
|
36
|
+
# The payment status of a Rate Card Subscription.
|
37
|
+
attr_reader :collection_status
|
38
|
+
# The collection status transitions of the Rate Card Subscription.
|
39
|
+
attr_reader :collection_status_transitions
|
40
|
+
# Timestamp of when the object was created.
|
41
|
+
attr_reader :created
|
42
|
+
# Unique identifier for the object.
|
43
|
+
attr_reader :id
|
44
|
+
# 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.
|
45
|
+
attr_reader :metadata
|
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
|
+
# The ID of the Rate Card.
|
49
|
+
attr_reader :rate_card
|
50
|
+
# The ID of the Rate Card Version.
|
51
|
+
attr_reader :rate_card_version
|
52
|
+
# The servicing status of a Rate Card Subscription.
|
53
|
+
attr_reader :servicing_status
|
54
|
+
# The servicing status transitions of the Rate Card Subscription.
|
55
|
+
attr_reader :servicing_status_transitions
|
56
|
+
# The ID of the Test Clock, if any.
|
57
|
+
attr_reader :test_clock
|
58
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
59
|
+
attr_reader :livemode
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module V2
|
6
|
+
module Billing
|
7
|
+
class RateCardVersion < APIResource
|
8
|
+
OBJECT_NAME = "v2.billing.rate_card_version"
|
9
|
+
def self.object_name
|
10
|
+
"v2.billing.rate_card_version"
|
11
|
+
end
|
12
|
+
|
13
|
+
# Timestamp of when the object was created.
|
14
|
+
attr_reader :created
|
15
|
+
# Unique identifier for the object.
|
16
|
+
attr_reader :id
|
17
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
18
|
+
attr_reader :object
|
19
|
+
# The ID of the Rate Card that this version belongs to.
|
20
|
+
attr_reader :rate_card_id
|
21
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
22
|
+
attr_reader :livemode
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,117 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module V2
|
6
|
+
module Billing
|
7
|
+
class ServiceAction < APIResource
|
8
|
+
OBJECT_NAME = "v2.billing.service_action"
|
9
|
+
def self.object_name
|
10
|
+
"v2.billing.service_action"
|
11
|
+
end
|
12
|
+
|
13
|
+
class CreditGrant < Stripe::StripeObject
|
14
|
+
class Amount < Stripe::StripeObject
|
15
|
+
class CustomPricingUnit < Stripe::StripeObject
|
16
|
+
# The id of the custom pricing unit.
|
17
|
+
attr_reader :id
|
18
|
+
# The value of the credit grant, decimal value represented as a string.
|
19
|
+
attr_reader :value
|
20
|
+
end
|
21
|
+
# The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits.
|
22
|
+
attr_reader :type
|
23
|
+
# The custom pricing unit amount of the credit grant. Required if `type` is `custom_pricing_unit`.
|
24
|
+
attr_reader :custom_pricing_unit
|
25
|
+
# The monetary amount of the credit grant. Required if `type` is `monetary`.
|
26
|
+
attr_reader :monetary
|
27
|
+
end
|
28
|
+
|
29
|
+
class ApplicabilityConfig < Stripe::StripeObject
|
30
|
+
class Scope < Stripe::StripeObject
|
31
|
+
# The billable items to apply the credit grant to.
|
32
|
+
attr_reader :billable_items
|
33
|
+
# The price type that credit grants can apply to. We currently only support the `metered` price type. This will apply to metered prices and rate cards. Cannot be used in combination with `billable_items`.
|
34
|
+
attr_reader :price_type
|
35
|
+
end
|
36
|
+
# The applicability scope of the credit grant.
|
37
|
+
attr_reader :scope
|
38
|
+
end
|
39
|
+
|
40
|
+
class ExpiryConfig < Stripe::StripeObject
|
41
|
+
# The type of the expiry configuration. We currently support `end_of_service_period`.
|
42
|
+
attr_reader :type
|
43
|
+
end
|
44
|
+
# The amount of the credit grant.
|
45
|
+
attr_reader :amount
|
46
|
+
# Defines the scope where the credit grant is applicable.
|
47
|
+
attr_reader :applicability_config
|
48
|
+
# The expiry configuration for the credit grant.
|
49
|
+
attr_reader :expiry_config
|
50
|
+
# A descriptive name shown in dashboard.
|
51
|
+
attr_reader :name
|
52
|
+
end
|
53
|
+
|
54
|
+
class CreditGrantPerTenant < Stripe::StripeObject
|
55
|
+
class Amount < Stripe::StripeObject
|
56
|
+
class CustomPricingUnit < Stripe::StripeObject
|
57
|
+
# The id of the custom pricing unit.
|
58
|
+
attr_reader :id
|
59
|
+
# The value of the credit grant, decimal value represented as a string.
|
60
|
+
attr_reader :value
|
61
|
+
end
|
62
|
+
# The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits.
|
63
|
+
attr_reader :type
|
64
|
+
# The custom pricing unit amount of the credit grant. Required if `type` is `custom_pricing_unit`.
|
65
|
+
attr_reader :custom_pricing_unit
|
66
|
+
# The monetary amount of the credit grant. Required if `type` is `monetary`.
|
67
|
+
attr_reader :monetary
|
68
|
+
end
|
69
|
+
|
70
|
+
class ApplicabilityConfig < Stripe::StripeObject
|
71
|
+
class Scope < Stripe::StripeObject
|
72
|
+
# The billable items to apply the credit grant to.
|
73
|
+
attr_reader :billable_items
|
74
|
+
# The price type that credit grants can apply to. We currently only support the `metered` price type. This will apply to metered prices and rate cards. Cannot be used in combination with `billable_items`.
|
75
|
+
attr_reader :price_type
|
76
|
+
end
|
77
|
+
# The applicability scope of the credit grant.
|
78
|
+
attr_reader :scope
|
79
|
+
end
|
80
|
+
|
81
|
+
class ExpiryConfig < Stripe::StripeObject
|
82
|
+
# The type of the expiry configuration. We currently support `end_of_service_period`.
|
83
|
+
attr_reader :type
|
84
|
+
end
|
85
|
+
# The amount of the credit grant.
|
86
|
+
attr_reader :amount
|
87
|
+
# Defines the scope where the credit grant is applicable.
|
88
|
+
attr_reader :applicability_config
|
89
|
+
# The expiry configuration for the credit grant.
|
90
|
+
attr_reader :expiry_config
|
91
|
+
# Customer-facing name for the credit grant.
|
92
|
+
attr_reader :name
|
93
|
+
end
|
94
|
+
# Timestamp of when the object was created.
|
95
|
+
attr_reader :created
|
96
|
+
# Unique identifier for the object.
|
97
|
+
attr_reader :id
|
98
|
+
# An internal key you can use to search for this service action.
|
99
|
+
attr_reader :lookup_key
|
100
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
101
|
+
attr_reader :object
|
102
|
+
# The interval for assessing service.
|
103
|
+
attr_reader :service_interval
|
104
|
+
# The length of the interval for assessing service.
|
105
|
+
attr_reader :service_interval_count
|
106
|
+
# The type of the service action.
|
107
|
+
attr_reader :type
|
108
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
109
|
+
attr_reader :livemode
|
110
|
+
# Details for the credit grant. Provided only if `type` is "credit_grant".
|
111
|
+
attr_reader :credit_grant
|
112
|
+
# Details for the credit grant per tenant. Provided only if `type` is "credit_grant_per_tenant".
|
113
|
+
attr_reader :credit_grant_per_tenant
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
@@ -103,6 +103,8 @@ module Stripe
|
|
103
103
|
# Customer phone (including extension).
|
104
104
|
attr_reader :phone
|
105
105
|
end
|
106
|
+
# Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
|
107
|
+
attr_reader :applied
|
106
108
|
# Automatic indirect tax settings to be used when automatic tax calculation is enabled on the customer's invoices, subscriptions, checkout sessions, or payment links. Surfaces if automatic tax calculation is possible given the current customer location information.
|
107
109
|
attr_reader :automatic_indirect_tax
|
108
110
|
# Billing settings - default settings used for this customer in Billing flows such as Invoices and Subscriptions.
|
@@ -954,6 +956,8 @@ module Stripe
|
|
954
956
|
# A publicly available website for handling support issues.
|
955
957
|
attr_reader :url
|
956
958
|
end
|
959
|
+
# Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
|
960
|
+
attr_reader :applied
|
957
961
|
# Settings used for Bacs debit payments.
|
958
962
|
attr_reader :bacs_debit_payments
|
959
963
|
# Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and other products.
|
@@ -1074,6 +1078,8 @@ module Stripe
|
|
1074
1078
|
# Closed Enum. The payout method type of the default outbound destination.
|
1075
1079
|
attr_reader :type
|
1076
1080
|
end
|
1081
|
+
# Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
|
1082
|
+
attr_reader :applied
|
1077
1083
|
# Capabilities that have been requested on the Recipient Configuration.
|
1078
1084
|
attr_reader :capabilities
|
1079
1085
|
# The payout method to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through the dashboard.
|
@@ -1238,6 +1244,8 @@ module Stripe
|
|
1238
1244
|
# Can send funds from a FinancialAccount to a destination owned by yourself.
|
1239
1245
|
attr_reader :outbound_transfers
|
1240
1246
|
end
|
1247
|
+
# Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
|
1248
|
+
attr_reader :applied
|
1241
1249
|
# Capabilities that have been requested on the Storer Configuration.
|
1242
1250
|
attr_reader :capabilities
|
1243
1251
|
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module V2
|
6
|
+
module Core
|
7
|
+
# A claimable sandbox represents a Stripe sandbox that is anonymous.
|
8
|
+
# When it is created, it can be prefilled with specific metadata, such as email, name, or country.
|
9
|
+
# Claimable sandboxes can be claimed through a URL. When a user claims a sandbox through this URL,
|
10
|
+
# it will prompt them to create a new Stripe account. Or, it will allow them to claim this sandbox in their
|
11
|
+
# existing Stripe account.
|
12
|
+
# Claimable sandboxes have 60 days to be claimed. After this expiration time has passed,
|
13
|
+
# if the sandbox is not claimed, it will be deleted.
|
14
|
+
class ClaimableSandbox < APIResource
|
15
|
+
OBJECT_NAME = "v2.core.claimable_sandbox"
|
16
|
+
def self.object_name
|
17
|
+
"v2.core.claimable_sandbox"
|
18
|
+
end
|
19
|
+
|
20
|
+
class ApiKeys < Stripe::StripeObject
|
21
|
+
# Used to communicate with [Stripe's MCP server](https://docs.stripe.com/mcp).
|
22
|
+
# This allows LLM agents to securely operate on a Stripe account.
|
23
|
+
attr_reader :mcp
|
24
|
+
# Publicly accessible in a web or mobile app client-side code.
|
25
|
+
attr_reader :publishable
|
26
|
+
# Should be stored securely in server-side code (such as an environment variable).
|
27
|
+
attr_reader :secret
|
28
|
+
end
|
29
|
+
|
30
|
+
class Prefill < Stripe::StripeObject
|
31
|
+
# Country in which the account holder resides, or in which the business is legally established.
|
32
|
+
# Use two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
33
|
+
attr_reader :country
|
34
|
+
# Email that this sandbox is meant to be claimed by. Stripe will
|
35
|
+
# send an email to this email address before the sandbox expires.
|
36
|
+
attr_reader :email
|
37
|
+
# Name for the sandbox.
|
38
|
+
attr_reader :name
|
39
|
+
end
|
40
|
+
# Keys that can be used to set up an integration for this sandbox and operate on the account.
|
41
|
+
attr_reader :api_keys
|
42
|
+
# URL for user to claim sandbox into their existing Stripe account.
|
43
|
+
attr_reader :claim_url
|
44
|
+
# When the sandbox is created.
|
45
|
+
attr_reader :created
|
46
|
+
# Unique identifier for the Claimable sandbox.
|
47
|
+
attr_reader :id
|
48
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
49
|
+
attr_reader :object
|
50
|
+
# Values prefilled during the creation of the sandbox.
|
51
|
+
attr_reader :prefill
|
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
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -22,6 +22,8 @@ module Stripe
|
|
22
22
|
# Information on the API request that instigated the event.
|
23
23
|
attr_reader :request
|
24
24
|
end
|
25
|
+
# Before and after changes for the primary related object.
|
26
|
+
attr_reader :changes
|
25
27
|
# Authentication context needed to fetch the event or related object.
|
26
28
|
attr_reader :context
|
27
29
|
# Time at which the object was created.
|
@@ -4,7 +4,7 @@
|
|
4
4
|
module Stripe
|
5
5
|
module V2
|
6
6
|
module MoneyManagement
|
7
|
-
#
|
7
|
+
# A FinancialAccount represents a balance and can be used as the source or destination for the money management (`/v2/money_management`) APIs.
|
8
8
|
class FinancialAccount < APIResource
|
9
9
|
OBJECT_NAME = "v2.money_management.financial_account"
|
10
10
|
def self.object_name
|
@@ -52,9 +52,11 @@ module Stripe
|
|
52
52
|
attr_reader :country
|
53
53
|
# Time at which the object was created.
|
54
54
|
attr_reader :created
|
55
|
+
# A descriptive name for the FinancialAccount, up to 50 characters long. This name will be used in the Stripe Dashboard and embedded components.
|
56
|
+
attr_reader :display_name
|
55
57
|
# Unique identifier for the object.
|
56
58
|
attr_reader :id
|
57
|
-
# Metadata associated with the FinancialAccount
|
59
|
+
# Metadata associated with the FinancialAccount.
|
58
60
|
attr_reader :metadata
|
59
61
|
# String representing the object's type. Objects of the same type share the same value of the object field.
|
60
62
|
attr_reader :object
|
@@ -4,7 +4,7 @@
|
|
4
4
|
module Stripe
|
5
5
|
module V2
|
6
6
|
module MoneyManagement
|
7
|
-
# OutboundPaymentQuote represents a quote
|
7
|
+
# OutboundPaymentQuote represents a quote that provides fee and amount estimates for OutboundPayment.
|
8
8
|
class OutboundPaymentQuote < APIResource
|
9
9
|
OBJECT_NAME = "v2.money_management.outbound_payment_quote"
|
10
10
|
def self.object_name
|
@@ -25,6 +25,8 @@ module Stripe
|
|
25
25
|
attr_reader :type
|
26
26
|
# If applicable, the ID of the Adjustment that created this Transaction.
|
27
27
|
attr_reader :adjustment
|
28
|
+
# In the future, this will be the ID of the currency conversion that created this Transaction. For now, this field is always null.
|
29
|
+
attr_reader :currency_conversion
|
28
30
|
# If applicable, the ID of the FeeTransaction that created this Transaction.
|
29
31
|
attr_reader :fee_transaction
|
30
32
|
# If applicable, the ID of the InboundTransfer that created this Transaction.
|
@@ -26,6 +26,8 @@ module Stripe
|
|
26
26
|
attr_reader :type
|
27
27
|
# If applicable, the ID of the Adjustment that created this Transaction.
|
28
28
|
attr_reader :adjustment
|
29
|
+
# In the future, this will be the ID of the currency conversion that created this Transaction. For now, this field is always null.
|
30
|
+
attr_reader :currency_conversion
|
29
31
|
# If applicable, the ID of the FeeTransaction that created this Transaction.
|
30
32
|
attr_reader :fee_transaction
|
31
33
|
# If applicable, the ID of the InboundTransfer that created this Transaction.
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module V2
|
6
|
+
module Reporting
|
7
|
+
# The Report resource represents a customizable report template that provides insights into various aspects of your Stripe integration.
|
8
|
+
class Report < APIResource
|
9
|
+
OBJECT_NAME = "v2.reporting.report"
|
10
|
+
def self.object_name
|
11
|
+
"v2.reporting.report"
|
12
|
+
end
|
13
|
+
|
14
|
+
class Parameters < Stripe::StripeObject
|
15
|
+
class ArrayDetails < Stripe::StripeObject
|
16
|
+
class EnumDetails < Stripe::StripeObject
|
17
|
+
# Allowed values of the enum.
|
18
|
+
attr_reader :allowed_values
|
19
|
+
end
|
20
|
+
# Data type of the elements in the array.
|
21
|
+
attr_reader :element_type
|
22
|
+
# Details about enum elements in the array.
|
23
|
+
attr_reader :enum_details
|
24
|
+
end
|
25
|
+
|
26
|
+
class EnumDetails < Stripe::StripeObject
|
27
|
+
# Allowed values of the enum.
|
28
|
+
attr_reader :allowed_values
|
29
|
+
end
|
30
|
+
|
31
|
+
class TimestampDetails < Stripe::StripeObject
|
32
|
+
# Maximum permitted timestamp which can be requested.
|
33
|
+
attr_reader :max
|
34
|
+
# Minimum permitted timestamp which can be requested.
|
35
|
+
attr_reader :min
|
36
|
+
end
|
37
|
+
# For array parameters, provides details about the array elements.
|
38
|
+
attr_reader :array_details
|
39
|
+
# Explains the purpose and usage of the parameter.
|
40
|
+
attr_reader :description
|
41
|
+
# For enum parameters, provides the list of allowed values.
|
42
|
+
attr_reader :enum_details
|
43
|
+
# Indicates whether the parameter must be provided.
|
44
|
+
attr_reader :required
|
45
|
+
# For timestamp parameters, specifies the allowed date range.
|
46
|
+
attr_reader :timestamp_details
|
47
|
+
# The data type of the parameter.
|
48
|
+
attr_reader :type
|
49
|
+
end
|
50
|
+
# The unique identifier of the `Report` object.
|
51
|
+
attr_reader :id
|
52
|
+
# The human-readable name of the `Report`.
|
53
|
+
attr_reader :name
|
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
|
+
# Specification of the parameters that the `Report` accepts. It details each parameter's
|
57
|
+
# name, description, whether it is required, and any validations performed.
|
58
|
+
attr_reader :parameters
|
59
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
60
|
+
attr_reader :livemode
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|