stripe 17.2.0.pre.beta.1 → 17.3.0.pre.alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/event_types.rb +817 -0
- data/lib/stripe/events/v1_account_updated_event.rb +44 -0
- data/lib/stripe/events/v1_application_fee_created_event.rb +44 -0
- data/lib/stripe/events/v1_application_fee_refunded_event.rb +44 -0
- data/lib/stripe/events/v1_billing_portal_configuration_created_event.rb +44 -0
- data/lib/stripe/events/v1_billing_portal_configuration_updated_event.rb +44 -0
- data/lib/stripe/events/v1_capability_updated_event.rb +44 -0
- data/lib/stripe/events/v1_charge_captured_event.rb +44 -0
- data/lib/stripe/events/v1_charge_dispute_closed_event.rb +44 -0
- data/lib/stripe/events/v1_charge_dispute_created_event.rb +44 -0
- data/lib/stripe/events/v1_charge_dispute_funds_reinstated_event.rb +44 -0
- data/lib/stripe/events/v1_charge_dispute_funds_withdrawn_event.rb +44 -0
- data/lib/stripe/events/v1_charge_dispute_updated_event.rb +44 -0
- data/lib/stripe/events/v1_charge_expired_event.rb +44 -0
- data/lib/stripe/events/v1_charge_failed_event.rb +44 -0
- data/lib/stripe/events/v1_charge_pending_event.rb +44 -0
- data/lib/stripe/events/v1_charge_refund_updated_event.rb +44 -0
- data/lib/stripe/events/v1_charge_refunded_event.rb +44 -0
- data/lib/stripe/events/v1_charge_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_charge_updated_event.rb +44 -0
- data/lib/stripe/events/v1_checkout_session_async_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v1_checkout_session_async_payment_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_checkout_session_completed_event.rb +44 -0
- data/lib/stripe/events/v1_checkout_session_expired_event.rb +44 -0
- data/lib/stripe/events/v1_climate_order_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_climate_order_created_event.rb +44 -0
- data/lib/stripe/events/v1_climate_order_delayed_event.rb +44 -0
- data/lib/stripe/events/v1_climate_order_delivered_event.rb +44 -0
- data/lib/stripe/events/v1_climate_order_product_substituted_event.rb +44 -0
- data/lib/stripe/events/v1_climate_product_created_event.rb +44 -0
- data/lib/stripe/events/v1_climate_product_pricing_updated_event.rb +44 -0
- data/lib/stripe/events/v1_coupon_created_event.rb +44 -0
- data/lib/stripe/events/v1_coupon_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_coupon_updated_event.rb +44 -0
- data/lib/stripe/events/v1_credit_note_created_event.rb +44 -0
- data/lib/stripe/events/v1_credit_note_updated_event.rb +44 -0
- data/lib/stripe/events/v1_credit_note_voided_event.rb +44 -0
- data/lib/stripe/events/v1_customer_created_event.rb +44 -0
- data/lib/stripe/events/v1_customer_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_created_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_paused_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_pending_update_applied_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_pending_update_expired_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_resumed_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_trial_will_end_event.rb +44 -0
- data/lib/stripe/events/v1_customer_subscription_updated_event.rb +44 -0
- data/lib/stripe/events/v1_customer_tax_id_created_event.rb +44 -0
- data/lib/stripe/events/v1_customer_tax_id_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_customer_tax_id_updated_event.rb +44 -0
- data/lib/stripe/events/v1_customer_updated_event.rb +44 -0
- data/lib/stripe/events/v1_file_created_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_created_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_deactivated_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_disconnected_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_reactivated_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_refreshed_ownership_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb +44 -0
- data/lib/stripe/events/v1_identity_verification_session_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_identity_verification_session_created_event.rb +44 -0
- data/lib/stripe/events/v1_identity_verification_session_processing_event.rb +44 -0
- data/lib/stripe/events/v1_identity_verification_session_redacted_event.rb +44 -0
- data/lib/stripe/events/v1_identity_verification_session_requires_input_event.rb +44 -0
- data/lib/stripe/events/v1_identity_verification_session_verified_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_created_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_finalization_failed_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_finalized_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_marked_uncollectible_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_overdue_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_overpaid_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_paid_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_payment_action_required_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_payment_paid_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_payment_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_sent_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_upcoming_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_updated_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_voided_event.rb +44 -0
- data/lib/stripe/events/v1_invoice_will_be_due_event.rb +44 -0
- data/lib/stripe/events/v1_invoiceitem_created_event.rb +44 -0
- data/lib/stripe/events/v1_invoiceitem_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_authorization_created_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_authorization_request_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_authorization_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_card_created_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_card_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_cardholder_created_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_cardholder_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_dispute_closed_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_dispute_created_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_dispute_funds_reinstated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_dispute_funds_rescinded_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_dispute_submitted_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_dispute_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_personalization_design_activated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_personalization_design_rejected_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_personalization_design_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_token_created_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_token_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_transaction_created_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event.rb +44 -0
- data/lib/stripe/events/v1_issuing_transaction_updated_event.rb +44 -0
- data/lib/stripe/events/v1_mandate_updated_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_amount_capturable_updated_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_created_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_partially_funded_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_processing_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_requires_action_event.rb +44 -0
- data/lib/stripe/events/v1_payment_intent_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_payment_link_created_event.rb +44 -0
- data/lib/stripe/events/v1_payment_link_updated_event.rb +44 -0
- data/lib/stripe/events/v1_payment_method_attached_event.rb +44 -0
- data/lib/stripe/events/v1_payment_method_automatically_updated_event.rb +44 -0
- data/lib/stripe/events/v1_payment_method_detached_event.rb +44 -0
- data/lib/stripe/events/v1_payment_method_updated_event.rb +44 -0
- data/lib/stripe/events/v1_payout_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_payout_created_event.rb +44 -0
- data/lib/stripe/events/v1_payout_failed_event.rb +44 -0
- data/lib/stripe/events/v1_payout_paid_event.rb +44 -0
- data/lib/stripe/events/v1_payout_reconciliation_completed_event.rb +44 -0
- data/lib/stripe/events/v1_payout_updated_event.rb +44 -0
- data/lib/stripe/events/v1_person_created_event.rb +44 -0
- data/lib/stripe/events/v1_person_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_person_updated_event.rb +44 -0
- data/lib/stripe/events/v1_plan_created_event.rb +44 -0
- data/lib/stripe/events/v1_plan_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_plan_updated_event.rb +44 -0
- data/lib/stripe/events/v1_price_created_event.rb +44 -0
- data/lib/stripe/events/v1_price_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_price_updated_event.rb +44 -0
- data/lib/stripe/events/v1_product_created_event.rb +44 -0
- data/lib/stripe/events/v1_product_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_product_updated_event.rb +44 -0
- data/lib/stripe/events/v1_promotion_code_created_event.rb +44 -0
- data/lib/stripe/events/v1_promotion_code_updated_event.rb +44 -0
- data/lib/stripe/events/v1_quote_accepted_event.rb +44 -0
- data/lib/stripe/events/v1_quote_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_quote_created_event.rb +44 -0
- data/lib/stripe/events/v1_quote_finalized_event.rb +44 -0
- data/lib/stripe/events/v1_radar_early_fraud_warning_created_event.rb +44 -0
- data/lib/stripe/events/v1_radar_early_fraud_warning_updated_event.rb +44 -0
- data/lib/stripe/events/v1_refund_created_event.rb +44 -0
- data/lib/stripe/events/v1_refund_failed_event.rb +44 -0
- data/lib/stripe/events/v1_refund_updated_event.rb +44 -0
- data/lib/stripe/events/v1_review_closed_event.rb +44 -0
- data/lib/stripe/events/v1_review_opened_event.rb +44 -0
- data/lib/stripe/events/v1_setup_intent_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_setup_intent_created_event.rb +44 -0
- data/lib/stripe/events/v1_setup_intent_requires_action_event.rb +44 -0
- data/lib/stripe/events/v1_setup_intent_setup_failed_event.rb +44 -0
- data/lib/stripe/events/v1_setup_intent_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_sigma_scheduled_query_run_created_event.rb +44 -0
- data/lib/stripe/events/v1_source_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_source_chargeable_event.rb +44 -0
- data/lib/stripe/events/v1_source_failed_event.rb +44 -0
- data/lib/stripe/events/v1_source_refund_attributes_required_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_aborted_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_completed_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_created_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_expiring_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_released_event.rb +44 -0
- data/lib/stripe/events/v1_subscription_schedule_updated_event.rb +44 -0
- data/lib/stripe/events/v1_tax_rate_created_event.rb +44 -0
- data/lib/stripe/events/v1_tax_rate_updated_event.rb +44 -0
- data/lib/stripe/events/v1_terminal_reader_action_failed_event.rb +44 -0
- data/lib/stripe/events/v1_terminal_reader_action_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_terminal_reader_action_updated_event.rb +44 -0
- data/lib/stripe/events/v1_test_helpers_test_clock_advancing_event.rb +44 -0
- data/lib/stripe/events/v1_test_helpers_test_clock_created_event.rb +44 -0
- data/lib/stripe/events/v1_test_helpers_test_clock_deleted_event.rb +44 -0
- data/lib/stripe/events/v1_test_helpers_test_clock_internal_failure_event.rb +44 -0
- data/lib/stripe/events/v1_test_helpers_test_clock_ready_event.rb +44 -0
- data/lib/stripe/events/v1_topup_canceled_event.rb +44 -0
- data/lib/stripe/events/v1_topup_created_event.rb +44 -0
- data/lib/stripe/events/v1_topup_failed_event.rb +44 -0
- data/lib/stripe/events/v1_topup_reversed_event.rb +44 -0
- data/lib/stripe/events/v1_topup_succeeded_event.rb +44 -0
- data/lib/stripe/events/v1_transfer_created_event.rb +44 -0
- data/lib/stripe/events/v1_transfer_reversed_event.rb +44 -0
- data/lib/stripe/events/v1_transfer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_cadence_billed_event.rb +61 -0
- data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_cadence_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_license_fee_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_metered_item_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +61 -0
- data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_rate_card_created_event.rb +61 -0
- data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +67 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +66 -0
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +66 -0
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +80 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +80 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +66 -0
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +64 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +62 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +58 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +58 -0
- data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +44 -0
- data/lib/stripe/object_types.rb +29 -0
- data/lib/stripe/params/billing/alert_create_params.rb +121 -1
- data/lib/stripe/params/billing/alert_list_params.rb +4 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +5 -1
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +13 -1
- data/lib/stripe/params/billing/credit_grant_create_params.rb +29 -2
- data/lib/stripe/params/billing/meter_create_params.rb +4 -0
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +8 -0
- data/lib/stripe/params/capital/financing_offer_create_params.rb +37 -0
- data/lib/stripe/params/capital/financing_offer_refill_params.rb +37 -0
- data/lib/stripe/params/charge_capture_params.rb +2 -8
- data/lib/stripe/params/charge_update_params.rb +2 -8
- data/lib/stripe/params/checkout/session_create_params.rb +80 -1
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +55 -0
- data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +205 -0
- data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +209 -0
- data/lib/stripe/params/identity/blocklist_entry_create_params.rb +29 -0
- data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +15 -0
- data/lib/stripe/params/identity/blocklist_entry_list_params.rb +62 -0
- data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_report_list_params.rb +4 -0
- data/lib/stripe/params/invoice_list_params.rb +4 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +13 -29
- data/lib/stripe/params/payment_intent_confirm_params.rb +48 -30
- data/lib/stripe/params/payment_intent_create_params.rb +48 -30
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +13 -29
- data/lib/stripe/params/payment_intent_update_params.rb +48 -30
- data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +29 -0
- data/lib/stripe/params/setup_intent_create_params.rb +29 -0
- data/lib/stripe/params/setup_intent_update_params.rb +30 -1
- data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +39 -0
- data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +39 -0
- data/lib/stripe/params/transfer_create_params.rb +5 -1
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +8 -1
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +4 -0
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +4 -1
- data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +26 -0
- data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +26 -0
- data/lib/stripe/params/v2/billing/intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intent_commit_params.rb +17 -0
- data/lib/stripe/params/v2/billing/intent_create_params.rb +355 -0
- data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/license_fee_create_params.rb +103 -0
- data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/license_fee_update_params.rb +84 -0
- data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
- data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
- data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
- data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
- data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
- data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +50 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -0
- data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +39 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +73 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +12 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +27 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +22 -0
- data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/rate_card_create_params.rb +49 -0
- data/lib/stripe/params/v2/billing/rate_card_list_params.rb +24 -0
- data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +26 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +51 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +17 -0
- data/lib/stripe/params/v2/billing/rate_card_update_params.rb +38 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +91 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +12 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +25 -0
- data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/service_action_create_params.rb +254 -0
- data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/service_action_update_params.rb +40 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +703 -8
- data/lib/stripe/params/v2/core/account_update_params.rb +689 -8
- data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +36 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +12 -1
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +4 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +19 -1
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +4 -0
- data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/reporting/report_run_create_params.rb +33 -0
- data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/tax/automatic_rule_create_params.rb +20 -0
- data/lib/stripe/params/v2/tax/automatic_rule_deactivate_params.rb +10 -0
- data/lib/stripe/params/v2/tax/automatic_rule_find_params.rb +17 -0
- data/lib/stripe/params/v2/tax/automatic_rule_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/tax/automatic_rule_update_params.rb +17 -0
- data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +24 -0
- data/lib/stripe/params.rb +89 -0
- data/lib/stripe/resources/application_fee.rb +2 -0
- data/lib/stripe/resources/balance.rb +83 -0
- data/lib/stripe/resources/billing/alert.rb +105 -1
- data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +2 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +84 -2
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +84 -2
- data/lib/stripe/resources/billing/credit_grant.rb +58 -2
- data/lib/stripe/resources/billing/meter.rb +2 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
- data/lib/stripe/resources/capital/financing_offer.rb +41 -0
- data/lib/stripe/resources/card.rb +18 -1
- data/lib/stripe/resources/charge.rb +18 -0
- data/lib/stripe/resources/checkout/session.rb +92 -0
- data/lib/stripe/resources/confirmation_token.rb +18 -0
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +402 -0
- data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
- data/lib/stripe/resources/identity/verification_report.rb +4 -0
- data/lib/stripe/resources/invoice_item.rb +90 -2
- data/lib/stripe/resources/invoice_line_item.rb +91 -1
- data/lib/stripe/resources/payment_intent.rb +51 -17
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +7 -13
- data/lib/stripe/resources/payment_method.rb +38 -0
- data/lib/stripe/resources/payment_method_balance.rb +68 -0
- data/lib/stripe/resources/setup_intent.rb +40 -0
- data/lib/stripe/resources/transfer.rb +4 -0
- data/lib/stripe/resources/transit_balance.rb +45 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +46 -0
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
- data/lib/stripe/resources/v2/billing/intent.rb +86 -0
- data/lib/stripe/resources/v2/billing/intent_action.rb +395 -0
- data/lib/stripe/resources/v2/billing/license_fee.rb +104 -0
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +44 -0
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +80 -0
- data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
- data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +94 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +94 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +49 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +38 -0
- data/lib/stripe/resources/v2/billing/rate_card.rb +61 -0
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +110 -0
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +94 -0
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +34 -0
- data/lib/stripe/resources/v2/billing/service_action.rb +244 -0
- data/lib/stripe/resources/v2/core/account.rb +1065 -4
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +105 -0
- data/lib/stripe/resources/v2/core/event.rb +6 -2
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +2 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +2 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +29 -1
- data/lib/stripe/resources/v2/money_management/received_credit.rb +2 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +4 -0
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
- data/lib/stripe/resources/v2/reporting/report.rb +116 -0
- data/lib/stripe/resources/v2/reporting/report_run.rb +128 -0
- data/lib/stripe/resources/v2/tax/automatic_rule.rb +39 -0
- data/lib/stripe/resources.rb +281 -0
- data/lib/stripe/services/delegated_checkout/requested_session_service.rb +63 -0
- data/lib/stripe/services/delegated_checkout_service.rb +13 -0
- data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
- data/lib/stripe/services/identity_service.rb +2 -1
- data/lib/stripe/services/payment_method_service.rb +11 -0
- data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +32 -0
- data/lib/stripe/services/test_helpers/capital_service.rb +15 -0
- data/lib/stripe/services/test_helpers_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +2 -1
- data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
- data/lib/stripe/services/v2/billing/intent_service.rb +94 -0
- data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
- data/lib/stripe/services/v2/billing/license_fee_service.rb +61 -0
- data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +21 -0
- data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
- data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
- data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +51 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +23 -0
- data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
- data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/rate_card_service.rb +62 -0
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +57 -0
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/service_action_service.rb +43 -0
- data/lib/stripe/services/v2/billing_service.rb +14 -1
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +35 -0
- data/lib/stripe/services/v2/core_service.rb +2 -1
- data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
- data/lib/stripe/services/v2/money_management_service.rb +3 -1
- data/lib/stripe/services/v2/reporting/report_run_service.rb +38 -0
- data/lib/stripe/services/v2/reporting/report_service.rb +23 -0
- data/lib/stripe/services/v2/reporting_service.rb +16 -0
- data/lib/stripe/services/v2/tax/automatic_rule_service.rb +65 -0
- data/lib/stripe/services/v2/tax_service.rb +15 -0
- data/lib/stripe/services/v2/test_helper_service.rb +2 -1
- data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
- data/lib/stripe/services/v2_services.rb +3 -1
- data/lib/stripe/services.rb +31 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +13567 -760
- metadata +403 -2
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
# Funds that are in transit and destined for another balance or another connected account.
|
|
6
|
+
class TransitBalance < APIResource
|
|
7
|
+
OBJECT_NAME = "transit_balance"
|
|
8
|
+
def self.object_name
|
|
9
|
+
"transit_balance"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
class Balance < ::Stripe::StripeObject
|
|
13
|
+
# Attribute for field available
|
|
14
|
+
attr_reader :available
|
|
15
|
+
# Attribute for field pending
|
|
16
|
+
attr_reader :pending
|
|
17
|
+
|
|
18
|
+
def self.inner_class_types
|
|
19
|
+
@inner_class_types = {}
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def self.field_remappings
|
|
23
|
+
@field_remappings = {}
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
# Attribute for field balance
|
|
27
|
+
attr_reader :balance
|
|
28
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
29
|
+
attr_reader :created
|
|
30
|
+
# 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).
|
|
31
|
+
attr_reader :currency
|
|
32
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
33
|
+
attr_reader :livemode
|
|
34
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
35
|
+
attr_reader :object
|
|
36
|
+
|
|
37
|
+
def self.inner_class_types
|
|
38
|
+
@inner_class_types = { balance: Balance }
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def self.field_remappings
|
|
42
|
+
@field_remappings = {}
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -180,6 +180,49 @@ module Stripe
|
|
|
180
180
|
end
|
|
181
181
|
end
|
|
182
182
|
|
|
183
|
+
class InvoiceDiscountRule < ::Stripe::StripeObject
|
|
184
|
+
class PercentOff < ::Stripe::StripeObject
|
|
185
|
+
class MaximumApplications < ::Stripe::StripeObject
|
|
186
|
+
# Max applications type of this discount, ex: indefinite.
|
|
187
|
+
attr_reader :type
|
|
188
|
+
|
|
189
|
+
def self.inner_class_types
|
|
190
|
+
@inner_class_types = {}
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
def self.field_remappings
|
|
194
|
+
@field_remappings = {}
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
# The maximum applications configuration for this discount.
|
|
198
|
+
attr_reader :maximum_applications
|
|
199
|
+
# Percent that will be taken off of the amount. For example, percent_off of 50.0 will make $100 amount $50 instead.
|
|
200
|
+
attr_reader :percent_off
|
|
201
|
+
|
|
202
|
+
def self.inner_class_types
|
|
203
|
+
@inner_class_types = { maximum_applications: MaximumApplications }
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
def self.field_remappings
|
|
207
|
+
@field_remappings = {}
|
|
208
|
+
end
|
|
209
|
+
end
|
|
210
|
+
# Unique identifier for the object.
|
|
211
|
+
attr_reader :id
|
|
212
|
+
# The type of the discount.
|
|
213
|
+
attr_reader :type
|
|
214
|
+
# Details if the discount is a percentage off.
|
|
215
|
+
attr_reader :percent_off
|
|
216
|
+
|
|
217
|
+
def self.inner_class_types
|
|
218
|
+
@inner_class_types = { percent_off: PercentOff }
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
def self.field_remappings
|
|
222
|
+
@field_remappings = {}
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
|
|
183
226
|
class Payer < ::Stripe::StripeObject
|
|
184
227
|
# The ID of the Billing Profile object which determines how a bill will be paid.
|
|
185
228
|
attr_reader :billing_profile
|
|
@@ -570,6 +613,8 @@ module Stripe
|
|
|
570
613
|
attr_reader :created
|
|
571
614
|
# Unique identifier for the object.
|
|
572
615
|
attr_reader :id
|
|
616
|
+
# The discount rules applied to all invoices for the cadence.
|
|
617
|
+
attr_reader :invoice_discount_rules
|
|
573
618
|
# A lookup key used to retrieve cadences dynamically from a static string. Maximum length of 200 characters.
|
|
574
619
|
attr_reader :lookup_key
|
|
575
620
|
# Set of [key-value pairs](/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
@@ -594,6 +639,7 @@ module Stripe
|
|
|
594
639
|
def self.inner_class_types
|
|
595
640
|
@inner_class_types = {
|
|
596
641
|
billing_cycle: BillingCycle,
|
|
642
|
+
invoice_discount_rules: InvoiceDiscountRule,
|
|
597
643
|
payer: Payer,
|
|
598
644
|
settings: Settings,
|
|
599
645
|
settings_data: SettingsData,
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Billing
|
|
7
|
+
# The Custom Pricing Unit object.
|
|
8
|
+
class CustomPricingUnit < APIResource
|
|
9
|
+
OBJECT_NAME = "v2.billing.custom_pricing_unit"
|
|
10
|
+
def self.object_name
|
|
11
|
+
"v2.billing.custom_pricing_unit"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Whether the custom pricing unit is active.
|
|
15
|
+
attr_reader :active
|
|
16
|
+
# Timestamp of when the object was created.
|
|
17
|
+
attr_reader :created
|
|
18
|
+
# Description that customers will see in the invoice line item.
|
|
19
|
+
# Maximum length of 10 characters.
|
|
20
|
+
attr_reader :display_name
|
|
21
|
+
# Unique identifier for the object.
|
|
22
|
+
attr_reader :id
|
|
23
|
+
# An internal key you can use to search for a particular Custom Pricing Unit.
|
|
24
|
+
# Maximum length of 200 characters.
|
|
25
|
+
attr_reader :lookup_key
|
|
26
|
+
# Set of [key-value pairs](/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
27
|
+
attr_reader :metadata
|
|
28
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
29
|
+
attr_reader :object
|
|
30
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
31
|
+
attr_reader :livemode
|
|
32
|
+
|
|
33
|
+
def self.inner_class_types
|
|
34
|
+
@inner_class_types = {}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def self.field_remappings
|
|
38
|
+
@field_remappings = {}
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Billing
|
|
7
|
+
class Intent < APIResource
|
|
8
|
+
OBJECT_NAME = "v2.billing.intent"
|
|
9
|
+
def self.object_name
|
|
10
|
+
"v2.billing.intent"
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
class AmountDetails < ::Stripe::StripeObject
|
|
14
|
+
# Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
15
|
+
attr_reader :currency
|
|
16
|
+
# Amount of discount applied.
|
|
17
|
+
attr_reader :discount
|
|
18
|
+
# Amount of shipping charges.
|
|
19
|
+
attr_reader :shipping
|
|
20
|
+
# Subtotal amount before tax and discounts.
|
|
21
|
+
attr_reader :subtotal
|
|
22
|
+
# Amount of tax.
|
|
23
|
+
attr_reader :tax
|
|
24
|
+
# Total amount for the Billing Intent.
|
|
25
|
+
attr_reader :total
|
|
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
|
+
end
|
|
35
|
+
|
|
36
|
+
class StatusTransitions < ::Stripe::StripeObject
|
|
37
|
+
# Time at which the Billing Intent was canceled.
|
|
38
|
+
attr_reader :canceled_at
|
|
39
|
+
# Time at which the Billing Intent was committed.
|
|
40
|
+
attr_reader :committed_at
|
|
41
|
+
# Time at which the Billing Intent was drafted.
|
|
42
|
+
attr_reader :drafted_at
|
|
43
|
+
# Time at which the Billing Intent was reserved.
|
|
44
|
+
attr_reader :reserved_at
|
|
45
|
+
|
|
46
|
+
def self.inner_class_types
|
|
47
|
+
@inner_class_types = {}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def self.field_remappings
|
|
51
|
+
@field_remappings = {}
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
# Breakdown of the amount for this Billing Intent.
|
|
55
|
+
attr_reader :amount_details
|
|
56
|
+
# Time at which the object was created.
|
|
57
|
+
attr_reader :created
|
|
58
|
+
# Three-letter ISO currency code, in lowercase. Must be a supported currency.
|
|
59
|
+
attr_reader :currency
|
|
60
|
+
# Unique identifier for the object.
|
|
61
|
+
attr_reader :id
|
|
62
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
63
|
+
attr_reader :object
|
|
64
|
+
# Current status of the Billing Intent.
|
|
65
|
+
attr_reader :status
|
|
66
|
+
# Timestamps for status transitions of the Billing Intent.
|
|
67
|
+
attr_reader :status_transitions
|
|
68
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
69
|
+
attr_reader :livemode
|
|
70
|
+
# ID of an existing Cadence to use.
|
|
71
|
+
attr_reader :cadence
|
|
72
|
+
|
|
73
|
+
def self.inner_class_types
|
|
74
|
+
@inner_class_types = {
|
|
75
|
+
amount_details: AmountDetails,
|
|
76
|
+
status_transitions: StatusTransitions,
|
|
77
|
+
}
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def self.field_remappings
|
|
81
|
+
@field_remappings = {}
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Billing
|
|
7
|
+
class IntentAction < APIResource
|
|
8
|
+
OBJECT_NAME = "v2.billing.intent_action"
|
|
9
|
+
def self.object_name
|
|
10
|
+
"v2.billing.intent_action"
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
class Apply < ::Stripe::StripeObject
|
|
14
|
+
class InvoiceDiscountRule < ::Stripe::StripeObject
|
|
15
|
+
class PercentOff < ::Stripe::StripeObject
|
|
16
|
+
class MaximumApplications < ::Stripe::StripeObject
|
|
17
|
+
# The type of maximum applications configuration.
|
|
18
|
+
attr_reader :type
|
|
19
|
+
|
|
20
|
+
def self.inner_class_types
|
|
21
|
+
@inner_class_types = {}
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def self.field_remappings
|
|
25
|
+
@field_remappings = {}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
# The maximum number of times this discount can be applied for this Billing Cadence.
|
|
29
|
+
attr_reader :maximum_applications
|
|
30
|
+
# Percent that will be taken off of the amount. For example, percent_off of 50.0 will make $100 amount $50 instead.
|
|
31
|
+
attr_reader :percent_off
|
|
32
|
+
|
|
33
|
+
def self.inner_class_types
|
|
34
|
+
@inner_class_types = { maximum_applications: MaximumApplications }
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def self.field_remappings
|
|
38
|
+
@field_remappings = {}
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
# The entity that the discount rule applies to, for example, the Billing Cadence.
|
|
42
|
+
attr_reader :applies_to
|
|
43
|
+
# The ID of the created discount rule. This is only present once the Billing Intent is committed and the discount rule is created.
|
|
44
|
+
attr_reader :invoice_discount_rule
|
|
45
|
+
# Type of the discount rule.
|
|
46
|
+
attr_reader :type
|
|
47
|
+
# Configuration for percentage off discount.
|
|
48
|
+
attr_reader :percent_off
|
|
49
|
+
|
|
50
|
+
def self.inner_class_types
|
|
51
|
+
@inner_class_types = { percent_off: PercentOff }
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
def self.field_remappings
|
|
55
|
+
@field_remappings = {}
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
# Type of the apply action details.
|
|
59
|
+
attr_reader :type
|
|
60
|
+
# Details for applying a discount rule to future invoices.
|
|
61
|
+
attr_reader :invoice_discount_rule
|
|
62
|
+
|
|
63
|
+
def self.inner_class_types
|
|
64
|
+
@inner_class_types = { invoice_discount_rule: InvoiceDiscountRule }
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def self.field_remappings
|
|
68
|
+
@field_remappings = {}
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
class Deactivate < ::Stripe::StripeObject
|
|
73
|
+
class BillingDetails < ::Stripe::StripeObject
|
|
74
|
+
# This controls the proration adjustment for the partial servicing period.
|
|
75
|
+
attr_reader :proration_behavior
|
|
76
|
+
|
|
77
|
+
def self.inner_class_types
|
|
78
|
+
@inner_class_types = {}
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
def self.field_remappings
|
|
82
|
+
@field_remappings = {}
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
class EffectiveAt < ::Stripe::StripeObject
|
|
87
|
+
# The timestamp at which the deactivate action will take effect. Only present if type is timestamp.
|
|
88
|
+
attr_reader :timestamp
|
|
89
|
+
# When the deactivate action will take effect.
|
|
90
|
+
attr_reader :type
|
|
91
|
+
|
|
92
|
+
def self.inner_class_types
|
|
93
|
+
@inner_class_types = {}
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
def self.field_remappings
|
|
97
|
+
@field_remappings = {}
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
class PricingPlanSubscriptionDetails < ::Stripe::StripeObject
|
|
102
|
+
# ID of the Pricing Plan Subscription to deactivate.
|
|
103
|
+
attr_reader :pricing_plan_subscription
|
|
104
|
+
|
|
105
|
+
def self.inner_class_types
|
|
106
|
+
@inner_class_types = {}
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
def self.field_remappings
|
|
110
|
+
@field_remappings = {}
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
# Configuration for the billing details.
|
|
114
|
+
attr_reader :billing_details
|
|
115
|
+
# When the deactivate action will take effect. If not specified, the default behavior is on_reserve.
|
|
116
|
+
attr_reader :effective_at
|
|
117
|
+
# Type of the action details.
|
|
118
|
+
attr_reader :type
|
|
119
|
+
# Details for deactivating a Pricing Plan Subscription.
|
|
120
|
+
attr_reader :pricing_plan_subscription_details
|
|
121
|
+
|
|
122
|
+
def self.inner_class_types
|
|
123
|
+
@inner_class_types = {
|
|
124
|
+
billing_details: BillingDetails,
|
|
125
|
+
effective_at: EffectiveAt,
|
|
126
|
+
pricing_plan_subscription_details: PricingPlanSubscriptionDetails,
|
|
127
|
+
}
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
def self.field_remappings
|
|
131
|
+
@field_remappings = {}
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
class Modify < ::Stripe::StripeObject
|
|
136
|
+
class BillingDetails < ::Stripe::StripeObject
|
|
137
|
+
# This controls the proration adjustment for the partial servicing period.
|
|
138
|
+
attr_reader :proration_behavior
|
|
139
|
+
|
|
140
|
+
def self.inner_class_types
|
|
141
|
+
@inner_class_types = {}
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
def self.field_remappings
|
|
145
|
+
@field_remappings = {}
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
class EffectiveAt < ::Stripe::StripeObject
|
|
150
|
+
# The timestamp at which the modify action will take effect. Only present if type is timestamp.
|
|
151
|
+
attr_reader :timestamp
|
|
152
|
+
# When the modify action will take effect.
|
|
153
|
+
attr_reader :type
|
|
154
|
+
|
|
155
|
+
def self.inner_class_types
|
|
156
|
+
@inner_class_types = {}
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
def self.field_remappings
|
|
160
|
+
@field_remappings = {}
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
class PricingPlanSubscriptionDetails < ::Stripe::StripeObject
|
|
165
|
+
class ComponentConfiguration < ::Stripe::StripeObject
|
|
166
|
+
# Quantity of the component to be used.
|
|
167
|
+
attr_reader :quantity
|
|
168
|
+
# Lookup key for the pricing plan component.
|
|
169
|
+
attr_reader :lookup_key
|
|
170
|
+
# ID of the pricing plan component.
|
|
171
|
+
attr_reader :pricing_plan_component
|
|
172
|
+
|
|
173
|
+
def self.inner_class_types
|
|
174
|
+
@inner_class_types = {}
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
def self.field_remappings
|
|
178
|
+
@field_remappings = {}
|
|
179
|
+
end
|
|
180
|
+
end
|
|
181
|
+
# New configurations for the components of the Pricing Plan.
|
|
182
|
+
attr_reader :component_configurations
|
|
183
|
+
# ID of the new Pricing Plan.
|
|
184
|
+
attr_reader :new_pricing_plan
|
|
185
|
+
# Version of the Pricing Plan to use.
|
|
186
|
+
attr_reader :new_pricing_plan_version
|
|
187
|
+
# ID of the Pricing Plan Subscription to modify.
|
|
188
|
+
attr_reader :pricing_plan_subscription
|
|
189
|
+
|
|
190
|
+
def self.inner_class_types
|
|
191
|
+
@inner_class_types = { component_configurations: ComponentConfiguration }
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
def self.field_remappings
|
|
195
|
+
@field_remappings = {}
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
# Configuration for the billing details.
|
|
199
|
+
attr_reader :billing_details
|
|
200
|
+
# When the modify action will take effect. If not specified, the default behavior is on_reserve.
|
|
201
|
+
attr_reader :effective_at
|
|
202
|
+
# Type of the action details.
|
|
203
|
+
attr_reader :type
|
|
204
|
+
# Details for modifying a Pricing Plan Subscription.
|
|
205
|
+
attr_reader :pricing_plan_subscription_details
|
|
206
|
+
|
|
207
|
+
def self.inner_class_types
|
|
208
|
+
@inner_class_types = {
|
|
209
|
+
billing_details: BillingDetails,
|
|
210
|
+
effective_at: EffectiveAt,
|
|
211
|
+
pricing_plan_subscription_details: PricingPlanSubscriptionDetails,
|
|
212
|
+
}
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
def self.field_remappings
|
|
216
|
+
@field_remappings = {}
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
class Remove < ::Stripe::StripeObject
|
|
221
|
+
# Type of the remove action.
|
|
222
|
+
attr_reader :type
|
|
223
|
+
# The ID of the discount rule to remove for future invoices.
|
|
224
|
+
attr_reader :invoice_discount_rule
|
|
225
|
+
|
|
226
|
+
def self.inner_class_types
|
|
227
|
+
@inner_class_types = {}
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
def self.field_remappings
|
|
231
|
+
@field_remappings = {}
|
|
232
|
+
end
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
class Subscribe < ::Stripe::StripeObject
|
|
236
|
+
class BillingDetails < ::Stripe::StripeObject
|
|
237
|
+
# This controls the proration adjustment for the partial servicing period.
|
|
238
|
+
attr_reader :proration_behavior
|
|
239
|
+
|
|
240
|
+
def self.inner_class_types
|
|
241
|
+
@inner_class_types = {}
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
def self.field_remappings
|
|
245
|
+
@field_remappings = {}
|
|
246
|
+
end
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
class EffectiveAt < ::Stripe::StripeObject
|
|
250
|
+
# The timestamp at which the subscribe action will take effect. Only present if type is timestamp.
|
|
251
|
+
attr_reader :timestamp
|
|
252
|
+
# When the subscribe action will take effect.
|
|
253
|
+
attr_reader :type
|
|
254
|
+
|
|
255
|
+
def self.inner_class_types
|
|
256
|
+
@inner_class_types = {}
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
def self.field_remappings
|
|
260
|
+
@field_remappings = {}
|
|
261
|
+
end
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
class PricingPlanSubscriptionDetails < ::Stripe::StripeObject
|
|
265
|
+
class ComponentConfiguration < ::Stripe::StripeObject
|
|
266
|
+
# Quantity of the component to be used.
|
|
267
|
+
attr_reader :quantity
|
|
268
|
+
# Lookup key for the pricing plan component.
|
|
269
|
+
attr_reader :lookup_key
|
|
270
|
+
# ID of the pricing plan component.
|
|
271
|
+
attr_reader :pricing_plan_component
|
|
272
|
+
|
|
273
|
+
def self.inner_class_types
|
|
274
|
+
@inner_class_types = {}
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
def self.field_remappings
|
|
278
|
+
@field_remappings = {}
|
|
279
|
+
end
|
|
280
|
+
end
|
|
281
|
+
# Configurations for the components of the Pricing Plan.
|
|
282
|
+
attr_reader :component_configurations
|
|
283
|
+
# Set of [key-value pairs](/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
284
|
+
attr_reader :metadata
|
|
285
|
+
# ID of the Pricing Plan to subscribe to.
|
|
286
|
+
attr_reader :pricing_plan
|
|
287
|
+
# ID of the created Pricing Plan Subscription. This is only present once the Billing Intent is committed and the Pricing Plan Subscription is created.
|
|
288
|
+
attr_reader :pricing_plan_subscription
|
|
289
|
+
# Version of the Pricing Plan to use.
|
|
290
|
+
attr_reader :pricing_plan_version
|
|
291
|
+
|
|
292
|
+
def self.inner_class_types
|
|
293
|
+
@inner_class_types = { component_configurations: ComponentConfiguration }
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
def self.field_remappings
|
|
297
|
+
@field_remappings = {}
|
|
298
|
+
end
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
class V1SubscriptionDetails < ::Stripe::StripeObject
|
|
302
|
+
class Item < ::Stripe::StripeObject
|
|
303
|
+
# Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
304
|
+
attr_reader :metadata
|
|
305
|
+
# The ID of the price object.
|
|
306
|
+
attr_reader :price
|
|
307
|
+
# Quantity for this item. If not provided, will default to 1.
|
|
308
|
+
attr_reader :quantity
|
|
309
|
+
|
|
310
|
+
def self.inner_class_types
|
|
311
|
+
@inner_class_types = {}
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
def self.field_remappings
|
|
315
|
+
@field_remappings = {}
|
|
316
|
+
end
|
|
317
|
+
end
|
|
318
|
+
# The subscription’s description, meant to be displayable to the customer.
|
|
319
|
+
# Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
|
320
|
+
attr_reader :description
|
|
321
|
+
# A list of up to 20 subscription items, each with an attached price.
|
|
322
|
+
attr_reader :items
|
|
323
|
+
# Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
324
|
+
attr_reader :metadata
|
|
325
|
+
|
|
326
|
+
def self.inner_class_types
|
|
327
|
+
@inner_class_types = { items: Item }
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
def self.field_remappings
|
|
331
|
+
@field_remappings = {}
|
|
332
|
+
end
|
|
333
|
+
end
|
|
334
|
+
# Configuration for the billing details. If not specified, see the default behavior for individual attributes.
|
|
335
|
+
attr_reader :billing_details
|
|
336
|
+
# When the subscribe action will take effect. If not specified, the default behavior is on_reserve.
|
|
337
|
+
attr_reader :effective_at
|
|
338
|
+
# Type of the action details.
|
|
339
|
+
attr_reader :type
|
|
340
|
+
# Details for subscribing to a Pricing Plan.
|
|
341
|
+
attr_reader :pricing_plan_subscription_details
|
|
342
|
+
# Details for subscribing to a V1 subscription.
|
|
343
|
+
attr_reader :v1_subscription_details
|
|
344
|
+
|
|
345
|
+
def self.inner_class_types
|
|
346
|
+
@inner_class_types = {
|
|
347
|
+
billing_details: BillingDetails,
|
|
348
|
+
effective_at: EffectiveAt,
|
|
349
|
+
pricing_plan_subscription_details: PricingPlanSubscriptionDetails,
|
|
350
|
+
v1_subscription_details: V1SubscriptionDetails,
|
|
351
|
+
}
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
def self.field_remappings
|
|
355
|
+
@field_remappings = {}
|
|
356
|
+
end
|
|
357
|
+
end
|
|
358
|
+
# Time at which the object was created.
|
|
359
|
+
attr_reader :created
|
|
360
|
+
# Unique identifier for the object.
|
|
361
|
+
attr_reader :id
|
|
362
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
363
|
+
attr_reader :object
|
|
364
|
+
# Type of the Billing Intent Action.
|
|
365
|
+
attr_reader :type
|
|
366
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
367
|
+
attr_reader :livemode
|
|
368
|
+
# Details for an apply action.
|
|
369
|
+
attr_reader :apply
|
|
370
|
+
# Details for a deactivate action.
|
|
371
|
+
attr_reader :deactivate
|
|
372
|
+
# Details for a modify action.
|
|
373
|
+
attr_reader :modify
|
|
374
|
+
# Details for a remove action.
|
|
375
|
+
attr_reader :remove
|
|
376
|
+
# Details for a subscribe action.
|
|
377
|
+
attr_reader :subscribe
|
|
378
|
+
|
|
379
|
+
def self.inner_class_types
|
|
380
|
+
@inner_class_types = {
|
|
381
|
+
apply: Apply,
|
|
382
|
+
deactivate: Deactivate,
|
|
383
|
+
modify: Modify,
|
|
384
|
+
remove: Remove,
|
|
385
|
+
subscribe: Subscribe,
|
|
386
|
+
}
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
def self.field_remappings
|
|
390
|
+
@field_remappings = {}
|
|
391
|
+
end
|
|
392
|
+
end
|
|
393
|
+
end
|
|
394
|
+
end
|
|
395
|
+
end
|