stripe 15.6.0.pre.alpha.1 → 15.6.0.pre.alpha.2
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 +6 -0
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/resources/account.rb +443 -0
- data/lib/stripe/resources/account_link.rb +8 -0
- data/lib/stripe/resources/account_notice.rb +24 -0
- data/lib/stripe/resources/account_session.rb +435 -10
- data/lib/stripe/resources/apple_pay_domain.rb +8 -0
- data/lib/stripe/resources/application.rb +8 -0
- data/lib/stripe/resources/application_fee.rb +16 -0
- data/lib/stripe/resources/application_fee_refund.rb +8 -0
- data/lib/stripe/resources/apps/secret.rb +16 -0
- data/lib/stripe/resources/balance.rb +159 -0
- data/lib/stripe/resources/balance_settings.rb +40 -0
- data/lib/stripe/resources/balance_transaction.rb +16 -0
- data/lib/stripe/resources/bank_account.rb +40 -0
- data/lib/stripe/resources/billing/alert.rb +75 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +8 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +80 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +107 -0
- data/lib/stripe/resources/billing/credit_grant.rb +72 -0
- data/lib/stripe/resources/billing/meter.rb +45 -0
- data/lib/stripe/resources/billing/meter_event.rb +8 -0
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +16 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +8 -0
- data/lib/stripe/resources/billing/meter_usage.rb +8 -0
- data/lib/stripe/resources/billing/meter_usage_row.rb +8 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +122 -0
- data/lib/stripe/resources/billing_portal/session.rb +101 -0
- data/lib/stripe/resources/capability.rb +56 -0
- data/lib/stripe/resources/capital/financing_offer.rb +24 -0
- data/lib/stripe/resources/capital/financing_summary.rb +24 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +24 -0
- data/lib/stripe/resources/card.rb +16 -0
- data/lib/stripe/resources/cash_balance.rb +16 -0
- data/lib/stripe/resources/charge.rb +1052 -16
- data/lib/stripe/resources/checkout/session.rb +950 -0
- data/lib/stripe/resources/climate/order.rb +32 -0
- data/lib/stripe/resources/climate/product.rb +16 -0
- data/lib/stripe/resources/climate/supplier.rb +16 -0
- data/lib/stripe/resources/confirmation_token.rb +960 -38
- data/lib/stripe/resources/connect_collection_transfer.rb +8 -0
- data/lib/stripe/resources/country_spec.rb +32 -0
- data/lib/stripe/resources/coupon.rb +36 -0
- data/lib/stripe/resources/credit_note.rb +70 -0
- data/lib/stripe/resources/credit_note_line_item.rb +53 -0
- data/lib/stripe/resources/customer.rb +77 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +8 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +108 -0
- data/lib/stripe/resources/customer_session.rb +52 -0
- data/lib/stripe/resources/discount.rb +8 -0
- data/lib/stripe/resources/dispute.rb +166 -0
- data/lib/stripe/resources/entitlements/active_entitlement.rb +8 -0
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +8 -0
- data/lib/stripe/resources/entitlements/feature.rb +8 -0
- data/lib/stripe/resources/ephemeral_key.rb +8 -0
- data/lib/stripe/resources/event.rb +56 -0
- data/lib/stripe/resources/exchange_rate.rb +8 -0
- data/lib/stripe/resources/file.rb +8 -0
- data/lib/stripe/resources/file_link.rb +8 -0
- data/lib/stripe/resources/financial_connections/account.rb +79 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +8 -0
- data/lib/stripe/resources/financial_connections/account_owner.rb +8 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +8 -0
- data/lib/stripe/resources/financial_connections/institution.rb +53 -0
- data/lib/stripe/resources/financial_connections/session.rb +63 -1
- data/lib/stripe/resources/financial_connections/transaction.rb +16 -0
- data/lib/stripe/resources/forwarding/request.rb +52 -0
- data/lib/stripe/resources/funding_instructions.rb +193 -0
- data/lib/stripe/resources/fx_quote.rb +48 -0
- data/lib/stripe/resources/identity/verification_report.rb +166 -1
- data/lib/stripe/resources/identity/verification_session.rb +126 -1
- data/lib/stripe/resources/invoice.rb +441 -3
- data/lib/stripe/resources/invoice_item.rb +88 -0
- data/lib/stripe/resources/invoice_line_item.rb +186 -0
- data/lib/stripe/resources/invoice_payment.rb +24 -0
- data/lib/stripe/resources/invoice_rendering_template.rb +8 -0
- data/lib/stripe/resources/issuing/authorization.rb +177 -0
- data/lib/stripe/resources/issuing/card.rb +96 -0
- data/lib/stripe/resources/issuing/cardholder.rb +110 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +82 -0
- data/lib/stripe/resources/issuing/dispute.rb +97 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +16 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +8 -0
- data/lib/stripe/resources/issuing/personalization_design.rb +36 -0
- data/lib/stripe/resources/issuing/physical_bundle.rb +16 -0
- data/lib/stripe/resources/issuing/settlement.rb +8 -0
- data/lib/stripe/resources/issuing/token.rb +61 -0
- data/lib/stripe/resources/issuing/transaction.rb +151 -0
- data/lib/stripe/resources/line_item.rb +54 -0
- data/lib/stripe/resources/login_link.rb +8 -0
- data/lib/stripe/resources/mandate.rb +242 -11
- data/lib/stripe/resources/margin.rb +8 -0
- data/lib/stripe/resources/order.rb +348 -0
- data/lib/stripe/resources/payment_attempt_record.rb +890 -11
- data/lib/stripe/resources/payment_intent.rb +1405 -3
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +56 -0
- data/lib/stripe/resources/payment_link.rb +337 -0
- data/lib/stripe/resources/payment_method.rb +884 -38
- data/lib/stripe/resources/payment_method_configuration.rb +961 -0
- data/lib/stripe/resources/payment_method_domain.rb +111 -0
- data/lib/stripe/resources/payment_record.rb +890 -11
- data/lib/stripe/resources/payout.rb +16 -0
- data/lib/stripe/resources/person.rb +180 -0
- data/lib/stripe/resources/plan.rb +24 -0
- data/lib/stripe/resources/price.rb +79 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +16 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +16 -0
- data/lib/stripe/resources/product.rb +27 -0
- data/lib/stripe/resources/product_feature.rb +8 -0
- data/lib/stripe/resources/promotion_code.rb +24 -0
- data/lib/stripe/resources/quote.rb +432 -0
- data/lib/stripe/resources/quote_line.rb +247 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +450 -3
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +323 -0
- data/lib/stripe/resources/radar/early_fraud_warning.rb +8 -0
- data/lib/stripe/resources/radar/value_list.rb +8 -0
- data/lib/stripe/resources/radar/value_list_item.rb +8 -0
- data/lib/stripe/resources/refund.rb +380 -19
- data/lib/stripe/resources/reporting/report_run.rb +16 -0
- data/lib/stripe/resources/reporting/report_type.rb +8 -0
- data/lib/stripe/resources/reserve_transaction.rb +8 -0
- data/lib/stripe/resources/reversal.rb +8 -0
- data/lib/stripe/resources/review.rb +24 -0
- data/lib/stripe/resources/setup_attempt.rb +331 -20
- data/lib/stripe/resources/setup_intent.rb +293 -2
- data/lib/stripe/resources/shipping_rate.rb +48 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +16 -0
- data/lib/stripe/resources/source.rb +274 -0
- data/lib/stripe/resources/source_mandate_notification.rb +32 -0
- data/lib/stripe/resources/source_transaction.rb +54 -0
- data/lib/stripe/resources/subscription.rb +318 -3
- data/lib/stripe/resources/subscription_item.rb +24 -0
- data/lib/stripe/resources/subscription_schedule.rb +314 -0
- data/lib/stripe/resources/tax/association.rb +32 -0
- data/lib/stripe/resources/tax/calculation.rb +109 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +32 -0
- data/lib/stripe/resources/tax/form.rb +107 -0
- data/lib/stripe/resources/tax/registration.rb +1232 -0
- data/lib/stripe/resources/tax/settings.rb +61 -1
- data/lib/stripe/resources/tax/transaction.rb +93 -0
- data/lib/stripe/resources/tax/transaction_line_item.rb +16 -0
- data/lib/stripe/resources/tax_code.rb +8 -0
- data/lib/stripe/resources/tax_deducted_at_source.rb +8 -0
- data/lib/stripe/resources/tax_id.rb +24 -0
- data/lib/stripe/resources/tax_rate.rb +16 -0
- data/lib/stripe/resources/terminal/configuration.rb +299 -0
- data/lib/stripe/resources/terminal/connection_token.rb +8 -0
- data/lib/stripe/resources/terminal/location.rb +16 -0
- data/lib/stripe/resources/terminal/onboarding_link.rb +24 -0
- data/lib/stripe/resources/terminal/reader.rb +241 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +16 -0
- data/lib/stripe/resources/test_helpers/test_clock.rb +24 -0
- data/lib/stripe/resources/token.rb +8 -0
- data/lib/stripe/resources/topup.rb +8 -0
- data/lib/stripe/resources/transfer.rb +8 -0
- data/lib/stripe/resources/treasury/credit_reversal.rb +16 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +24 -0
- data/lib/stripe/resources/treasury/financial_account.rb +61 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +192 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +69 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +106 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +114 -0
- data/lib/stripe/resources/treasury/received_credit.rb +97 -0
- data/lib/stripe/resources/treasury/received_debit.rb +89 -0
- data/lib/stripe/resources/treasury/transaction.rb +36 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +24 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +40 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +40 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +141 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +150 -2
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +150 -2
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +8 -0
- data/lib/stripe/resources/v2/billing/intent.rb +27 -0
- data/lib/stripe/resources/v2/billing/intent_action.rb +195 -0
- data/lib/stripe/resources/v2/billing/license_fee.rb +24 -0
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +8 -0
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +24 -0
- data/lib/stripe/resources/v2/billing/licensed_item.rb +16 -0
- data/lib/stripe/resources/v2/billing/meter_event.rb +8 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +16 -0
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +8 -0
- data/lib/stripe/resources/v2/billing/metered_item.rb +27 -0
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +8 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +36 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +27 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +8 -0
- data/lib/stripe/resources/v2/billing/profile.rb +8 -0
- data/lib/stripe/resources/v2/billing/rate_card.rb +8 -0
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +36 -0
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +27 -0
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +8 -0
- data/lib/stripe/resources/v2/billing/service_action.rb +115 -0
- data/lib/stripe/resources/v2/core/account.rb +1900 -0
- data/lib/stripe/resources/v2/core/account_link.rb +51 -0
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +24 -0
- data/lib/stripe/resources/v2/core/person.rb +201 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +40 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +8 -0
- data/lib/stripe/resources/v2/event.rb +24 -0
- data/lib/stripe/resources/v2/event_destination.rb +44 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +8 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +8 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +16 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +61 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +32 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +90 -3
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +88 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +62 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +24 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +79 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +32 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +32 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +77 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +52 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +36 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +35 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +24 -0
- data/lib/stripe/resources/v2/reporting/report.rb +52 -0
- data/lib/stripe/resources/v2/reporting/report_run.rb +69 -0
- data/lib/stripe/resources/v2/tax/automatic_rule.rb +8 -0
- data/lib/stripe/resources/webhook_endpoint.rb +8 -0
- data/lib/stripe/stripe_object.rb +25 -1
- data/lib/stripe/util.rb +9 -5
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +280174 -0
- metadata +3 -2
@@ -21,6 +21,14 @@ module Stripe
|
|
21
21
|
attr_reader :up_to_decimal
|
22
22
|
# No upper bound to this tier. Only one of `up_to_decimal` and `up_to_inf` may be set.
|
23
23
|
attr_reader :up_to_inf
|
24
|
+
|
25
|
+
def self.inner_class_types
|
26
|
+
@inner_class_types = {}
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.field_remappings
|
30
|
+
@field_remappings = {}
|
31
|
+
end
|
24
32
|
end
|
25
33
|
|
26
34
|
class TransformQuantity < Stripe::StripeObject
|
@@ -28,6 +36,14 @@ module Stripe
|
|
28
36
|
attr_reader :divide_by
|
29
37
|
# After division, round the result up or down.
|
30
38
|
attr_reader :round
|
39
|
+
|
40
|
+
def self.inner_class_types
|
41
|
+
@inner_class_types = {}
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.field_remappings
|
45
|
+
@field_remappings = {}
|
46
|
+
end
|
31
47
|
end
|
32
48
|
# Timestamp of when the object was created.
|
33
49
|
attr_reader :created
|
@@ -50,6 +66,14 @@ module Stripe
|
|
50
66
|
attr_reader :unit_amount
|
51
67
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
52
68
|
attr_reader :livemode
|
69
|
+
|
70
|
+
def self.inner_class_types
|
71
|
+
@inner_class_types = { tiers: Tier, transform_quantity: TransformQuantity }
|
72
|
+
end
|
73
|
+
|
74
|
+
def self.field_remappings
|
75
|
+
@field_remappings = {}
|
76
|
+
end
|
53
77
|
end
|
54
78
|
end
|
55
79
|
end
|
@@ -15,6 +15,14 @@ module Stripe
|
|
15
15
|
class TaxDetails < Stripe::StripeObject
|
16
16
|
# Product tax code (PTC).
|
17
17
|
attr_reader :tax_code
|
18
|
+
|
19
|
+
def self.inner_class_types
|
20
|
+
@inner_class_types = {}
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.field_remappings
|
24
|
+
@field_remappings = {}
|
25
|
+
end
|
18
26
|
end
|
19
27
|
# Timestamp of when the object was created.
|
20
28
|
attr_reader :created
|
@@ -38,6 +46,14 @@ module Stripe
|
|
38
46
|
attr_reader :unit_label
|
39
47
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
40
48
|
attr_reader :livemode
|
49
|
+
|
50
|
+
def self.inner_class_types
|
51
|
+
@inner_class_types = { tax_details: TaxDetails }
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.field_remappings
|
55
|
+
@field_remappings = {}
|
56
|
+
end
|
41
57
|
end
|
42
58
|
end
|
43
59
|
end
|
@@ -28,6 +28,14 @@ module Stripe
|
|
28
28
|
attr_reader :timestamp
|
29
29
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
30
30
|
attr_reader :livemode
|
31
|
+
|
32
|
+
def self.inner_class_types
|
33
|
+
@inner_class_types = {}
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.field_remappings
|
37
|
+
@field_remappings = {}
|
38
|
+
end
|
31
39
|
end
|
32
40
|
end
|
33
41
|
end
|
@@ -13,6 +13,14 @@ module Stripe
|
|
13
13
|
class Cancel < Stripe::StripeObject
|
14
14
|
# Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them.
|
15
15
|
attr_reader :identifier
|
16
|
+
|
17
|
+
def self.inner_class_types
|
18
|
+
@inner_class_types = {}
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.field_remappings
|
22
|
+
@field_remappings = {}
|
23
|
+
end
|
16
24
|
end
|
17
25
|
# Specifies which event to cancel.
|
18
26
|
attr_reader :cancel
|
@@ -30,6 +38,14 @@ module Stripe
|
|
30
38
|
attr_reader :type
|
31
39
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
32
40
|
attr_reader :livemode
|
41
|
+
|
42
|
+
def self.inner_class_types
|
43
|
+
@inner_class_types = { cancel: Cancel }
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.field_remappings
|
47
|
+
@field_remappings = {}
|
48
|
+
end
|
33
49
|
end
|
34
50
|
end
|
35
51
|
end
|
@@ -23,6 +23,14 @@ module Stripe
|
|
23
23
|
attr_reader :object
|
24
24
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
25
25
|
attr_reader :livemode
|
26
|
+
|
27
|
+
def self.inner_class_types
|
28
|
+
@inner_class_types = {}
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.field_remappings
|
32
|
+
@field_remappings = {}
|
33
|
+
end
|
26
34
|
end
|
27
35
|
end
|
28
36
|
end
|
@@ -17,11 +17,27 @@ module Stripe
|
|
17
17
|
attr_reader :dimension
|
18
18
|
# To count usage towards this metered item, the dimension must have this value.
|
19
19
|
attr_reader :value
|
20
|
+
|
21
|
+
def self.inner_class_types
|
22
|
+
@inner_class_types = {}
|
23
|
+
end
|
24
|
+
|
25
|
+
def self.field_remappings
|
26
|
+
@field_remappings = {}
|
27
|
+
end
|
20
28
|
end
|
21
29
|
|
22
30
|
class TaxDetails < Stripe::StripeObject
|
23
31
|
# Product tax code (PTC).
|
24
32
|
attr_reader :tax_code
|
33
|
+
|
34
|
+
def self.inner_class_types
|
35
|
+
@inner_class_types = {}
|
36
|
+
end
|
37
|
+
|
38
|
+
def self.field_remappings
|
39
|
+
@field_remappings = {}
|
40
|
+
end
|
25
41
|
end
|
26
42
|
# Timestamp of when the object was created.
|
27
43
|
attr_reader :created
|
@@ -52,6 +68,17 @@ module Stripe
|
|
52
68
|
attr_reader :unit_label
|
53
69
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
54
70
|
attr_reader :livemode
|
71
|
+
|
72
|
+
def self.inner_class_types
|
73
|
+
@inner_class_types = {
|
74
|
+
meter_segment_conditions: MeterSegmentCondition,
|
75
|
+
tax_details: TaxDetails,
|
76
|
+
}
|
77
|
+
end
|
78
|
+
|
79
|
+
def self.field_remappings
|
80
|
+
@field_remappings = {}
|
81
|
+
end
|
55
82
|
end
|
56
83
|
end
|
57
84
|
end
|
@@ -37,6 +37,14 @@ module Stripe
|
|
37
37
|
attr_reader :tax_behavior
|
38
38
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
39
39
|
attr_reader :livemode
|
40
|
+
|
41
|
+
def self.inner_class_types
|
42
|
+
@inner_class_types = {}
|
43
|
+
end
|
44
|
+
|
45
|
+
def self.field_remappings
|
46
|
+
@field_remappings = {}
|
47
|
+
end
|
40
48
|
end
|
41
49
|
end
|
42
50
|
end
|
@@ -15,6 +15,14 @@ module Stripe
|
|
15
15
|
attr_reader :id
|
16
16
|
# The version of the LicenseFee. Defaults to 'latest', if not specified.
|
17
17
|
attr_reader :version
|
18
|
+
|
19
|
+
def self.inner_class_types
|
20
|
+
@inner_class_types = {}
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.field_remappings
|
24
|
+
@field_remappings = {}
|
25
|
+
end
|
18
26
|
end
|
19
27
|
|
20
28
|
class RateCard < Stripe::StripeObject
|
@@ -22,11 +30,27 @@ module Stripe
|
|
22
30
|
attr_reader :id
|
23
31
|
# The version of the RateCard. Defaults to 'latest', if not specified.
|
24
32
|
attr_reader :version
|
33
|
+
|
34
|
+
def self.inner_class_types
|
35
|
+
@inner_class_types = {}
|
36
|
+
end
|
37
|
+
|
38
|
+
def self.field_remappings
|
39
|
+
@field_remappings = {}
|
40
|
+
end
|
25
41
|
end
|
26
42
|
|
27
43
|
class ServiceAction < Stripe::StripeObject
|
28
44
|
# The ID of the service action.
|
29
45
|
attr_reader :id
|
46
|
+
|
47
|
+
def self.inner_class_types
|
48
|
+
@inner_class_types = {}
|
49
|
+
end
|
50
|
+
|
51
|
+
def self.field_remappings
|
52
|
+
@field_remappings = {}
|
53
|
+
end
|
30
54
|
end
|
31
55
|
# Time at which the object was created.
|
32
56
|
attr_reader :created
|
@@ -52,6 +76,18 @@ module Stripe
|
|
52
76
|
attr_reader :rate_card
|
53
77
|
# Details if this component is a Service Action.
|
54
78
|
attr_reader :service_action
|
79
|
+
|
80
|
+
def self.inner_class_types
|
81
|
+
@inner_class_types = {
|
82
|
+
license_fee: LicenseFee,
|
83
|
+
rate_card: RateCard,
|
84
|
+
service_action: ServiceAction,
|
85
|
+
}
|
86
|
+
end
|
87
|
+
|
88
|
+
def self.field_remappings
|
89
|
+
@field_remappings = {}
|
90
|
+
end
|
55
91
|
end
|
56
92
|
end
|
57
93
|
end
|
@@ -21,6 +21,14 @@ module Stripe
|
|
21
21
|
attr_reader :paused_at
|
22
22
|
# When the collection status transitioned to unpaid.
|
23
23
|
attr_reader :unpaid_at
|
24
|
+
|
25
|
+
def self.inner_class_types
|
26
|
+
@inner_class_types = {}
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.field_remappings
|
30
|
+
@field_remappings = {}
|
31
|
+
end
|
24
32
|
end
|
25
33
|
|
26
34
|
class ServicingStatusTransitions < Stripe::StripeObject
|
@@ -30,6 +38,14 @@ module Stripe
|
|
30
38
|
attr_reader :canceled_at
|
31
39
|
# When the servicing status transitioned to paused.
|
32
40
|
attr_reader :paused_at
|
41
|
+
|
42
|
+
def self.inner_class_types
|
43
|
+
@inner_class_types = {}
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.field_remappings
|
47
|
+
@field_remappings = {}
|
48
|
+
end
|
33
49
|
end
|
34
50
|
# The ID of the Billing Cadence this subscription is billed on.
|
35
51
|
attr_reader :billing_cadence
|
@@ -57,6 +73,17 @@ module Stripe
|
|
57
73
|
attr_reader :test_clock
|
58
74
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
59
75
|
attr_reader :livemode
|
76
|
+
|
77
|
+
def self.inner_class_types
|
78
|
+
@inner_class_types = {
|
79
|
+
collection_status_transitions: CollectionStatusTransitions,
|
80
|
+
servicing_status_transitions: ServicingStatusTransitions,
|
81
|
+
}
|
82
|
+
end
|
83
|
+
|
84
|
+
def self.field_remappings
|
85
|
+
@field_remappings = {}
|
86
|
+
end
|
60
87
|
end
|
61
88
|
end
|
62
89
|
end
|
@@ -24,6 +24,14 @@ module Stripe
|
|
24
24
|
attr_reader :start_date
|
25
25
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
26
26
|
attr_reader :livemode
|
27
|
+
|
28
|
+
def self.inner_class_types
|
29
|
+
@inner_class_types = {}
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.field_remappings
|
33
|
+
@field_remappings = {}
|
34
|
+
end
|
27
35
|
end
|
28
36
|
end
|
29
37
|
end
|
@@ -32,6 +32,14 @@ module Stripe
|
|
32
32
|
attr_reader :status
|
33
33
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
34
34
|
attr_reader :livemode
|
35
|
+
|
36
|
+
def self.inner_class_types
|
37
|
+
@inner_class_types = {}
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.field_remappings
|
41
|
+
@field_remappings = {}
|
42
|
+
end
|
35
43
|
end
|
36
44
|
end
|
37
45
|
end
|
@@ -47,6 +47,14 @@ module Stripe
|
|
47
47
|
attr_reader :tax_behavior
|
48
48
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
49
49
|
attr_reader :livemode
|
50
|
+
|
51
|
+
def self.inner_class_types
|
52
|
+
@inner_class_types = {}
|
53
|
+
end
|
54
|
+
|
55
|
+
def self.field_remappings
|
56
|
+
@field_remappings = {}
|
57
|
+
end
|
50
58
|
end
|
51
59
|
end
|
52
60
|
end
|
@@ -15,6 +15,14 @@ module Stripe
|
|
15
15
|
attr_reader :id
|
16
16
|
# The unit value for the custom pricing unit, as a string.
|
17
17
|
attr_reader :value
|
18
|
+
|
19
|
+
def self.inner_class_types
|
20
|
+
@inner_class_types = {}
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.field_remappings
|
24
|
+
@field_remappings = {}
|
25
|
+
end
|
18
26
|
end
|
19
27
|
|
20
28
|
class Tier < Stripe::StripeObject
|
@@ -28,6 +36,14 @@ module Stripe
|
|
28
36
|
attr_reader :up_to_decimal
|
29
37
|
# No upper bound to this tier. Only one of `up_to_decimal` and `up_to_inf` may be set.
|
30
38
|
attr_reader :up_to_inf
|
39
|
+
|
40
|
+
def self.inner_class_types
|
41
|
+
@inner_class_types = {}
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.field_remappings
|
45
|
+
@field_remappings = {}
|
46
|
+
end
|
31
47
|
end
|
32
48
|
|
33
49
|
class TransformQuantity < Stripe::StripeObject
|
@@ -35,6 +51,14 @@ module Stripe
|
|
35
51
|
attr_reader :divide_by
|
36
52
|
# After division, round the result up or down.
|
37
53
|
attr_reader :round
|
54
|
+
|
55
|
+
def self.inner_class_types
|
56
|
+
@inner_class_types = {}
|
57
|
+
end
|
58
|
+
|
59
|
+
def self.field_remappings
|
60
|
+
@field_remappings = {}
|
61
|
+
end
|
38
62
|
end
|
39
63
|
# Timestamp of when the object was created.
|
40
64
|
attr_reader :created
|
@@ -65,6 +89,18 @@ module Stripe
|
|
65
89
|
attr_reader :unit_amount
|
66
90
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
67
91
|
attr_reader :livemode
|
92
|
+
|
93
|
+
def self.inner_class_types
|
94
|
+
@inner_class_types = {
|
95
|
+
custom_pricing_unit_amount: CustomPricingUnitAmount,
|
96
|
+
tiers: Tier,
|
97
|
+
transform_quantity: TransformQuantity,
|
98
|
+
}
|
99
|
+
end
|
100
|
+
|
101
|
+
def self.field_remappings
|
102
|
+
@field_remappings = {}
|
103
|
+
end
|
68
104
|
end
|
69
105
|
end
|
70
106
|
end
|
@@ -21,6 +21,14 @@ module Stripe
|
|
21
21
|
attr_reader :paused_at
|
22
22
|
# When the collection status transitioned to unpaid.
|
23
23
|
attr_reader :unpaid_at
|
24
|
+
|
25
|
+
def self.inner_class_types
|
26
|
+
@inner_class_types = {}
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.field_remappings
|
30
|
+
@field_remappings = {}
|
31
|
+
end
|
24
32
|
end
|
25
33
|
|
26
34
|
class ServicingStatusTransitions < Stripe::StripeObject
|
@@ -30,6 +38,14 @@ module Stripe
|
|
30
38
|
attr_reader :canceled_at
|
31
39
|
# When the servicing status transitioned to paused.
|
32
40
|
attr_reader :paused_at
|
41
|
+
|
42
|
+
def self.inner_class_types
|
43
|
+
@inner_class_types = {}
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.field_remappings
|
47
|
+
@field_remappings = {}
|
48
|
+
end
|
33
49
|
end
|
34
50
|
# The ID of the Billing Cadence.
|
35
51
|
attr_reader :billing_cadence
|
@@ -57,6 +73,17 @@ module Stripe
|
|
57
73
|
attr_reader :test_clock
|
58
74
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
59
75
|
attr_reader :livemode
|
76
|
+
|
77
|
+
def self.inner_class_types
|
78
|
+
@inner_class_types = {
|
79
|
+
collection_status_transitions: CollectionStatusTransitions,
|
80
|
+
servicing_status_transitions: ServicingStatusTransitions,
|
81
|
+
}
|
82
|
+
end
|
83
|
+
|
84
|
+
def self.field_remappings
|
85
|
+
@field_remappings = {}
|
86
|
+
end
|
60
87
|
end
|
61
88
|
end
|
62
89
|
end
|
@@ -20,6 +20,14 @@ module Stripe
|
|
20
20
|
attr_reader :rate_card_id
|
21
21
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
22
22
|
attr_reader :livemode
|
23
|
+
|
24
|
+
def self.inner_class_types
|
25
|
+
@inner_class_types = {}
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.field_remappings
|
29
|
+
@field_remappings = {}
|
30
|
+
end
|
23
31
|
end
|
24
32
|
end
|
25
33
|
end
|
@@ -17,6 +17,14 @@ module Stripe
|
|
17
17
|
attr_reader :id
|
18
18
|
# The value of the credit grant, decimal value represented as a string.
|
19
19
|
attr_reader :value
|
20
|
+
|
21
|
+
def self.inner_class_types
|
22
|
+
@inner_class_types = {}
|
23
|
+
end
|
24
|
+
|
25
|
+
def self.field_remappings
|
26
|
+
@field_remappings = {}
|
27
|
+
end
|
20
28
|
end
|
21
29
|
# The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits.
|
22
30
|
attr_reader :type
|
@@ -24,6 +32,14 @@ module Stripe
|
|
24
32
|
attr_reader :custom_pricing_unit
|
25
33
|
# The monetary amount of the credit grant. Required if `type` is `monetary`.
|
26
34
|
attr_reader :monetary
|
35
|
+
|
36
|
+
def self.inner_class_types
|
37
|
+
@inner_class_types = { custom_pricing_unit: CustomPricingUnit }
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.field_remappings
|
41
|
+
@field_remappings = {}
|
42
|
+
end
|
27
43
|
end
|
28
44
|
|
29
45
|
class ApplicabilityConfig < Stripe::StripeObject
|
@@ -32,14 +48,38 @@ module Stripe
|
|
32
48
|
attr_reader :billable_items
|
33
49
|
# 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
50
|
attr_reader :price_type
|
51
|
+
|
52
|
+
def self.inner_class_types
|
53
|
+
@inner_class_types = {}
|
54
|
+
end
|
55
|
+
|
56
|
+
def self.field_remappings
|
57
|
+
@field_remappings = {}
|
58
|
+
end
|
35
59
|
end
|
36
60
|
# The applicability scope of the credit grant.
|
37
61
|
attr_reader :scope
|
62
|
+
|
63
|
+
def self.inner_class_types
|
64
|
+
@inner_class_types = { scope: Scope }
|
65
|
+
end
|
66
|
+
|
67
|
+
def self.field_remappings
|
68
|
+
@field_remappings = {}
|
69
|
+
end
|
38
70
|
end
|
39
71
|
|
40
72
|
class ExpiryConfig < Stripe::StripeObject
|
41
73
|
# The type of the expiry configuration. We currently support `end_of_service_period`.
|
42
74
|
attr_reader :type
|
75
|
+
|
76
|
+
def self.inner_class_types
|
77
|
+
@inner_class_types = {}
|
78
|
+
end
|
79
|
+
|
80
|
+
def self.field_remappings
|
81
|
+
@field_remappings = {}
|
82
|
+
end
|
43
83
|
end
|
44
84
|
# The amount of the credit grant.
|
45
85
|
attr_reader :amount
|
@@ -49,6 +89,18 @@ module Stripe
|
|
49
89
|
attr_reader :expiry_config
|
50
90
|
# A descriptive name shown in dashboard.
|
51
91
|
attr_reader :name
|
92
|
+
|
93
|
+
def self.inner_class_types
|
94
|
+
@inner_class_types = {
|
95
|
+
amount: Amount,
|
96
|
+
applicability_config: ApplicabilityConfig,
|
97
|
+
expiry_config: ExpiryConfig,
|
98
|
+
}
|
99
|
+
end
|
100
|
+
|
101
|
+
def self.field_remappings
|
102
|
+
@field_remappings = {}
|
103
|
+
end
|
52
104
|
end
|
53
105
|
|
54
106
|
class CreditGrantPerTenant < Stripe::StripeObject
|
@@ -58,6 +110,14 @@ module Stripe
|
|
58
110
|
attr_reader :id
|
59
111
|
# The value of the credit grant, decimal value represented as a string.
|
60
112
|
attr_reader :value
|
113
|
+
|
114
|
+
def self.inner_class_types
|
115
|
+
@inner_class_types = {}
|
116
|
+
end
|
117
|
+
|
118
|
+
def self.field_remappings
|
119
|
+
@field_remappings = {}
|
120
|
+
end
|
61
121
|
end
|
62
122
|
# The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits.
|
63
123
|
attr_reader :type
|
@@ -65,6 +125,14 @@ module Stripe
|
|
65
125
|
attr_reader :custom_pricing_unit
|
66
126
|
# The monetary amount of the credit grant. Required if `type` is `monetary`.
|
67
127
|
attr_reader :monetary
|
128
|
+
|
129
|
+
def self.inner_class_types
|
130
|
+
@inner_class_types = { custom_pricing_unit: CustomPricingUnit }
|
131
|
+
end
|
132
|
+
|
133
|
+
def self.field_remappings
|
134
|
+
@field_remappings = {}
|
135
|
+
end
|
68
136
|
end
|
69
137
|
|
70
138
|
class ApplicabilityConfig < Stripe::StripeObject
|
@@ -73,14 +141,38 @@ module Stripe
|
|
73
141
|
attr_reader :billable_items
|
74
142
|
# 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
143
|
attr_reader :price_type
|
144
|
+
|
145
|
+
def self.inner_class_types
|
146
|
+
@inner_class_types = {}
|
147
|
+
end
|
148
|
+
|
149
|
+
def self.field_remappings
|
150
|
+
@field_remappings = {}
|
151
|
+
end
|
76
152
|
end
|
77
153
|
# The applicability scope of the credit grant.
|
78
154
|
attr_reader :scope
|
155
|
+
|
156
|
+
def self.inner_class_types
|
157
|
+
@inner_class_types = { scope: Scope }
|
158
|
+
end
|
159
|
+
|
160
|
+
def self.field_remappings
|
161
|
+
@field_remappings = {}
|
162
|
+
end
|
79
163
|
end
|
80
164
|
|
81
165
|
class ExpiryConfig < Stripe::StripeObject
|
82
166
|
# The type of the expiry configuration. We currently support `end_of_service_period`.
|
83
167
|
attr_reader :type
|
168
|
+
|
169
|
+
def self.inner_class_types
|
170
|
+
@inner_class_types = {}
|
171
|
+
end
|
172
|
+
|
173
|
+
def self.field_remappings
|
174
|
+
@field_remappings = {}
|
175
|
+
end
|
84
176
|
end
|
85
177
|
# The amount of the credit grant.
|
86
178
|
attr_reader :amount
|
@@ -90,6 +182,18 @@ module Stripe
|
|
90
182
|
attr_reader :expiry_config
|
91
183
|
# Customer-facing name for the credit grant.
|
92
184
|
attr_reader :name
|
185
|
+
|
186
|
+
def self.inner_class_types
|
187
|
+
@inner_class_types = {
|
188
|
+
amount: Amount,
|
189
|
+
applicability_config: ApplicabilityConfig,
|
190
|
+
expiry_config: ExpiryConfig,
|
191
|
+
}
|
192
|
+
end
|
193
|
+
|
194
|
+
def self.field_remappings
|
195
|
+
@field_remappings = {}
|
196
|
+
end
|
93
197
|
end
|
94
198
|
# Timestamp of when the object was created.
|
95
199
|
attr_reader :created
|
@@ -111,6 +215,17 @@ module Stripe
|
|
111
215
|
attr_reader :credit_grant
|
112
216
|
# Details for the credit grant per tenant. Provided only if `type` is "credit_grant_per_tenant".
|
113
217
|
attr_reader :credit_grant_per_tenant
|
218
|
+
|
219
|
+
def self.inner_class_types
|
220
|
+
@inner_class_types = {
|
221
|
+
credit_grant: CreditGrant,
|
222
|
+
credit_grant_per_tenant: CreditGrantPerTenant,
|
223
|
+
}
|
224
|
+
end
|
225
|
+
|
226
|
+
def self.field_remappings
|
227
|
+
@field_remappings = {}
|
228
|
+
end
|
114
229
|
end
|
115
230
|
end
|
116
231
|
end
|