stripe 18.1.0 → 18.2.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_requestor.rb +36 -0
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +66 -0
- data/lib/stripe/event_types.rb +569 -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_closed_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_created_event.rb +44 -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_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
- data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_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 +86 -0
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +86 -0
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +84 -0
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +84 -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 +78 -0
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +78 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +91 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +93 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +93 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +93 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +82 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +82 -0
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_firing_event.rb +58 -0
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_resolved_event.rb +60 -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_iam_api_key_created_event.rb +20 -0
- data/lib/stripe/events/v2_iam_api_key_default_secret_revealed_event.rb +20 -0
- data/lib/stripe/events/v2_iam_api_key_expired_event.rb +20 -0
- data/lib/stripe/events/v2_iam_api_key_permissions_updated_event.rb +20 -0
- data/lib/stripe/events/v2_iam_api_key_rotated_event.rb +38 -0
- data/lib/stripe/events/v2_iam_api_key_updated_event.rb +20 -0
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -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_money_management_transaction_created_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +48 -0
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_errored_event.rb +65 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_funds_not_received_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_matched_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_not_found_event.rb +38 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_settled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_canceled_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_created_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_settled_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_submitted_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 +89 -0
- data/lib/stripe/params/account_create_params.rb +338 -3
- data/lib/stripe/params/account_notice_list_params.rb +25 -0
- data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_notice_update_params.rb +36 -0
- data/lib/stripe/params/account_person_create_params.rb +32 -0
- data/lib/stripe/params/account_person_update_params.rb +32 -0
- data/lib/stripe/params/account_session_create_params.rb +243 -1
- data/lib/stripe/params/account_update_params.rb +300 -2
- data/lib/stripe/params/balance_transfer_create_params.rb +66 -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 +69 -0
- 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_list_params.rb +58 -0
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
- data/lib/stripe/params/capital/financing_offer_refill_params.rb +37 -0
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/charge_capture_params.rb +1648 -0
- data/lib/stripe/params/charge_update_params.rb +1648 -0
- data/lib/stripe/params/checkout/session_create_params.rb +222 -5
- data/lib/stripe/params/checkout/session_update_params.rb +154 -2
- data/lib/stripe/params/confirmation_token_create_params.rb +77 -0
- data/lib/stripe/params/coupon_create_params.rb +17 -1
- data/lib/stripe/params/customer_session_create_params.rb +32 -1
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +138 -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/dispute_update_params.rb +10 -1
- data/lib/stripe/params/external_account_create_params.rb +134 -0
- data/lib/stripe/params/external_account_delete_params.rb +6 -0
- data/lib/stripe/params/external_account_list_params.rb +25 -0
- data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
- data/lib/stripe/params/external_account_update_params.rb +91 -0
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/session_create_params.rb +30 -1
- data/lib/stripe/params/fx_quote_create_params.rb +73 -0
- data/lib/stripe/params/fx_quote_list_params.rb +22 -0
- data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -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_add_lines_params.rb +46 -2
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +107 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +941 -9
- data/lib/stripe/params/invoice_item_create_params.rb +33 -1
- data/lib/stripe/params/invoice_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +46 -2
- data/lib/stripe/params/invoice_list_params.rb +4 -0
- data/lib/stripe/params/invoice_update_lines_params.rb +46 -2
- data/lib/stripe/params/invoice_update_params.rb +107 -2
- data/lib/stripe/params/issuing/card_list_params.rb +34 -1
- data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/program_create_params.rb +21 -0
- data/lib/stripe/params/issuing/program_list_params.rb +24 -0
- data/lib/stripe/params/issuing/program_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/program_update_params.rb +21 -0
- data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
- data/lib/stripe/params/mandate_list_params.rb +39 -0
- data/lib/stripe/params/margin_create_params.rb +25 -0
- data/lib/stripe/params/margin_list_params.rb +25 -0
- data/lib/stripe/params/margin_retrieve_params.rb +13 -0
- data/lib/stripe/params/margin_update_params.rb +22 -0
- data/lib/stripe/params/order_cancel_params.rb +13 -0
- data/lib/stripe/params/order_create_params.rb +2061 -0
- data/lib/stripe/params/order_line_item_list_params.rb +22 -0
- data/lib/stripe/params/order_list_line_items_params.rb +22 -0
- data/lib/stripe/params/order_list_params.rb +25 -0
- data/lib/stripe/params/order_reopen_params.rb +13 -0
- data/lib/stripe/params/order_retrieve_params.rb +13 -0
- data/lib/stripe/params/order_submit_params.rb +16 -0
- data/lib/stripe/params/order_update_params.rb +2065 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +1628 -2
- data/lib/stripe/params/payment_intent_confirm_params.rb +3143 -145
- data/lib/stripe/params/payment_intent_create_params.rb +3135 -124
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +22 -1
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +3186 -161
- data/lib/stripe/params/payment_link_create_params.rb +13 -1
- data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
- data/lib/stripe/params/payment_method_create_params.rb +77 -0
- data/lib/stripe/params/price_update_params.rb +19 -0
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
- data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +60 -0
- data/lib/stripe/params/product_create_params.rb +14 -1
- data/lib/stripe/params/product_update_params.rb +14 -1
- data/lib/stripe/params/quote_create_params.rb +1021 -3
- data/lib/stripe/params/quote_line_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_lines_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +4 -0
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
- data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
- data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
- data/lib/stripe/params/quote_reestimate_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +1029 -4
- data/lib/stripe/params/radar/account_evaluation_create_params.rb +81 -0
- data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/account_evaluation_update_params.rb +18 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +187 -3
- data/lib/stripe/params/setup_intent_create_params.rb +187 -3
- data/lib/stripe/params/setup_intent_update_params.rb +188 -4
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/granted_token_update_params.rb +15 -0
- data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
- data/lib/stripe/params/subscription_create_params.rb +270 -5
- data/lib/stripe/params/subscription_item_create_params.rb +62 -2
- data/lib/stripe/params/subscription_item_update_params.rb +45 -1
- data/lib/stripe/params/subscription_schedule_amend_params.rb +609 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +231 -5
- data/lib/stripe/params/subscription_schedule_update_params.rb +231 -5
- data/lib/stripe/params/subscription_update_params.rb +253 -4
- data/lib/stripe/params/tax/form_list_params.rb +51 -0
- data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
- data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
- data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- 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/test_helpers/confirmation_token_create_params.rb +77 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +49 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_update_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/token_create_params.rb +64 -0
- data/lib/stripe/params/transfer_create_params.rb +8 -0
- data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
- data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +17 -0
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +257 -0
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +78 -0
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
- 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 +425 -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/profile_create_params.rb +37 -0
- data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -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 +278 -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 +959 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +250 -2
- data/lib/stripe/params/v2/core/account_update_params.rb +938 -5
- 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/core/event_list_params.rb +4 -1
- data/lib/stripe/params/v2/core/event_retrieve_params.rb +8 -1
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
- data/lib/stripe/params/v2/iam/api_key_create_params.rb +51 -0
- data/lib/stripe/params/v2/iam/api_key_expire_params.rb +10 -0
- data/lib/stripe/params/v2/iam/api_key_list_params.rb +20 -0
- data/lib/stripe/params/v2/iam/api_key_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/iam/api_key_rotate_params.rb +46 -0
- data/lib/stripe/params/v2/iam/api_key_update_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +68 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +31 -0
- data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +62 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +117 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +82 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +103 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +93 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
- data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -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/money_management/transaction_entry_list_params.rb +43 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
- data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +57 -0
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +161 -0
- data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
- data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_create_params.rb +46 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_submit_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_update_params.rb +31 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_cancel_params.rb +12 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_create_params.rb +39 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_retrieve_params.rb +12 -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/manual_rule_create_params.rb +94 -0
- data/lib/stripe/params/v2/tax/manual_rule_deactivate_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_list_params.rb +17 -0
- data/lib/stripe/params/v2/tax/manual_rule_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_update_params.rb +94 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +34 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
- data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +24 -0
- data/lib/stripe/params.rb +271 -0
- data/lib/stripe/resources/account.rb +182 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +108 -0
- data/lib/stripe/resources/application_fee.rb +2 -0
- data/lib/stripe/resources/balance.rb +83 -0
- data/lib/stripe/resources/balance_transfer.rb +139 -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.rb +33 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +40 -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 +183 -0
- data/lib/stripe/resources/capital/financing_summary.rb +82 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +20 -1
- data/lib/stripe/resources/charge.rb +233 -1
- data/lib/stripe/resources/checkout/session.rb +196 -4
- data/lib/stripe/resources/confirmation_token.rb +151 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer_session.rb +36 -0
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +479 -0
- data/lib/stripe/resources/discount.rb +2 -0
- data/lib/stripe/resources/dispute.rb +22 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +25 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +65 -1
- data/lib/stripe/resources/fx_quote.rb +147 -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.rb +166 -1
- data/lib/stripe/resources/invoice_item.rb +108 -2
- data/lib/stripe/resources/invoice_line_item.rb +147 -3
- data/lib/stripe/resources/issuing/card.rb +4 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
- data/lib/stripe/resources/issuing/program.rb +69 -0
- data/lib/stripe/resources/issuing/settlement.rb +61 -0
- data/lib/stripe/resources/issuing/transaction.rb +2 -0
- data/lib/stripe/resources/line_item.rb +66 -1
- data/lib/stripe/resources/mandate.rb +43 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +987 -0
- data/lib/stripe/resources/payment_attempt_record.rb +181 -1
- data/lib/stripe/resources/payment_intent.rb +800 -5
- data/lib/stripe/resources/payment_method.rb +173 -0
- data/lib/stripe/resources/payment_method_balance.rb +68 -0
- data/lib/stripe/resources/payment_method_configuration.rb +170 -0
- data/lib/stripe/resources/payment_record.rb +181 -1
- data/lib/stripe/resources/person.rb +36 -0
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/product_catalog/trial_offer.rb +101 -0
- data/lib/stripe/resources/quote.rb +806 -2
- data/lib/stripe/resources/quote_line.rb +527 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1198 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +826 -0
- data/lib/stripe/resources/radar/account_evaluation.rb +116 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/setup_attempt.rb +48 -0
- data/lib/stripe/resources/setup_intent.rb +128 -1
- data/lib/stripe/resources/shared_payment/granted_token.rb +126 -0
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +249 -0
- data/lib/stripe/resources/subscription_item.rb +43 -1
- data/lib/stripe/resources/subscription_schedule.rb +290 -3
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/terminal/configuration.rb +16 -0
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/transfer.rb +6 -0
- data/lib/stripe/resources/transit_balance.rb +45 -0
- data/lib/stripe/resources/treasury/financial_account.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
- data/lib/stripe/resources/treasury/received_credit.rb +30 -0
- data/lib/stripe/resources/treasury/received_debit.rb +32 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +655 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -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 +483 -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/profile.rb +46 -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 +274 -0
- data/lib/stripe/resources/v2/core/account.rb +1688 -58
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +105 -0
- data/lib/stripe/resources/v2/core/event.rb +50 -1
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +134 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +103 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +44 -0
- data/lib/stripe/resources/v2/iam/api_key.rb +129 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +82 -0
- data/lib/stripe/resources/v2/money_management/currency_conversion.rb +94 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +223 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +197 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +265 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +204 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +242 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +157 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +280 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +208 -0
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +180 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +153 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +186 -0
- data/lib/stripe/resources/v2/payments/settlement_allocation_intent.rb +92 -0
- data/lib/stripe/resources/v2/payments/settlement_allocation_intent_split.rb +78 -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/manual_rule.rb +115 -0
- data/lib/stripe/resources.rb +233 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/balance_transfer_service.rb +17 -0
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
- data/lib/stripe/services/billing/analytics_service.rb +15 -0
- data/lib/stripe/services/billing_service.rb +2 -1
- data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
- data/lib/stripe/services/capital_service.rb +15 -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/external_account_service.rb +68 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_service.rb +3 -1
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- data/lib/stripe/services/fx_quote_service.rb +27 -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/issuing/credit_underwriting_record_service.rb +74 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
- data/lib/stripe/services/issuing/program_service.rb +52 -0
- data/lib/stripe/services/issuing_service.rb +6 -1
- data/lib/stripe/services/mandate_service.rb +5 -0
- data/lib/stripe/services/margin_service.rb +50 -0
- data/lib/stripe/services/order_line_item_service.rb +17 -0
- data/lib/stripe/services/order_service.rb +78 -0
- data/lib/stripe/services/payment_intent_service.rb +37 -0
- data/lib/stripe/services/payment_method_service.rb +11 -0
- data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
- data/lib/stripe/services/privacy_service.rb +13 -0
- data/lib/stripe/services/product_catalog/trial_offer_service.rb +19 -0
- data/lib/stripe/services/product_catalog_service.rb +13 -0
- data/lib/stripe/services/quote_line_service.rb +17 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
- data/lib/stripe/services/quote_service.rb +49 -1
- data/lib/stripe/services/radar/account_evaluation_service.rb +41 -0
- data/lib/stripe/services/radar_service.rb +2 -1
- data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
- data/lib/stripe/services/shared_payment_service.rb +13 -0
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +11 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +2 -1
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +2 -1
- 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/shared_payment/granted_token_service.rb +32 -0
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
- data/lib/stripe/services/test_helpers_service.rb +3 -1
- data/lib/stripe/services/v1_services.rb +12 -1
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
- 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/profile_service.rb +54 -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 +18 -1
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +35 -0
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +3 -1
- data/lib/stripe/services/v2/iam/api_key_service.rb +76 -0
- data/lib/stripe/services/v2/iam_service.rb +15 -0
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +75 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +65 -0
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
- data/lib/stripe/services/v2/money_management_service.rb +35 -0
- data/lib/stripe/services/v2/payment_service.rb +17 -0
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
- data/lib/stripe/services/v2/payments/settlement_allocation_intent_service.rb +72 -0
- data/lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb +45 -0
- 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/manual_rule_service.rb +65 -0
- data/lib/stripe/services/v2/tax_service.rb +15 -0
- data/lib/stripe/services/v2/test_helper_service.rb +16 -0
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
- data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
- data/lib/stripe/services/v2_services.rb +7 -1
- data/lib/stripe/services.rb +98 -0
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/util.rb +7 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +53 -0
- data/rbi/stripe.rbi +129099 -49595
- metadata +606 -4
|
@@ -4,16 +4,44 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class InvoiceItemCreateParams < ::Stripe::RequestParams
|
|
6
6
|
class Discount < ::Stripe::RequestParams
|
|
7
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
8
|
+
class Duration < ::Stripe::RequestParams
|
|
9
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
10
|
+
attr_accessor :interval
|
|
11
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
12
|
+
attr_accessor :interval_count
|
|
13
|
+
|
|
14
|
+
def initialize(interval: nil, interval_count: nil)
|
|
15
|
+
@interval = interval
|
|
16
|
+
@interval_count = interval_count
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
# Time span for the redeemed discount.
|
|
20
|
+
attr_accessor :duration
|
|
21
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
22
|
+
attr_accessor :timestamp
|
|
23
|
+
# The type of calculation made to determine when the discount ends.
|
|
24
|
+
attr_accessor :type
|
|
25
|
+
|
|
26
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
27
|
+
@duration = duration
|
|
28
|
+
@timestamp = timestamp
|
|
29
|
+
@type = type
|
|
30
|
+
end
|
|
31
|
+
end
|
|
7
32
|
# ID of the coupon to create a new discount for.
|
|
8
33
|
attr_accessor :coupon
|
|
9
34
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
10
35
|
attr_accessor :discount
|
|
36
|
+
# Details to determine how long the discount should be applied for.
|
|
37
|
+
attr_accessor :discount_end
|
|
11
38
|
# ID of the promotion code to create a new discount for.
|
|
12
39
|
attr_accessor :promotion_code
|
|
13
40
|
|
|
14
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
41
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
15
42
|
@coupon = coupon
|
|
16
43
|
@discount = discount
|
|
44
|
+
@discount_end = discount_end
|
|
17
45
|
@promotion_code = promotion_code
|
|
18
46
|
end
|
|
19
47
|
end
|
|
@@ -83,6 +111,8 @@ module Stripe
|
|
|
83
111
|
attr_accessor :expand
|
|
84
112
|
# The ID of an existing invoice to add this invoice item to. For subscription invoices, when left blank, the invoice item will be added to the next upcoming scheduled invoice. For standalone invoices, the invoice item won't be automatically added unless you pass `pending_invoice_item_behavior: 'include'` when creating the invoice. This is useful when adding invoice items in response to an invoice.created webhook. You can only add invoice items to draft invoices and there is a maximum of 250 items per invoice.
|
|
85
113
|
attr_accessor :invoice
|
|
114
|
+
# The ids of the margins to apply to the invoice item. When set, the `default_margins` on the invoice do not apply to this invoice item.
|
|
115
|
+
attr_accessor :margins
|
|
86
116
|
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
87
117
|
attr_accessor :metadata
|
|
88
118
|
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://docs.stripe.com/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://docs.stripe.com/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
|
|
@@ -114,6 +144,7 @@ module Stripe
|
|
|
114
144
|
discounts: nil,
|
|
115
145
|
expand: nil,
|
|
116
146
|
invoice: nil,
|
|
147
|
+
margins: nil,
|
|
117
148
|
metadata: nil,
|
|
118
149
|
period: nil,
|
|
119
150
|
price_data: nil,
|
|
@@ -134,6 +165,7 @@ module Stripe
|
|
|
134
165
|
@discounts = discounts
|
|
135
166
|
@expand = expand
|
|
136
167
|
@invoice = invoice
|
|
168
|
+
@margins = margins
|
|
137
169
|
@metadata = metadata
|
|
138
170
|
@period = period
|
|
139
171
|
@price_data = price_data
|
|
@@ -4,16 +4,44 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class InvoiceItemUpdateParams < ::Stripe::RequestParams
|
|
6
6
|
class Discount < ::Stripe::RequestParams
|
|
7
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
8
|
+
class Duration < ::Stripe::RequestParams
|
|
9
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
10
|
+
attr_accessor :interval
|
|
11
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
12
|
+
attr_accessor :interval_count
|
|
13
|
+
|
|
14
|
+
def initialize(interval: nil, interval_count: nil)
|
|
15
|
+
@interval = interval
|
|
16
|
+
@interval_count = interval_count
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
# Time span for the redeemed discount.
|
|
20
|
+
attr_accessor :duration
|
|
21
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
22
|
+
attr_accessor :timestamp
|
|
23
|
+
# The type of calculation made to determine when the discount ends.
|
|
24
|
+
attr_accessor :type
|
|
25
|
+
|
|
26
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
27
|
+
@duration = duration
|
|
28
|
+
@timestamp = timestamp
|
|
29
|
+
@type = type
|
|
30
|
+
end
|
|
31
|
+
end
|
|
7
32
|
# ID of the coupon to create a new discount for.
|
|
8
33
|
attr_accessor :coupon
|
|
9
34
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
10
35
|
attr_accessor :discount
|
|
36
|
+
# Details to determine how long the discount should be applied for.
|
|
37
|
+
attr_accessor :discount_end
|
|
11
38
|
# ID of the promotion code to create a new discount for.
|
|
12
39
|
attr_accessor :promotion_code
|
|
13
40
|
|
|
14
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
41
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
15
42
|
@coupon = coupon
|
|
16
43
|
@discount = discount
|
|
44
|
+
@discount_end = discount_end
|
|
17
45
|
@promotion_code = promotion_code
|
|
18
46
|
end
|
|
19
47
|
end
|
|
@@ -75,6 +103,8 @@ module Stripe
|
|
|
75
103
|
attr_accessor :discounts
|
|
76
104
|
# Specifies which fields in the response should be expanded.
|
|
77
105
|
attr_accessor :expand
|
|
106
|
+
# The ids of the margins to apply to the invoice item. When set, the `default_margins` on the invoice do not apply to this invoice item.
|
|
107
|
+
attr_accessor :margins
|
|
78
108
|
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
79
109
|
attr_accessor :metadata
|
|
80
110
|
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://docs.stripe.com/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://docs.stripe.com/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
|
|
@@ -100,6 +130,7 @@ module Stripe
|
|
|
100
130
|
discountable: nil,
|
|
101
131
|
discounts: nil,
|
|
102
132
|
expand: nil,
|
|
133
|
+
margins: nil,
|
|
103
134
|
metadata: nil,
|
|
104
135
|
period: nil,
|
|
105
136
|
price_data: nil,
|
|
@@ -115,6 +146,7 @@ module Stripe
|
|
|
115
146
|
@discountable = discountable
|
|
116
147
|
@discounts = discounts
|
|
117
148
|
@expand = expand
|
|
149
|
+
@margins = margins
|
|
118
150
|
@metadata = metadata
|
|
119
151
|
@period = period
|
|
120
152
|
@price_data = price_data
|
|
@@ -4,16 +4,44 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class InvoiceLineItemUpdateParams < ::Stripe::RequestParams
|
|
6
6
|
class Discount < ::Stripe::RequestParams
|
|
7
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
8
|
+
class Duration < ::Stripe::RequestParams
|
|
9
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
10
|
+
attr_accessor :interval
|
|
11
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
12
|
+
attr_accessor :interval_count
|
|
13
|
+
|
|
14
|
+
def initialize(interval: nil, interval_count: nil)
|
|
15
|
+
@interval = interval
|
|
16
|
+
@interval_count = interval_count
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
# Time span for the redeemed discount.
|
|
20
|
+
attr_accessor :duration
|
|
21
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
22
|
+
attr_accessor :timestamp
|
|
23
|
+
# The type of calculation made to determine when the discount ends.
|
|
24
|
+
attr_accessor :type
|
|
25
|
+
|
|
26
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
27
|
+
@duration = duration
|
|
28
|
+
@timestamp = timestamp
|
|
29
|
+
@type = type
|
|
30
|
+
end
|
|
31
|
+
end
|
|
7
32
|
# ID of the coupon to create a new discount for.
|
|
8
33
|
attr_accessor :coupon
|
|
9
34
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
10
35
|
attr_accessor :discount
|
|
36
|
+
# Details to determine how long the discount should be applied for.
|
|
37
|
+
attr_accessor :discount_end
|
|
11
38
|
# ID of the promotion code to create a new discount for.
|
|
12
39
|
attr_accessor :promotion_code
|
|
13
40
|
|
|
14
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
41
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
15
42
|
@coupon = coupon
|
|
16
43
|
@discount = discount
|
|
44
|
+
@discount_end = discount_end
|
|
17
45
|
@promotion_code = promotion_code
|
|
18
46
|
end
|
|
19
47
|
end
|
|
@@ -32,6 +60,14 @@ module Stripe
|
|
|
32
60
|
|
|
33
61
|
class PriceData < ::Stripe::RequestParams
|
|
34
62
|
class ProductData < ::Stripe::RequestParams
|
|
63
|
+
class TaxDetails < ::Stripe::RequestParams
|
|
64
|
+
# A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
65
|
+
attr_accessor :tax_code
|
|
66
|
+
|
|
67
|
+
def initialize(tax_code: nil)
|
|
68
|
+
@tax_code = tax_code
|
|
69
|
+
end
|
|
70
|
+
end
|
|
35
71
|
# The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
|
|
36
72
|
attr_accessor :description
|
|
37
73
|
# A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
|
|
@@ -44,6 +80,8 @@ module Stripe
|
|
|
44
80
|
attr_accessor :tax_code
|
|
45
81
|
# A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
|
|
46
82
|
attr_accessor :unit_label
|
|
83
|
+
# Tax details for this product, including the [tax code](/tax/tax-codes) and an optional performance location.
|
|
84
|
+
attr_accessor :tax_details
|
|
47
85
|
|
|
48
86
|
def initialize(
|
|
49
87
|
description: nil,
|
|
@@ -51,7 +89,8 @@ module Stripe
|
|
|
51
89
|
metadata: nil,
|
|
52
90
|
name: nil,
|
|
53
91
|
tax_code: nil,
|
|
54
|
-
unit_label: nil
|
|
92
|
+
unit_label: nil,
|
|
93
|
+
tax_details: nil
|
|
55
94
|
)
|
|
56
95
|
@description = description
|
|
57
96
|
@images = images
|
|
@@ -59,6 +98,7 @@ module Stripe
|
|
|
59
98
|
@name = name
|
|
60
99
|
@tax_code = tax_code
|
|
61
100
|
@unit_label = unit_label
|
|
101
|
+
@tax_details = tax_details
|
|
62
102
|
end
|
|
63
103
|
end
|
|
64
104
|
# 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).
|
|
@@ -171,6 +211,8 @@ module Stripe
|
|
|
171
211
|
attr_accessor :discounts
|
|
172
212
|
# Specifies which fields in the response should be expanded.
|
|
173
213
|
attr_accessor :expand
|
|
214
|
+
# The IDs of the margins to apply to the line item. When set, the `default_margins` on the invoice do not apply to this line item.
|
|
215
|
+
attr_accessor :margins
|
|
174
216
|
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. For [type=subscription](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-type) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](api/invoices/line_item#invoice_line_item_object-type) line items, where any existing metadata on the invoice line is merged with the incoming data.
|
|
175
217
|
attr_accessor :metadata
|
|
176
218
|
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://docs.stripe.com/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://docs.stripe.com/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
|
|
@@ -192,6 +234,7 @@ module Stripe
|
|
|
192
234
|
discountable: nil,
|
|
193
235
|
discounts: nil,
|
|
194
236
|
expand: nil,
|
|
237
|
+
margins: nil,
|
|
195
238
|
metadata: nil,
|
|
196
239
|
period: nil,
|
|
197
240
|
price_data: nil,
|
|
@@ -205,6 +248,7 @@ module Stripe
|
|
|
205
248
|
@discountable = discountable
|
|
206
249
|
@discounts = discounts
|
|
207
250
|
@expand = expand
|
|
251
|
+
@margins = margins
|
|
208
252
|
@metadata = metadata
|
|
209
253
|
@period = period
|
|
210
254
|
@price_data = price_data
|
|
@@ -38,6 +38,8 @@ module Stripe
|
|
|
38
38
|
@lte = lte
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
|
+
# Only return invoices for the cadence specified by this billing cadence ID.
|
|
42
|
+
attr_accessor :billing_cadence
|
|
41
43
|
# The collection method of the invoice to retrieve. Either `charge_automatically` or `send_invoice`.
|
|
42
44
|
attr_accessor :collection_method
|
|
43
45
|
# Only return invoices that were created during the given date interval.
|
|
@@ -62,6 +64,7 @@ module Stripe
|
|
|
62
64
|
attr_accessor :subscription
|
|
63
65
|
|
|
64
66
|
def initialize(
|
|
67
|
+
billing_cadence: nil,
|
|
65
68
|
collection_method: nil,
|
|
66
69
|
created: nil,
|
|
67
70
|
customer: nil,
|
|
@@ -74,6 +77,7 @@ module Stripe
|
|
|
74
77
|
status: nil,
|
|
75
78
|
subscription: nil
|
|
76
79
|
)
|
|
80
|
+
@billing_cadence = billing_cadence
|
|
77
81
|
@collection_method = collection_method
|
|
78
82
|
@created = created
|
|
79
83
|
@customer = customer
|
|
@@ -5,16 +5,44 @@ module Stripe
|
|
|
5
5
|
class InvoiceUpdateLinesParams < ::Stripe::RequestParams
|
|
6
6
|
class Line < ::Stripe::RequestParams
|
|
7
7
|
class Discount < ::Stripe::RequestParams
|
|
8
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
9
|
+
class Duration < ::Stripe::RequestParams
|
|
10
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
11
|
+
attr_accessor :interval
|
|
12
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
13
|
+
attr_accessor :interval_count
|
|
14
|
+
|
|
15
|
+
def initialize(interval: nil, interval_count: nil)
|
|
16
|
+
@interval = interval
|
|
17
|
+
@interval_count = interval_count
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
# Time span for the redeemed discount.
|
|
21
|
+
attr_accessor :duration
|
|
22
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
23
|
+
attr_accessor :timestamp
|
|
24
|
+
# The type of calculation made to determine when the discount ends.
|
|
25
|
+
attr_accessor :type
|
|
26
|
+
|
|
27
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
28
|
+
@duration = duration
|
|
29
|
+
@timestamp = timestamp
|
|
30
|
+
@type = type
|
|
31
|
+
end
|
|
32
|
+
end
|
|
8
33
|
# ID of the coupon to create a new discount for.
|
|
9
34
|
attr_accessor :coupon
|
|
10
35
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
11
36
|
attr_accessor :discount
|
|
37
|
+
# Details to determine how long the discount should be applied for.
|
|
38
|
+
attr_accessor :discount_end
|
|
12
39
|
# ID of the promotion code to create a new discount for.
|
|
13
40
|
attr_accessor :promotion_code
|
|
14
41
|
|
|
15
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
42
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
16
43
|
@coupon = coupon
|
|
17
44
|
@discount = discount
|
|
45
|
+
@discount_end = discount_end
|
|
18
46
|
@promotion_code = promotion_code
|
|
19
47
|
end
|
|
20
48
|
end
|
|
@@ -33,6 +61,14 @@ module Stripe
|
|
|
33
61
|
|
|
34
62
|
class PriceData < ::Stripe::RequestParams
|
|
35
63
|
class ProductData < ::Stripe::RequestParams
|
|
64
|
+
class TaxDetails < ::Stripe::RequestParams
|
|
65
|
+
# A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
66
|
+
attr_accessor :tax_code
|
|
67
|
+
|
|
68
|
+
def initialize(tax_code: nil)
|
|
69
|
+
@tax_code = tax_code
|
|
70
|
+
end
|
|
71
|
+
end
|
|
36
72
|
# The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
|
|
37
73
|
attr_accessor :description
|
|
38
74
|
# A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
|
|
@@ -45,6 +81,8 @@ module Stripe
|
|
|
45
81
|
attr_accessor :tax_code
|
|
46
82
|
# A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
|
|
47
83
|
attr_accessor :unit_label
|
|
84
|
+
# Tax details for this product, including the [tax code](/tax/tax-codes) and an optional performance location.
|
|
85
|
+
attr_accessor :tax_details
|
|
48
86
|
|
|
49
87
|
def initialize(
|
|
50
88
|
description: nil,
|
|
@@ -52,7 +90,8 @@ module Stripe
|
|
|
52
90
|
metadata: nil,
|
|
53
91
|
name: nil,
|
|
54
92
|
tax_code: nil,
|
|
55
|
-
unit_label: nil
|
|
93
|
+
unit_label: nil,
|
|
94
|
+
tax_details: nil
|
|
56
95
|
)
|
|
57
96
|
@description = description
|
|
58
97
|
@images = images
|
|
@@ -60,6 +99,7 @@ module Stripe
|
|
|
60
99
|
@name = name
|
|
61
100
|
@tax_code = tax_code
|
|
62
101
|
@unit_label = unit_label
|
|
102
|
+
@tax_details = tax_details
|
|
63
103
|
end
|
|
64
104
|
end
|
|
65
105
|
# 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).
|
|
@@ -172,6 +212,8 @@ module Stripe
|
|
|
172
212
|
attr_accessor :discounts
|
|
173
213
|
# ID of an existing line item on the invoice.
|
|
174
214
|
attr_accessor :id
|
|
215
|
+
# The IDs of the margins to apply to the line item. When set, the `default_margins` on the invoice do not apply to this line item.
|
|
216
|
+
attr_accessor :margins
|
|
175
217
|
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. For [type=subscription](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-type) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](api/invoices/line_item#invoice_line_item_object-type) line items, where any existing metadata on the invoice line is merged with the incoming data.
|
|
176
218
|
attr_accessor :metadata
|
|
177
219
|
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://docs.stripe.com/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://docs.stripe.com/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
|
|
@@ -193,6 +235,7 @@ module Stripe
|
|
|
193
235
|
discountable: nil,
|
|
194
236
|
discounts: nil,
|
|
195
237
|
id: nil,
|
|
238
|
+
margins: nil,
|
|
196
239
|
metadata: nil,
|
|
197
240
|
period: nil,
|
|
198
241
|
price_data: nil,
|
|
@@ -206,6 +249,7 @@ module Stripe
|
|
|
206
249
|
@discountable = discountable
|
|
207
250
|
@discounts = discounts
|
|
208
251
|
@id = id
|
|
252
|
+
@margins = margins
|
|
209
253
|
@metadata = metadata
|
|
210
254
|
@period = period
|
|
211
255
|
@price_data = price_data
|
|
@@ -3,6 +3,24 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class InvoiceUpdateParams < ::Stripe::RequestParams
|
|
6
|
+
class AmountsDue < ::Stripe::RequestParams
|
|
7
|
+
# The amount in cents (or local equivalent).
|
|
8
|
+
attr_accessor :amount
|
|
9
|
+
# Number of days from when invoice is finalized until the payment is due.
|
|
10
|
+
attr_accessor :days_until_due
|
|
11
|
+
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
12
|
+
attr_accessor :description
|
|
13
|
+
# Date on which a payment plan’s payment is due.
|
|
14
|
+
attr_accessor :due_date
|
|
15
|
+
|
|
16
|
+
def initialize(amount: nil, days_until_due: nil, description: nil, due_date: nil)
|
|
17
|
+
@amount = amount
|
|
18
|
+
@days_until_due = days_until_due
|
|
19
|
+
@description = description
|
|
20
|
+
@due_date = due_date
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
6
24
|
class AutomaticTax < ::Stripe::RequestParams
|
|
7
25
|
class Liability < ::Stripe::RequestParams
|
|
8
26
|
# The connected account being referenced when `type` is `account`.
|
|
@@ -39,16 +57,44 @@ module Stripe
|
|
|
39
57
|
end
|
|
40
58
|
|
|
41
59
|
class Discount < ::Stripe::RequestParams
|
|
60
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
61
|
+
class Duration < ::Stripe::RequestParams
|
|
62
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
63
|
+
attr_accessor :interval
|
|
64
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
65
|
+
attr_accessor :interval_count
|
|
66
|
+
|
|
67
|
+
def initialize(interval: nil, interval_count: nil)
|
|
68
|
+
@interval = interval
|
|
69
|
+
@interval_count = interval_count
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
# Time span for the redeemed discount.
|
|
73
|
+
attr_accessor :duration
|
|
74
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
75
|
+
attr_accessor :timestamp
|
|
76
|
+
# The type of calculation made to determine when the discount ends.
|
|
77
|
+
attr_accessor :type
|
|
78
|
+
|
|
79
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
80
|
+
@duration = duration
|
|
81
|
+
@timestamp = timestamp
|
|
82
|
+
@type = type
|
|
83
|
+
end
|
|
84
|
+
end
|
|
42
85
|
# ID of the coupon to create a new discount for.
|
|
43
86
|
attr_accessor :coupon
|
|
44
87
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
45
88
|
attr_accessor :discount
|
|
89
|
+
# Details to determine how long the discount should be applied for.
|
|
90
|
+
attr_accessor :discount_end
|
|
46
91
|
# ID of the promotion code to create a new discount for.
|
|
47
92
|
attr_accessor :promotion_code
|
|
48
93
|
|
|
49
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
94
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
50
95
|
@coupon = coupon
|
|
51
96
|
@discount = discount
|
|
97
|
+
@discount_end = discount_end
|
|
52
98
|
@promotion_code = promotion_code
|
|
53
99
|
end
|
|
54
100
|
end
|
|
@@ -168,6 +214,7 @@ module Stripe
|
|
|
168
214
|
end
|
|
169
215
|
end
|
|
170
216
|
|
|
217
|
+
class IdBankTransfer < ::Stripe::RequestParams; end
|
|
171
218
|
class Konbini < ::Stripe::RequestParams; end
|
|
172
219
|
|
|
173
220
|
class Payto < ::Stripe::RequestParams
|
|
@@ -190,16 +237,54 @@ module Stripe
|
|
|
190
237
|
end
|
|
191
238
|
end
|
|
192
239
|
|
|
240
|
+
class Pix < ::Stripe::RequestParams
|
|
241
|
+
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
242
|
+
attr_accessor :amount_includes_iof
|
|
243
|
+
|
|
244
|
+
def initialize(amount_includes_iof: nil)
|
|
245
|
+
@amount_includes_iof = amount_includes_iof
|
|
246
|
+
end
|
|
247
|
+
end
|
|
248
|
+
|
|
193
249
|
class SepaDebit < ::Stripe::RequestParams; end
|
|
194
250
|
|
|
251
|
+
class Upi < ::Stripe::RequestParams
|
|
252
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
253
|
+
# Amount to be charged for future payments.
|
|
254
|
+
attr_accessor :amount
|
|
255
|
+
# One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
|
|
256
|
+
attr_accessor :amount_type
|
|
257
|
+
# A description of the mandate or subscription that is meant to be displayed to the customer.
|
|
258
|
+
attr_accessor :description
|
|
259
|
+
# End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
|
260
|
+
attr_accessor :end_date
|
|
261
|
+
|
|
262
|
+
def initialize(amount: nil, amount_type: nil, description: nil, end_date: nil)
|
|
263
|
+
@amount = amount
|
|
264
|
+
@amount_type = amount_type
|
|
265
|
+
@description = description
|
|
266
|
+
@end_date = end_date
|
|
267
|
+
end
|
|
268
|
+
end
|
|
269
|
+
# Configuration options for setting up an eMandate
|
|
270
|
+
attr_accessor :mandate_options
|
|
271
|
+
|
|
272
|
+
def initialize(mandate_options: nil)
|
|
273
|
+
@mandate_options = mandate_options
|
|
274
|
+
end
|
|
275
|
+
end
|
|
276
|
+
|
|
195
277
|
class UsBankAccount < ::Stripe::RequestParams
|
|
196
278
|
class FinancialConnections < ::Stripe::RequestParams
|
|
197
279
|
class Filters < ::Stripe::RequestParams
|
|
198
280
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
199
281
|
attr_accessor :account_subcategories
|
|
282
|
+
# ID of the institution to use to filter for selectable accounts.
|
|
283
|
+
attr_accessor :institution
|
|
200
284
|
|
|
201
|
-
def initialize(account_subcategories: nil)
|
|
285
|
+
def initialize(account_subcategories: nil, institution: nil)
|
|
202
286
|
@account_subcategories = account_subcategories
|
|
287
|
+
@institution = institution
|
|
203
288
|
end
|
|
204
289
|
end
|
|
205
290
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
|
@@ -233,12 +318,18 @@ module Stripe
|
|
|
233
318
|
attr_accessor :card
|
|
234
319
|
# If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
|
|
235
320
|
attr_accessor :customer_balance
|
|
321
|
+
# If paying by `id_bank_transfer`, this sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice’s PaymentIntent.
|
|
322
|
+
attr_accessor :id_bank_transfer
|
|
236
323
|
# If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
|
|
237
324
|
attr_accessor :konbini
|
|
238
325
|
# If paying by `payto`, this sub-hash contains details about the PayTo payment method options to pass to the invoice’s PaymentIntent.
|
|
239
326
|
attr_accessor :payto
|
|
327
|
+
# If paying by `pix`, this sub-hash contains details about the Pix payment method options to pass to the invoice’s PaymentIntent.
|
|
328
|
+
attr_accessor :pix
|
|
240
329
|
# If paying by `sepa_debit`, this sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice’s PaymentIntent.
|
|
241
330
|
attr_accessor :sepa_debit
|
|
331
|
+
# If paying by `upi`, this sub-hash contains details about the UPI payment method options to pass to the invoice’s PaymentIntent.
|
|
332
|
+
attr_accessor :upi
|
|
242
333
|
# If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent.
|
|
243
334
|
attr_accessor :us_bank_account
|
|
244
335
|
|
|
@@ -247,18 +338,24 @@ module Stripe
|
|
|
247
338
|
bancontact: nil,
|
|
248
339
|
card: nil,
|
|
249
340
|
customer_balance: nil,
|
|
341
|
+
id_bank_transfer: nil,
|
|
250
342
|
konbini: nil,
|
|
251
343
|
payto: nil,
|
|
344
|
+
pix: nil,
|
|
252
345
|
sepa_debit: nil,
|
|
346
|
+
upi: nil,
|
|
253
347
|
us_bank_account: nil
|
|
254
348
|
)
|
|
255
349
|
@acss_debit = acss_debit
|
|
256
350
|
@bancontact = bancontact
|
|
257
351
|
@card = card
|
|
258
352
|
@customer_balance = customer_balance
|
|
353
|
+
@id_bank_transfer = id_bank_transfer
|
|
259
354
|
@konbini = konbini
|
|
260
355
|
@payto = payto
|
|
356
|
+
@pix = pix
|
|
261
357
|
@sepa_debit = sepa_debit
|
|
358
|
+
@upi = upi
|
|
262
359
|
@us_bank_account = us_bank_account
|
|
263
360
|
end
|
|
264
361
|
end
|
|
@@ -468,6 +565,8 @@ module Stripe
|
|
|
468
565
|
end
|
|
469
566
|
# The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
|
|
470
567
|
attr_accessor :account_tax_ids
|
|
568
|
+
# List of expected payments and corresponding due dates. Valid only for invoices where `collection_method=send_invoice`.
|
|
569
|
+
attr_accessor :amounts_due
|
|
471
570
|
# A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://docs.stripe.com/billing/invoices/connect#collecting-fees).
|
|
472
571
|
attr_accessor :application_fee_amount
|
|
473
572
|
# Controls whether Stripe performs [automatic collection](https://docs.stripe.com/invoicing/integration/automatic-advancement-collection) of the invoice.
|
|
@@ -482,6 +581,8 @@ module Stripe
|
|
|
482
581
|
attr_accessor :custom_fields
|
|
483
582
|
# The number of days from which the invoice is created until it is due. Only valid for invoices where `collection_method=send_invoice`. This field can only be updated on `draft` invoices.
|
|
484
583
|
attr_accessor :days_until_due
|
|
584
|
+
# The ids of the margins to apply to the invoice. Can be overridden by line item `margins`.
|
|
585
|
+
attr_accessor :default_margins
|
|
485
586
|
# ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
|
|
486
587
|
attr_accessor :default_payment_method
|
|
487
588
|
# ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source.
|
|
@@ -523,6 +624,7 @@ module Stripe
|
|
|
523
624
|
|
|
524
625
|
def initialize(
|
|
525
626
|
account_tax_ids: nil,
|
|
627
|
+
amounts_due: nil,
|
|
526
628
|
application_fee_amount: nil,
|
|
527
629
|
auto_advance: nil,
|
|
528
630
|
automatic_tax: nil,
|
|
@@ -530,6 +632,7 @@ module Stripe
|
|
|
530
632
|
collection_method: nil,
|
|
531
633
|
custom_fields: nil,
|
|
532
634
|
days_until_due: nil,
|
|
635
|
+
default_margins: nil,
|
|
533
636
|
default_payment_method: nil,
|
|
534
637
|
default_source: nil,
|
|
535
638
|
default_tax_rates: nil,
|
|
@@ -551,6 +654,7 @@ module Stripe
|
|
|
551
654
|
transfer_data: nil
|
|
552
655
|
)
|
|
553
656
|
@account_tax_ids = account_tax_ids
|
|
657
|
+
@amounts_due = amounts_due
|
|
554
658
|
@application_fee_amount = application_fee_amount
|
|
555
659
|
@auto_advance = auto_advance
|
|
556
660
|
@automatic_tax = automatic_tax
|
|
@@ -558,6 +662,7 @@ module Stripe
|
|
|
558
662
|
@collection_method = collection_method
|
|
559
663
|
@custom_fields = custom_fields
|
|
560
664
|
@days_until_due = days_until_due
|
|
665
|
+
@default_margins = default_margins
|
|
561
666
|
@default_payment_method = default_payment_method
|
|
562
667
|
@default_source = default_source
|
|
563
668
|
@default_tax_rates = default_tax_rates
|
|
@@ -21,6 +21,35 @@ module Stripe
|
|
|
21
21
|
@lte = lte
|
|
22
22
|
end
|
|
23
23
|
end
|
|
24
|
+
|
|
25
|
+
class Wallets < ::Stripe::RequestParams
|
|
26
|
+
class ApplePay < ::Stripe::RequestParams
|
|
27
|
+
# Query by Apple Pay primary account identifier.
|
|
28
|
+
attr_accessor :primary_account_identifier
|
|
29
|
+
|
|
30
|
+
def initialize(primary_account_identifier: nil)
|
|
31
|
+
@primary_account_identifier = primary_account_identifier
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
class GooglePay < ::Stripe::RequestParams
|
|
36
|
+
# Query by Google Pay primary account identifier.
|
|
37
|
+
attr_accessor :primary_account_identifier
|
|
38
|
+
|
|
39
|
+
def initialize(primary_account_identifier: nil)
|
|
40
|
+
@primary_account_identifier = primary_account_identifier
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
# Filter cards by Apple Pay wallet details.
|
|
44
|
+
attr_accessor :apple_pay
|
|
45
|
+
# Filter cards by Google Pay wallet details.
|
|
46
|
+
attr_accessor :google_pay
|
|
47
|
+
|
|
48
|
+
def initialize(apple_pay: nil, google_pay: nil)
|
|
49
|
+
@apple_pay = apple_pay
|
|
50
|
+
@google_pay = google_pay
|
|
51
|
+
end
|
|
52
|
+
end
|
|
24
53
|
# Only return cards belonging to the Cardholder with the provided ID.
|
|
25
54
|
attr_accessor :cardholder
|
|
26
55
|
# Only return cards that were issued during the given date interval.
|
|
@@ -45,6 +74,8 @@ module Stripe
|
|
|
45
74
|
attr_accessor :status
|
|
46
75
|
# Only return cards that have the given type. One of `virtual` or `physical`.
|
|
47
76
|
attr_accessor :type
|
|
77
|
+
# Filter cards by wallet settings.
|
|
78
|
+
attr_accessor :wallets
|
|
48
79
|
|
|
49
80
|
def initialize(
|
|
50
81
|
cardholder: nil,
|
|
@@ -58,7 +89,8 @@ module Stripe
|
|
|
58
89
|
personalization_design: nil,
|
|
59
90
|
starting_after: nil,
|
|
60
91
|
status: nil,
|
|
61
|
-
type: nil
|
|
92
|
+
type: nil,
|
|
93
|
+
wallets: nil
|
|
62
94
|
)
|
|
63
95
|
@cardholder = cardholder
|
|
64
96
|
@created = created
|
|
@@ -72,6 +104,7 @@ module Stripe
|
|
|
72
104
|
@starting_after = starting_after
|
|
73
105
|
@status = status
|
|
74
106
|
@type = type
|
|
107
|
+
@wallets = wallets
|
|
75
108
|
end
|
|
76
109
|
end
|
|
77
110
|
end
|