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.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/API_VERSION +1 -1
  3. data/CHANGELOG.md +1 -65
  4. data/OPENAPI_VERSION +1 -1
  5. data/README.md +4 -6
  6. data/VERSION +1 -1
  7. data/lib/stripe/api_requestor.rb +0 -2
  8. data/lib/stripe/errors.rb +0 -3
  9. data/lib/stripe/event_types.rb +0 -83
  10. data/lib/stripe/object_types.rb +0 -27
  11. data/lib/stripe/resources/billing/alert.rb +1 -128
  12. data/lib/stripe/resources/billing/alert_triggered.rb +0 -6
  13. data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -50
  14. data/lib/stripe/resources/billing/credit_balance_transaction.rb +0 -50
  15. data/lib/stripe/resources/billing/credit_grant.rb +2 -61
  16. data/lib/stripe/resources/charge.rb +4 -0
  17. data/lib/stripe/resources/checkout/session.rb +1 -128
  18. data/lib/stripe/resources/invoice.rb +0 -11
  19. data/lib/stripe/resources/invoice_item.rb +0 -48
  20. data/lib/stripe/resources/invoice_line_item.rb +0 -52
  21. data/lib/stripe/resources/issuing/card.rb +8 -0
  22. data/lib/stripe/resources/payment_attempt_record.rb +4 -0
  23. data/lib/stripe/resources/payment_record.rb +4 -0
  24. data/lib/stripe/resources/quote_preview_invoice.rb +0 -7
  25. data/lib/stripe/resources/subscription.rb +0 -38
  26. data/lib/stripe/resources/v2/event.rb +0 -2
  27. data/lib/stripe/resources/v2/money_management/financial_account.rb +2 -2
  28. data/lib/stripe/resources.rb +0 -85
  29. data/lib/stripe/services/billing/alert_service.rb +1 -75
  30. data/lib/stripe/services/billing/credit_balance_summary_service.rb +1 -13
  31. data/lib/stripe/services/billing/credit_grant_service.rb +2 -29
  32. data/lib/stripe/services/checkout/session_service.rb +1 -80
  33. data/lib/stripe/services/invoice_service.rb +0 -4
  34. data/lib/stripe/services/issuing/card_service.rb +8 -0
  35. data/lib/stripe/services/subscription_service.rb +0 -27
  36. data/lib/stripe/services/v2/billing_service.rb +1 -18
  37. data/lib/stripe/services/v2/core_service.rb +1 -2
  38. data/lib/stripe/services/v2_services.rb +1 -3
  39. data/lib/stripe/services.rb +0 -29
  40. data/lib/stripe/version.rb +1 -1
  41. data/rbi/stripe.rbi +201354 -0
  42. metadata +2 -115
  43. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +0 -21
  44. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +0 -21
  45. data/lib/stripe/events/v2_billing_cadence_created_event.rb +0 -23
  46. data/lib/stripe/events/v2_billing_cadence_errored_event.rb +0 -21
  47. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +0 -21
  48. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +0 -21
  49. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +0 -23
  50. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +0 -21
  51. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +0 -21
  52. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +0 -21
  53. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +0 -21
  54. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +0 -23
  55. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +0 -23
  56. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +0 -21
  57. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +0 -21
  58. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +0 -21
  59. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +0 -21
  60. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +0 -21
  61. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +0 -21
  62. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +0 -21
  63. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +0 -21
  64. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +0 -21
  65. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +0 -21
  66. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +0 -23
  67. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +0 -23
  68. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +0 -23
  69. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +0 -21
  70. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +0 -21
  71. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +0 -21
  72. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +0 -21
  73. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +0 -21
  74. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +0 -21
  75. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +0 -21
  76. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +0 -21
  77. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +0 -21
  78. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +0 -21
  79. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +0 -21
  80. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +0 -23
  81. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +0 -13
  82. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +0 -13
  83. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +0 -13
  84. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +0 -13
  85. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +0 -13
  86. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +0 -13
  87. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -13
  88. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +0 -13
  89. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +0 -13
  90. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +0 -13
  91. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +0 -13
  92. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +0 -13
  93. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +0 -13
  94. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +0 -13
  95. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +0 -13
  96. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +0 -13
  97. data/lib/stripe/events/v2_reporting_report_run_created_event.rb +0 -21
  98. data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +0 -21
  99. data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +0 -21
  100. data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +0 -21
  101. data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -62
  102. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -50
  103. data/lib/stripe/resources/v2/billing/cadence.rb +0 -182
  104. data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -148
  105. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -136
  106. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +0 -35
  107. data/lib/stripe/resources/v2/billing/intent.rb +0 -59
  108. data/lib/stripe/resources/v2/billing/intent_action.rb +0 -200
  109. data/lib/stripe/resources/v2/billing/license_fee.rb +0 -79
  110. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +0 -36
  111. data/lib/stripe/resources/v2/billing/license_fee_version.rb +0 -56
  112. data/lib/stripe/resources/v2/billing/licensed_item.rb +0 -44
  113. data/lib/stripe/resources/v2/billing/metered_item.rb +0 -58
  114. data/lib/stripe/resources/v2/billing/pricing_plan.rb +0 -43
  115. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +0 -58
  116. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +0 -63
  117. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +0 -30
  118. data/lib/stripe/resources/v2/billing/profile.rb +0 -38
  119. data/lib/stripe/resources/v2/billing/rate_card.rb +0 -53
  120. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +0 -71
  121. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +0 -63
  122. data/lib/stripe/resources/v2/billing/rate_card_version.rb +0 -26
  123. data/lib/stripe/resources/v2/billing/service_action.rb +0 -117
  124. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +0 -57
  125. data/lib/stripe/resources/v2/reporting/report.rb +0 -64
  126. data/lib/stripe/resources/v2/reporting/report_run.rb +0 -89
  127. data/lib/stripe/resources/v2/tax/automatic_rule.rb +0 -31
  128. data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -214
  129. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -45
  130. data/lib/stripe/services/v2/billing/cadence_service.rb +0 -428
  131. data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -518
  132. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -45
  133. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +0 -108
  134. data/lib/stripe/services/v2/billing/intent_service.rb +0 -465
  135. data/lib/stripe/services/v2/billing/intents/action_service.rb +0 -45
  136. data/lib/stripe/services/v2/billing/license_fee_service.rb +0 -250
  137. data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +0 -23
  138. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +0 -45
  139. data/lib/stripe/services/v2/billing/licensed_item_service.rb +0 -149
  140. data/lib/stripe/services/v2/billing/metered_item_service.rb +0 -176
  141. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +0 -142
  142. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +0 -76
  143. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +0 -162
  144. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +0 -45
  145. data/lib/stripe/services/v2/billing/profile_service.rb +0 -144
  146. data/lib/stripe/services/v2/billing/rate_card_service.rb +0 -151
  147. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +0 -144
  148. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +0 -161
  149. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +0 -45
  150. data/lib/stripe/services/v2/billing/service_action_service.rb +0 -259
  151. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +0 -50
  152. data/lib/stripe/services/v2/reporting/report_run_service.rb +0 -88
  153. data/lib/stripe/services/v2/reporting/report_service.rb +0 -25
  154. data/lib/stripe/services/v2/reporting_service.rb +0 -16
  155. data/lib/stripe/services/v2/tax/automatic_rule_service.rb +0 -99
  156. data/lib/stripe/services/v2/tax_service.rb +0 -15
