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
data/lib/stripe/resources.rb
CHANGED
@@ -165,35 +165,11 @@ require "stripe/resources/treasury/received_credit"
|
|
165
165
|
require "stripe/resources/treasury/received_debit"
|
166
166
|
require "stripe/resources/treasury/transaction"
|
167
167
|
require "stripe/resources/treasury/transaction_entry"
|
168
|
-
require "stripe/resources/v2/billing/bill_setting"
|
169
|
-
require "stripe/resources/v2/billing/bill_setting_version"
|
170
|
-
require "stripe/resources/v2/billing/cadence"
|
171
|
-
require "stripe/resources/v2/billing/collection_setting"
|
172
|
-
require "stripe/resources/v2/billing/collection_setting_version"
|
173
|
-
require "stripe/resources/v2/billing/custom_pricing_unit"
|
174
|
-
require "stripe/resources/v2/billing/intent"
|
175
|
-
require "stripe/resources/v2/billing/intent_action"
|
176
|
-
require "stripe/resources/v2/billing/license_fee"
|
177
|
-
require "stripe/resources/v2/billing/license_fee_subscription"
|
178
|
-
require "stripe/resources/v2/billing/license_fee_version"
|
179
|
-
require "stripe/resources/v2/billing/licensed_item"
|
180
168
|
require "stripe/resources/v2/billing/meter_event"
|
181
169
|
require "stripe/resources/v2/billing/meter_event_adjustment"
|
182
170
|
require "stripe/resources/v2/billing/meter_event_session"
|
183
|
-
require "stripe/resources/v2/billing/metered_item"
|
184
|
-
require "stripe/resources/v2/billing/pricing_plan"
|
185
|
-
require "stripe/resources/v2/billing/pricing_plan_component"
|
186
|
-
require "stripe/resources/v2/billing/pricing_plan_subscription"
|
187
|
-
require "stripe/resources/v2/billing/pricing_plan_version"
|
188
|
-
require "stripe/resources/v2/billing/profile"
|
189
|
-
require "stripe/resources/v2/billing/rate_card"
|
190
|
-
require "stripe/resources/v2/billing/rate_card_rate"
|
191
|
-
require "stripe/resources/v2/billing/rate_card_subscription"
|
192
|
-
require "stripe/resources/v2/billing/rate_card_version"
|
193
|
-
require "stripe/resources/v2/billing/service_action"
|
194
171
|
require "stripe/resources/v2/core/account"
|
195
172
|
require "stripe/resources/v2/core/account_link"
|
196
|
-
require "stripe/resources/v2/core/claimable_sandbox"
|
197
173
|
require "stripe/resources/v2/core/person"
|
198
174
|
require "stripe/resources/v2/core/vault/gb_bank_account"
|
199
175
|
require "stripe/resources/v2/core/vault/us_bank_account"
|
@@ -216,50 +192,9 @@ require "stripe/resources/v2/money_management/received_debit"
|
|
216
192
|
require "stripe/resources/v2/money_management/transaction"
|
217
193
|
require "stripe/resources/v2/money_management/transaction_entry"
|
218
194
|
require "stripe/resources/v2/payments/off_session_payment"
|
219
|
-
require "stripe/resources/v2/reporting/report"
|
220
|
-
require "stripe/resources/v2/reporting/report_run"
|
221
|
-
require "stripe/resources/v2/tax/automatic_rule"
|
222
195
|
require "stripe/resources/webhook_endpoint"
|
223
196
|
require "stripe/events/v1_billing_meter_error_report_triggered_event"
|
224
197
|
require "stripe/events/v1_billing_meter_no_meter_found_event"
|
225
|
-
require "stripe/events/v2_billing_cadence_billed_event"
|
226
|
-
require "stripe/events/v2_billing_cadence_canceled_event"
|
227
|
-
require "stripe/events/v2_billing_cadence_created_event"
|
228
|
-
require "stripe/events/v2_billing_cadence_errored_event"
|
229
|
-
require "stripe/events/v2_billing_license_fee_created_event"
|
230
|
-
require "stripe/events/v2_billing_license_fee_updated_event"
|
231
|
-
require "stripe/events/v2_billing_license_fee_version_created_event"
|
232
|
-
require "stripe/events/v2_billing_licensed_item_created_event"
|
233
|
-
require "stripe/events/v2_billing_licensed_item_updated_event"
|
234
|
-
require "stripe/events/v2_billing_metered_item_created_event"
|
235
|
-
require "stripe/events/v2_billing_metered_item_updated_event"
|
236
|
-
require "stripe/events/v2_billing_pricing_plan_component_created_event"
|
237
|
-
require "stripe/events/v2_billing_pricing_plan_component_updated_event"
|
238
|
-
require "stripe/events/v2_billing_pricing_plan_created_event"
|
239
|
-
require "stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event"
|
240
|
-
require "stripe/events/v2_billing_pricing_plan_subscription_collection_current_event"
|
241
|
-
require "stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event"
|
242
|
-
require "stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event"
|
243
|
-
require "stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event"
|
244
|
-
require "stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event"
|
245
|
-
require "stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event"
|
246
|
-
require "stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event"
|
247
|
-
require "stripe/events/v2_billing_pricing_plan_updated_event"
|
248
|
-
require "stripe/events/v2_billing_pricing_plan_version_created_event"
|
249
|
-
require "stripe/events/v2_billing_rate_card_created_event"
|
250
|
-
require "stripe/events/v2_billing_rate_card_rate_created_event"
|
251
|
-
require "stripe/events/v2_billing_rate_card_subscription_activated_event"
|
252
|
-
require "stripe/events/v2_billing_rate_card_subscription_canceled_event"
|
253
|
-
require "stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event"
|
254
|
-
require "stripe/events/v2_billing_rate_card_subscription_collection_current_event"
|
255
|
-
require "stripe/events/v2_billing_rate_card_subscription_collection_past_due_event"
|
256
|
-
require "stripe/events/v2_billing_rate_card_subscription_collection_paused_event"
|
257
|
-
require "stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event"
|
258
|
-
require "stripe/events/v2_billing_rate_card_subscription_servicing_activated_event"
|
259
|
-
require "stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event"
|
260
|
-
require "stripe/events/v2_billing_rate_card_subscription_servicing_paused_event"
|
261
|
-
require "stripe/events/v2_billing_rate_card_updated_event"
|
262
|
-
require "stripe/events/v2_billing_rate_card_version_created_event"
|
263
198
|
require "stripe/events/v2_core_account_closed_event"
|
264
199
|
require "stripe/events/v2_core_account_created_event"
|
265
200
|
require "stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event"
|
@@ -279,22 +214,6 @@ require "stripe/events/v2_core_account_person_deleted_event"
|
|
279
214
|
require "stripe/events/v2_core_account_person_updated_event"
|
280
215
|
require "stripe/events/v2_core_account_updated_event"
|
281
216
|
require "stripe/events/v2_core_event_destination_ping_event"
|
282
|
-
require "stripe/events/v2_core_health_api_error_firing_event"
|
283
|
-
require "stripe/events/v2_core_health_api_error_resolved_event"
|
284
|
-
require "stripe/events/v2_core_health_api_latency_firing_event"
|
285
|
-
require "stripe/events/v2_core_health_api_latency_resolved_event"
|
286
|
-
require "stripe/events/v2_core_health_authorization_rate_drop_firing_event"
|
287
|
-
require "stripe/events/v2_core_health_authorization_rate_drop_resolved_event"
|
288
|
-
require "stripe/events/v2_core_health_event_generation_failure_resolved_event"
|
289
|
-
require "stripe/events/v2_core_health_fraud_rate_increased_event"
|
290
|
-
require "stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event"
|
291
|
-
require "stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event"
|
292
|
-
require "stripe/events/v2_core_health_payment_method_error_firing_event"
|
293
|
-
require "stripe/events/v2_core_health_payment_method_error_resolved_event"
|
294
|
-
require "stripe/events/v2_core_health_traffic_volume_drop_firing_event"
|
295
|
-
require "stripe/events/v2_core_health_traffic_volume_drop_resolved_event"
|
296
|
-
require "stripe/events/v2_core_health_webhook_latency_firing_event"
|
297
|
-
require "stripe/events/v2_core_health_webhook_latency_resolved_event"
|
298
217
|
require "stripe/events/v2_money_management_adjustment_created_event"
|
299
218
|
require "stripe/events/v2_money_management_financial_account_created_event"
|
300
219
|
require "stripe/events/v2_money_management_financial_account_updated_event"
|
@@ -336,7 +255,3 @@ require "stripe/events/v2_payments_off_session_payment_canceled_event"
|
|
336
255
|
require "stripe/events/v2_payments_off_session_payment_created_event"
|
337
256
|
require "stripe/events/v2_payments_off_session_payment_failed_event"
|
338
257
|
require "stripe/events/v2_payments_off_session_payment_succeeded_event"
|
339
|
-
require "stripe/events/v2_reporting_report_run_created_event"
|
340
|
-
require "stripe/events/v2_reporting_report_run_failed_event"
|
341
|
-
require "stripe/events/v2_reporting_report_run_succeeded_event"
|
342
|
-
require "stripe/events/v2_reporting_report_run_updated_event"
|
@@ -7,8 +7,6 @@ module Stripe
|
|
7
7
|
class ListParams < Stripe::RequestParams
|
8
8
|
# Filter results to only include this type of alert.
|
9
9
|
attr_accessor :alert_type
|
10
|
-
# Filter results to only include alerts for the given customer.
|
11
|
-
attr_accessor :customer
|
12
10
|
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
13
11
|
attr_accessor :ending_before
|
14
12
|
# Specifies which fields in the response should be expanded.
|
@@ -22,7 +20,6 @@ module Stripe
|
|
22
20
|
|
23
21
|
def initialize(
|
24
22
|
alert_type: nil,
|
25
|
-
customer: nil,
|
26
23
|
ending_before: nil,
|
27
24
|
expand: nil,
|
28
25
|
limit: nil,
|
@@ -30,7 +27,6 @@ module Stripe
|
|
30
27
|
starting_after: nil
|
31
28
|
)
|
32
29
|
@alert_type = alert_type
|
33
|
-
@customer = customer
|
34
30
|
@ending_before = ending_before
|
35
31
|
@expand = expand
|
36
32
|
@limit = limit
|
@@ -40,67 +36,6 @@ module Stripe
|
|
40
36
|
end
|
41
37
|
|
42
38
|
class CreateParams < Stripe::RequestParams
|
43
|
-
class CreditBalanceThreshold < Stripe::RequestParams
|
44
|
-
class Filter < Stripe::RequestParams
|
45
|
-
# Limit the scope to this credit balance alert only to this customer.
|
46
|
-
attr_accessor :customer
|
47
|
-
# What type of filter is being applied to this credit balance alert.
|
48
|
-
attr_accessor :type
|
49
|
-
|
50
|
-
def initialize(customer: nil, type: nil)
|
51
|
-
@customer = customer
|
52
|
-
@type = type
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
|
-
class Lte < Stripe::RequestParams
|
57
|
-
class CustomPricingUnit < Stripe::RequestParams
|
58
|
-
# The ID of the custom pricing unit.
|
59
|
-
attr_accessor :id
|
60
|
-
# A positive decimal string representing the amount of the custom pricing unit threshold.
|
61
|
-
attr_accessor :value
|
62
|
-
|
63
|
-
def initialize(id: nil, value: nil)
|
64
|
-
@id = id
|
65
|
-
@value = value
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
class Monetary < Stripe::RequestParams
|
70
|
-
# Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `value` parameter.
|
71
|
-
attr_accessor :currency
|
72
|
-
# An integer representing the amount of the threshold.
|
73
|
-
attr_accessor :value
|
74
|
-
|
75
|
-
def initialize(currency: nil, value: nil)
|
76
|
-
@currency = currency
|
77
|
-
@value = value
|
78
|
-
end
|
79
|
-
end
|
80
|
-
# Specify the type of this balance. We currently only support `monetary` billing credits.
|
81
|
-
attr_accessor :balance_type
|
82
|
-
# The custom pricing unit amount.
|
83
|
-
attr_accessor :custom_pricing_unit
|
84
|
-
# The monetary amount.
|
85
|
-
attr_accessor :monetary
|
86
|
-
|
87
|
-
def initialize(balance_type: nil, custom_pricing_unit: nil, monetary: nil)
|
88
|
-
@balance_type = balance_type
|
89
|
-
@custom_pricing_unit = custom_pricing_unit
|
90
|
-
@monetary = monetary
|
91
|
-
end
|
92
|
-
end
|
93
|
-
# The filters allows limiting the scope of this credit balance alert. You must specify a customer filter at this time.
|
94
|
-
attr_accessor :filters
|
95
|
-
# Defines at which value the alert will fire.
|
96
|
-
attr_accessor :lte
|
97
|
-
|
98
|
-
def initialize(filters: nil, lte: nil)
|
99
|
-
@filters = filters
|
100
|
-
@lte = lte
|
101
|
-
end
|
102
|
-
end
|
103
|
-
|
104
39
|
class UsageThreshold < Stripe::RequestParams
|
105
40
|
class Filter < Stripe::RequestParams
|
106
41
|
# Limit the scope to this usage alert only to this customer.
|
@@ -131,8 +66,6 @@ module Stripe
|
|
131
66
|
end
|
132
67
|
# The type of alert to create.
|
133
68
|
attr_accessor :alert_type
|
134
|
-
# The configuration of the credit balance threshold.
|
135
|
-
attr_accessor :credit_balance_threshold
|
136
69
|
# Specifies which fields in the response should be expanded.
|
137
70
|
attr_accessor :expand
|
138
71
|
# The title of the alert.
|
@@ -140,15 +73,8 @@ module Stripe
|
|
140
73
|
# The configuration of the usage threshold.
|
141
74
|
attr_accessor :usage_threshold
|
142
75
|
|
143
|
-
def initialize(
|
144
|
-
alert_type: nil,
|
145
|
-
credit_balance_threshold: nil,
|
146
|
-
expand: nil,
|
147
|
-
title: nil,
|
148
|
-
usage_threshold: nil
|
149
|
-
)
|
76
|
+
def initialize(alert_type: nil, expand: nil, title: nil, usage_threshold: nil)
|
150
77
|
@alert_type = alert_type
|
151
|
-
@credit_balance_threshold = credit_balance_threshold
|
152
78
|
@expand = expand
|
153
79
|
@title = title
|
154
80
|
@usage_threshold = usage_threshold
|
@@ -7,15 +7,6 @@ module Stripe
|
|
7
7
|
class RetrieveParams < Stripe::RequestParams
|
8
8
|
class Filter < Stripe::RequestParams
|
9
9
|
class ApplicabilityScope < Stripe::RequestParams
|
10
|
-
class BillableItem < Stripe::RequestParams
|
11
|
-
# The billable item ID this credit grant should apply to.
|
12
|
-
attr_accessor :id
|
13
|
-
|
14
|
-
def initialize(id: nil)
|
15
|
-
@id = id
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
10
|
class Price < Stripe::RequestParams
|
20
11
|
# The price ID this credit grant should apply to.
|
21
12
|
attr_accessor :id
|
@@ -24,15 +15,12 @@ module Stripe
|
|
24
15
|
@id = id
|
25
16
|
end
|
26
17
|
end
|
27
|
-
# 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`.
|
28
|
-
attr_accessor :billable_items
|
29
18
|
# The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.
|
30
19
|
attr_accessor :price_type
|
31
20
|
# 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`.
|
32
21
|
attr_accessor :prices
|
33
22
|
|
34
|
-
def initialize(
|
35
|
-
@billable_items = billable_items
|
23
|
+
def initialize(price_type: nil, prices: nil)
|
36
24
|
@price_type = price_type
|
37
25
|
@prices = prices
|
38
26
|
end
|
@@ -37,18 +37,6 @@ module Stripe
|
|
37
37
|
|
38
38
|
class CreateParams < Stripe::RequestParams
|
39
39
|
class Amount < Stripe::RequestParams
|
40
|
-
class CustomPricingUnit < Stripe::RequestParams
|
41
|
-
# The ID of the custom pricing unit.
|
42
|
-
attr_accessor :id
|
43
|
-
# A positive integer representing the amount of the credit grant.
|
44
|
-
attr_accessor :value
|
45
|
-
|
46
|
-
def initialize(id: nil, value: nil)
|
47
|
-
@id = id
|
48
|
-
@value = value
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
40
|
class Monetary < Stripe::RequestParams
|
53
41
|
# Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `value` parameter.
|
54
42
|
attr_accessor :currency
|
@@ -60,15 +48,12 @@ module Stripe
|
|
60
48
|
@value = value
|
61
49
|
end
|
62
50
|
end
|
63
|
-
# The custom pricing unit amount.
|
64
|
-
attr_accessor :custom_pricing_unit
|
65
51
|
# The monetary amount.
|
66
52
|
attr_accessor :monetary
|
67
53
|
# The type of this amount. We currently only support `monetary` billing credits.
|
68
54
|
attr_accessor :type
|
69
55
|
|
70
|
-
def initialize(
|
71
|
-
@custom_pricing_unit = custom_pricing_unit
|
56
|
+
def initialize(monetary: nil, type: nil)
|
72
57
|
@monetary = monetary
|
73
58
|
@type = type
|
74
59
|
end
|
@@ -76,15 +61,6 @@ module Stripe
|
|
76
61
|
|
77
62
|
class ApplicabilityConfig < Stripe::RequestParams
|
78
63
|
class Scope < Stripe::RequestParams
|
79
|
-
class BillableItem < Stripe::RequestParams
|
80
|
-
# The billable item ID this credit grant should apply to.
|
81
|
-
attr_accessor :id
|
82
|
-
|
83
|
-
def initialize(id: nil)
|
84
|
-
@id = id
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
64
|
class Price < Stripe::RequestParams
|
89
65
|
# The price ID this credit grant should apply to.
|
90
66
|
attr_accessor :id
|
@@ -93,15 +69,12 @@ module Stripe
|
|
93
69
|
@id = id
|
94
70
|
end
|
95
71
|
end
|
96
|
-
# 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`.
|
97
|
-
attr_accessor :billable_items
|
98
72
|
# The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.
|
99
73
|
attr_accessor :price_type
|
100
74
|
# 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`.
|
101
75
|
attr_accessor :prices
|
102
76
|
|
103
|
-
def initialize(
|
104
|
-
@billable_items = billable_items
|
77
|
+
def initialize(price_type: nil, prices: nil)
|
105
78
|
@price_type = price_type
|
106
79
|
@prices = prices
|
107
80
|
end
|
@@ -149,81 +149,6 @@ module Stripe
|
|
149
149
|
end
|
150
150
|
end
|
151
151
|
|
152
|
-
class CheckoutItem < Stripe::RequestParams
|
153
|
-
class PricingPlanSubscriptionItem < Stripe::RequestParams
|
154
|
-
class ComponentConfigurations < Stripe::RequestParams
|
155
|
-
class LicenseFeeComponent < Stripe::RequestParams
|
156
|
-
# Attribute for param field quantity
|
157
|
-
attr_accessor :quantity
|
158
|
-
|
159
|
-
def initialize(quantity: nil)
|
160
|
-
@quantity = quantity
|
161
|
-
end
|
162
|
-
end
|
163
|
-
# Attribute for param field type
|
164
|
-
attr_accessor :type
|
165
|
-
# Attribute for param field license_fee_component
|
166
|
-
attr_accessor :license_fee_component
|
167
|
-
|
168
|
-
def initialize(type: nil, license_fee_component: nil)
|
169
|
-
@type = type
|
170
|
-
@license_fee_component = license_fee_component
|
171
|
-
end
|
172
|
-
end
|
173
|
-
# Attribute for param field pricing_plan
|
174
|
-
attr_accessor :pricing_plan
|
175
|
-
# Attribute for param field pricing_plan_version
|
176
|
-
attr_accessor :pricing_plan_version
|
177
|
-
# Attribute for param field metadata
|
178
|
-
attr_accessor :metadata
|
179
|
-
# Attribute for param field component_configurations
|
180
|
-
attr_accessor :component_configurations
|
181
|
-
|
182
|
-
def initialize(
|
183
|
-
pricing_plan: nil,
|
184
|
-
pricing_plan_version: nil,
|
185
|
-
metadata: nil,
|
186
|
-
component_configurations: nil
|
187
|
-
)
|
188
|
-
@pricing_plan = pricing_plan
|
189
|
-
@pricing_plan_version = pricing_plan_version
|
190
|
-
@metadata = metadata
|
191
|
-
@component_configurations = component_configurations
|
192
|
-
end
|
193
|
-
end
|
194
|
-
|
195
|
-
class RateCardSubscriptionItem < Stripe::RequestParams
|
196
|
-
# Attribute for param field rate_card
|
197
|
-
attr_accessor :rate_card
|
198
|
-
# Attribute for param field metadata
|
199
|
-
attr_accessor :metadata
|
200
|
-
# Attribute for param field rate_card_version
|
201
|
-
attr_accessor :rate_card_version
|
202
|
-
|
203
|
-
def initialize(rate_card: nil, metadata: nil, rate_card_version: nil)
|
204
|
-
@rate_card = rate_card
|
205
|
-
@metadata = metadata
|
206
|
-
@rate_card_version = rate_card_version
|
207
|
-
end
|
208
|
-
end
|
209
|
-
# Attribute for param field type
|
210
|
-
attr_accessor :type
|
211
|
-
# Attribute for param field rate_card_subscription_item
|
212
|
-
attr_accessor :rate_card_subscription_item
|
213
|
-
# Attribute for param field pricing_plan_subscription_item
|
214
|
-
attr_accessor :pricing_plan_subscription_item
|
215
|
-
|
216
|
-
def initialize(
|
217
|
-
type: nil,
|
218
|
-
rate_card_subscription_item: nil,
|
219
|
-
pricing_plan_subscription_item: nil
|
220
|
-
)
|
221
|
-
@type = type
|
222
|
-
@rate_card_subscription_item = rate_card_subscription_item
|
223
|
-
@pricing_plan_subscription_item = pricing_plan_subscription_item
|
224
|
-
end
|
225
|
-
end
|
226
|
-
|
227
152
|
class ConsentCollection < Stripe::RequestParams
|
228
153
|
class PaymentMethodReuseAgreement < Stripe::RequestParams
|
229
154
|
# Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's
|
@@ -2480,8 +2405,6 @@ module Stripe
|
|
2480
2405
|
attr_accessor :ui_mode
|
2481
2406
|
# Wallet-specific configuration.
|
2482
2407
|
attr_accessor :wallet_options
|
2483
|
-
# Attribute for param field checkout_items
|
2484
|
-
attr_accessor :checkout_items
|
2485
2408
|
|
2486
2409
|
def initialize(
|
2487
2410
|
adaptive_pricing: nil,
|
@@ -2529,8 +2452,7 @@ module Stripe
|
|
2529
2452
|
success_url: nil,
|
2530
2453
|
tax_id_collection: nil,
|
2531
2454
|
ui_mode: nil,
|
2532
|
-
wallet_options: nil
|
2533
|
-
checkout_items: nil
|
2455
|
+
wallet_options: nil
|
2534
2456
|
)
|
2535
2457
|
@adaptive_pricing = adaptive_pricing
|
2536
2458
|
@after_expiration = after_expiration
|
@@ -2578,7 +2500,6 @@ module Stripe
|
|
2578
2500
|
@tax_id_collection = tax_id_collection
|
2579
2501
|
@ui_mode = ui_mode
|
2580
2502
|
@wallet_options = wallet_options
|
2581
|
-
@checkout_items = checkout_items
|
2582
2503
|
end
|
2583
2504
|
end
|
2584
2505
|
|
@@ -3782,8 +3782,6 @@ module Stripe
|
|
3782
3782
|
end
|
3783
3783
|
# Settings for automatic tax lookup for this invoice preview.
|
3784
3784
|
attr_accessor :automatic_tax
|
3785
|
-
# The identifier of the billing cadence for which you’d like to retrieve the upcoming invoice.Cannot be provided when `subscription`, `schedule`, `subscription_details` or `schedule_details` are provided.
|
3786
|
-
attr_accessor :billing_cadence
|
3787
3785
|
# The currency to preview this invoice in. Defaults to that of `customer` if not specified.
|
3788
3786
|
attr_accessor :currency
|
3789
3787
|
# The identifier of the customer whose upcoming invoice you'd like to retrieve. If `automatic_tax` is enabled then one of `customer`, `customer_details`, `subscription`, or `schedule` must be set.
|
@@ -3815,7 +3813,6 @@ module Stripe
|
|
3815
3813
|
|
3816
3814
|
def initialize(
|
3817
3815
|
automatic_tax: nil,
|
3818
|
-
billing_cadence: nil,
|
3819
3816
|
currency: nil,
|
3820
3817
|
customer: nil,
|
3821
3818
|
customer_account: nil,
|
@@ -3832,7 +3829,6 @@ module Stripe
|
|
3832
3829
|
subscription_details: nil
|
3833
3830
|
)
|
3834
3831
|
@automatic_tax = automatic_tax
|
3835
|
-
@billing_cadence = billing_cadence
|
3836
3832
|
@currency = currency
|
3837
3833
|
@customer = customer
|
3838
3834
|
@customer_account = customer_account
|
@@ -217,6 +217,10 @@ module Stripe
|
|
217
217
|
attr_accessor :cardholder
|
218
218
|
# The currency for the card.
|
219
219
|
attr_accessor :currency
|
220
|
+
# The desired expiration month (1-12) for this card if [specifying a custom expiration date](/issuing/cards/virtual/issue-cards?testing-method=with-code#exp-dates).
|
221
|
+
attr_accessor :exp_month
|
222
|
+
# The desired 4-digit expiration year for this card if [specifying a custom expiration date](/issuing/cards/virtual/issue-cards?testing-method=with-code#exp-dates).
|
223
|
+
attr_accessor :exp_year
|
220
224
|
# Specifies which fields in the response should be expanded.
|
221
225
|
attr_accessor :expand
|
222
226
|
# The new financial account ID the card will be associated with. This field allows a card to be reassigned to a different financial account.
|
@@ -245,6 +249,8 @@ module Stripe
|
|
245
249
|
def initialize(
|
246
250
|
cardholder: nil,
|
247
251
|
currency: nil,
|
252
|
+
exp_month: nil,
|
253
|
+
exp_year: nil,
|
248
254
|
expand: nil,
|
249
255
|
financial_account: nil,
|
250
256
|
metadata: nil,
|
@@ -260,6 +266,8 @@ module Stripe
|
|
260
266
|
)
|
261
267
|
@cardholder = cardholder
|
262
268
|
@currency = currency
|
269
|
+
@exp_month = exp_month
|
270
|
+
@exp_year = exp_year
|
263
271
|
@expand = expand
|
264
272
|
@financial_account = financial_account
|
265
273
|
@metadata = metadata
|
@@ -1684,8 +1684,6 @@ module Stripe
|
|
1684
1684
|
attr_accessor :automatic_tax
|
1685
1685
|
# A past timestamp to backdate the subscription's start date to. If set, the first invoice will contain line items for the timespan between the start date and the current time. Can be combined with trials and the billing cycle anchor.
|
1686
1686
|
attr_accessor :backdate_start_date
|
1687
|
-
# The Billing Cadence which controls the timing of recurring invoice generation for this subscription. If unset, the subscription will bill according to its own configured schedule and create its own invoices. If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence.
|
1688
|
-
attr_accessor :billing_cadence
|
1689
1687
|
# A future timestamp in UTC format to anchor the subscription's [billing cycle](https://stripe.com/docs/subscriptions/billing-cycle). The anchor is the reference point that aligns future billing cycle dates. It sets the day of week for `week` intervals, the day of month for `month` and `year` intervals, and the month of year for `year` intervals.
|
1690
1688
|
attr_accessor :billing_cycle_anchor
|
1691
1689
|
# Mutually exclusive with billing_cycle_anchor and only valid with monthly and yearly price intervals. When provided, the billing_cycle_anchor is set to the next occurence of the day_of_month at the hour, minute, and second UTC.
|
@@ -1766,7 +1764,6 @@ module Stripe
|
|
1766
1764
|
application_fee_percent: nil,
|
1767
1765
|
automatic_tax: nil,
|
1768
1766
|
backdate_start_date: nil,
|
1769
|
-
billing_cadence: nil,
|
1770
1767
|
billing_cycle_anchor: nil,
|
1771
1768
|
billing_cycle_anchor_config: nil,
|
1772
1769
|
billing_mode: nil,
|
@@ -1804,7 +1801,6 @@ module Stripe
|
|
1804
1801
|
@application_fee_percent = application_fee_percent
|
1805
1802
|
@automatic_tax = automatic_tax
|
1806
1803
|
@backdate_start_date = backdate_start_date
|
1807
|
-
@billing_cadence = billing_cadence
|
1808
1804
|
@billing_cycle_anchor = billing_cycle_anchor
|
1809
1805
|
@billing_cycle_anchor_config = billing_cycle_anchor_config
|
1810
1806
|
@billing_mode = billing_mode
|
@@ -1858,18 +1854,6 @@ module Stripe
|
|
1858
1854
|
end
|
1859
1855
|
end
|
1860
1856
|
|
1861
|
-
class AttachCadenceParams < Stripe::RequestParams
|
1862
|
-
# The Billing Cadence which controls the timing of recurring invoice generation for this subscription. If unset, the subscription will bill according to its own configured schedule and create its own invoices. If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence.
|
1863
|
-
attr_accessor :billing_cadence
|
1864
|
-
# Specifies which fields in the response should be expanded.
|
1865
|
-
attr_accessor :expand
|
1866
|
-
|
1867
|
-
def initialize(billing_cadence: nil, expand: nil)
|
1868
|
-
@billing_cadence = billing_cadence
|
1869
|
-
@expand = expand
|
1870
|
-
end
|
1871
|
-
end
|
1872
|
-
|
1873
1857
|
class MigrateParams < Stripe::RequestParams
|
1874
1858
|
class BillingMode < Stripe::RequestParams
|
1875
1859
|
# Attribute for param field type
|
@@ -1913,17 +1897,6 @@ module Stripe
|
|
1913
1897
|
end
|
1914
1898
|
end
|
1915
1899
|
|
1916
|
-
# Attach a Billing Cadence to an existing subscription. When attached, the subscription is billed by the Billing Cadence, potentially sharing invoices with the other subscriptions linked to the Billing Cadence.
|
1917
|
-
def attach_cadence(subscription, params = {}, opts = {})
|
1918
|
-
request(
|
1919
|
-
method: :post,
|
1920
|
-
path: format("/v1/subscriptions/%<subscription>s/attach_cadence", { subscription: CGI.escape(subscription) }),
|
1921
|
-
params: params,
|
1922
|
-
opts: opts,
|
1923
|
-
base_address: :api
|
1924
|
-
)
|
1925
|
-
end
|
1926
|
-
|
1927
1900
|
# Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata).
|
1928
1901
|
#
|
1929
1902
|
# Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api#delete_invoiceitem). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
|
@@ -4,31 +4,14 @@
|
|
4
4
|
module Stripe
|
5
5
|
module V2
|
6
6
|
class BillingService < StripeService
|
7
|
-
attr_reader :
|
7
|
+
attr_reader :meter_events, :meter_event_adjustments, :meter_event_session, :meter_event_stream
|
8
8
|
|
9
9
|
def initialize(requestor)
|
10
10
|
super
|
11
|
-
@bill_settings = Stripe::V2::Billing::BillSettingService.new(@requestor)
|
12
|
-
@cadences = Stripe::V2::Billing::CadenceService.new(@requestor)
|
13
|
-
@collection_settings = Stripe::V2::Billing::CollectionSettingService.new(@requestor)
|
14
|
-
@custom_pricing_units = Stripe::V2::Billing::CustomPricingUnitService.new(@requestor)
|
15
|
-
@intents = Stripe::V2::Billing::IntentService.new(@requestor)
|
16
|
-
@license_fees = Stripe::V2::Billing::LicenseFeeService.new(@requestor)
|
17
|
-
@license_fee_subscriptions = Stripe::V2::Billing::LicenseFeeSubscriptionService
|
18
|
-
.new(@requestor)
|
19
|
-
@licensed_items = Stripe::V2::Billing::LicensedItemService.new(@requestor)
|
20
11
|
@meter_events = Stripe::V2::Billing::MeterEventService.new(@requestor)
|
21
12
|
@meter_event_adjustments = Stripe::V2::Billing::MeterEventAdjustmentService.new(@requestor)
|
22
13
|
@meter_event_session = Stripe::V2::Billing::MeterEventSessionService.new(@requestor)
|
23
14
|
@meter_event_stream = Stripe::V2::Billing::MeterEventStreamService.new(@requestor)
|
24
|
-
@metered_items = Stripe::V2::Billing::MeteredItemService.new(@requestor)
|
25
|
-
@pricing_plans = Stripe::V2::Billing::PricingPlanService.new(@requestor)
|
26
|
-
@pricing_plan_subscriptions = Stripe::V2::Billing::PricingPlanSubscriptionService
|
27
|
-
.new(@requestor)
|
28
|
-
@profiles = Stripe::V2::Billing::ProfileService.new(@requestor)
|
29
|
-
@rate_cards = Stripe::V2::Billing::RateCardService.new(@requestor)
|
30
|
-
@rate_card_subscriptions = Stripe::V2::Billing::RateCardSubscriptionService.new(@requestor)
|
31
|
-
@service_actions = Stripe::V2::Billing::ServiceActionService.new(@requestor)
|
32
15
|
end
|
33
16
|
end
|
34
17
|
end
|
@@ -4,13 +4,12 @@
|
|
4
4
|
module Stripe
|
5
5
|
module V2
|
6
6
|
class CoreService < StripeService
|
7
|
-
attr_reader :accounts, :account_links, :
|
7
|
+
attr_reader :accounts, :account_links, :events, :event_destinations, :vault
|
8
8
|
|
9
9
|
def initialize(requestor)
|
10
10
|
super
|
11
11
|
@accounts = Stripe::V2::Core::AccountService.new(@requestor)
|
12
12
|
@account_links = Stripe::V2::Core::AccountLinkService.new(@requestor)
|
13
|
-
@claimable_sandboxes = Stripe::V2::Core::ClaimableSandboxService.new(@requestor)
|
14
13
|
@events = Stripe::V2::Core::EventService.new(@requestor)
|
15
14
|
@event_destinations = Stripe::V2::Core::EventDestinationService.new(@requestor)
|
16
15
|
@vault = Stripe::V2::Core::VaultService.new(@requestor)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
module Stripe
|
5
5
|
class V2Services < StripeService
|
6
|
-
attr_reader :billing, :core, :money_management, :payments, :
|
6
|
+
attr_reader :billing, :core, :money_management, :payments, :test_helpers
|
7
7
|
|
8
8
|
def initialize(requestor)
|
9
9
|
super
|
@@ -11,8 +11,6 @@ module Stripe
|
|
11
11
|
@core = Stripe::V2::CoreService.new(@requestor)
|
12
12
|
@money_management = Stripe::V2::MoneyManagementService.new(@requestor)
|
13
13
|
@payments = Stripe::V2::PaymentService.new(@requestor)
|
14
|
-
@reporting = Stripe::V2::ReportingService.new(@requestor)
|
15
|
-
@tax = Stripe::V2::TaxService.new(@requestor)
|
16
14
|
@test_helpers = Stripe::V2::TestHelperService.new(@requestor)
|
17
15
|
end
|
18
16
|
end
|