stripe 15.6.0.pre.alpha.2 → 15.6.0.pre.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/API_VERSION +1 -1
- data/CHANGELOG.md +1 -71
- data/OPENAPI_VERSION +1 -1
- data/README.md +4 -6
- data/VERSION +1 -1
- data/lib/stripe/api_requestor.rb +0 -2
- data/lib/stripe/errors.rb +0 -3
- data/lib/stripe/event_types.rb +0 -83
- data/lib/stripe/object_types.rb +0 -27
- data/lib/stripe/resources/account.rb +0 -443
- data/lib/stripe/resources/account_link.rb +0 -8
- data/lib/stripe/resources/account_notice.rb +0 -24
- data/lib/stripe/resources/account_session.rb +10 -435
- data/lib/stripe/resources/apple_pay_domain.rb +0 -8
- data/lib/stripe/resources/application.rb +0 -8
- data/lib/stripe/resources/application_fee.rb +0 -16
- data/lib/stripe/resources/application_fee_refund.rb +0 -8
- data/lib/stripe/resources/apps/secret.rb +0 -16
- data/lib/stripe/resources/balance.rb +0 -159
- data/lib/stripe/resources/balance_settings.rb +0 -40
- data/lib/stripe/resources/balance_transaction.rb +0 -16
- data/lib/stripe/resources/bank_account.rb +0 -40
- data/lib/stripe/resources/billing/alert.rb +1 -203
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -14
- data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -130
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +0 -157
- data/lib/stripe/resources/billing/credit_grant.rb +2 -133
- data/lib/stripe/resources/billing/meter.rb +0 -45
- data/lib/stripe/resources/billing/meter_event.rb +0 -8
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +0 -16
- data/lib/stripe/resources/billing/meter_event_summary.rb +0 -8
- data/lib/stripe/resources/billing/meter_usage.rb +0 -8
- data/lib/stripe/resources/billing/meter_usage_row.rb +0 -8
- data/lib/stripe/resources/billing_portal/configuration.rb +0 -122
- data/lib/stripe/resources/billing_portal/session.rb +0 -101
- data/lib/stripe/resources/capability.rb +0 -56
- data/lib/stripe/resources/capital/financing_offer.rb +0 -24
- data/lib/stripe/resources/capital/financing_summary.rb +0 -24
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -24
- data/lib/stripe/resources/card.rb +0 -16
- data/lib/stripe/resources/cash_balance.rb +0 -16
- data/lib/stripe/resources/charge.rb +20 -1052
- data/lib/stripe/resources/checkout/session.rb +1 -1078
- data/lib/stripe/resources/climate/order.rb +0 -32
- data/lib/stripe/resources/climate/product.rb +0 -16
- data/lib/stripe/resources/climate/supplier.rb +0 -16
- data/lib/stripe/resources/confirmation_token.rb +38 -960
- data/lib/stripe/resources/connect_collection_transfer.rb +0 -8
- data/lib/stripe/resources/country_spec.rb +0 -32
- data/lib/stripe/resources/coupon.rb +0 -36
- data/lib/stripe/resources/credit_note.rb +0 -70
- data/lib/stripe/resources/credit_note_line_item.rb +0 -53
- data/lib/stripe/resources/customer.rb +0 -77
- data/lib/stripe/resources/customer_balance_transaction.rb +0 -8
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -108
- data/lib/stripe/resources/customer_session.rb +0 -52
- data/lib/stripe/resources/discount.rb +0 -8
- data/lib/stripe/resources/dispute.rb +0 -166
- data/lib/stripe/resources/entitlements/active_entitlement.rb +0 -8
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +0 -8
- data/lib/stripe/resources/entitlements/feature.rb +0 -8
- data/lib/stripe/resources/ephemeral_key.rb +0 -8
- data/lib/stripe/resources/event.rb +0 -56
- data/lib/stripe/resources/exchange_rate.rb +0 -8
- data/lib/stripe/resources/file.rb +0 -8
- data/lib/stripe/resources/file_link.rb +0 -8
- data/lib/stripe/resources/financial_connections/account.rb +0 -79
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -8
- data/lib/stripe/resources/financial_connections/account_owner.rb +0 -8
- data/lib/stripe/resources/financial_connections/account_ownership.rb +0 -8
- data/lib/stripe/resources/financial_connections/institution.rb +0 -53
- data/lib/stripe/resources/financial_connections/session.rb +1 -63
- data/lib/stripe/resources/financial_connections/transaction.rb +0 -16
- data/lib/stripe/resources/forwarding/request.rb +0 -52
- data/lib/stripe/resources/funding_instructions.rb +0 -193
- data/lib/stripe/resources/fx_quote.rb +0 -48
- data/lib/stripe/resources/identity/verification_report.rb +1 -166
- data/lib/stripe/resources/identity/verification_session.rb +1 -126
- data/lib/stripe/resources/invoice.rb +3 -452
- data/lib/stripe/resources/invoice_item.rb +0 -136
- data/lib/stripe/resources/invoice_line_item.rb +0 -238
- data/lib/stripe/resources/invoice_payment.rb +0 -24
- data/lib/stripe/resources/invoice_rendering_template.rb +0 -8
- data/lib/stripe/resources/issuing/authorization.rb +0 -177
- data/lib/stripe/resources/issuing/card.rb +8 -96
- data/lib/stripe/resources/issuing/cardholder.rb +0 -110
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -82
- data/lib/stripe/resources/issuing/dispute.rb +0 -97
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -16
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -8
- data/lib/stripe/resources/issuing/personalization_design.rb +0 -36
- data/lib/stripe/resources/issuing/physical_bundle.rb +0 -16
- data/lib/stripe/resources/issuing/settlement.rb +0 -8
- data/lib/stripe/resources/issuing/token.rb +0 -61
- data/lib/stripe/resources/issuing/transaction.rb +0 -151
- data/lib/stripe/resources/line_item.rb +0 -54
- data/lib/stripe/resources/login_link.rb +0 -8
- data/lib/stripe/resources/mandate.rb +11 -242
- data/lib/stripe/resources/margin.rb +0 -8
- data/lib/stripe/resources/order.rb +0 -348
- data/lib/stripe/resources/payment_attempt_record.rb +15 -890
- data/lib/stripe/resources/payment_intent.rb +3 -1405
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +0 -56
- data/lib/stripe/resources/payment_link.rb +0 -337
- data/lib/stripe/resources/payment_method.rb +38 -884
- data/lib/stripe/resources/payment_method_configuration.rb +0 -961
- data/lib/stripe/resources/payment_method_domain.rb +0 -111
- data/lib/stripe/resources/payment_record.rb +15 -890
- data/lib/stripe/resources/payout.rb +0 -16
- data/lib/stripe/resources/person.rb +0 -180
- data/lib/stripe/resources/plan.rb +0 -24
- data/lib/stripe/resources/price.rb +0 -79
- data/lib/stripe/resources/privacy/redaction_job.rb +0 -16
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -16
- data/lib/stripe/resources/product.rb +0 -27
- data/lib/stripe/resources/product_feature.rb +0 -8
- data/lib/stripe/resources/promotion_code.rb +0 -24
- data/lib/stripe/resources/quote.rb +0 -432
- data/lib/stripe/resources/quote_line.rb +0 -247
- data/lib/stripe/resources/quote_preview_invoice.rb +3 -457
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -323
- data/lib/stripe/resources/radar/early_fraud_warning.rb +0 -8
- data/lib/stripe/resources/radar/value_list.rb +0 -8
- data/lib/stripe/resources/radar/value_list_item.rb +0 -8
- data/lib/stripe/resources/refund.rb +19 -380
- data/lib/stripe/resources/reporting/report_run.rb +0 -16
- data/lib/stripe/resources/reporting/report_type.rb +0 -8
- data/lib/stripe/resources/reserve_transaction.rb +0 -8
- data/lib/stripe/resources/reversal.rb +0 -8
- data/lib/stripe/resources/review.rb +0 -24
- data/lib/stripe/resources/setup_attempt.rb +20 -331
- data/lib/stripe/resources/setup_intent.rb +2 -293
- data/lib/stripe/resources/shipping_rate.rb +0 -48
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +0 -16
- data/lib/stripe/resources/source.rb +0 -274
- data/lib/stripe/resources/source_mandate_notification.rb +0 -32
- data/lib/stripe/resources/source_transaction.rb +0 -54
- data/lib/stripe/resources/subscription.rb +3 -356
- data/lib/stripe/resources/subscription_item.rb +0 -24
- data/lib/stripe/resources/subscription_schedule.rb +0 -314
- data/lib/stripe/resources/tax/association.rb +0 -32
- data/lib/stripe/resources/tax/calculation.rb +0 -109
- data/lib/stripe/resources/tax/calculation_line_item.rb +0 -32
- data/lib/stripe/resources/tax/form.rb +0 -107
- data/lib/stripe/resources/tax/registration.rb +0 -1232
- data/lib/stripe/resources/tax/settings.rb +1 -61
- data/lib/stripe/resources/tax/transaction.rb +0 -93
- data/lib/stripe/resources/tax/transaction_line_item.rb +0 -16
- data/lib/stripe/resources/tax_code.rb +0 -8
- data/lib/stripe/resources/tax_deducted_at_source.rb +0 -8
- data/lib/stripe/resources/tax_id.rb +0 -24
- data/lib/stripe/resources/tax_rate.rb +0 -16
- data/lib/stripe/resources/terminal/configuration.rb +0 -299
- data/lib/stripe/resources/terminal/connection_token.rb +0 -8
- data/lib/stripe/resources/terminal/location.rb +0 -16
- data/lib/stripe/resources/terminal/onboarding_link.rb +0 -24
- data/lib/stripe/resources/terminal/reader.rb +0 -241
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -16
- data/lib/stripe/resources/test_helpers/test_clock.rb +0 -24
- data/lib/stripe/resources/token.rb +0 -8
- data/lib/stripe/resources/topup.rb +0 -8
- data/lib/stripe/resources/transfer.rb +0 -8
- data/lib/stripe/resources/treasury/credit_reversal.rb +0 -16
- data/lib/stripe/resources/treasury/debit_reversal.rb +0 -24
- data/lib/stripe/resources/treasury/financial_account.rb +0 -61
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -192
- data/lib/stripe/resources/treasury/inbound_transfer.rb +0 -69
- data/lib/stripe/resources/treasury/outbound_payment.rb +0 -106
- data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -114
- data/lib/stripe/resources/treasury/received_credit.rb +0 -97
- data/lib/stripe/resources/treasury/received_debit.rb +0 -89
- data/lib/stripe/resources/treasury/transaction.rb +0 -36
- data/lib/stripe/resources/treasury/transaction_entry.rb +0 -24
- data/lib/stripe/resources/v2/billing/meter_event.rb +0 -8
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +0 -16
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +0 -8
- data/lib/stripe/resources/v2/core/account.rb +0 -1900
- data/lib/stripe/resources/v2/core/account_link.rb +0 -51
- data/lib/stripe/resources/v2/core/person.rb +0 -201
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -40
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -8
- data/lib/stripe/resources/v2/event.rb +0 -26
- data/lib/stripe/resources/v2/event_destination.rb +0 -44
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -8
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -8
- data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -16
- data/lib/stripe/resources/v2/money_management/financial_account.rb +2 -63
- data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -32
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +3 -90
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -88
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -62
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -24
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -79
- data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -32
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -32
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -77
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -52
- data/lib/stripe/resources/v2/money_management/transaction.rb +0 -36
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -35
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -24
- data/lib/stripe/resources/webhook_endpoint.rb +0 -8
- data/lib/stripe/resources.rb +0 -85
- data/lib/stripe/services/billing/alert_service.rb +1 -75
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +1 -13
- data/lib/stripe/services/billing/credit_grant_service.rb +2 -29
- data/lib/stripe/services/checkout/session_service.rb +1 -80
- data/lib/stripe/services/invoice_service.rb +0 -4
- data/lib/stripe/services/issuing/card_service.rb +8 -0
- data/lib/stripe/services/subscription_service.rb +0 -27
- data/lib/stripe/services/v2/billing_service.rb +1 -18
- data/lib/stripe/services/v2/core_service.rb +1 -2
- data/lib/stripe/services/v2_services.rb +1 -3
- data/lib/stripe/services.rb +0 -29
- data/lib/stripe/stripe_object.rb +1 -25
- data/lib/stripe/util.rb +5 -9
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +37685 -116505
- metadata +2 -116
- data/lib/stripe/events/v2_billing_cadence_billed_event.rb +0 -21
- data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_billing_cadence_created_event.rb +0 -23
- data/lib/stripe/events/v2_billing_cadence_errored_event.rb +0 -21
- data/lib/stripe/events/v2_billing_license_fee_created_event.rb +0 -21
- data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +0 -23
- data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +0 -21
- data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_metered_item_created_event.rb +0 -21
- data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +0 -23
- data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +0 -23
- data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +0 -23
- data/lib/stripe/events/v2_billing_rate_card_created_event.rb +0 -23
- data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +0 -23
- data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +0 -21
- data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +0 -23
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +0 -13
- data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +0 -13
- data/lib/stripe/events/v2_reporting_report_run_created_event.rb +0 -21
- data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +0 -21
- data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +0 -21
- data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +0 -21
- data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -102
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -90
- data/lib/stripe/resources/v2/billing/cadence.rb +0 -323
- data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -296
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -284
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +0 -43
- data/lib/stripe/resources/v2/billing/intent.rb +0 -86
- data/lib/stripe/resources/v2/billing/intent_action.rb +0 -395
- data/lib/stripe/resources/v2/billing/license_fee.rb +0 -103
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +0 -44
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +0 -80
- data/lib/stripe/resources/v2/billing/licensed_item.rb +0 -60
- data/lib/stripe/resources/v2/billing/metered_item.rb +0 -85
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +0 -51
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +0 -94
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +0 -90
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +0 -38
- data/lib/stripe/resources/v2/billing/profile.rb +0 -46
- data/lib/stripe/resources/v2/billing/rate_card.rb +0 -61
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +0 -107
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +0 -90
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +0 -34
- data/lib/stripe/resources/v2/billing/service_action.rb +0 -232
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +0 -81
- data/lib/stripe/resources/v2/reporting/report.rb +0 -116
- data/lib/stripe/resources/v2/reporting/report_run.rb +0 -158
- data/lib/stripe/resources/v2/tax/automatic_rule.rb +0 -39
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -214
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -45
- data/lib/stripe/services/v2/billing/cadence_service.rb +0 -428
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -518
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -45
- data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +0 -108
- data/lib/stripe/services/v2/billing/intent_service.rb +0 -465
- data/lib/stripe/services/v2/billing/intents/action_service.rb +0 -45
- data/lib/stripe/services/v2/billing/license_fee_service.rb +0 -250
- data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +0 -23
- data/lib/stripe/services/v2/billing/license_fees/version_service.rb +0 -45
- data/lib/stripe/services/v2/billing/licensed_item_service.rb +0 -149
- data/lib/stripe/services/v2/billing/metered_item_service.rb +0 -176
- data/lib/stripe/services/v2/billing/pricing_plan_service.rb +0 -142
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +0 -76
- data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +0 -162
- data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +0 -45
- data/lib/stripe/services/v2/billing/profile_service.rb +0 -144
- data/lib/stripe/services/v2/billing/rate_card_service.rb +0 -151
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +0 -144
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +0 -161
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +0 -45
- data/lib/stripe/services/v2/billing/service_action_service.rb +0 -259
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +0 -50
- data/lib/stripe/services/v2/reporting/report_run_service.rb +0 -88
- data/lib/stripe/services/v2/reporting/report_service.rb +0 -25
- data/lib/stripe/services/v2/reporting_service.rb +0 -16
- data/lib/stripe/services/v2/tax/automatic_rule_service.rb +0 -99
- data/lib/stripe/services/v2/tax_service.rb +0 -15
@@ -17,127 +17,31 @@ module Stripe
|
|
17
17
|
end
|
18
18
|
|
19
19
|
class Amount < Stripe::StripeObject
|
20
|
-
class CustomPricingUnit < Stripe::StripeObject
|
21
|
-
class CustomPricingUnitDetails < Stripe::StripeObject
|
22
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
23
|
-
attr_reader :created
|
24
|
-
# The name of the custom pricing unit.
|
25
|
-
attr_reader :display_name
|
26
|
-
# Unique identifier for the object.
|
27
|
-
attr_reader :id
|
28
|
-
# A lookup key for the custom pricing unit.
|
29
|
-
attr_reader :lookup_key
|
30
|
-
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
31
|
-
attr_reader :metadata
|
32
|
-
# The status of the custom pricing unit.
|
33
|
-
attr_reader :status
|
34
|
-
|
35
|
-
def self.inner_class_types
|
36
|
-
@inner_class_types = {}
|
37
|
-
end
|
38
|
-
|
39
|
-
def self.field_remappings
|
40
|
-
@field_remappings = {}
|
41
|
-
end
|
42
|
-
end
|
43
|
-
# The custom pricing unit object.
|
44
|
-
attr_reader :custom_pricing_unit_details
|
45
|
-
# Unique identifier for the object.
|
46
|
-
attr_reader :id
|
47
|
-
# A positive integer representing the amount.
|
48
|
-
attr_reader :value
|
49
|
-
|
50
|
-
def self.inner_class_types
|
51
|
-
@inner_class_types = { custom_pricing_unit_details: CustomPricingUnitDetails }
|
52
|
-
end
|
53
|
-
|
54
|
-
def self.field_remappings
|
55
|
-
@field_remappings = {}
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
20
|
class Monetary < Stripe::StripeObject
|
60
21
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
61
22
|
attr_reader :currency
|
62
23
|
# A positive integer representing the amount.
|
63
24
|
attr_reader :value
|
64
|
-
|
65
|
-
def self.inner_class_types
|
66
|
-
@inner_class_types = {}
|
67
|
-
end
|
68
|
-
|
69
|
-
def self.field_remappings
|
70
|
-
@field_remappings = {}
|
71
|
-
end
|
72
25
|
end
|
73
|
-
# The custom pricing unit amount.
|
74
|
-
attr_reader :custom_pricing_unit
|
75
26
|
# The monetary amount.
|
76
27
|
attr_reader :monetary
|
77
28
|
# The type of this amount. We currently only support `monetary` billing credits.
|
78
29
|
attr_reader :type
|
79
|
-
|
80
|
-
def self.inner_class_types
|
81
|
-
@inner_class_types = { custom_pricing_unit: CustomPricingUnit, monetary: Monetary }
|
82
|
-
end
|
83
|
-
|
84
|
-
def self.field_remappings
|
85
|
-
@field_remappings = {}
|
86
|
-
end
|
87
30
|
end
|
88
31
|
|
89
32
|
class ApplicabilityConfig < Stripe::StripeObject
|
90
33
|
class Scope < Stripe::StripeObject
|
91
|
-
class BillableItem < Stripe::StripeObject
|
92
|
-
# Unique identifier for the object.
|
93
|
-
attr_reader :id
|
94
|
-
|
95
|
-
def self.inner_class_types
|
96
|
-
@inner_class_types = {}
|
97
|
-
end
|
98
|
-
|
99
|
-
def self.field_remappings
|
100
|
-
@field_remappings = {}
|
101
|
-
end
|
102
|
-
end
|
103
|
-
|
104
34
|
class Price < Stripe::StripeObject
|
105
35
|
# Unique identifier for the object.
|
106
36
|
attr_reader :id
|
107
|
-
|
108
|
-
def self.inner_class_types
|
109
|
-
@inner_class_types = {}
|
110
|
-
end
|
111
|
-
|
112
|
-
def self.field_remappings
|
113
|
-
@field_remappings = {}
|
114
|
-
end
|
115
37
|
end
|
116
|
-
# The billable items that credit grants can apply to. We currently only support metered billable items. Cannot be used in combination with `price_type` or `prices`.
|
117
|
-
attr_reader :billable_items
|
118
38
|
# The price type that credit grants can apply to. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `prices`.
|
119
39
|
attr_reader :price_type
|
120
40
|
# The prices that credit grants can apply to. We currently only support `metered` prices. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `price_type`.
|
121
41
|
attr_reader :prices
|
122
|
-
|
123
|
-
def self.inner_class_types
|
124
|
-
@inner_class_types = { billable_items: BillableItem, prices: Price }
|
125
|
-
end
|
126
|
-
|
127
|
-
def self.field_remappings
|
128
|
-
@field_remappings = {}
|
129
|
-
end
|
130
42
|
end
|
131
43
|
# Attribute for field scope
|
132
44
|
attr_reader :scope
|
133
|
-
|
134
|
-
def self.inner_class_types
|
135
|
-
@inner_class_types = { scope: Scope }
|
136
|
-
end
|
137
|
-
|
138
|
-
def self.field_remappings
|
139
|
-
@field_remappings = {}
|
140
|
-
end
|
141
45
|
end
|
142
46
|
|
143
47
|
class ListParams < Stripe::RequestParams
|
@@ -173,18 +77,6 @@ module Stripe
|
|
173
77
|
|
174
78
|
class CreateParams < Stripe::RequestParams
|
175
79
|
class Amount < Stripe::RequestParams
|
176
|
-
class CustomPricingUnit < Stripe::RequestParams
|
177
|
-
# The ID of the custom pricing unit.
|
178
|
-
attr_accessor :id
|
179
|
-
# A positive integer representing the amount of the credit grant.
|
180
|
-
attr_accessor :value
|
181
|
-
|
182
|
-
def initialize(id: nil, value: nil)
|
183
|
-
@id = id
|
184
|
-
@value = value
|
185
|
-
end
|
186
|
-
end
|
187
|
-
|
188
80
|
class Monetary < Stripe::RequestParams
|
189
81
|
# Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `value` parameter.
|
190
82
|
attr_accessor :currency
|
@@ -196,15 +88,12 @@ module Stripe
|
|
196
88
|
@value = value
|
197
89
|
end
|
198
90
|
end
|
199
|
-
# The custom pricing unit amount.
|
200
|
-
attr_accessor :custom_pricing_unit
|
201
91
|
# The monetary amount.
|
202
92
|
attr_accessor :monetary
|
203
93
|
# The type of this amount. We currently only support `monetary` billing credits.
|
204
94
|
attr_accessor :type
|
205
95
|
|
206
|
-
def initialize(
|
207
|
-
@custom_pricing_unit = custom_pricing_unit
|
96
|
+
def initialize(monetary: nil, type: nil)
|
208
97
|
@monetary = monetary
|
209
98
|
@type = type
|
210
99
|
end
|
@@ -212,15 +101,6 @@ module Stripe
|
|
212
101
|
|
213
102
|
class ApplicabilityConfig < Stripe::RequestParams
|
214
103
|
class Scope < Stripe::RequestParams
|
215
|
-
class BillableItem < Stripe::RequestParams
|
216
|
-
# The billable item ID this credit grant should apply to.
|
217
|
-
attr_accessor :id
|
218
|
-
|
219
|
-
def initialize(id: nil)
|
220
|
-
@id = id
|
221
|
-
end
|
222
|
-
end
|
223
|
-
|
224
104
|
class Price < Stripe::RequestParams
|
225
105
|
# The price ID this credit grant should apply to.
|
226
106
|
attr_accessor :id
|
@@ -229,15 +109,12 @@ module Stripe
|
|
229
109
|
@id = id
|
230
110
|
end
|
231
111
|
end
|
232
|
-
# A list of billable items that the credit grant can apply to. We currently only support metered billable items. Cannot be used in combination with `price_type` or `prices`.
|
233
|
-
attr_accessor :billable_items
|
234
112
|
# The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.
|
235
113
|
attr_accessor :price_type
|
236
114
|
# A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`.
|
237
115
|
attr_accessor :prices
|
238
116
|
|
239
|
-
def initialize(
|
240
|
-
@billable_items = billable_items
|
117
|
+
def initialize(price_type: nil, prices: nil)
|
241
118
|
@price_type = price_type
|
242
119
|
@prices = prices
|
243
120
|
end
|
@@ -435,14 +312,6 @@ module Stripe
|
|
435
312
|
opts: opts
|
436
313
|
)
|
437
314
|
end
|
438
|
-
|
439
|
-
def self.inner_class_types
|
440
|
-
@inner_class_types = { amount: Amount, applicability_config: ApplicabilityConfig }
|
441
|
-
end
|
442
|
-
|
443
|
-
def self.field_remappings
|
444
|
-
@field_remappings = {}
|
445
|
-
end
|
446
315
|
end
|
447
316
|
end
|
448
317
|
end
|
@@ -26,53 +26,21 @@ module Stripe
|
|
26
26
|
attr_reader :event_payload_key
|
27
27
|
# The method for mapping a meter event to a customer.
|
28
28
|
attr_reader :type
|
29
|
-
|
30
|
-
def self.inner_class_types
|
31
|
-
@inner_class_types = {}
|
32
|
-
end
|
33
|
-
|
34
|
-
def self.field_remappings
|
35
|
-
@field_remappings = {}
|
36
|
-
end
|
37
29
|
end
|
38
30
|
|
39
31
|
class DefaultAggregation < Stripe::StripeObject
|
40
32
|
# Specifies how events are aggregated.
|
41
33
|
attr_reader :formula
|
42
|
-
|
43
|
-
def self.inner_class_types
|
44
|
-
@inner_class_types = {}
|
45
|
-
end
|
46
|
-
|
47
|
-
def self.field_remappings
|
48
|
-
@field_remappings = {}
|
49
|
-
end
|
50
34
|
end
|
51
35
|
|
52
36
|
class StatusTransitions < Stripe::StripeObject
|
53
37
|
# The time the meter was deactivated, if any. Measured in seconds since Unix epoch.
|
54
38
|
attr_reader :deactivated_at
|
55
|
-
|
56
|
-
def self.inner_class_types
|
57
|
-
@inner_class_types = {}
|
58
|
-
end
|
59
|
-
|
60
|
-
def self.field_remappings
|
61
|
-
@field_remappings = {}
|
62
|
-
end
|
63
39
|
end
|
64
40
|
|
65
41
|
class ValueSettings < Stripe::StripeObject
|
66
42
|
# The key in the meter event payload to use as the value for this meter.
|
67
43
|
attr_reader :event_payload_key
|
68
|
-
|
69
|
-
def self.inner_class_types
|
70
|
-
@inner_class_types = {}
|
71
|
-
end
|
72
|
-
|
73
|
-
def self.field_remappings
|
74
|
-
@field_remappings = {}
|
75
|
-
end
|
76
44
|
end
|
77
45
|
|
78
46
|
class ListParams < Stripe::RequestParams
|
@@ -281,19 +249,6 @@ module Stripe
|
|
281
249
|
opts: opts
|
282
250
|
)
|
283
251
|
end
|
284
|
-
|
285
|
-
def self.inner_class_types
|
286
|
-
@inner_class_types = {
|
287
|
-
customer_mapping: CustomerMapping,
|
288
|
-
default_aggregation: DefaultAggregation,
|
289
|
-
status_transitions: StatusTransitions,
|
290
|
-
value_settings: ValueSettings,
|
291
|
-
}
|
292
|
-
end
|
293
|
-
|
294
|
-
def self.field_remappings
|
295
|
-
@field_remappings = {}
|
296
|
-
end
|
297
252
|
end
|
298
253
|
end
|
299
254
|
end
|
@@ -15,14 +15,6 @@ module Stripe
|
|
15
15
|
class Cancel < Stripe::StripeObject
|
16
16
|
# Unique identifier for the event.
|
17
17
|
attr_reader :identifier
|
18
|
-
|
19
|
-
def self.inner_class_types
|
20
|
-
@inner_class_types = {}
|
21
|
-
end
|
22
|
-
|
23
|
-
def self.field_remappings
|
24
|
-
@field_remappings = {}
|
25
|
-
end
|
26
18
|
end
|
27
19
|
|
28
20
|
class CreateParams < Stripe::RequestParams
|
@@ -72,14 +64,6 @@ module Stripe
|
|
72
64
|
opts: opts
|
73
65
|
)
|
74
66
|
end
|
75
|
-
|
76
|
-
def self.inner_class_types
|
77
|
-
@inner_class_types = { cancel: Cancel }
|
78
|
-
end
|
79
|
-
|
80
|
-
def self.field_remappings
|
81
|
-
@field_remappings = {}
|
82
|
-
end
|
83
67
|
end
|
84
68
|
end
|
85
69
|
end
|
@@ -27,14 +27,6 @@ module Stripe
|
|
27
27
|
attr_reader :object
|
28
28
|
# Start timestamp for this event summary (inclusive). Must be aligned with minute boundaries.
|
29
29
|
attr_reader :start_time
|
30
|
-
|
31
|
-
def self.inner_class_types
|
32
|
-
@inner_class_types = {}
|
33
|
-
end
|
34
|
-
|
35
|
-
def self.field_remappings
|
36
|
-
@field_remappings = {}
|
37
|
-
end
|
38
30
|
end
|
39
31
|
end
|
40
32
|
end
|
@@ -18,14 +18,6 @@ module Stripe
|
|
18
18
|
attr_reader :livemode
|
19
19
|
# String representing the object's type. Objects of the same type share the same value.
|
20
20
|
attr_reader :object
|
21
|
-
|
22
|
-
def self.inner_class_types
|
23
|
-
@inner_class_types = {}
|
24
|
-
end
|
25
|
-
|
26
|
-
def self.field_remappings
|
27
|
-
@field_remappings = {}
|
28
|
-
end
|
29
21
|
end
|
30
22
|
end
|
31
23
|
end
|
@@ -23,14 +23,6 @@ module Stripe
|
|
23
23
|
attr_reader :meter_id
|
24
24
|
# String representing the object's type. Objects of the same type share the same value.
|
25
25
|
attr_reader :object
|
26
|
-
|
27
|
-
def self.inner_class_types
|
28
|
-
@inner_class_types = {}
|
29
|
-
end
|
30
|
-
|
31
|
-
def self.field_remappings
|
32
|
-
@field_remappings = {}
|
33
|
-
end
|
34
26
|
end
|
35
27
|
end
|
36
28
|
end
|
@@ -21,14 +21,6 @@ module Stripe
|
|
21
21
|
attr_reader :privacy_policy_url
|
22
22
|
# A link to the business’s publicly available terms of service.
|
23
23
|
attr_reader :terms_of_service_url
|
24
|
-
|
25
|
-
def self.inner_class_types
|
26
|
-
@inner_class_types = {}
|
27
|
-
end
|
28
|
-
|
29
|
-
def self.field_remappings
|
30
|
-
@field_remappings = {}
|
31
|
-
end
|
32
24
|
end
|
33
25
|
|
34
26
|
class Features < Stripe::StripeObject
|
@@ -37,40 +29,16 @@ module Stripe
|
|
37
29
|
attr_reader :allowed_updates
|
38
30
|
# Whether the feature is enabled.
|
39
31
|
attr_reader :enabled
|
40
|
-
|
41
|
-
def self.inner_class_types
|
42
|
-
@inner_class_types = {}
|
43
|
-
end
|
44
|
-
|
45
|
-
def self.field_remappings
|
46
|
-
@field_remappings = {}
|
47
|
-
end
|
48
32
|
end
|
49
33
|
|
50
34
|
class InvoiceHistory < Stripe::StripeObject
|
51
35
|
# Whether the feature is enabled.
|
52
36
|
attr_reader :enabled
|
53
|
-
|
54
|
-
def self.inner_class_types
|
55
|
-
@inner_class_types = {}
|
56
|
-
end
|
57
|
-
|
58
|
-
def self.field_remappings
|
59
|
-
@field_remappings = {}
|
60
|
-
end
|
61
37
|
end
|
62
38
|
|
63
39
|
class PaymentMethodUpdate < Stripe::StripeObject
|
64
40
|
# Whether the feature is enabled.
|
65
41
|
attr_reader :enabled
|
66
|
-
|
67
|
-
def self.inner_class_types
|
68
|
-
@inner_class_types = {}
|
69
|
-
end
|
70
|
-
|
71
|
-
def self.field_remappings
|
72
|
-
@field_remappings = {}
|
73
|
-
end
|
74
42
|
end
|
75
43
|
|
76
44
|
class SubscriptionCancel < Stripe::StripeObject
|
@@ -79,14 +47,6 @@ module Stripe
|
|
79
47
|
attr_reader :enabled
|
80
48
|
# Which cancellation reasons will be given as options to the customer.
|
81
49
|
attr_reader :options
|
82
|
-
|
83
|
-
def self.inner_class_types
|
84
|
-
@inner_class_types = {}
|
85
|
-
end
|
86
|
-
|
87
|
-
def self.field_remappings
|
88
|
-
@field_remappings = {}
|
89
|
-
end
|
90
50
|
end
|
91
51
|
# Attribute for field cancellation_reason
|
92
52
|
attr_reader :cancellation_reason
|
@@ -96,14 +56,6 @@ module Stripe
|
|
96
56
|
attr_reader :mode
|
97
57
|
# Whether to create prorations when canceling subscriptions. Possible values are `none` and `create_prorations`.
|
98
58
|
attr_reader :proration_behavior
|
99
|
-
|
100
|
-
def self.inner_class_types
|
101
|
-
@inner_class_types = { cancellation_reason: CancellationReason }
|
102
|
-
end
|
103
|
-
|
104
|
-
def self.field_remappings
|
105
|
-
@field_remappings = {}
|
106
|
-
end
|
107
59
|
end
|
108
60
|
|
109
61
|
class SubscriptionUpdate < Stripe::StripeObject
|
@@ -115,14 +67,6 @@ module Stripe
|
|
115
67
|
attr_reader :maximum
|
116
68
|
# The minimum quantity that can be set for the product.
|
117
69
|
attr_reader :minimum
|
118
|
-
|
119
|
-
def self.inner_class_types
|
120
|
-
@inner_class_types = {}
|
121
|
-
end
|
122
|
-
|
123
|
-
def self.field_remappings
|
124
|
-
@field_remappings = {}
|
125
|
-
end
|
126
70
|
end
|
127
71
|
# Attribute for field adjustable_quantity
|
128
72
|
attr_reader :adjustable_quantity
|
@@ -130,39 +74,15 @@ module Stripe
|
|
130
74
|
attr_reader :prices
|
131
75
|
# The product ID.
|
132
76
|
attr_reader :product
|
133
|
-
|
134
|
-
def self.inner_class_types
|
135
|
-
@inner_class_types = { adjustable_quantity: AdjustableQuantity }
|
136
|
-
end
|
137
|
-
|
138
|
-
def self.field_remappings
|
139
|
-
@field_remappings = {}
|
140
|
-
end
|
141
77
|
end
|
142
78
|
|
143
79
|
class ScheduleAtPeriodEnd < Stripe::StripeObject
|
144
80
|
class Condition < Stripe::StripeObject
|
145
81
|
# The type of condition.
|
146
82
|
attr_reader :type
|
147
|
-
|
148
|
-
def self.inner_class_types
|
149
|
-
@inner_class_types = {}
|
150
|
-
end
|
151
|
-
|
152
|
-
def self.field_remappings
|
153
|
-
@field_remappings = {}
|
154
|
-
end
|
155
83
|
end
|
156
84
|
# List of conditions. When any condition is true, an update will be scheduled at the end of the current period.
|
157
85
|
attr_reader :conditions
|
158
|
-
|
159
|
-
def self.inner_class_types
|
160
|
-
@inner_class_types = { conditions: Condition }
|
161
|
-
end
|
162
|
-
|
163
|
-
def self.field_remappings
|
164
|
-
@field_remappings = {}
|
165
|
-
end
|
166
86
|
end
|
167
87
|
# The types of subscription updates that are supported for items listed in the `products` attribute. When empty, subscriptions are not updateable.
|
168
88
|
attr_reader :default_allowed_updates
|
@@ -174,14 +94,6 @@ module Stripe
|
|
174
94
|
attr_reader :proration_behavior
|
175
95
|
# Attribute for field schedule_at_period_end
|
176
96
|
attr_reader :schedule_at_period_end
|
177
|
-
|
178
|
-
def self.inner_class_types
|
179
|
-
@inner_class_types = { products: Product, schedule_at_period_end: ScheduleAtPeriodEnd }
|
180
|
-
end
|
181
|
-
|
182
|
-
def self.field_remappings
|
183
|
-
@field_remappings = {}
|
184
|
-
end
|
185
97
|
end
|
186
98
|
# Attribute for field customer_update
|
187
99
|
attr_reader :customer_update
|
@@ -193,20 +105,6 @@ module Stripe
|
|
193
105
|
attr_reader :subscription_cancel
|
194
106
|
# Attribute for field subscription_update
|
195
107
|
attr_reader :subscription_update
|
196
|
-
|
197
|
-
def self.inner_class_types
|
198
|
-
@inner_class_types = {
|
199
|
-
customer_update: CustomerUpdate,
|
200
|
-
invoice_history: InvoiceHistory,
|
201
|
-
payment_method_update: PaymentMethodUpdate,
|
202
|
-
subscription_cancel: SubscriptionCancel,
|
203
|
-
subscription_update: SubscriptionUpdate,
|
204
|
-
}
|
205
|
-
end
|
206
|
-
|
207
|
-
def self.field_remappings
|
208
|
-
@field_remappings = {}
|
209
|
-
end
|
210
108
|
end
|
211
109
|
|
212
110
|
class LoginPage < Stripe::StripeObject
|
@@ -216,14 +114,6 @@ module Stripe
|
|
216
114
|
attr_reader :enabled
|
217
115
|
# A shareable URL to the hosted portal login page. Your customers will be able to log in with their [email](https://stripe.com/docs/api/customers/object#customer_object-email) and receive a link to their customer portal.
|
218
116
|
attr_reader :url
|
219
|
-
|
220
|
-
def self.inner_class_types
|
221
|
-
@inner_class_types = {}
|
222
|
-
end
|
223
|
-
|
224
|
-
def self.field_remappings
|
225
|
-
@field_remappings = {}
|
226
|
-
end
|
227
117
|
end
|
228
118
|
|
229
119
|
class ListParams < Stripe::RequestParams
|
@@ -760,18 +650,6 @@ module Stripe
|
|
760
650
|
opts: opts
|
761
651
|
)
|
762
652
|
end
|
763
|
-
|
764
|
-
def self.inner_class_types
|
765
|
-
@inner_class_types = {
|
766
|
-
business_profile: BusinessProfile,
|
767
|
-
features: Features,
|
768
|
-
login_page: LoginPage,
|
769
|
-
}
|
770
|
-
end
|
771
|
-
|
772
|
-
def self.field_remappings
|
773
|
-
@field_remappings = {}
|
774
|
-
end
|
775
653
|
end
|
776
654
|
end
|
777
655
|
end
|