stripe 20.2.0.pre.beta.1 → 21.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_operations/request.rb +2 -0
- data/lib/stripe/api_requestor.rb +1 -4
- data/lib/stripe/api_version.rb +2 -2
- data/lib/stripe/errors.rb +0 -6
- data/lib/stripe/event_types.rb +0 -193
- data/lib/stripe/events/unknown_event_notification.rb +0 -1
- data/lib/stripe/object_types.rb +0 -53
- data/lib/stripe/params/account_create_params.rb +1 -299
- data/lib/stripe/params/account_session_create_params.rb +0 -191
- data/lib/stripe/params/account_update_params.rb +0 -261
- data/lib/stripe/params/balance_settings_update_params.rb +1 -9
- data/lib/stripe/params/charge_capture_params.rb +0 -1646
- data/lib/stripe/params/charge_update_params.rb +0 -1646
- data/lib/stripe/params/checkout/session_create_params.rb +3 -87
- data/lib/stripe/params/checkout/session_update_params.rb +1 -161
- data/lib/stripe/params/confirmation_token_create_params.rb +0 -92
- data/lib/stripe/params/coupon_create_params.rb +1 -17
- data/lib/stripe/params/customer_session_create_params.rb +1 -32
- data/lib/stripe/params/financial_connections/session_create_params.rb +1 -38
- data/lib/stripe/params/invoice_add_lines_params.rb +1 -33
- data/lib/stripe/params/invoice_attach_payment_params.rb +1 -43
- data/lib/stripe/params/invoice_create_params.rb +2 -64
- data/lib/stripe/params/invoice_create_preview_params.rb +9 -772
- data/lib/stripe/params/invoice_item_create_params.rb +1 -33
- data/lib/stripe/params/invoice_item_update_params.rb +1 -33
- data/lib/stripe/params/invoice_line_item_update_params.rb +1 -33
- data/lib/stripe/params/invoice_update_lines_params.rb +1 -33
- data/lib/stripe/params/invoice_update_params.rb +2 -64
- data/lib/stripe/params/issuing/cardholder_create_params.rb +1 -2
- data/lib/stripe/params/issuing/cardholder_update_params.rb +0 -4
- data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
- data/lib/stripe/params/payment_intent_capture_params.rb +1 -1643
- data/lib/stripe/params/payment_intent_confirm_params.rb +109 -3062
- data/lib/stripe/params/payment_intent_create_params.rb +122 -3075
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +0 -37
- data/lib/stripe/params/payment_intent_update_params.rb +76 -3060
- data/lib/stripe/params/payment_method_configuration_create_params.rb +0 -105
- data/lib/stripe/params/payment_method_configuration_update_params.rb +0 -105
- data/lib/stripe/params/payment_method_create_params.rb +0 -88
- data/lib/stripe/params/price_update_params.rb +0 -19
- data/lib/stripe/params/quote_create_params.rb +3 -809
- data/lib/stripe/params/quote_list_params.rb +0 -4
- data/lib/stripe/params/quote_update_params.rb +4 -817
- data/lib/stripe/params/setup_intent_confirm_params.rb +3 -122
- data/lib/stripe/params/setup_intent_create_params.rb +3 -122
- data/lib/stripe/params/setup_intent_update_params.rb +3 -122
- data/lib/stripe/params/subscription_create_params.rb +6 -133
- data/lib/stripe/params/subscription_item_create_params.rb +3 -50
- data/lib/stripe/params/subscription_item_update_params.rb +2 -33
- data/lib/stripe/params/subscription_schedule_create_params.rb +5 -167
- data/lib/stripe/params/subscription_schedule_update_params.rb +5 -167
- data/lib/stripe/params/subscription_update_params.rb +5 -116
- data/lib/stripe/params/tax/registration_create_params.rb +1 -13
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +0 -92
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +1 -25
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +1 -25
- data/lib/stripe/params/transfer_create_params.rb +0 -4
- data/lib/stripe/params/treasury/financial_account_create_params.rb +1 -8
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +1 -4
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +1 -4
- data/lib/stripe/params/treasury/financial_account_update_params.rb +1 -8
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +0 -19
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +0 -24
- data/lib/stripe/params/treasury/received_credit_create_params.rb +1 -25
- data/lib/stripe/params/treasury/received_debit_create_params.rb +1 -25
- data/lib/stripe/params/v2/core/account_create_params.rb +5 -392
- data/lib/stripe/params/v2/core/account_token_create_params.rb +1 -29
- data/lib/stripe/params/v2/core/account_update_params.rb +4 -376
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +0 -21
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -21
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +1 -40
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +1 -22
- data/lib/stripe/params.rb +0 -364
- data/lib/stripe/request_options.rb +18 -0
- data/lib/stripe/resources/account.rb +1 -176
- data/lib/stripe/resources/account_session.rb +0 -81
- data/lib/stripe/resources/balance.rb +0 -83
- data/lib/stripe/resources/balance_settings.rb +0 -4
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -4
- data/lib/stripe/resources/card.rb +1 -18
- data/lib/stripe/resources/charge.rb +1 -227
- data/lib/stripe/resources/checkout/session.rb +3 -91
- data/lib/stripe/resources/confirmation_token.rb +0 -131
- data/lib/stripe/resources/coupon.rb +1 -26
- data/lib/stripe/resources/credit_note_line_item.rb +0 -18
- data/lib/stripe/resources/customer.rb +0 -16
- data/lib/stripe/resources/customer_session.rb +0 -36
- data/lib/stripe/resources/dispute.rb +0 -18
- data/lib/stripe/resources/event.rb +1 -64
- data/lib/stripe/resources/financial_connections/account.rb +1 -45
- data/lib/stripe/resources/financial_connections/authorization.rb +1 -24
- data/lib/stripe/resources/financial_connections/session.rb +0 -92
- data/lib/stripe/resources/invoice.rb +1 -106
- data/lib/stripe/resources/invoice_item.rb +0 -2
- data/lib/stripe/resources/invoice_line_item.rb +0 -40
- data/lib/stripe/resources/issuing/authorization.rb +0 -16
- data/lib/stripe/resources/issuing/card.rb +0 -16
- data/lib/stripe/resources/issuing/cardholder.rb +0 -16
- data/lib/stripe/resources/issuing/dispute.rb +1 -16
- data/lib/stripe/resources/issuing/transaction.rb +0 -18
- data/lib/stripe/resources/line_item.rb +0 -42
- data/lib/stripe/resources/mandate.rb +0 -12
- data/lib/stripe/resources/payment_attempt_record.rb +1 -177
- data/lib/stripe/resources/payment_intent.rb +24 -1602
- data/lib/stripe/resources/payment_method.rb +0 -151
- data/lib/stripe/resources/payment_method_configuration.rb +0 -170
- data/lib/stripe/resources/payment_record.rb +1 -177
- data/lib/stripe/resources/price.rb +0 -20
- data/lib/stripe/resources/quote.rb +2 -569
- data/lib/stripe/resources/radar/value_list_item.rb +1 -15
- data/lib/stripe/resources/refund.rb +0 -18
- data/lib/stripe/resources/reserve/hold.rb +0 -7
- data/lib/stripe/resources/reserve/plan.rb +0 -7
- data/lib/stripe/resources/reserve/release.rb +0 -12
- data/lib/stripe/resources/setup_attempt.rb +0 -35
- data/lib/stripe/resources/setup_intent.rb +1 -38
- data/lib/stripe/resources/source.rb +0 -54
- data/lib/stripe/resources/subscription.rb +0 -73
- data/lib/stripe/resources/subscription_item.rb +1 -22
- data/lib/stripe/resources/subscription_schedule.rb +3 -198
- data/lib/stripe/resources/tax/registration.rb +1 -16
- data/lib/stripe/resources/terminal/reader.rb +0 -8
- data/lib/stripe/resources/token.rb +1 -15
- data/lib/stripe/resources/transfer.rb +0 -2
- data/lib/stripe/resources/treasury/financial_account.rb +0 -2
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
- data/lib/stripe/resources/treasury/outbound_payment.rb +0 -2
- data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -30
- data/lib/stripe/resources/treasury/received_credit.rb +0 -30
- data/lib/stripe/resources/treasury/received_debit.rb +0 -32
- data/lib/stripe/resources/v2/core/account.rb +2 -802
- data/lib/stripe/resources/v2/core/event.rb +1 -1
- data/lib/stripe/resources/v2/core/event_base.rb +36 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +0 -1
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +1 -91
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +1 -26
- data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -4
- data/lib/stripe/resources/v2/money_management/financial_account.rb +1 -50
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -2
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +1 -63
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +1 -31
- data/lib/stripe/resources/v2/money_management/payout_method.rb +1 -50
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -2
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +0 -2
- data/lib/stripe/resources.rb +2 -341
- data/lib/stripe/services/account_service.rb +0 -15
- data/lib/stripe/services/billing_service.rb +1 -2
- data/lib/stripe/services/coupon_service.rb +0 -14
- data/lib/stripe/services/customer_service.rb +0 -15
- data/lib/stripe/services/financial_connections/account_service.rb +1 -3
- data/lib/stripe/services/financial_connections_service.rb +1 -3
- data/lib/stripe/services/invoice_service.rb +0 -11
- data/lib/stripe/services/issuing_service.rb +1 -5
- data/lib/stripe/services/mandate_service.rb +0 -5
- data/lib/stripe/services/payment_intent_service.rb +0 -37
- data/lib/stripe/services/promotion_code_service.rb +0 -29
- data/lib/stripe/services/quote_service.rb +1 -49
- data/lib/stripe/services/radar_service.rb +1 -2
- data/lib/stripe/services/subscription_schedule_service.rb +0 -11
- data/lib/stripe/services/subscription_service.rb +0 -45
- data/lib/stripe/services/tax_service.rb +1 -2
- data/lib/stripe/services/terminal_service.rb +1 -2
- data/lib/stripe/services/test_helpers_service.rb +1 -2
- data/lib/stripe/services/v1_services.rb +1 -11
- data/lib/stripe/services/v2/billing_service.rb +1 -5
- data/lib/stripe/services/v2/core_service.rb +1 -3
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -27
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -15
- data/lib/stripe/services/v2/money_management/test_helpers/financial_address_service.rb +0 -13
- data/lib/stripe/services/v2/money_management_service.rb +1 -5
- data/lib/stripe/services/v2_services.rb +1 -7
- data/lib/stripe/services.rb +0 -181
- data/lib/stripe/stripe_client.rb +1 -4
- data/lib/stripe/stripe_configuration.rb +1 -3
- data/lib/stripe/stripe_event_notification_handler.rb +0 -216
- data/lib/stripe/stripe_object.rb +60 -1
- data/lib/stripe/stripe_service.rb +13 -9
- data/lib/stripe/util.rb +1 -7
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +68 -3
- data/lib/stripe.rb +0 -53
- data/rbi/stripe/resources/v2/core/event_base.rbi +11 -0
- data/rbi/stripe/resources/v2/core/event_notification.rbi +0 -2
- data/rbi/stripe.rbi +33552 -100276
- metadata +6 -332
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_approved_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_created_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_expired_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_failed_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_rejected_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_completed_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_created_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_validating_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +0 -44
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -78
- data/lib/stripe/events/v2_data_query_run_created_event.rb +0 -44
- data/lib/stripe/events/v2_data_query_run_failed_event.rb +0 -44
- data/lib/stripe/events/v2_data_query_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_data_query_run_updated_event.rb +0 -44
- data/lib/stripe/events/v2_data_report_run_created_event.rb +0 -44
- data/lib/stripe/events/v2_data_report_run_failed_event.rb +0 -44
- data/lib/stripe/events/v2_data_report_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_data_report_run_updated_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +0 -44
- data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +0 -75
- data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +0 -44
- data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_under_review_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -44
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +0 -97
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +0 -97
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +0 -97
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +0 -97
- data/lib/stripe/events/v2_signals_account_evaluation_complete_event.rb +0 -44
- data/lib/stripe/events/v2_signals_account_signal_fraudulent_merchant_ready_event.rb +0 -44
- data/lib/stripe/events/v2_signals_account_signal_fraudulent_website_ready_event.rb +0 -44
- data/lib/stripe/params/account_notice_list_params.rb +0 -25
- data/lib/stripe/params/account_notice_retrieve_params.rb +0 -13
- data/lib/stripe/params/account_notice_update_params.rb +0 -36
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +0 -65
- data/lib/stripe/params/capital/financing_offer_list_params.rb +0 -58
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +0 -15
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +0 -15
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +0 -15
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +0 -45
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +0 -15
- data/lib/stripe/params/external_account_create_params.rb +0 -134
- data/lib/stripe/params/external_account_delete_params.rb +0 -6
- data/lib/stripe/params/external_account_list_params.rb +0 -25
- data/lib/stripe/params/external_account_retrieve_params.rb +0 -13
- data/lib/stripe/params/external_account_update_params.rb +0 -91
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +0 -24
- data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +0 -15
- data/lib/stripe/params/financial_connections/institution_list_params.rb +0 -24
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +0 -15
- data/lib/stripe/params/fx_quote_create_params.rb +0 -73
- data/lib/stripe/params/fx_quote_list_params.rb +0 -22
- data/lib/stripe/params/fx_quote_retrieve_params.rb +0 -13
- data/lib/stripe/params/invoice_detach_payment_params.rb +0 -16
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +0 -163
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +0 -50
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +0 -128
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +0 -24
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +0 -86
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +0 -33
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +0 -44
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +0 -15
- data/lib/stripe/params/mandate_list_params.rb +0 -39
- data/lib/stripe/params/margin_create_params.rb +0 -25
- data/lib/stripe/params/margin_list_params.rb +0 -25
- data/lib/stripe/params/margin_retrieve_params.rb +0 -13
- data/lib/stripe/params/margin_update_params.rb +0 -22
- data/lib/stripe/params/order_create_params.rb +0 -2083
- data/lib/stripe/params/order_list_params.rb +0 -25
- data/lib/stripe/params/order_retrieve_params.rb +0 -13
- data/lib/stripe/params/order_submit_params.rb +0 -16
- data/lib/stripe/params/order_update_params.rb +0 -2087
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -297
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
- data/lib/stripe/params/payment_plan_create_params.rb +0 -128
- data/lib/stripe/params/payment_plan_list_params.rb +0 -25
- data/lib/stripe/params/payment_plan_retrieve_params.rb +0 -13
- data/lib/stripe/params/payment_plan_update_params.rb +0 -105
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +0 -67
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +0 -27
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +0 -18
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +0 -24
- data/lib/stripe/params/quote_line_list_params.rb +0 -22
- data/lib/stripe/params/quote_list_lines_params.rb +0 -22
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +0 -22
- data/lib/stripe/params/quote_mark_draft_params.rb +0 -13
- data/lib/stripe/params/quote_mark_stale_params.rb +0 -16
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +0 -22
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +0 -22
- data/lib/stripe/params/quote_reestimate_params.rb +0 -13
- data/lib/stripe/params/radar/billing_evaluation_create_params.rb +0 -231
- data/lib/stripe/params/reserve/hold_list_params.rb +0 -53
- data/lib/stripe/params/reserve/hold_retrieve_params.rb +0 -15
- data/lib/stripe/params/reserve/plan_list_params.rb +0 -37
- data/lib/stripe/params/reserve/plan_retrieve_params.rb +0 -15
- data/lib/stripe/params/reserve/release_list_params.rb +0 -41
- data/lib/stripe/params/reserve/release_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +0 -47
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +0 -15
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +0 -71
- data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +0 -15
- data/lib/stripe/params/subscription_schedule_amend_params.rb +0 -578
- data/lib/stripe/params/tax/form_list_params.rb +0 -51
- data/lib/stripe/params/tax/form_pdf_params.rb +0 -15
- data/lib/stripe/params/tax/form_retrieve_params.rb +0 -15
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +0 -15
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +0 -49
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +0 -17
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +0 -74
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +0 -80
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -253
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +0 -43
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +0 -75
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +0 -257
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +0 -263
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/profile_create_params.rb +0 -37
- data/lib/stripe/params/v2/billing/profile_list_params.rb +0 -40
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/profile_update_params.rb +0 -35
- data/lib/stripe/params/v2/core/approval_request_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/core/approval_request_list_params.rb +0 -47
- data/lib/stripe/params/v2/core/approval_request_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/core/approval_request_update_params.rb +0 -17
- data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/core/batch_job_create_params.rb +0 -53
- data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/data/query_run_create_params.rb +0 -50
- data/lib/stripe/params/v2/data/query_run_retrieve_params.rb +0 -23
- data/lib/stripe/params/v2/data/report_list_params.rb +0 -23
- data/lib/stripe/params/v2/data/report_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/data/report_run_create_params.rb +0 -48
- data/lib/stripe/params/v2/data/report_run_retrieve_params.rb +0 -23
- data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +0 -31
- data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/data/schema_list_params.rb +0 -26
- data/lib/stripe/params/v2/data/schema_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +0 -17
- data/lib/stripe/params/v2/extend/workflow_list_params.rb +0 -21
- data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +0 -23
- data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/iam/activity_log_list_params.rb +0 -23
- data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +0 -30
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +0 -35
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +0 -113
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -112
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +0 -48
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_method_disable_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/test_helpers/financial_address_generate_microdeposits_params.rb +0 -12
- data/lib/stripe/params/v2/network/business_profile_me_params.rb +0 -10
- data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +0 -10
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +0 -17
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +0 -20
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +0 -10
- data/lib/stripe/params/v2/signals/account_activity_create_params.rb +0 -200
- data/lib/stripe/params/v2/signals/account_activity_delete_params.rb +0 -10
- data/lib/stripe/params/v2/signals/account_activity_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/signals/account_evaluation_create_params.rb +0 -192
- data/lib/stripe/params/v2/signals/account_evaluation_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/signals/account_signal_list_params.rb +0 -35
- data/lib/stripe/params/v2/signals/account_signal_retrieve_params.rb +0 -10
- data/lib/stripe/resources/account_notice.rb +0 -94
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +0 -33
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -38
- data/lib/stripe/resources/capital/financing_offer.rb +0 -144
- data/lib/stripe/resources/capital/financing_summary.rb +0 -82
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -99
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -35
- data/lib/stripe/resources/financial_connections/institution.rb +0 -127
- data/lib/stripe/resources/fx_quote.rb +0 -149
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -263
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -71
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -51
- data/lib/stripe/resources/issuing/settlement.rb +0 -61
- data/lib/stripe/resources/margin.rb +0 -64
- data/lib/stripe/resources/order.rb +0 -927
- data/lib/stripe/resources/payment_plan.rb +0 -213
- data/lib/stripe/resources/privacy/redaction_job.rb +0 -189
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -49
- data/lib/stripe/resources/quote_line.rb +0 -525
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -1241
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -968
- data/lib/stripe/resources/radar/billing_evaluation.rb +0 -281
- data/lib/stripe/resources/shared_payment/granted_token.rb +0 -681
- data/lib/stripe/resources/shared_payment/issued_token.rb +0 -310
- data/lib/stripe/resources/tax/form.rb +0 -264
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -47
- data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -102
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -91
- data/lib/stripe/resources/v2/billing/cadence.rb +0 -710
- data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -327
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -316
- data/lib/stripe/resources/v2/billing/profile.rb +0 -47
- data/lib/stripe/resources/v2/core/approval_request.rb +0 -395
- data/lib/stripe/resources/v2/core/batch_job.rb +0 -536
- data/lib/stripe/resources/v2/data/query_run.rb +0 -255
- data/lib/stripe/resources/v2/data/report.rb +0 -104
- data/lib/stripe/resources/v2/data/report_run.rb +0 -246
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +0 -142
- data/lib/stripe/resources/v2/data/schema.rb +0 -121
- data/lib/stripe/resources/v2/extend/workflow.rb +0 -80
- data/lib/stripe/resources/v2/extend/workflow_run.rb +0 -158
- data/lib/stripe/resources/v2/iam/activity_log.rb +0 -368
- data/lib/stripe/resources/v2/money_management/financial_address_generated_microdeposits.rb +0 -33
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -255
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -260
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -137
- data/lib/stripe/resources/v2/network/business_profile.rb +0 -84
- data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +0 -93
- data/lib/stripe/resources/v2/signals/account_activity.rb +0 -252
- data/lib/stripe/resources/v2/signals/account_evaluation.rb +0 -249
- data/lib/stripe/resources/v2/signals/account_signal.rb +0 -184
- data/lib/stripe/services/account_notice_service.rb +0 -39
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +0 -21
- data/lib/stripe/services/billing/analytics_service.rb +0 -15
- data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
- data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
- data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
- data/lib/stripe/services/capital_service.rb +0 -15
- data/lib/stripe/services/external_account_service.rb +0 -68
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
- data/lib/stripe/services/financial_connections/authorization_service.rb +0 -19
- data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
- data/lib/stripe/services/fx_quote_service.rb +0 -27
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
- data/lib/stripe/services/margin_service.rb +0 -50
- data/lib/stripe/services/order_service.rb +0 -53
- data/lib/stripe/services/payment_plan_service.rb +0 -50
- data/lib/stripe/services/privacy/redaction_job_service.rb +0 -104
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -19
- data/lib/stripe/services/privacy_service.rb +0 -13
- data/lib/stripe/services/quote_line_service.rb +0 -17
- data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
- data/lib/stripe/services/radar/billing_evaluation_service.rb +0 -19
- data/lib/stripe/services/reserve/hold_service.rb +0 -30
- data/lib/stripe/services/reserve/plan_service.rb +0 -30
- data/lib/stripe/services/reserve/release_service.rb +0 -30
- data/lib/stripe/services/reserve_service.rb +0 -15
- data/lib/stripe/services/shared_payment/granted_token_service.rb +0 -19
- data/lib/stripe/services/shared_payment/issued_token_service.rb +0 -41
- data/lib/stripe/services/shared_payment_service.rb +0 -14
- data/lib/stripe/services/tax/form_service.rb +0 -37
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +0 -32
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +0 -15
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -61
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/cadence_service.rb +0 -65
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -69
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/profile_service.rb +0 -54
- data/lib/stripe/services/v2/core/approval_request_service.rb +0 -58
- data/lib/stripe/services/v2/core/batch_job_service.rb +0 -43
- data/lib/stripe/services/v2/data/query_run_service.rb +0 -34
- data/lib/stripe/services/v2/data/report_run_service.rb +0 -36
- data/lib/stripe/services/v2/data/report_service.rb +0 -34
- data/lib/stripe/services/v2/data/reporting/query_run_service.rb +0 -35
- data/lib/stripe/services/v2/data/reporting_service.rb +0 -17
- data/lib/stripe/services/v2/data/schema_service.rb +0 -32
- data/lib/stripe/services/v2/data_service.rb +0 -19
- data/lib/stripe/services/v2/extend/workflow_run_service.rb +0 -32
- data/lib/stripe/services/v2/extend/workflow_service.rb +0 -45
- data/lib/stripe/services/v2/extend_service.rb +0 -16
- data/lib/stripe/services/v2/iam/activity_log_service.rb +0 -32
- data/lib/stripe/services/v2/iam_service.rb +0 -15
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -35
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -61
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -32
- data/lib/stripe/services/v2/network/business_profile_service.rb +0 -32
- data/lib/stripe/services/v2/network_service.rb +0 -15
- data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +0 -65
- data/lib/stripe/services/v2/orchestrated_commerce_service.rb +0 -15
- data/lib/stripe/services/v2/signals/account_activity_service.rb +0 -43
- data/lib/stripe/services/v2/signals/account_evaluation_service.rb +0 -32
- data/lib/stripe/services/v2/signals/account_signal_service.rb +0 -32
- data/lib/stripe/services/v2/signals_service.rb +0 -17
|
@@ -1,681 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
module Stripe
|
|
5
|
-
module SharedPayment
|
|
6
|
-
# SharedPaymentGrantedToken is the view-only resource of a SharedPaymentIssuedToken, which is a limited-use reference to a PaymentMethod.
|
|
7
|
-
# When another Stripe merchant shares a SharedPaymentIssuedToken with you, you can view attributes of the shared token using the SharedPaymentGrantedToken API, and use it with a PaymentIntent.
|
|
8
|
-
class GrantedToken < APIResource
|
|
9
|
-
OBJECT_NAME = "shared_payment.granted_token"
|
|
10
|
-
def self.object_name
|
|
11
|
-
"shared_payment.granted_token"
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
class AgentDetails < ::Stripe::StripeObject
|
|
15
|
-
# The Stripe Profile ID of the agent that issued this SharedPaymentGrantedToken.
|
|
16
|
-
attr_reader :network_business_profile
|
|
17
|
-
|
|
18
|
-
def self.inner_class_types
|
|
19
|
-
@inner_class_types = {}
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
def self.field_remappings
|
|
23
|
-
@field_remappings = {}
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
class PaymentMethodDetails < ::Stripe::StripeObject
|
|
28
|
-
class Affirm < ::Stripe::StripeObject
|
|
29
|
-
def self.inner_class_types
|
|
30
|
-
@inner_class_types = {}
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
def self.field_remappings
|
|
34
|
-
@field_remappings = {}
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
class BillingDetails < ::Stripe::StripeObject
|
|
39
|
-
class Address < ::Stripe::StripeObject
|
|
40
|
-
# City, district, suburb, town, or village.
|
|
41
|
-
attr_reader :city
|
|
42
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
43
|
-
attr_reader :country
|
|
44
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
45
|
-
attr_reader :line1
|
|
46
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
47
|
-
attr_reader :line2
|
|
48
|
-
# ZIP or postal code.
|
|
49
|
-
attr_reader :postal_code
|
|
50
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
51
|
-
attr_reader :state
|
|
52
|
-
|
|
53
|
-
def self.inner_class_types
|
|
54
|
-
@inner_class_types = {}
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
def self.field_remappings
|
|
58
|
-
@field_remappings = {}
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
# Billing address.
|
|
62
|
-
attr_reader :address
|
|
63
|
-
# Email address.
|
|
64
|
-
attr_reader :email
|
|
65
|
-
# Full name.
|
|
66
|
-
attr_reader :name
|
|
67
|
-
# Billing phone number (including extension).
|
|
68
|
-
attr_reader :phone
|
|
69
|
-
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
|
70
|
-
attr_reader :tax_id
|
|
71
|
-
|
|
72
|
-
def self.inner_class_types
|
|
73
|
-
@inner_class_types = { address: Address }
|
|
74
|
-
end
|
|
75
|
-
|
|
76
|
-
def self.field_remappings
|
|
77
|
-
@field_remappings = {}
|
|
78
|
-
end
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
class Card < ::Stripe::StripeObject
|
|
82
|
-
class Checks < ::Stripe::StripeObject
|
|
83
|
-
# If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
84
|
-
attr_reader :address_line1_check
|
|
85
|
-
# If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
86
|
-
attr_reader :address_postal_code_check
|
|
87
|
-
# If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
88
|
-
attr_reader :cvc_check
|
|
89
|
-
|
|
90
|
-
def self.inner_class_types
|
|
91
|
-
@inner_class_types = {}
|
|
92
|
-
end
|
|
93
|
-
|
|
94
|
-
def self.field_remappings
|
|
95
|
-
@field_remappings = {}
|
|
96
|
-
end
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
class Networks < ::Stripe::StripeObject
|
|
100
|
-
# All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
|
|
101
|
-
attr_reader :available
|
|
102
|
-
# The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card.
|
|
103
|
-
attr_reader :preferred
|
|
104
|
-
|
|
105
|
-
def self.inner_class_types
|
|
106
|
-
@inner_class_types = {}
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
def self.field_remappings
|
|
110
|
-
@field_remappings = {}
|
|
111
|
-
end
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
class Wallet < ::Stripe::StripeObject
|
|
115
|
-
class AmexExpressCheckout < ::Stripe::StripeObject
|
|
116
|
-
def self.inner_class_types
|
|
117
|
-
@inner_class_types = {}
|
|
118
|
-
end
|
|
119
|
-
|
|
120
|
-
def self.field_remappings
|
|
121
|
-
@field_remappings = {}
|
|
122
|
-
end
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
class ApplePay < ::Stripe::StripeObject
|
|
126
|
-
def self.inner_class_types
|
|
127
|
-
@inner_class_types = {}
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
def self.field_remappings
|
|
131
|
-
@field_remappings = {}
|
|
132
|
-
end
|
|
133
|
-
end
|
|
134
|
-
|
|
135
|
-
class GooglePay < ::Stripe::StripeObject
|
|
136
|
-
def self.inner_class_types
|
|
137
|
-
@inner_class_types = {}
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
def self.field_remappings
|
|
141
|
-
@field_remappings = {}
|
|
142
|
-
end
|
|
143
|
-
end
|
|
144
|
-
|
|
145
|
-
class Link < ::Stripe::StripeObject
|
|
146
|
-
def self.inner_class_types
|
|
147
|
-
@inner_class_types = {}
|
|
148
|
-
end
|
|
149
|
-
|
|
150
|
-
def self.field_remappings
|
|
151
|
-
@field_remappings = {}
|
|
152
|
-
end
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
class Masterpass < ::Stripe::StripeObject
|
|
156
|
-
class BillingAddress < ::Stripe::StripeObject
|
|
157
|
-
# City, district, suburb, town, or village.
|
|
158
|
-
attr_reader :city
|
|
159
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
160
|
-
attr_reader :country
|
|
161
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
162
|
-
attr_reader :line1
|
|
163
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
164
|
-
attr_reader :line2
|
|
165
|
-
# ZIP or postal code.
|
|
166
|
-
attr_reader :postal_code
|
|
167
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
168
|
-
attr_reader :state
|
|
169
|
-
|
|
170
|
-
def self.inner_class_types
|
|
171
|
-
@inner_class_types = {}
|
|
172
|
-
end
|
|
173
|
-
|
|
174
|
-
def self.field_remappings
|
|
175
|
-
@field_remappings = {}
|
|
176
|
-
end
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
class ShippingAddress < ::Stripe::StripeObject
|
|
180
|
-
# City, district, suburb, town, or village.
|
|
181
|
-
attr_reader :city
|
|
182
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
183
|
-
attr_reader :country
|
|
184
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
185
|
-
attr_reader :line1
|
|
186
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
187
|
-
attr_reader :line2
|
|
188
|
-
# ZIP or postal code.
|
|
189
|
-
attr_reader :postal_code
|
|
190
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
191
|
-
attr_reader :state
|
|
192
|
-
|
|
193
|
-
def self.inner_class_types
|
|
194
|
-
@inner_class_types = {}
|
|
195
|
-
end
|
|
196
|
-
|
|
197
|
-
def self.field_remappings
|
|
198
|
-
@field_remappings = {}
|
|
199
|
-
end
|
|
200
|
-
end
|
|
201
|
-
# Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
202
|
-
attr_reader :billing_address
|
|
203
|
-
# Owner's verified email. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
204
|
-
attr_reader :email
|
|
205
|
-
# Owner's verified full name. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
206
|
-
attr_reader :name
|
|
207
|
-
# Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
208
|
-
attr_reader :shipping_address
|
|
209
|
-
|
|
210
|
-
def self.inner_class_types
|
|
211
|
-
@inner_class_types = {
|
|
212
|
-
billing_address: BillingAddress,
|
|
213
|
-
shipping_address: ShippingAddress,
|
|
214
|
-
}
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
def self.field_remappings
|
|
218
|
-
@field_remappings = {}
|
|
219
|
-
end
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
class SamsungPay < ::Stripe::StripeObject
|
|
223
|
-
def self.inner_class_types
|
|
224
|
-
@inner_class_types = {}
|
|
225
|
-
end
|
|
226
|
-
|
|
227
|
-
def self.field_remappings
|
|
228
|
-
@field_remappings = {}
|
|
229
|
-
end
|
|
230
|
-
end
|
|
231
|
-
|
|
232
|
-
class VisaCheckout < ::Stripe::StripeObject
|
|
233
|
-
class BillingAddress < ::Stripe::StripeObject
|
|
234
|
-
# City, district, suburb, town, or village.
|
|
235
|
-
attr_reader :city
|
|
236
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
237
|
-
attr_reader :country
|
|
238
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
239
|
-
attr_reader :line1
|
|
240
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
241
|
-
attr_reader :line2
|
|
242
|
-
# ZIP or postal code.
|
|
243
|
-
attr_reader :postal_code
|
|
244
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
245
|
-
attr_reader :state
|
|
246
|
-
|
|
247
|
-
def self.inner_class_types
|
|
248
|
-
@inner_class_types = {}
|
|
249
|
-
end
|
|
250
|
-
|
|
251
|
-
def self.field_remappings
|
|
252
|
-
@field_remappings = {}
|
|
253
|
-
end
|
|
254
|
-
end
|
|
255
|
-
|
|
256
|
-
class ShippingAddress < ::Stripe::StripeObject
|
|
257
|
-
# City, district, suburb, town, or village.
|
|
258
|
-
attr_reader :city
|
|
259
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
260
|
-
attr_reader :country
|
|
261
|
-
# Address line 1, such as the street, PO Box, or company name.
|
|
262
|
-
attr_reader :line1
|
|
263
|
-
# Address line 2, such as the apartment, suite, unit, or building.
|
|
264
|
-
attr_reader :line2
|
|
265
|
-
# ZIP or postal code.
|
|
266
|
-
attr_reader :postal_code
|
|
267
|
-
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
268
|
-
attr_reader :state
|
|
269
|
-
|
|
270
|
-
def self.inner_class_types
|
|
271
|
-
@inner_class_types = {}
|
|
272
|
-
end
|
|
273
|
-
|
|
274
|
-
def self.field_remappings
|
|
275
|
-
@field_remappings = {}
|
|
276
|
-
end
|
|
277
|
-
end
|
|
278
|
-
# Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
279
|
-
attr_reader :billing_address
|
|
280
|
-
# Owner's verified email. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
281
|
-
attr_reader :email
|
|
282
|
-
# Owner's verified full name. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
283
|
-
attr_reader :name
|
|
284
|
-
# Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
285
|
-
attr_reader :shipping_address
|
|
286
|
-
|
|
287
|
-
def self.inner_class_types
|
|
288
|
-
@inner_class_types = {
|
|
289
|
-
billing_address: BillingAddress,
|
|
290
|
-
shipping_address: ShippingAddress,
|
|
291
|
-
}
|
|
292
|
-
end
|
|
293
|
-
|
|
294
|
-
def self.field_remappings
|
|
295
|
-
@field_remappings = {}
|
|
296
|
-
end
|
|
297
|
-
end
|
|
298
|
-
# Attribute for field amex_express_checkout
|
|
299
|
-
attr_reader :amex_express_checkout
|
|
300
|
-
# Attribute for field apple_pay
|
|
301
|
-
attr_reader :apple_pay
|
|
302
|
-
# (For tokenized numbers only.) The last four digits of the device account number.
|
|
303
|
-
attr_reader :dynamic_last4
|
|
304
|
-
# Attribute for field google_pay
|
|
305
|
-
attr_reader :google_pay
|
|
306
|
-
# Attribute for field link
|
|
307
|
-
attr_reader :link
|
|
308
|
-
# Attribute for field masterpass
|
|
309
|
-
attr_reader :masterpass
|
|
310
|
-
# Attribute for field samsung_pay
|
|
311
|
-
attr_reader :samsung_pay
|
|
312
|
-
# The type of the card wallet, one of `amex_express_checkout`, `apple_pay`, `google_pay`, `masterpass`, `samsung_pay`, `visa_checkout`, or `link`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type.
|
|
313
|
-
attr_reader :type
|
|
314
|
-
# Attribute for field visa_checkout
|
|
315
|
-
attr_reader :visa_checkout
|
|
316
|
-
|
|
317
|
-
def self.inner_class_types
|
|
318
|
-
@inner_class_types = {
|
|
319
|
-
amex_express_checkout: AmexExpressCheckout,
|
|
320
|
-
apple_pay: ApplePay,
|
|
321
|
-
google_pay: GooglePay,
|
|
322
|
-
link: Link,
|
|
323
|
-
masterpass: Masterpass,
|
|
324
|
-
samsung_pay: SamsungPay,
|
|
325
|
-
visa_checkout: VisaCheckout,
|
|
326
|
-
}
|
|
327
|
-
end
|
|
328
|
-
|
|
329
|
-
def self.field_remappings
|
|
330
|
-
@field_remappings = {}
|
|
331
|
-
end
|
|
332
|
-
end
|
|
333
|
-
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
|
334
|
-
attr_reader :brand
|
|
335
|
-
# Checks on Card address and CVC if provided.
|
|
336
|
-
attr_reader :checks
|
|
337
|
-
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
|
338
|
-
attr_reader :country
|
|
339
|
-
# A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
|
|
340
|
-
attr_reader :description
|
|
341
|
-
# The brand to use when displaying the card, this accounts for customer's brand choice on dual-branded cards. Can be `american_express`, `cartes_bancaires`, `diners_club`, `discover`, `eftpos_australia`, `interac`, `jcb`, `mastercard`, `union_pay`, `visa`, or `other` and may contain more values in the future.
|
|
342
|
-
attr_reader :display_brand
|
|
343
|
-
# Two-digit number representing the card's expiration month.
|
|
344
|
-
attr_reader :exp_month
|
|
345
|
-
# Four-digit number representing the card's expiration year.
|
|
346
|
-
attr_reader :exp_year
|
|
347
|
-
# Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
|
|
348
|
-
#
|
|
349
|
-
# *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
|
|
350
|
-
attr_reader :fingerprint
|
|
351
|
-
# Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
|
|
352
|
-
attr_reader :funding
|
|
353
|
-
# Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
|
|
354
|
-
attr_reader :iin
|
|
355
|
-
# The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
|
|
356
|
-
attr_reader :issuer
|
|
357
|
-
# The last four digits of the card.
|
|
358
|
-
attr_reader :last4
|
|
359
|
-
# Contains information about card networks that can be used to process the payment.
|
|
360
|
-
attr_reader :networks
|
|
361
|
-
# If this Card is part of a card wallet, this contains the details of the card wallet.
|
|
362
|
-
attr_reader :wallet
|
|
363
|
-
|
|
364
|
-
def self.inner_class_types
|
|
365
|
-
@inner_class_types = { checks: Checks, networks: Networks, wallet: Wallet }
|
|
366
|
-
end
|
|
367
|
-
|
|
368
|
-
def self.field_remappings
|
|
369
|
-
@field_remappings = {}
|
|
370
|
-
end
|
|
371
|
-
end
|
|
372
|
-
|
|
373
|
-
class Klarna < ::Stripe::StripeObject
|
|
374
|
-
class Dob < ::Stripe::StripeObject
|
|
375
|
-
# The day of birth, between 1 and 31.
|
|
376
|
-
attr_reader :day
|
|
377
|
-
# The month of birth, between 1 and 12.
|
|
378
|
-
attr_reader :month
|
|
379
|
-
# The four-digit year of birth.
|
|
380
|
-
attr_reader :year
|
|
381
|
-
|
|
382
|
-
def self.inner_class_types
|
|
383
|
-
@inner_class_types = {}
|
|
384
|
-
end
|
|
385
|
-
|
|
386
|
-
def self.field_remappings
|
|
387
|
-
@field_remappings = {}
|
|
388
|
-
end
|
|
389
|
-
end
|
|
390
|
-
# The customer's date of birth, if provided.
|
|
391
|
-
attr_reader :dob
|
|
392
|
-
|
|
393
|
-
def self.inner_class_types
|
|
394
|
-
@inner_class_types = { dob: Dob }
|
|
395
|
-
end
|
|
396
|
-
|
|
397
|
-
def self.field_remappings
|
|
398
|
-
@field_remappings = {}
|
|
399
|
-
end
|
|
400
|
-
end
|
|
401
|
-
|
|
402
|
-
class Link < ::Stripe::StripeObject
|
|
403
|
-
# Account owner's email address.
|
|
404
|
-
attr_reader :email
|
|
405
|
-
# [Deprecated] This is a legacy parameter that no longer has any function.
|
|
406
|
-
attr_reader :persistent_token
|
|
407
|
-
|
|
408
|
-
def self.inner_class_types
|
|
409
|
-
@inner_class_types = {}
|
|
410
|
-
end
|
|
411
|
-
|
|
412
|
-
def self.field_remappings
|
|
413
|
-
@field_remappings = {}
|
|
414
|
-
end
|
|
415
|
-
end
|
|
416
|
-
# Attribute for field affirm
|
|
417
|
-
attr_reader :affirm
|
|
418
|
-
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
|
|
419
|
-
attr_reader :billing_details
|
|
420
|
-
# Attribute for field card
|
|
421
|
-
attr_reader :card
|
|
422
|
-
# Attribute for field klarna
|
|
423
|
-
attr_reader :klarna
|
|
424
|
-
# Attribute for field link
|
|
425
|
-
attr_reader :link
|
|
426
|
-
# The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
|
|
427
|
-
attr_reader :type
|
|
428
|
-
|
|
429
|
-
def self.inner_class_types
|
|
430
|
-
@inner_class_types = {
|
|
431
|
-
affirm: Affirm,
|
|
432
|
-
billing_details: BillingDetails,
|
|
433
|
-
card: Card,
|
|
434
|
-
klarna: Klarna,
|
|
435
|
-
link: Link,
|
|
436
|
-
}
|
|
437
|
-
end
|
|
438
|
-
|
|
439
|
-
def self.field_remappings
|
|
440
|
-
@field_remappings = {}
|
|
441
|
-
end
|
|
442
|
-
end
|
|
443
|
-
|
|
444
|
-
class RiskDetails < ::Stripe::StripeObject
|
|
445
|
-
class Insights < ::Stripe::StripeObject
|
|
446
|
-
class Bot < ::Stripe::StripeObject
|
|
447
|
-
# Recommended action for this insight.
|
|
448
|
-
attr_reader :recommended_action
|
|
449
|
-
# Risk score for this insight.
|
|
450
|
-
attr_reader :score
|
|
451
|
-
|
|
452
|
-
def self.inner_class_types
|
|
453
|
-
@inner_class_types = {}
|
|
454
|
-
end
|
|
455
|
-
|
|
456
|
-
def self.field_remappings
|
|
457
|
-
@field_remappings = {}
|
|
458
|
-
end
|
|
459
|
-
end
|
|
460
|
-
|
|
461
|
-
class CardIssuerDecline < ::Stripe::StripeObject
|
|
462
|
-
# Recommended action for this insight.
|
|
463
|
-
attr_reader :recommended_action
|
|
464
|
-
# Risk score for this insight.
|
|
465
|
-
attr_reader :score
|
|
466
|
-
|
|
467
|
-
def self.inner_class_types
|
|
468
|
-
@inner_class_types = {}
|
|
469
|
-
end
|
|
470
|
-
|
|
471
|
-
def self.field_remappings
|
|
472
|
-
@field_remappings = {}
|
|
473
|
-
end
|
|
474
|
-
end
|
|
475
|
-
|
|
476
|
-
class CardTesting < ::Stripe::StripeObject
|
|
477
|
-
# Recommended action for this insight.
|
|
478
|
-
attr_reader :recommended_action
|
|
479
|
-
# Risk score for this insight.
|
|
480
|
-
attr_reader :score
|
|
481
|
-
|
|
482
|
-
def self.inner_class_types
|
|
483
|
-
@inner_class_types = {}
|
|
484
|
-
end
|
|
485
|
-
|
|
486
|
-
def self.field_remappings
|
|
487
|
-
@field_remappings = {}
|
|
488
|
-
end
|
|
489
|
-
end
|
|
490
|
-
|
|
491
|
-
class FraudulentDispute < ::Stripe::StripeObject
|
|
492
|
-
# Recommended action for this insight.
|
|
493
|
-
attr_reader :recommended_action
|
|
494
|
-
# Risk score for this insight.
|
|
495
|
-
attr_reader :score
|
|
496
|
-
|
|
497
|
-
def self.inner_class_types
|
|
498
|
-
@inner_class_types = {}
|
|
499
|
-
end
|
|
500
|
-
|
|
501
|
-
def self.field_remappings
|
|
502
|
-
@field_remappings = {}
|
|
503
|
-
end
|
|
504
|
-
end
|
|
505
|
-
|
|
506
|
-
class StolenCard < ::Stripe::StripeObject
|
|
507
|
-
# Recommended action for this insight.
|
|
508
|
-
attr_reader :recommended_action
|
|
509
|
-
# Risk score for this insight.
|
|
510
|
-
attr_reader :score
|
|
511
|
-
|
|
512
|
-
def self.inner_class_types
|
|
513
|
-
@inner_class_types = {}
|
|
514
|
-
end
|
|
515
|
-
|
|
516
|
-
def self.field_remappings
|
|
517
|
-
@field_remappings = {}
|
|
518
|
-
end
|
|
519
|
-
end
|
|
520
|
-
# Bot risk insight.
|
|
521
|
-
attr_reader :bot
|
|
522
|
-
# Card issuer decline risk insight.
|
|
523
|
-
attr_reader :card_issuer_decline
|
|
524
|
-
# Card testing risk insight.
|
|
525
|
-
attr_reader :card_testing
|
|
526
|
-
# Fraudulent dispute risk insight.
|
|
527
|
-
attr_reader :fraudulent_dispute
|
|
528
|
-
# Stolen card risk insight.
|
|
529
|
-
attr_reader :stolen_card
|
|
530
|
-
|
|
531
|
-
def self.inner_class_types
|
|
532
|
-
@inner_class_types = {
|
|
533
|
-
bot: Bot,
|
|
534
|
-
card_issuer_decline: CardIssuerDecline,
|
|
535
|
-
card_testing: CardTesting,
|
|
536
|
-
fraudulent_dispute: FraudulentDispute,
|
|
537
|
-
stolen_card: StolenCard,
|
|
538
|
-
}
|
|
539
|
-
end
|
|
540
|
-
|
|
541
|
-
def self.field_remappings
|
|
542
|
-
@field_remappings = {}
|
|
543
|
-
end
|
|
544
|
-
end
|
|
545
|
-
# Risk insights for this token, including scores and recommended actions for each risk type.
|
|
546
|
-
attr_reader :insights
|
|
547
|
-
|
|
548
|
-
def self.inner_class_types
|
|
549
|
-
@inner_class_types = { insights: Insights }
|
|
550
|
-
end
|
|
551
|
-
|
|
552
|
-
def self.field_remappings
|
|
553
|
-
@field_remappings = {}
|
|
554
|
-
end
|
|
555
|
-
end
|
|
556
|
-
|
|
557
|
-
class UsageDetails < ::Stripe::StripeObject
|
|
558
|
-
class AmountCaptured < ::Stripe::StripeObject
|
|
559
|
-
# 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).
|
|
560
|
-
attr_reader :currency
|
|
561
|
-
# Integer value of the amount in the smallest currency unit.
|
|
562
|
-
attr_reader :value
|
|
563
|
-
|
|
564
|
-
def self.inner_class_types
|
|
565
|
-
@inner_class_types = {}
|
|
566
|
-
end
|
|
567
|
-
|
|
568
|
-
def self.field_remappings
|
|
569
|
-
@field_remappings = {}
|
|
570
|
-
end
|
|
571
|
-
end
|
|
572
|
-
# The total amount captured using this SharedPaymentToken.
|
|
573
|
-
attr_reader :amount_captured
|
|
574
|
-
|
|
575
|
-
def self.inner_class_types
|
|
576
|
-
@inner_class_types = { amount_captured: AmountCaptured }
|
|
577
|
-
end
|
|
578
|
-
|
|
579
|
-
def self.field_remappings
|
|
580
|
-
@field_remappings = {}
|
|
581
|
-
end
|
|
582
|
-
end
|
|
583
|
-
|
|
584
|
-
class UsageLimits < ::Stripe::StripeObject
|
|
585
|
-
# 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).
|
|
586
|
-
attr_reader :currency
|
|
587
|
-
# Time at which this SharedPaymentToken expires and can no longer be used to confirm a PaymentIntent.
|
|
588
|
-
attr_reader :expires_at
|
|
589
|
-
# Max amount that can be captured using this SharedPaymentToken.
|
|
590
|
-
attr_reader :max_amount
|
|
591
|
-
|
|
592
|
-
def self.inner_class_types
|
|
593
|
-
@inner_class_types = {}
|
|
594
|
-
end
|
|
595
|
-
|
|
596
|
-
def self.field_remappings
|
|
597
|
-
@field_remappings = {}
|
|
598
|
-
end
|
|
599
|
-
end
|
|
600
|
-
# Details about the agent that issued this SharedPaymentGrantedToken.
|
|
601
|
-
attr_reader :agent_details
|
|
602
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
603
|
-
attr_reader :created
|
|
604
|
-
# Time at which this SharedPaymentGrantedToken expires and can no longer be used to confirm a PaymentIntent.
|
|
605
|
-
attr_reader :deactivated_at
|
|
606
|
-
# The reason why the SharedPaymentGrantedToken has been deactivated.
|
|
607
|
-
attr_reader :deactivated_reason
|
|
608
|
-
# Unique identifier for the object.
|
|
609
|
-
attr_reader :id
|
|
610
|
-
# If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
|
611
|
-
attr_reader :livemode
|
|
612
|
-
# String representing the object's type. Objects of the same type share the same value.
|
|
613
|
-
attr_reader :object
|
|
614
|
-
# Details of the PaymentMethod that was shared via this token.
|
|
615
|
-
attr_reader :payment_method_details
|
|
616
|
-
# Risk details of the SharedPaymentGrantedToken.
|
|
617
|
-
attr_reader :risk_details
|
|
618
|
-
# Metadata about the SharedPaymentGrantedToken.
|
|
619
|
-
attr_reader :shared_metadata
|
|
620
|
-
# Some details about how the SharedPaymentGrantedToken has been used already.
|
|
621
|
-
attr_reader :usage_details
|
|
622
|
-
# Limits on how this SharedPaymentGrantedToken can be used.
|
|
623
|
-
attr_reader :usage_limits
|
|
624
|
-
|
|
625
|
-
def test_helpers
|
|
626
|
-
TestHelpers.new(self)
|
|
627
|
-
end
|
|
628
|
-
|
|
629
|
-
class TestHelpers < APIResourceTestHelpers
|
|
630
|
-
RESOURCE_CLASS = GrantedToken
|
|
631
|
-
def self.resource_class
|
|
632
|
-
"GrantedToken"
|
|
633
|
-
end
|
|
634
|
-
|
|
635
|
-
# Creates a new test SharedPaymentGrantedToken object. This test helper allows sellers to create SharedPaymentGrantedTokens for testing their integration.
|
|
636
|
-
def self.create(params = {}, opts = {})
|
|
637
|
-
request_stripe_object(
|
|
638
|
-
method: :post,
|
|
639
|
-
path: "/v1/test_helpers/shared_payment/granted_tokens",
|
|
640
|
-
params: params,
|
|
641
|
-
opts: opts
|
|
642
|
-
)
|
|
643
|
-
end
|
|
644
|
-
|
|
645
|
-
# Revokes a test SharedPaymentGrantedToken object. This test helper allows sellers to revoke SharedPaymentGrantedTokens for testing their integration.
|
|
646
|
-
def self.revoke(shared_payment_granted_token, params = {}, opts = {})
|
|
647
|
-
request_stripe_object(
|
|
648
|
-
method: :post,
|
|
649
|
-
path: format("/v1/test_helpers/shared_payment/granted_tokens/%<shared_payment_granted_token>s/revoke", { shared_payment_granted_token: CGI.escape(shared_payment_granted_token) }),
|
|
650
|
-
params: params,
|
|
651
|
-
opts: opts
|
|
652
|
-
)
|
|
653
|
-
end
|
|
654
|
-
|
|
655
|
-
# Revokes a test SharedPaymentGrantedToken object. This test helper allows sellers to revoke SharedPaymentGrantedTokens for testing their integration.
|
|
656
|
-
def revoke(params = {}, opts = {})
|
|
657
|
-
@resource.request_stripe_object(
|
|
658
|
-
method: :post,
|
|
659
|
-
path: format("/v1/test_helpers/shared_payment/granted_tokens/%<shared_payment_granted_token>s/revoke", { shared_payment_granted_token: CGI.escape(@resource["id"]) }),
|
|
660
|
-
params: params,
|
|
661
|
-
opts: opts
|
|
662
|
-
)
|
|
663
|
-
end
|
|
664
|
-
end
|
|
665
|
-
|
|
666
|
-
def self.inner_class_types
|
|
667
|
-
@inner_class_types = {
|
|
668
|
-
agent_details: AgentDetails,
|
|
669
|
-
payment_method_details: PaymentMethodDetails,
|
|
670
|
-
risk_details: RiskDetails,
|
|
671
|
-
usage_details: UsageDetails,
|
|
672
|
-
usage_limits: UsageLimits,
|
|
673
|
-
}
|
|
674
|
-
end
|
|
675
|
-
|
|
676
|
-
def self.field_remappings
|
|
677
|
-
@field_remappings = {}
|
|
678
|
-
end
|
|
679
|
-
end
|
|
680
|
-
end
|
|
681
|
-
end
|