stripe 19.7.0.pre.beta.1 → 20.0.0
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_requestor.rb +18 -39
- data/lib/stripe/api_version.rb +2 -2
- data/lib/stripe/error_object.rb +1 -1
- data/lib/stripe/errors.rb +0 -87
- data/lib/stripe/event_types.rb +671 -265
- data/lib/stripe/events/unknown_event_notification.rb +0 -1
- data/lib/stripe/events/v1_account_application_authorized_event.rb +20 -0
- data/lib/stripe/events/v1_account_application_deauthorized_event.rb +20 -0
- data/lib/stripe/events/v1_account_external_account_created_event.rb +20 -0
- data/lib/stripe/events/v1_account_external_account_deleted_event.rb +20 -0
- data/lib/stripe/events/v1_account_external_account_updated_event.rb +20 -0
- data/lib/stripe/events/{v2_core_account_including_configuration_money_manager_updated_event.rb → v1_account_updated_event.rb} +6 -6
- data/lib/stripe/events/{v2_money_management_received_credit_succeeded_event.rb → v1_application_fee_created_event.rb} +7 -7
- data/lib/stripe/events/{v2_core_approval_request_rejected_event.rb → v1_application_fee_refund_updated_event.rb} +7 -7
- data/lib/stripe/events/{v2_money_management_received_credit_failed_event.rb → v1_application_fee_refunded_event.rb} +7 -7
- data/lib/stripe/events/v1_balance_available_event.rb +46 -0
- data/lib/stripe/events/{v2_core_approval_request_expired_event.rb → v1_balance_settings_updated_event.rb} +10 -8
- data/lib/stripe/events/v1_billing_alert_triggered_event.rb +44 -0
- data/lib/stripe/events/{v2_money_management_financial_account_created_event.rb → v1_billing_credit_balance_transaction_created_event.rb} +7 -7
- data/lib/stripe/events/{v2_extend_workflow_run_succeeded_event.rb → v1_billing_credit_grant_created_event.rb} +7 -7
- data/lib/stripe/events/{v2_core_batch_job_upload_timeout_event.rb → v1_billing_credit_grant_updated_event.rb} +7 -7
- data/lib/stripe/events/v1_billing_meter_created_event.rb +44 -0
- data/lib/stripe/events/v1_billing_meter_deactivated_event.rb +44 -0
- data/lib/stripe/events/v1_billing_meter_reactivated_event.rb +44 -0
- data/lib/stripe/events/v1_billing_meter_updated_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_billing_portal_session_created_event.rb +20 -0
- data/lib/stripe/events/{v2_money_management_adjustment_created_event.rb → v1_capability_updated_event.rb} +7 -7
- data/lib/stripe/events/v1_cash_balance_funds_available_event.rb +46 -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/{v2_core_approval_request_canceled_event.rb → v1_charge_dispute_funds_withdrawn_event.rb} +7 -7
- 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/{v2_money_management_outbound_payment_posted_event.rb → v1_checkout_session_async_payment_succeeded_event.rb} +7 -7
- data/lib/stripe/events/v1_checkout_session_completed_event.rb +44 -0
- data/lib/stripe/events/{v2_core_batch_job_validating_event.rb → v1_checkout_session_expired_event.rb} +7 -7
- 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/{v2_data_reporting_query_run_succeeded_event.rb → v1_climate_order_product_substituted_event.rb} +7 -7
- data/lib/stripe/events/v1_climate_product_created_event.rb +44 -0
- data/lib/stripe/events/{v2_data_reporting_query_run_created_event.rb → v1_climate_product_pricing_updated_event.rb} +7 -7
- 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/{v2_money_management_financial_address_failed_event.rb → v1_customer_cash_balance_transaction_created_event.rb} +7 -7
- data/lib/stripe/events/{v2_core_batch_job_created_event.rb → v1_customer_created_event.rb} +7 -7
- data/lib/stripe/events/{v2_core_batch_job_timeout_event.rb → v1_customer_deleted_event.rb} +7 -7
- data/lib/stripe/events/v1_customer_discount_created_event.rb +46 -0
- data/lib/stripe/events/v1_customer_discount_deleted_event.rb +46 -0
- data/lib/stripe/events/v1_customer_discount_updated_event.rb +46 -0
- data/lib/stripe/events/{v2_money_management_payout_method_created_event.rb → v1_customer_subscription_created_event.rb} +7 -7
- data/lib/stripe/events/{v2_money_management_payout_method_updated_event.rb → v1_customer_subscription_deleted_event.rb} +7 -7
- 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/{v2_core_batch_job_canceled_event.rb → v1_customer_updated_event.rb} +7 -7
- data/lib/stripe/events/v1_entitlements_active_entitlement_summary_updated_event.rb +20 -0
- data/lib/stripe/events/v1_file_created_event.rb +44 -0
- data/lib/stripe/events/{v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb → v1_financial_connections_account_account_numbers_updated_event.rb} +7 -7
- data/lib/stripe/events/v1_financial_connections_account_created_event.rb +44 -0
- data/lib/stripe/events/{v2_money_management_financial_account_updated_event.rb → v1_financial_connections_account_deactivated_event.rb} +7 -7
- data/lib/stripe/events/{v2_money_management_outbound_transfer_canceled_event.rb → v1_financial_connections_account_disconnected_event.rb} +7 -7
- data/lib/stripe/events/v1_financial_connections_account_expected_deactivation_date_updated_event.rb +44 -0
- data/lib/stripe/events/{v2_money_management_outbound_payment_canceled_event.rb → v1_financial_connections_account_reactivated_event.rb} +7 -7
- data/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb +44 -0
- data/lib/stripe/events/{v2_money_management_inbound_transfer_bank_debit_failed_event.rb → v1_financial_connections_account_refreshed_ownership_event.rb} +7 -7
- data/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_supported_payment_method_types_updated_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_upcoming_account_number_expiry_event.rb +44 -0
- data/lib/stripe/events/v1_financial_connections_account_upcoming_deactivation_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/{v2_money_management_outbound_payment_created_event.rb → v1_identity_verification_session_processing_event.rb} +7 -7
- data/lib/stripe/events/v1_identity_verification_session_redacted_event.rb +44 -0
- data/lib/stripe/events/{v2_money_management_financial_address_activated_event.rb → v1_identity_verification_session_requires_input_event.rb} +7 -7
- 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/{v2_core_approval_request_created_event.rb → v1_invoice_marked_uncollectible_event.rb} +7 -7
- 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_attempt_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 +20 -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/{v2_extend_workflow_run_started_event.rb → v1_invoiceitem_created_event.rb} +7 -7
- data/lib/stripe/events/v1_invoiceitem_deleted_event.rb +44 -0
- data/lib/stripe/events/{v2_money_management_received_debit_failed_event.rb → v1_issuing_authorization_created_event.rb} +7 -7
- data/lib/stripe/events/v1_issuing_authorization_request_event.rb +44 -0
- data/lib/stripe/events/{v2_money_management_received_debit_updated_event.rb → v1_issuing_authorization_updated_event.rb} +7 -7
- 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/{v2_money_management_outbound_payment_updated_event.rb → v1_issuing_personalization_design_activated_event.rb} +7 -7
- data/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb +44 -0
- data/lib/stripe/events/{v2_money_management_outbound_payment_failed_event.rb → v1_issuing_personalization_design_rejected_event.rb} +7 -7
- 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/{v2_money_management_transaction_updated_event.rb → v1_issuing_transaction_created_event.rb} +6 -6
- data/lib/stripe/events/{v2_money_management_inbound_transfer_bank_debit_returned_event.rb → v1_issuing_transaction_purchase_details_receipt_updated_event.rb} +7 -7
- 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/{v2_money_management_received_debit_succeeded_event.rb → v1_payment_intent_canceled_event.rb} +7 -7
- 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/{v2_money_management_received_debit_canceled_event.rb → v1_payment_intent_processing_event.rb} +7 -7
- data/lib/stripe/events/{v2_money_management_received_debit_pending_event.rb → v1_payment_intent_requires_action_event.rb} +7 -7
- 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/{v2_money_management_outbound_transfer_returned_event.rb → v1_payment_method_automatically_updated_event.rb} +7 -7
- 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/{v2_signals_account_evaluation_complete_event.rb → v1_radar_early_fraud_warning_created_event.rb} +7 -7
- 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/{v2_core_batch_job_validation_failed_event.rb → v1_subscription_schedule_canceled_event.rb} +7 -7
- data/lib/stripe/events/v1_subscription_schedule_completed_event.rb +44 -0
- data/lib/stripe/events/{v2_core_approval_request_approved_event.rb → v1_subscription_schedule_created_event.rb} +7 -7
- data/lib/stripe/events/{v2_core_approval_request_succeeded_event.rb → v1_subscription_schedule_expiring_event.rb} +7 -7
- data/lib/stripe/events/{v2_data_reporting_query_run_updated_event.rb → v1_subscription_schedule_released_event.rb} +7 -7
- 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_tax_settings_updated_event.rb +46 -0
- data/lib/stripe/events/{v2_core_batch_job_ready_for_upload_event.rb → v1_terminal_reader_action_failed_event.rb} +7 -7
- 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/{v2_data_reporting_query_run_failed_event.rb → v1_test_helpers_test_clock_created_event.rb} +7 -7
- 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/{v2_core_approval_request_failed_event.rb → v1_test_helpers_test_clock_ready_event.rb} +7 -7
- 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/{v2_core_batch_job_updated_event.rb → v1_transfer_created_event.rb} +7 -7
- data/lib/stripe/events/{v2_core_batch_job_batch_failed_event.rb → v1_transfer_reversed_event.rb} +7 -7
- data/lib/stripe/events/{v2_core_batch_job_completed_event.rb → v1_transfer_updated_event.rb} +7 -7
- data/lib/stripe/object_types.rb +3 -63
- data/lib/stripe/params/account_create_params.rb +41 -300
- data/lib/stripe/params/account_external_account_update_params.rb +1 -1
- data/lib/stripe/params/account_person_create_params.rb +7 -7
- data/lib/stripe/params/account_person_update_params.rb +7 -7
- data/lib/stripe/params/account_reject_params.rb +1 -1
- data/lib/stripe/params/account_session_create_params.rb +1 -209
- data/lib/stripe/params/account_update_params.rb +32 -267
- data/lib/stripe/params/apps/install_create_params.rb +33 -0
- data/lib/stripe/params/{issuing/fraud_liability_debit_list_params.rb → apps/install_list_params.rb} +34 -4
- data/lib/stripe/params/{reserve/hold_retrieve_params.rb → apps/install_retrieve_params.rb} +2 -2
- data/lib/stripe/params/{reserve/plan_retrieve_params.rb → apps/install_uninstall_params.rb} +2 -2
- data/lib/stripe/params/{tax/form_pdf_params.rb → apps/install_update_params.rb} +2 -2
- data/lib/stripe/params/balance_transaction_list_params.rb +1 -1
- data/lib/stripe/params/billing/feedback_option_create_params.rb +1 -1
- data/lib/stripe/params/billing/feedback_option_update_params.rb +1 -1
- data/lib/stripe/params/charge_capture_params.rb +0 -1646
- data/lib/stripe/params/charge_create_params.rb +1 -1
- data/lib/stripe/params/charge_update_params.rb +0 -1646
- data/lib/stripe/params/checkout/session_create_params.rb +34 -111
- data/lib/stripe/params/checkout/session_update_params.rb +2 -162
- data/lib/stripe/params/confirmation_token_create_params.rb +7 -74
- data/lib/stripe/params/coupon_create_params.rb +1 -17
- data/lib/stripe/params/customer_create_params.rb +1 -1
- data/lib/stripe/params/customer_session_create_params.rb +1 -32
- data/lib/stripe/params/customer_update_params.rb +1 -1
- data/lib/stripe/params/dispute_update_params.rb +1 -10
- data/lib/stripe/params/file_create_params.rb +1 -1
- data/lib/stripe/params/financial_connections/session_create_params.rb +5 -42
- data/lib/stripe/params/invoice_add_lines_params.rb +1 -33
- data/lib/stripe/params/invoice_attach_payment_params.rb +1 -43
- data/lib/stripe/params/invoice_create_params.rb +71 -66
- data/lib/stripe/params/invoice_create_preview_params.rb +24 -780
- data/lib/stripe/params/invoice_item_create_params.rb +1 -33
- data/lib/stripe/params/invoice_item_update_params.rb +5 -33
- data/lib/stripe/params/invoice_line_item_update_params.rb +1 -33
- data/lib/stripe/params/invoice_update_lines_params.rb +1 -33
- data/lib/stripe/params/invoice_update_params.rb +71 -66
- data/lib/stripe/params/issuing/cardholder_create_params.rb +3 -4
- data/lib/stripe/params/issuing/cardholder_update_params.rb +2 -6
- data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
- data/lib/stripe/params/payment_intent_capture_params.rb +1 -1643
- data/lib/stripe/params/payment_intent_confirm_params.rb +182 -2999
- data/lib/stripe/params/payment_intent_create_params.rb +200 -3017
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +0 -37
- data/lib/stripe/params/payment_intent_update_params.rb +157 -3005
- data/lib/stripe/params/payment_link_create_params.rb +4 -4
- data/lib/stripe/params/payment_link_update_params.rb +4 -4
- data/lib/stripe/params/payment_method_configuration_create_params.rb +5 -68
- data/lib/stripe/params/payment_method_configuration_update_params.rb +5 -68
- data/lib/stripe/params/payment_method_create_params.rb +7 -70
- data/lib/stripe/params/payment_method_update_params.rb +0 -19
- data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +1 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +13 -0
- data/lib/stripe/params/payment_record_report_payment_params.rb +14 -1
- data/lib/stripe/params/payout_create_params.rb +1 -1
- data/lib/stripe/params/plan_create_params.rb +1 -1
- data/lib/stripe/params/price_update_params.rb +0 -19
- data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +14 -4
- data/lib/stripe/params/product_catalog/trial_offer_list_params.rb +4 -0
- data/lib/stripe/params/product_catalog/trial_offer_update_params.rb +18 -0
- data/lib/stripe/params/product_list_params.rb +1 -1
- data/lib/stripe/params/quote_create_params.rb +3 -809
- data/lib/stripe/params/quote_list_params.rb +0 -4
- data/lib/stripe/params/quote_update_params.rb +4 -817
- data/lib/stripe/params/radar/payment_evaluation_create_params.rb +2 -2
- data/lib/stripe/params/setup_intent_confirm_params.rb +34 -104
- data/lib/stripe/params/setup_intent_create_params.rb +34 -104
- data/lib/stripe/params/setup_intent_update_params.rb +34 -104
- data/lib/stripe/params/subscription_create_params.rb +76 -140
- data/lib/stripe/params/subscription_item_create_params.rb +3 -50
- data/lib/stripe/params/subscription_item_update_params.rb +4 -35
- data/lib/stripe/params/subscription_resume_params.rb +8 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +139 -165
- data/lib/stripe/params/subscription_schedule_update_params.rb +139 -165
- data/lib/stripe/params/subscription_update_params.rb +85 -124
- data/lib/stripe/params/tax/registration_create_params.rb +28 -352
- data/lib/stripe/params/terminal/configuration_create_params.rb +2 -15
- data/lib/stripe/params/terminal/configuration_update_params.rb +2 -15
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +7 -74
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +1 -25
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +1 -25
- data/lib/stripe/params/three_d_secure/authentication_cancel_params.rb +18 -0
- data/lib/stripe/params/three_d_secure/authentication_create_params.rb +433 -0
- data/lib/stripe/params/{capital/financing_offer_list_params.rb → three_d_secure/authentication_list_params.rb} +4 -8
- data/lib/stripe/params/{capital/financing_offer_retrieve_params.rb → three_d_secure/authentication_retrieve_params.rb} +2 -2
- data/lib/stripe/params/three_d_secure/authentication_submit_params.rb +23 -0
- data/lib/stripe/params/token_create_params.rb +13 -13
- data/lib/stripe/params/topup_create_params.rb +1 -1
- data/lib/stripe/params/transfer_create_params.rb +0 -4
- data/lib/stripe/params/treasury/financial_account_create_params.rb +1 -8
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +1 -4
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +1 -4
- data/lib/stripe/params/treasury/financial_account_update_params.rb +1 -8
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +0 -4
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +0 -24
- data/lib/stripe/params/treasury/received_credit_create_params.rb +1 -25
- data/lib/stripe/params/treasury/received_debit_create_params.rb +1 -25
- data/lib/stripe/params/v2/core/account_create_params.rb +54 -400
- data/lib/stripe/params/v2/core/account_link_create_params.rb +5 -19
- data/lib/stripe/params/v2/core/account_token_create_params.rb +1 -13
- data/lib/stripe/params/v2/core/account_update_params.rb +54 -397
- data/lib/stripe/params/v2/core/event_destination_create_params.rb +19 -19
- data/lib/stripe/params/v2/core/event_destination_list_params.rb +1 -1
- data/lib/stripe/params/v2/core/event_destination_update_params.rb +6 -6
- data/lib/stripe/params.rb +25 -440
- data/lib/stripe/resources/account.rb +7 -178
- data/lib/stripe/resources/account_session.rb +1 -82
- data/lib/stripe/resources/apps/install.rb +136 -0
- data/lib/stripe/resources/balance.rb +1 -84
- data/lib/stripe/resources/balance_transaction.rb +1 -1
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -4
- data/lib/stripe/resources/billing/feedback_option.rb +6 -2
- data/lib/stripe/resources/card.rb +1 -18
- data/lib/stripe/resources/charge.rb +14 -219
- data/lib/stripe/resources/checkout/session.rb +24 -94
- data/lib/stripe/resources/confirmation_token.rb +4 -109
- data/lib/stripe/resources/coupon.rb +3 -28
- data/lib/stripe/resources/credit_note_line_item.rb +0 -18
- data/lib/stripe/resources/customer.rb +1 -17
- data/lib/stripe/resources/customer_session.rb +0 -36
- data/lib/stripe/resources/discount.rb +1 -1
- data/lib/stripe/resources/dispute.rb +0 -22
- data/lib/stripe/resources/event.rb +2 -65
- data/lib/stripe/resources/file.rb +2 -2
- data/lib/stripe/resources/financial_connections/account.rb +1 -45
- data/lib/stripe/resources/financial_connections/authorization.rb +1 -24
- data/lib/stripe/resources/financial_connections/session.rb +0 -94
- data/lib/stripe/resources/invoice.rb +85 -112
- data/lib/stripe/resources/invoice_item.rb +17 -3
- data/lib/stripe/resources/invoice_line_item.rb +0 -40
- data/lib/stripe/resources/invoice_payment.rb +2 -2
- data/lib/stripe/resources/issuing/authorization.rb +0 -16
- data/lib/stripe/resources/issuing/card.rb +0 -16
- data/lib/stripe/resources/issuing/cardholder.rb +2 -18
- data/lib/stripe/resources/issuing/dispute.rb +1 -16
- data/lib/stripe/resources/issuing/token.rb +3 -3
- data/lib/stripe/resources/issuing/transaction.rb +0 -18
- data/lib/stripe/resources/line_item.rb +1 -43
- data/lib/stripe/resources/mandate.rb +34 -13
- data/lib/stripe/resources/payment_attempt_record.rb +42 -157
- data/lib/stripe/resources/payment_intent.rb +95 -1561
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +2 -2
- data/lib/stripe/resources/payment_link.rb +2 -2
- data/lib/stripe/resources/payment_method.rb +4 -129
- data/lib/stripe/resources/payment_method_configuration.rb +4 -106
- data/lib/stripe/resources/payment_record.rb +42 -157
- data/lib/stripe/resources/person.rb +4 -4
- data/lib/stripe/resources/plan.rb +2 -2
- data/lib/stripe/resources/price.rb +1 -21
- data/lib/stripe/resources/product.rb +2 -2
- data/lib/stripe/resources/product_catalog/trial_offer.rb +18 -5
- data/lib/stripe/resources/quote.rb +5 -572
- data/lib/stripe/resources/radar/payment_evaluation.rb +46 -4
- data/lib/stripe/resources/radar/value_list_item.rb +1 -15
- data/lib/stripe/resources/refund.rb +0 -18
- data/lib/stripe/resources/reserve/hold.rb +2 -7
- data/lib/stripe/resources/reserve/plan.rb +19 -1
- data/lib/stripe/resources/reserve/release.rb +2 -12
- data/lib/stripe/resources/setup_attempt.rb +20 -39
- data/lib/stripe/resources/setup_intent.rb +38 -45
- data/lib/stripe/resources/source.rb +0 -54
- data/lib/stripe/resources/subscription.rb +51 -77
- data/lib/stripe/resources/subscription_item.rb +4 -25
- data/lib/stripe/resources/subscription_schedule.rb +171 -181
- data/lib/stripe/resources/tax/calculation_line_item.rb +1 -0
- data/lib/stripe/resources/tax/location.rb +3 -3
- data/lib/stripe/resources/tax/registration.rb +28 -433
- data/lib/stripe/resources/tax/settings.rb +1 -1
- data/lib/stripe/resources/tax/transaction_line_item.rb +1 -0
- data/lib/stripe/resources/tax_code.rb +1 -1
- data/lib/stripe/resources/terminal/configuration.rb +0 -16
- data/lib/stripe/resources/terminal/reader.rb +5 -13
- data/lib/stripe/resources/three_d_secure/authentication.rb +456 -0
- data/lib/stripe/resources/token.rb +1 -15
- data/lib/stripe/resources/transfer.rb +1 -3
- data/lib/stripe/resources/{reversal.rb → transfer_reversal.rb} +1 -1
- data/lib/stripe/resources/treasury/credit_reversal.rb +1 -1
- data/lib/stripe/resources/treasury/debit_reversal.rb +1 -1
- data/lib/stripe/resources/treasury/financial_account.rb +0 -2
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
- data/lib/stripe/resources/treasury/inbound_transfer.rb +2 -2
- data/lib/stripe/resources/treasury/outbound_payment.rb +1 -3
- data/lib/stripe/resources/treasury/outbound_transfer.rb +1 -31
- data/lib/stripe/resources/treasury/received_credit.rb +7 -37
- data/lib/stripe/resources/treasury/received_debit.rb +6 -38
- data/lib/stripe/resources/treasury/transaction.rb +8 -8
- data/lib/stripe/resources/treasury/transaction_entry.rb +8 -8
- data/lib/stripe/resources/v2/core/account.rb +104 -889
- data/lib/stripe/resources/v2/core/account_link.rb +1 -5
- data/lib/stripe/resources/v2/core/event.rb +2 -0
- data/lib/stripe/resources/v2/core/event_destination.rb +26 -26
- data/lib/stripe/resources/v2/core/event_notification.rb +21 -5
- data/lib/stripe/resources/webhook_endpoint.rb +1 -1
- data/lib/stripe/resources.rb +736 -454
- data/lib/stripe/services/account_service.rb +0 -15
- data/lib/stripe/services/account_session_service.rb +1 -1
- data/lib/stripe/services/apps/install_service.rb +63 -0
- data/lib/stripe/services/apps_service.rb +2 -1
- data/lib/stripe/services/billing/feedback_option_service.rb +2 -2
- data/lib/stripe/services/billing_service.rb +1 -2
- data/lib/stripe/services/charge_service.rb +2 -8
- data/lib/stripe/services/coupon_service.rb +0 -14
- data/lib/stripe/services/customer_service.rb +0 -15
- data/lib/stripe/services/financial_connections/account_service.rb +2 -4
- data/lib/stripe/services/financial_connections_service.rb +1 -3
- data/lib/stripe/services/invoice_service.rb +2 -12
- data/lib/stripe/services/issuing_service.rb +1 -5
- data/lib/stripe/services/mandate_service.rb +0 -5
- data/lib/stripe/services/oauth_service.rb +1 -1
- data/lib/stripe/services/payment_intent_service.rb +1 -38
- data/lib/stripe/services/product_catalog/trial_offer_service.rb +11 -0
- data/lib/stripe/services/promotion_code_service.rb +0 -29
- data/lib/stripe/services/quote_service.rb +1 -49
- data/lib/stripe/services/sigma/scheduled_query_run_service.rb +1 -1
- data/lib/stripe/services/subscription_schedule_service.rb +0 -11
- data/lib/stripe/services/subscription_service.rb +0 -45
- data/lib/stripe/services/tax/location_service.rb +2 -2
- data/lib/stripe/services/tax/settings_service.rb +1 -1
- data/lib/stripe/services/tax_service.rb +1 -2
- data/lib/stripe/services/terminal_service.rb +1 -2
- data/lib/stripe/services/test_helpers_service.rb +1 -2
- data/lib/stripe/services/three_d_secure/authentication_service.rb +66 -0
- data/lib/stripe/services/three_d_secure_service.rb +13 -0
- data/lib/stripe/services/v1_services.rb +2 -10
- data/lib/stripe/services/v2/billing_service.rb +1 -5
- data/lib/stripe/services/v2/core_service.rb +1 -4
- data/lib/stripe/services/v2_services.rb +1 -9
- data/lib/stripe/services.rb +9 -213
- data/lib/stripe/stripe_client.rb +1 -5
- data/lib/stripe/stripe_configuration.rb +1 -3
- data/lib/stripe/stripe_context.rb +7 -1
- data/lib/stripe/stripe_event_notification_handler.rb +768 -184
- data/lib/stripe/stripe_object.rb +3 -3
- data/lib/stripe/util.rb +33 -7
- data/lib/stripe/v2_list_object.rb +2 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +8 -0
- data/lib/stripe.rb +0 -53
- data/rbi/stripe/resources/v2/core/event_notification.rbi +0 -2
- data/rbi/stripe/stripe_client.rbi +1 -1
- data/rbi/stripe.rbi +39757 -102739
- metadata +238 -400
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -78
- data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +0 -75
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -61
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_under_review_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_under_review_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -61
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -63
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +0 -97
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +0 -97
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +0 -97
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +0 -97
- data/lib/stripe/params/account_notice_list_params.rb +0 -25
- data/lib/stripe/params/account_notice_retrieve_params.rb +0 -13
- data/lib/stripe/params/account_notice_update_params.rb +0 -36
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +0 -65
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +0 -15
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +0 -15
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +0 -45
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +0 -15
- data/lib/stripe/params/external_account_create_params.rb +0 -134
- data/lib/stripe/params/external_account_delete_params.rb +0 -6
- data/lib/stripe/params/external_account_list_params.rb +0 -25
- data/lib/stripe/params/external_account_retrieve_params.rb +0 -13
- data/lib/stripe/params/external_account_update_params.rb +0 -91
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +0 -24
- data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +0 -15
- data/lib/stripe/params/financial_connections/institution_list_params.rb +0 -24
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +0 -15
- data/lib/stripe/params/fx_quote_create_params.rb +0 -73
- data/lib/stripe/params/fx_quote_list_params.rb +0 -22
- data/lib/stripe/params/fx_quote_retrieve_params.rb +0 -13
- data/lib/stripe/params/invoice_detach_payment_params.rb +0 -16
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +0 -163
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +0 -50
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +0 -128
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +0 -24
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +0 -86
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +0 -33
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +0 -15
- data/lib/stripe/params/mandate_list_params.rb +0 -39
- data/lib/stripe/params/margin_create_params.rb +0 -25
- data/lib/stripe/params/margin_list_params.rb +0 -25
- data/lib/stripe/params/margin_retrieve_params.rb +0 -13
- data/lib/stripe/params/margin_update_params.rb +0 -22
- data/lib/stripe/params/order_create_params.rb +0 -2083
- data/lib/stripe/params/order_list_params.rb +0 -25
- data/lib/stripe/params/order_retrieve_params.rb +0 -13
- data/lib/stripe/params/order_submit_params.rb +0 -16
- data/lib/stripe/params/order_update_params.rb +0 -2087
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -297
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +0 -67
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +0 -27
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +0 -18
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +0 -24
- data/lib/stripe/params/quote_line_list_params.rb +0 -22
- data/lib/stripe/params/quote_list_lines_params.rb +0 -22
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +0 -22
- data/lib/stripe/params/quote_mark_draft_params.rb +0 -13
- data/lib/stripe/params/quote_mark_stale_params.rb +0 -16
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +0 -22
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +0 -22
- data/lib/stripe/params/quote_reestimate_params.rb +0 -13
- data/lib/stripe/params/reserve/hold_list_params.rb +0 -53
- data/lib/stripe/params/reserve/release_list_params.rb +0 -41
- data/lib/stripe/params/reserve/release_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +0 -47
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +0 -15
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +0 -71
- data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +0 -15
- data/lib/stripe/params/subscription_schedule_amend_params.rb +0 -578
- data/lib/stripe/params/tax/form_list_params.rb +0 -51
- data/lib/stripe/params/tax/form_retrieve_params.rb +0 -15
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +0 -15
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +0 -49
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +0 -17
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +0 -74
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +0 -80
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -253
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +0 -43
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +0 -75
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +0 -257
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +0 -263
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/profile_create_params.rb +0 -37
- data/lib/stripe/params/v2/billing/profile_list_params.rb +0 -40
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/profile_update_params.rb +0 -35
- data/lib/stripe/params/v2/core/approval_request_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/core/approval_request_list_params.rb +0 -47
- data/lib/stripe/params/v2/core/approval_request_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/core/approval_request_update_params.rb +0 -17
- data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/core/batch_job_create_params.rb +0 -53
- data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +0 -58
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +0 -22
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +0 -19
- data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +0 -22
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +0 -37
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +0 -22
- data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +0 -22
- data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +0 -31
- data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +0 -17
- data/lib/stripe/params/v2/extend/workflow_list_params.rb +0 -21
- data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +0 -23
- data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/iam/activity_log_list_params.rb +0 -23
- data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +0 -48
- data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +0 -28
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +0 -34
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +0 -23
- data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +0 -50
- data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +0 -44
- data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -102
- data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +0 -52
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +0 -67
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +0 -92
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +0 -88
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -77
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +0 -48
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_method_disable_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +0 -31
- data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +0 -44
- data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +0 -43
- data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/transaction_list_params.rb +0 -47
- data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/network/business_profile_me_params.rb +0 -10
- data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +0 -10
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +0 -17
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +0 -20
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +0 -10
- data/lib/stripe/params/v2/signals/account_activity_create_params.rb +0 -177
- data/lib/stripe/params/v2/signals/account_activity_delete_params.rb +0 -10
- data/lib/stripe/params/v2/signals/account_activity_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/signals/account_evaluation_create_params.rb +0 -168
- data/lib/stripe/params/v2/signals/account_evaluation_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/signals/account_signal_list_params.rb +0 -35
- data/lib/stripe/params/v2/signals/account_signal_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +0 -23
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +0 -10
- data/lib/stripe/resources/account_notice.rb +0 -94
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +0 -33
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -38
- data/lib/stripe/resources/capital/financing_offer.rb +0 -144
- data/lib/stripe/resources/capital/financing_summary.rb +0 -84
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -99
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -35
- data/lib/stripe/resources/financial_connections/institution.rb +0 -127
- data/lib/stripe/resources/fx_quote.rb +0 -147
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -263
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -71
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -51
- data/lib/stripe/resources/issuing/settlement.rb +0 -61
- data/lib/stripe/resources/margin.rb +0 -64
- data/lib/stripe/resources/order.rb +0 -927
- data/lib/stripe/resources/privacy/redaction_job.rb +0 -189
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -49
- data/lib/stripe/resources/quote_line.rb +0 -525
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -1196
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -780
- data/lib/stripe/resources/shared_payment/granted_token.rb +0 -681
- data/lib/stripe/resources/shared_payment/issued_token.rb +0 -310
- data/lib/stripe/resources/tax/form.rb +0 -264
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -47
- data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -102
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -91
- data/lib/stripe/resources/v2/billing/cadence.rb +0 -710
- data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -327
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -316
- data/lib/stripe/resources/v2/billing/profile.rb +0 -47
- data/lib/stripe/resources/v2/core/approval_request.rb +0 -395
- data/lib/stripe/resources/v2/core/batch_job.rb +0 -486
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -138
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -107
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +0 -142
- data/lib/stripe/resources/v2/extend/workflow.rb +0 -80
- data/lib/stripe/resources/v2/extend/workflow_run.rb +0 -158
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -29
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -31
- data/lib/stripe/resources/v2/iam/activity_log.rb +0 -189
- data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -67
- data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -140
- data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -160
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -181
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -234
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -144
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -69
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -211
- data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -147
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -83
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -232
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -137
- data/lib/stripe/resources/v2/money_management/transaction.rb +0 -135
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -105
- data/lib/stripe/resources/v2/network/business_profile.rb +0 -84
- data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +0 -93
- data/lib/stripe/resources/v2/signals/account_activity.rb +0 -223
- data/lib/stripe/resources/v2/signals/account_evaluation.rb +0 -198
- data/lib/stripe/resources/v2/signals/account_signal.rb +0 -111
- data/lib/stripe/services/account_notice_service.rb +0 -39
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +0 -21
- data/lib/stripe/services/billing/analytics_service.rb +0 -15
- data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
- data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
- data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
- data/lib/stripe/services/capital_service.rb +0 -15
- data/lib/stripe/services/external_account_service.rb +0 -68
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
- data/lib/stripe/services/financial_connections/authorization_service.rb +0 -19
- data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
- data/lib/stripe/services/fx_quote_service.rb +0 -27
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
- data/lib/stripe/services/margin_service.rb +0 -50
- data/lib/stripe/services/order_service.rb +0 -53
- data/lib/stripe/services/privacy/redaction_job_service.rb +0 -104
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -19
- data/lib/stripe/services/privacy_service.rb +0 -13
- data/lib/stripe/services/quote_line_service.rb +0 -17
- data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
- data/lib/stripe/services/reserve/hold_service.rb +0 -30
- data/lib/stripe/services/reserve/plan_service.rb +0 -19
- data/lib/stripe/services/reserve/release_service.rb +0 -30
- data/lib/stripe/services/reserve_service.rb +0 -15
- data/lib/stripe/services/shared_payment/granted_token_service.rb +0 -19
- data/lib/stripe/services/shared_payment/issued_token_service.rb +0 -41
- data/lib/stripe/services/shared_payment_service.rb +0 -14
- data/lib/stripe/services/tax/form_service.rb +0 -37
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +0 -32
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +0 -15
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -61
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/cadence_service.rb +0 -65
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -69
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/profile_service.rb +0 -54
- data/lib/stripe/services/v2/core/approval_request_service.rb +0 -58
- data/lib/stripe/services/v2/core/batch_job_service.rb +0 -43
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -85
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -106
- data/lib/stripe/services/v2/core/vault_service.rb +0 -18
- data/lib/stripe/services/v2/data/reporting/query_run_service.rb +0 -35
- data/lib/stripe/services/v2/data/reporting_service.rb +0 -17
- data/lib/stripe/services/v2/data_service.rb +0 -15
- data/lib/stripe/services/v2/extend/workflow_run_service.rb +0 -32
- data/lib/stripe/services/v2/extend/workflow_service.rb +0 -45
- data/lib/stripe/services/v2/extend_service.rb +0 -16
- data/lib/stripe/services/v2/iam/activity_log_service.rb +0 -32
- data/lib/stripe/services/v2/iam_service.rb +0 -15
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -70
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -46
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -45
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -34
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -62
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -75
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -60
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -81
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -23
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -32
- data/lib/stripe/services/v2/money_management_service.rb +0 -31
- data/lib/stripe/services/v2/network/business_profile_service.rb +0 -32
- data/lib/stripe/services/v2/network_service.rb +0 -15
- data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +0 -65
- data/lib/stripe/services/v2/orchestrated_commerce_service.rb +0 -15
- data/lib/stripe/services/v2/signals/account_activity_service.rb +0 -43
- data/lib/stripe/services/v2/signals/account_evaluation_service.rb +0 -32
- data/lib/stripe/services/v2/signals/account_signal_service.rb +0 -32
- data/lib/stripe/services/v2/signals_service.rb +0 -17
- data/lib/stripe/services/v2/test_helper_service.rb +0 -15
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -36
|
@@ -74,21 +74,6 @@ module Stripe
|
|
|
74
74
|
request(method: :get, path: "/v1/account", params: params, opts: opts, base_address: :api)
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
-
# Serializes an Account update request into a batch job JSONL line.
|
|
78
|
-
def serialize_batch_update(account, params = {}, opts = {})
|
|
79
|
-
request_id = SecureRandom.uuid
|
|
80
|
-
stripe_version = opts[:stripe_version] || Stripe.api_version
|
|
81
|
-
|
|
82
|
-
request_body = {
|
|
83
|
-
id: request_id,
|
|
84
|
-
params: params,
|
|
85
|
-
stripe_version: stripe_version,
|
|
86
|
-
}
|
|
87
|
-
request_body[:path_params] = { account: account }
|
|
88
|
-
request_body[:context] = opts[:stripe_context] if opts[:stripe_context]
|
|
89
|
-
JSON.generate(request_body)
|
|
90
|
-
end
|
|
91
|
-
|
|
92
77
|
# With Connect, you can unreject accounts that you have previously rejected.
|
|
93
78
|
#
|
|
94
79
|
# Only accounts that were rejected by your platform can be unrejected. This API cannot be used to unreject accounts that were rejected by Stripe.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class AccountSessionService < StripeService
|
|
6
|
-
# Creates
|
|
6
|
+
# Creates an AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access.
|
|
7
7
|
def create(params = {}, opts = {})
|
|
8
8
|
request(
|
|
9
9
|
method: :post,
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Apps
|
|
6
|
+
class InstallService < StripeService
|
|
7
|
+
# Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer or embedding platform acting on a connected account through Stripe-Account installs or reinstalls its app there. For a private app, creating an install installs the newest completed upload; when that version is already installed with nothing pending, the existing install is returned.
|
|
8
|
+
def create(params = {}, opts = {})
|
|
9
|
+
request(
|
|
10
|
+
method: :post,
|
|
11
|
+
path: "/v1/apps/installs",
|
|
12
|
+
params: params,
|
|
13
|
+
opts: opts,
|
|
14
|
+
base_address: :api
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# Returns a list of app installs. An app developer or embedding platform filtering by its own app sees the installs across the accounts that installed it; other callers see the installs on their own account. The key selects the environment: a live key lists live installs, a sandbox API key lists the installs on that sandbox, and the key of an app's managed sandbox filtering by app lists that app's installs across every sandbox. For existing accounts that still use legacy test mode, a test mode key lists legacy test mode installs.
|
|
19
|
+
def list(params = {}, opts = {})
|
|
20
|
+
request(
|
|
21
|
+
method: :get,
|
|
22
|
+
path: "/v1/apps/installs",
|
|
23
|
+
params: params,
|
|
24
|
+
opts: opts,
|
|
25
|
+
base_address: :api
|
|
26
|
+
)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Retrieves an app install. The installing account, the app's developer (with the keys of the account that owns the app or of the app's managed sandbox), and the embedding platform that created the install can retrieve it.
|
|
30
|
+
def retrieve(id, params = {}, opts = {})
|
|
31
|
+
request(
|
|
32
|
+
method: :get,
|
|
33
|
+
path: format("/v1/apps/installs/%<id>s", { id: CGI.escape(id) }),
|
|
34
|
+
params: params,
|
|
35
|
+
opts: opts,
|
|
36
|
+
base_address: :api
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Uninstalls an app from the account that installed it.
|
|
41
|
+
def uninstall(id, params = {}, opts = {})
|
|
42
|
+
request(
|
|
43
|
+
method: :post,
|
|
44
|
+
path: format("/v1/apps/installs/%<id>s/uninstall", { id: CGI.escape(id) }),
|
|
45
|
+
params: params,
|
|
46
|
+
opts: opts,
|
|
47
|
+
base_address: :api
|
|
48
|
+
)
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Reauthorizes an app install. The installer grants the permissions, content security policy entries, and endpoints that the version being installed requests. An account reauthorizes its own installs on any channel with its own key; app developers and embedding platforms reauthorize installs on connected accounts through Stripe-Account. For private apps, the version being installed is the newest completed upload.
|
|
52
|
+
def update(id, params = {}, opts = {})
|
|
53
|
+
request(
|
|
54
|
+
method: :post,
|
|
55
|
+
path: format("/v1/apps/installs/%<id>s", { id: CGI.escape(id) }),
|
|
56
|
+
params: params,
|
|
57
|
+
opts: opts,
|
|
58
|
+
base_address: :api
|
|
59
|
+
)
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class AppsService < StripeService
|
|
6
|
-
attr_reader :secrets
|
|
6
|
+
attr_reader :installs, :secrets
|
|
7
7
|
|
|
8
8
|
def initialize(requestor)
|
|
9
9
|
super
|
|
10
|
+
@installs = Stripe::Apps::InstallService.new(@requestor)
|
|
10
11
|
@secrets = Stripe::Apps::SecretService.new(@requestor)
|
|
11
12
|
end
|
|
12
13
|
end
|
|
@@ -26,7 +26,7 @@ module Stripe
|
|
|
26
26
|
)
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
#
|
|
29
|
+
# Returns a list of your feedback options.
|
|
30
30
|
def list(params = {}, opts = {})
|
|
31
31
|
request(
|
|
32
32
|
method: :get,
|
|
@@ -37,7 +37,7 @@ module Stripe
|
|
|
37
37
|
)
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
-
# Retrieves a feedback
|
|
40
|
+
# Retrieves a feedback option object given an ID.
|
|
41
41
|
def retrieve(id, params = {}, opts = {})
|
|
42
42
|
request(
|
|
43
43
|
method: :get,
|
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class BillingService < StripeService
|
|
6
|
-
attr_reader :alerts, :
|
|
6
|
+
attr_reader :alerts, :credit_balance_summary, :credit_balance_transactions, :credit_grants, :feedback_options, :meters, :meter_events, :meter_event_adjustments
|
|
7
7
|
|
|
8
8
|
def initialize(requestor)
|
|
9
9
|
super
|
|
10
10
|
@alerts = Stripe::Billing::AlertService.new(@requestor)
|
|
11
|
-
@analytics = Stripe::Billing::AnalyticsService.new(@requestor)
|
|
12
11
|
@credit_balance_summary = Stripe::Billing::CreditBalanceSummaryService.new(@requestor)
|
|
13
12
|
@credit_balance_transactions = Stripe::Billing::CreditBalanceTransactionService
|
|
14
13
|
.new(@requestor)
|
|
@@ -3,11 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class ChargeService < StripeService
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
# Uncaptured payments expire a set number of days after they are created ([7 by default](https://docs.stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail.
|
|
9
|
-
#
|
|
10
|
-
# Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture).
|
|
6
|
+
# This method is deprecated and will be removed soon. If your integration uses it, you need to update it to use a different payment flow, such as [the Payment Intents API](https://docs.stripe.com/docs/payments/payment-intents).
|
|
11
7
|
def capture(charge, params = {}, opts = {})
|
|
12
8
|
request(
|
|
13
9
|
method: :post,
|
|
@@ -18,9 +14,7 @@ module Stripe
|
|
|
18
14
|
)
|
|
19
15
|
end
|
|
20
16
|
|
|
21
|
-
# This method is
|
|
22
|
-
# to initiate a new payment instead. Confirmation of the PaymentIntent creates the Charge
|
|
23
|
-
# object used to request payment.
|
|
17
|
+
# This method is deprecated and will be removed soon. If your integration uses it, you need to update it to use a different payment flow, such as [the Payment Intents API](https://docs.stripe.com/docs/payments/payment-intents).
|
|
24
18
|
def create(params = {}, opts = {})
|
|
25
19
|
request(method: :post, path: "/v1/charges", params: params, opts: opts, base_address: :api)
|
|
26
20
|
end
|
|
@@ -37,20 +37,6 @@ module Stripe
|
|
|
37
37
|
)
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
-
# Serializes a Coupon create request into a batch job JSONL line.
|
|
41
|
-
def serialize_batch_create(params = {}, opts = {})
|
|
42
|
-
request_id = SecureRandom.uuid
|
|
43
|
-
stripe_version = opts[:stripe_version] || Stripe.api_version
|
|
44
|
-
|
|
45
|
-
request_body = {
|
|
46
|
-
id: request_id,
|
|
47
|
-
params: params,
|
|
48
|
-
stripe_version: stripe_version,
|
|
49
|
-
}
|
|
50
|
-
request_body[:context] = opts[:stripe_context] if opts[:stripe_context]
|
|
51
|
-
JSON.generate(request_body)
|
|
52
|
-
end
|
|
53
|
-
|
|
54
40
|
# Updates the metadata of a coupon. Other coupon details (currency, duration, amount_off) are, by design, not editable.
|
|
55
41
|
def update(coupon, params = {}, opts = {})
|
|
56
42
|
request(
|
|
@@ -73,21 +73,6 @@ module Stripe
|
|
|
73
73
|
)
|
|
74
74
|
end
|
|
75
75
|
|
|
76
|
-
# Serializes a Customer update request into a batch job JSONL line.
|
|
77
|
-
def serialize_batch_update(customer, params = {}, opts = {})
|
|
78
|
-
request_id = SecureRandom.uuid
|
|
79
|
-
stripe_version = opts[:stripe_version] || Stripe.api_version
|
|
80
|
-
|
|
81
|
-
request_body = {
|
|
82
|
-
id: request_id,
|
|
83
|
-
params: params,
|
|
84
|
-
stripe_version: stripe_version,
|
|
85
|
-
}
|
|
86
|
-
request_body[:path_params] = { customer: customer }
|
|
87
|
-
request_body[:context] = opts[:stripe_context] if opts[:stripe_context]
|
|
88
|
-
JSON.generate(request_body)
|
|
89
|
-
end
|
|
90
|
-
|
|
91
76
|
# Updates the specified customer by setting the values of the parameters passed. Any parameters not provided are left unchanged. For example, if you pass the source parameter, that becomes the customer's active source (such as a card) to be used for all charges in the future. When you update a customer to a new valid card source by passing the source parameter: for each of the customer's current subscriptions, if the subscription bills automatically and is in the past_due state, then the latest open invoice for the subscription with automatic collection enabled is retried. This retry doesn't count as an automatic retry, and doesn't affect the next regularly scheduled payment for the invoice. Changing the default_source for a customer doesn't trigger this behavior.
|
|
92
77
|
#
|
|
93
78
|
# This request accepts mostly the same arguments as the customer creation call.
|
|
@@ -4,12 +4,10 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module FinancialConnections
|
|
6
6
|
class AccountService < StripeService
|
|
7
|
-
attr_reader :
|
|
7
|
+
attr_reader :owners
|
|
8
8
|
|
|
9
9
|
def initialize(requestor)
|
|
10
10
|
super
|
|
11
|
-
@inferred_balances = Stripe::FinancialConnections::AccountInferredBalanceService
|
|
12
|
-
.new(@requestor)
|
|
13
11
|
@owners = Stripe::FinancialConnections::AccountOwnerService.new(@requestor)
|
|
14
12
|
end
|
|
15
13
|
|
|
@@ -46,7 +44,7 @@ module Stripe
|
|
|
46
44
|
)
|
|
47
45
|
end
|
|
48
46
|
|
|
49
|
-
# Retrieves the details of
|
|
47
|
+
# Retrieves the details of a Financial Connections Account.
|
|
50
48
|
def retrieve(account, params = {}, opts = {})
|
|
51
49
|
request(
|
|
52
50
|
method: :get,
|
|
@@ -3,13 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class FinancialConnectionsService < StripeService
|
|
6
|
-
attr_reader :accounts, :
|
|
6
|
+
attr_reader :accounts, :sessions, :transactions
|
|
7
7
|
|
|
8
8
|
def initialize(requestor)
|
|
9
9
|
super
|
|
10
10
|
@accounts = Stripe::FinancialConnections::AccountService.new(@requestor)
|
|
11
|
-
@authorizations = Stripe::FinancialConnections::AuthorizationService.new(@requestor)
|
|
12
|
-
@institutions = Stripe::FinancialConnections::InstitutionService.new(@requestor)
|
|
13
11
|
@sessions = Stripe::FinancialConnections::SessionService.new(@requestor)
|
|
14
12
|
@transactions = Stripe::FinancialConnections::TransactionService.new(@requestor)
|
|
15
13
|
end
|
|
@@ -80,17 +80,6 @@ module Stripe
|
|
|
80
80
|
)
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
-
# Detaches a payment from the invoice, removing it from the list of payments
|
|
84
|
-
def detach_payment(invoice, params = {}, opts = {})
|
|
85
|
-
request(
|
|
86
|
-
method: :post,
|
|
87
|
-
path: format("/v1/invoices/%<invoice>s/detach_payment", { invoice: CGI.escape(invoice) }),
|
|
88
|
-
params: params,
|
|
89
|
-
opts: opts,
|
|
90
|
-
base_address: :api
|
|
91
|
-
)
|
|
92
|
-
end
|
|
93
|
-
|
|
94
83
|
# Stripe automatically finalizes drafts before sending and attempting payment on invoices. However, if you'd like to finalize a draft invoice manually, you can do so using this method.
|
|
95
84
|
def finalize_invoice(invoice, params = {}, opts = {})
|
|
96
85
|
request(
|
|
@@ -179,7 +168,8 @@ module Stripe
|
|
|
179
168
|
end
|
|
180
169
|
|
|
181
170
|
# Draft invoices are fully editable. Once an invoice is [finalized](https://docs.stripe.com/docs/billing/invoices/workflow#finalized),
|
|
182
|
-
#
|
|
171
|
+
# you can no longer change most of its details, including monetary values and collection_method. For most invoices,
|
|
172
|
+
# this also includes description.
|
|
183
173
|
#
|
|
184
174
|
# If you would like to stop the Stripe Billing engine from automatically finalizing, reattempting payments on,
|
|
185
175
|
# sending reminders for, or [automatically reconciling](https://docs.stripe.com/docs/billing/invoices/reconciliation) invoices, pass
|
|
@@ -3,18 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class IssuingService < StripeService
|
|
6
|
-
attr_reader :authorizations, :cards, :cardholders, :
|
|
6
|
+
attr_reader :authorizations, :cards, :cardholders, :disputes, :personalization_designs, :physical_bundles, :tokens, :transactions
|
|
7
7
|
|
|
8
8
|
def initialize(requestor)
|
|
9
9
|
super
|
|
10
10
|
@authorizations = Stripe::Issuing::AuthorizationService.new(@requestor)
|
|
11
11
|
@cards = Stripe::Issuing::CardService.new(@requestor)
|
|
12
12
|
@cardholders = Stripe::Issuing::CardholderService.new(@requestor)
|
|
13
|
-
@credit_underwriting_records = Stripe::Issuing::CreditUnderwritingRecordService
|
|
14
|
-
.new(@requestor)
|
|
15
13
|
@disputes = Stripe::Issuing::DisputeService.new(@requestor)
|
|
16
|
-
@dispute_settlement_details = Stripe::Issuing::DisputeSettlementDetailService.new(@requestor)
|
|
17
|
-
@fraud_liability_debits = Stripe::Issuing::FraudLiabilityDebitService.new(@requestor)
|
|
18
14
|
@personalization_designs = Stripe::Issuing::PersonalizationDesignService.new(@requestor)
|
|
19
15
|
@physical_bundles = Stripe::Issuing::PhysicalBundleService.new(@requestor)
|
|
20
16
|
@tokens = Stripe::Issuing::TokenService.new(@requestor)
|
|
@@ -3,11 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class MandateService < StripeService
|
|
6
|
-
# Retrieves a list of Mandates for a given PaymentMethod.
|
|
7
|
-
def list(params = {}, opts = {})
|
|
8
|
-
request(method: :get, path: "/v1/mandates", params: params, opts: opts, base_address: :api)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
6
|
# Retrieves a Mandate object.
|
|
12
7
|
def retrieve(mandate, params = {}, opts = {})
|
|
13
8
|
request(
|
|
@@ -111,32 +111,6 @@ module Stripe
|
|
|
111
111
|
)
|
|
112
112
|
end
|
|
113
113
|
|
|
114
|
-
# Perform a decremental authorization on an eligible
|
|
115
|
-
# [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
|
|
116
|
-
# PaymentIntent's status must be requires_capture and
|
|
117
|
-
# [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
|
|
118
|
-
# must be available.
|
|
119
|
-
#
|
|
120
|
-
# Decremental authorizations decrease the authorized amount on your customer's card
|
|
121
|
-
# to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
|
|
122
|
-
#
|
|
123
|
-
# After decrement, the PaymentIntent object
|
|
124
|
-
# returns with the updated
|
|
125
|
-
# [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
|
126
|
-
# The PaymentIntent will now be capturable up to the new authorized amount.
|
|
127
|
-
#
|
|
128
|
-
# Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
|
|
129
|
-
# After it's fully captured, a PaymentIntent can no longer be decremented.
|
|
130
|
-
def decrement_authorization(intent, params = {}, opts = {})
|
|
131
|
-
request(
|
|
132
|
-
method: :post,
|
|
133
|
-
path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(intent) }),
|
|
134
|
-
params: params,
|
|
135
|
-
opts: opts,
|
|
136
|
-
base_address: :api
|
|
137
|
-
)
|
|
138
|
-
end
|
|
139
|
-
|
|
140
114
|
# Perform an incremental authorization on an eligible
|
|
141
115
|
# [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
|
|
142
116
|
# PaymentIntent's status must be requires_capture and
|
|
@@ -188,7 +162,7 @@ module Stripe
|
|
|
188
162
|
#
|
|
189
163
|
# You can retrieve a PaymentIntent client-side using a publishable key when the client_secret is in the query string.
|
|
190
164
|
#
|
|
191
|
-
# If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://docs.stripe.com/api
|
|
165
|
+
# If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://docs.stripe.com/api/payment_intents/object) object reference for more details.
|
|
192
166
|
def retrieve(intent, params = {}, opts = {})
|
|
193
167
|
request(
|
|
194
168
|
method: :get,
|
|
@@ -213,17 +187,6 @@ module Stripe
|
|
|
213
187
|
)
|
|
214
188
|
end
|
|
215
189
|
|
|
216
|
-
# Trigger an external action on a PaymentIntent.
|
|
217
|
-
def trigger_action(intent, params = {}, opts = {})
|
|
218
|
-
request(
|
|
219
|
-
method: :post,
|
|
220
|
-
path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(intent) }),
|
|
221
|
-
params: params,
|
|
222
|
-
opts: opts,
|
|
223
|
-
base_address: :api
|
|
224
|
-
)
|
|
225
|
-
end
|
|
226
|
-
|
|
227
190
|
# Updates properties on a PaymentIntent object without confirming.
|
|
228
191
|
#
|
|
229
192
|
# Depending on which properties you update, you might need to confirm the
|
|
@@ -36,6 +36,17 @@ module Stripe
|
|
|
36
36
|
base_address: :api
|
|
37
37
|
)
|
|
38
38
|
end
|
|
39
|
+
|
|
40
|
+
# Updates the specified trial offer by setting the values of the parameters passed. Any parameters not provided are left unchanged.
|
|
41
|
+
def update(id, params = {}, opts = {})
|
|
42
|
+
request(
|
|
43
|
+
method: :post,
|
|
44
|
+
path: format("/v1/product_catalog/trial_offers/%<id>s", { id: CGI.escape(id) }),
|
|
45
|
+
params: params,
|
|
46
|
+
opts: opts,
|
|
47
|
+
base_address: :api
|
|
48
|
+
)
|
|
49
|
+
end
|
|
39
50
|
end
|
|
40
51
|
end
|
|
41
52
|
end
|
|
@@ -36,35 +36,6 @@ module Stripe
|
|
|
36
36
|
)
|
|
37
37
|
end
|
|
38
38
|
|
|
39
|
-
# Serializes a PromotionCode create request into a batch job JSONL line.
|
|
40
|
-
def serialize_batch_create(params = {}, opts = {})
|
|
41
|
-
request_id = SecureRandom.uuid
|
|
42
|
-
stripe_version = opts[:stripe_version] || Stripe.api_version
|
|
43
|
-
|
|
44
|
-
request_body = {
|
|
45
|
-
id: request_id,
|
|
46
|
-
params: params,
|
|
47
|
-
stripe_version: stripe_version,
|
|
48
|
-
}
|
|
49
|
-
request_body[:context] = opts[:stripe_context] if opts[:stripe_context]
|
|
50
|
-
JSON.generate(request_body)
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
# Serializes a PromotionCode update request into a batch job JSONL line.
|
|
54
|
-
def serialize_batch_update(promotion_code, params = {}, opts = {})
|
|
55
|
-
request_id = SecureRandom.uuid
|
|
56
|
-
stripe_version = opts[:stripe_version] || Stripe.api_version
|
|
57
|
-
|
|
58
|
-
request_body = {
|
|
59
|
-
id: request_id,
|
|
60
|
-
params: params,
|
|
61
|
-
stripe_version: stripe_version,
|
|
62
|
-
}
|
|
63
|
-
request_body[:path_params] = { promotion_code: promotion_code }
|
|
64
|
-
request_body[:context] = opts[:stripe_context] if opts[:stripe_context]
|
|
65
|
-
JSON.generate(request_body)
|
|
66
|
-
end
|
|
67
|
-
|
|
68
39
|
# Updates the specified promotion code by setting the values of the parameters passed. Most fields are, by design, not editable.
|
|
69
40
|
def update(promotion_code, params = {}, opts = {})
|
|
70
41
|
request(
|
|
@@ -3,16 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class QuoteService < StripeService
|
|
6
|
-
attr_reader :computed_upfront_line_items, :
|
|
6
|
+
attr_reader :computed_upfront_line_items, :line_items
|
|
7
7
|
|
|
8
8
|
def initialize(requestor)
|
|
9
9
|
super
|
|
10
10
|
@computed_upfront_line_items = Stripe::QuoteComputedUpfrontLineItemsService.new(@requestor)
|
|
11
|
-
@lines = Stripe::QuoteLineService.new(@requestor)
|
|
12
11
|
@line_items = Stripe::QuoteLineItemService.new(@requestor)
|
|
13
|
-
@preview_invoices = Stripe::QuotePreviewInvoiceService.new(@requestor)
|
|
14
|
-
@preview_subscription_schedules = Stripe::QuotePreviewSubscriptionScheduleService
|
|
15
|
-
.new(@requestor)
|
|
16
12
|
end
|
|
17
13
|
|
|
18
14
|
# Accepts the specified quote.
|
|
@@ -60,39 +56,6 @@ module Stripe
|
|
|
60
56
|
request(method: :get, path: "/v1/quotes", params: params, opts: opts, base_address: :api)
|
|
61
57
|
end
|
|
62
58
|
|
|
63
|
-
# Preview the invoice line items that would be generated by accepting the quote.
|
|
64
|
-
def list_preview_invoice_lines(quote, preview_invoice, params = {}, opts = {})
|
|
65
|
-
request(
|
|
66
|
-
method: :get,
|
|
67
|
-
path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(quote), preview_invoice: CGI.escape(preview_invoice) }),
|
|
68
|
-
params: params,
|
|
69
|
-
opts: opts,
|
|
70
|
-
base_address: :api
|
|
71
|
-
)
|
|
72
|
-
end
|
|
73
|
-
|
|
74
|
-
# Converts a stale quote to draft.
|
|
75
|
-
def mark_draft(quote, params = {}, opts = {})
|
|
76
|
-
request(
|
|
77
|
-
method: :post,
|
|
78
|
-
path: format("/v1/quotes/%<quote>s/mark_draft", { quote: CGI.escape(quote) }),
|
|
79
|
-
params: params,
|
|
80
|
-
opts: opts,
|
|
81
|
-
base_address: :api
|
|
82
|
-
)
|
|
83
|
-
end
|
|
84
|
-
|
|
85
|
-
# Converts a draft or open quote to stale.
|
|
86
|
-
def mark_stale(quote, params = {}, opts = {})
|
|
87
|
-
request(
|
|
88
|
-
method: :post,
|
|
89
|
-
path: format("/v1/quotes/%<quote>s/mark_stale", { quote: CGI.escape(quote) }),
|
|
90
|
-
params: params,
|
|
91
|
-
opts: opts,
|
|
92
|
-
base_address: :api
|
|
93
|
-
)
|
|
94
|
-
end
|
|
95
|
-
|
|
96
59
|
# Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.stripe.com/quotes/overview#quote_pdf)
|
|
97
60
|
def pdf(quote, params = {}, opts = {}, &read_body_chunk_block)
|
|
98
61
|
opts = { api_base: APIRequestor.active_requestor.config.uploads_base }.merge(opts)
|
|
@@ -106,17 +69,6 @@ module Stripe
|
|
|
106
69
|
)
|
|
107
70
|
end
|
|
108
71
|
|
|
109
|
-
# Recompute the upcoming invoice estimate for the quote.
|
|
110
|
-
def reestimate(quote, params = {}, opts = {})
|
|
111
|
-
request(
|
|
112
|
-
method: :post,
|
|
113
|
-
path: format("/v1/quotes/%<quote>s/reestimate", { quote: CGI.escape(quote) }),
|
|
114
|
-
params: params,
|
|
115
|
-
opts: opts,
|
|
116
|
-
base_address: :api
|
|
117
|
-
)
|
|
118
|
-
end
|
|
119
|
-
|
|
120
72
|
# Retrieves the quote with the given ID.
|
|
121
73
|
def retrieve(quote, params = {}, opts = {})
|
|
122
74
|
request(
|
|
@@ -3,17 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class SubscriptionScheduleService < StripeService
|
|
6
|
-
# Amends an existing subscription schedule.
|
|
7
|
-
def amend(schedule, params = {}, opts = {})
|
|
8
|
-
request(
|
|
9
|
-
method: :post,
|
|
10
|
-
path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(schedule) }),
|
|
11
|
-
params: params,
|
|
12
|
-
opts: opts,
|
|
13
|
-
base_address: :api
|
|
14
|
-
)
|
|
15
|
-
end
|
|
16
|
-
|
|
17
6
|
# Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription). A subscription schedule can only be canceled if its status is not_started or active.
|
|
18
7
|
def cancel(schedule, params = {}, opts = {})
|
|
19
8
|
request(
|
|
@@ -117,51 +117,6 @@ module Stripe
|
|
|
117
117
|
)
|
|
118
118
|
end
|
|
119
119
|
|
|
120
|
-
# Serializes a Subscription cancel request into a batch job JSONL line.
|
|
121
|
-
def serialize_batch_cancel(subscription_exposed_id, params = {}, opts = {})
|
|
122
|
-
request_id = SecureRandom.uuid
|
|
123
|
-
stripe_version = opts[:stripe_version] || Stripe.api_version
|
|
124
|
-
|
|
125
|
-
request_body = {
|
|
126
|
-
id: request_id,
|
|
127
|
-
params: params,
|
|
128
|
-
stripe_version: stripe_version,
|
|
129
|
-
}
|
|
130
|
-
request_body[:path_params] = { subscription_exposed_id: subscription_exposed_id }
|
|
131
|
-
request_body[:context] = opts[:stripe_context] if opts[:stripe_context]
|
|
132
|
-
JSON.generate(request_body)
|
|
133
|
-
end
|
|
134
|
-
|
|
135
|
-
# Serializes a Subscription migrate request into a batch job JSONL line.
|
|
136
|
-
def serialize_batch_migrate(subscription, params = {}, opts = {})
|
|
137
|
-
request_id = SecureRandom.uuid
|
|
138
|
-
stripe_version = opts[:stripe_version] || Stripe.api_version
|
|
139
|
-
|
|
140
|
-
request_body = {
|
|
141
|
-
id: request_id,
|
|
142
|
-
params: params,
|
|
143
|
-
stripe_version: stripe_version,
|
|
144
|
-
}
|
|
145
|
-
request_body[:path_params] = { subscription: subscription }
|
|
146
|
-
request_body[:context] = opts[:stripe_context] if opts[:stripe_context]
|
|
147
|
-
JSON.generate(request_body)
|
|
148
|
-
end
|
|
149
|
-
|
|
150
|
-
# Serializes a Subscription update request into a batch job JSONL line.
|
|
151
|
-
def serialize_batch_update(subscription_exposed_id, params = {}, opts = {})
|
|
152
|
-
request_id = SecureRandom.uuid
|
|
153
|
-
stripe_version = opts[:stripe_version] || Stripe.api_version
|
|
154
|
-
|
|
155
|
-
request_body = {
|
|
156
|
-
id: request_id,
|
|
157
|
-
params: params,
|
|
158
|
-
stripe_version: stripe_version,
|
|
159
|
-
}
|
|
160
|
-
request_body[:path_params] = { subscription_exposed_id: subscription_exposed_id }
|
|
161
|
-
request_body[:context] = opts[:stripe_context] if opts[:stripe_context]
|
|
162
|
-
JSON.generate(request_body)
|
|
163
|
-
end
|
|
164
|
-
|
|
165
120
|
# Updates an existing subscription to match the specified parameters.
|
|
166
121
|
# When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes.
|
|
167
122
|
# To preview how the proration is calculated, use the [create preview](https://docs.stripe.com/docs/api/invoices/create_preview) endpoint.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module Tax
|
|
6
6
|
class LocationService < StripeService
|
|
7
|
-
# Create a tax location to use in calculating taxes for a service, ticket, or other type of product. The resulting object contains the
|
|
7
|
+
# Create a tax location to use in calculating taxes for a service, ticket, or other type of product. The resulting object contains the ID, address, type, and description of the tax location.
|
|
8
8
|
def create(params = {}, opts = {})
|
|
9
9
|
request(
|
|
10
10
|
method: :post,
|
|
@@ -17,7 +17,7 @@ module Stripe
|
|
|
17
17
|
|
|
18
18
|
# Retrieve a list of all tax locations. Tax locations can represent the venues for services, tickets, or other product types.
|
|
19
19
|
#
|
|
20
|
-
# The response includes detailed information for each tax location, such as its address,
|
|
20
|
+
# The response includes detailed information for each tax location, such as its address, type, and description.
|
|
21
21
|
#
|
|
22
22
|
# You can paginate through the list by using the limit parameter to control the number of results returned in each request.
|
|
23
23
|
def list(params = {}, opts = {})
|
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
# Updates Tax Settings parameters used in tax calculations. All parameters are editable but none can be removed once set.
|
|
18
|
+
# Updates Tax Settings parameters used in tax calculations. All parameters are editable but none can be removed once set. Check the returned Tax Settings object and validate that its status is active.
|
|
19
19
|
def update(params = {}, opts = {})
|
|
20
20
|
request(
|
|
21
21
|
method: :post,
|
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class TaxService < StripeService
|
|
6
|
-
attr_reader :associations, :calculations, :
|
|
6
|
+
attr_reader :associations, :calculations, :locations, :registrations, :settings, :transactions
|
|
7
7
|
|
|
8
8
|
def initialize(requestor)
|
|
9
9
|
super
|
|
10
10
|
@associations = Stripe::Tax::AssociationService.new(@requestor)
|
|
11
11
|
@calculations = Stripe::Tax::CalculationService.new(@requestor)
|
|
12
|
-
@forms = Stripe::Tax::FormService.new(@requestor)
|
|
13
12
|
@locations = Stripe::Tax::LocationService.new(@requestor)
|
|
14
13
|
@registrations = Stripe::Tax::RegistrationService.new(@requestor)
|
|
15
14
|
@settings = Stripe::Tax::SettingsService.new(@requestor)
|