@@ -1,63 +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 PricingPlanSubscription < APIResource
8
- OBJECT_NAME = "v2.billing.pricing_plan_subscription"
9
- def self.object_name
10
- "v2.billing.pricing_plan_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 this subscription is billed on.
35
- attr_reader :billing_cadence
36
- # Current collection status of this subscription.
37
- attr_reader :collection_status
38
- # Timestamps for collection status transitions.
39
- attr_reader :collection_status_transitions
40
- # Time at which 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 Pricing Plan for this subscription.
49
- attr_reader :pricing_plan
50
- # The ID of the Pricing Plan Version for this subscription.
51
- attr_reader :pricing_plan_version
52
- # Current servicing status of this subscription.
53
- attr_reader :servicing_status
54
- # Timestamps for servicing status transitions.
55
- attr_reader :servicing_status_transitions
56
- # The ID of the Test Clock of the associated Billing Cadence, 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
@@ -1,30 +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 PricingPlanVersion < APIResource
8
- OBJECT_NAME = "v2.billing.pricing_plan_version"
9
- def self.object_name
10
- "v2.billing.pricing_plan_version"
11
- end
12
-
13
- # Time at which the object was created.
14
- attr_reader :created
15
- # The timestamp when this version became inactive. Null if it's the latest version.
16
- attr_reader :end_date
17
- # Unique identifier for the object.
18
- attr_reader :id
19
- # String representing the object's type. Objects of the same type share the same value of the object field.
20
- attr_reader :object
21
- # The ID of the PricingPlan this version belongs to.
22
- attr_reader :pricing_plan
23
- # The timestamp when this version became active.
24
- attr_reader :start_date
25
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
26
- attr_reader :livemode
27
- end
28
- end
29
- end
30
- end
@@ -1,38 +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 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
@@ -1,53 +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 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
@@ -1,71 +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 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
@@ -1,63 +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 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
@@ -1,26 +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 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
@@ -1,117 +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 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
@@ -1,57 +0,0 @@
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
@@ -1,64 +0,0 @@
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