stripe 13.6.0.pre.beta.1 → 14.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/CHANGELOG.md +699 -1457
- data/OPENAPI_VERSION +1 -1
- data/README.md +29 -0
- data/VERSION +1 -1
- data/lib/stripe/api_requestor.rb +2 -0
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/errors.rb +0 -7
- data/lib/stripe/object_types.rb +0 -26
- data/lib/stripe/resources/account.rb +83 -614
- data/lib/stripe/resources/account_session.rb +1 -247
- data/lib/stripe/resources/apple_pay_domain.rb +0 -9
- data/lib/stripe/resources/application_fee.rb +1 -10
- data/lib/stripe/resources/balance.rb +0 -9
- data/lib/stripe/resources/balance_transaction.rb +2 -11
- data/lib/stripe/resources/bank_account.rb +1 -1
- data/lib/stripe/resources/billing/alert.rb +0 -9
- data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -48
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +0 -9
- data/lib/stripe/resources/billing/credit_grant.rb +4 -13
- data/lib/stripe/resources/billing/meter.rb +1 -10
- data/lib/stripe/resources/billing_portal/configuration.rb +0 -9
- data/lib/stripe/resources/card.rb +2 -4
- data/lib/stripe/resources/charge.rb +35 -1457
- data/lib/stripe/resources/checkout/session.rb +100 -293
- data/lib/stripe/resources/climate/order.rb +0 -9
- data/lib/stripe/resources/climate/product.rb +0 -9
- data/lib/stripe/resources/climate/supplier.rb +0 -9
- data/lib/stripe/resources/confirmation_token.rb +74 -156
- data/lib/stripe/resources/country_spec.rb +0 -9
- data/lib/stripe/resources/coupon.rb +0 -9
- data/lib/stripe/resources/credit_note.rb +14 -35
- data/lib/stripe/resources/credit_note_line_item.rb +14 -12
- data/lib/stripe/resources/customer.rb +12 -28
- data/lib/stripe/resources/customer_balance_transaction.rb +3 -1
- data/lib/stripe/resources/dispute.rb +0 -9
- data/lib/stripe/resources/entitlements/active_entitlement.rb +0 -9
- data/lib/stripe/resources/entitlements/feature.rb +0 -9
- data/lib/stripe/resources/event.rb +0 -40
- data/lib/stripe/resources/exchange_rate.rb +0 -9
- data/lib/stripe/resources/file.rb +0 -9
- data/lib/stripe/resources/file_link.rb +0 -9
- data/lib/stripe/resources/financial_connections/account.rb +0 -23
- data/lib/stripe/resources/financial_connections/session.rb +1 -65
- data/lib/stripe/resources/financial_connections/transaction.rb +0 -9
- data/lib/stripe/resources/forwarding/request.rb +0 -9
- data/lib/stripe/resources/identity/verification_report.rb +0 -9
- data/lib/stripe/resources/identity/verification_session.rb +0 -9
- data/lib/stripe/resources/invoice.rb +225 -5120
- data/lib/stripe/resources/invoice_item.rb +65 -110
- data/lib/stripe/resources/invoice_line_item.rb +106 -89
- data/lib/stripe/resources/invoice_payment.rb +53 -4
- data/lib/stripe/resources/invoice_rendering_template.rb +0 -12
- data/lib/stripe/resources/issuing/authorization.rb +0 -9
- data/lib/stripe/resources/issuing/card.rb +0 -9
- data/lib/stripe/resources/issuing/cardholder.rb +1 -11
- data/lib/stripe/resources/issuing/dispute.rb +0 -9
- data/lib/stripe/resources/issuing/personalization_design.rb +0 -9
- data/lib/stripe/resources/issuing/physical_bundle.rb +0 -9
- data/lib/stripe/resources/issuing/token.rb +0 -9
- data/lib/stripe/resources/issuing/transaction.rb +0 -15
- data/lib/stripe/resources/line_item.rb +0 -28
- data/lib/stripe/resources/mandate.rb +6 -33
- data/lib/stripe/resources/payment_intent.rb +642 -4975
- data/lib/stripe/resources/payment_link.rb +84 -15
- data/lib/stripe/resources/payment_method.rb +74 -187
- data/lib/stripe/resources/payment_method_configuration.rb +87 -214
- data/lib/stripe/resources/payment_method_domain.rb +9 -18
- data/lib/stripe/resources/payout.rb +0 -9
- data/lib/stripe/resources/person.rb +9 -9
- data/lib/stripe/resources/plan.rb +0 -15
- data/lib/stripe/resources/price.rb +2 -47
- data/lib/stripe/resources/product.rb +0 -68
- data/lib/stripe/resources/promotion_code.rb +0 -9
- data/lib/stripe/resources/quote.rb +8 -2037
- data/lib/stripe/resources/radar/early_fraud_warning.rb +0 -9
- data/lib/stripe/resources/radar/value_list.rb +0 -9
- data/lib/stripe/resources/radar/value_list_item.rb +0 -9
- data/lib/stripe/resources/refund.rb +13 -18
- data/lib/stripe/resources/reporting/report_run.rb +0 -9
- data/lib/stripe/resources/reporting/report_type.rb +0 -9
- data/lib/stripe/resources/review.rb +2 -11
- data/lib/stripe/resources/setup_attempt.rb +11 -16
- data/lib/stripe/resources/setup_intent.rb +158 -540
- data/lib/stripe/resources/shipping_rate.rb +0 -9
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +0 -9
- data/lib/stripe/resources/source.rb +0 -41
- data/lib/stripe/resources/subscription.rb +14 -385
- data/lib/stripe/resources/subscription_item.rb +9 -134
- data/lib/stripe/resources/subscription_schedule.rb +14 -1135
- data/lib/stripe/resources/tax/calculation.rb +0 -9
- data/lib/stripe/resources/tax/registration.rb +1 -10
- data/lib/stripe/resources/tax/settings.rb +0 -9
- data/lib/stripe/resources/tax/transaction.rb +0 -9
- data/lib/stripe/resources/tax_code.rb +0 -9
- data/lib/stripe/resources/tax_id.rb +0 -9
- data/lib/stripe/resources/tax_rate.rb +0 -9
- data/lib/stripe/resources/terminal/configuration.rb +214 -14
- data/lib/stripe/resources/terminal/location.rb +0 -9
- data/lib/stripe/resources/terminal/reader.rb +0 -408
- data/lib/stripe/resources/test_helpers/test_clock.rb +0 -9
- data/lib/stripe/resources/token.rb +1 -10
- data/lib/stripe/resources/topup.rb +0 -9
- data/lib/stripe/resources/transfer.rb +0 -9
- data/lib/stripe/resources/treasury/credit_reversal.rb +0 -9
- data/lib/stripe/resources/treasury/debit_reversal.rb +0 -9
- data/lib/stripe/resources/treasury/financial_account.rb +4 -32
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
- data/lib/stripe/resources/treasury/inbound_transfer.rb +0 -9
- data/lib/stripe/resources/treasury/outbound_payment.rb +0 -9
- data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -46
- data/lib/stripe/resources/treasury/received_credit.rb +1 -47
- data/lib/stripe/resources/treasury/received_debit.rb +1 -49
- data/lib/stripe/resources/treasury/transaction.rb +0 -9
- data/lib/stripe/resources/treasury/transaction_entry.rb +0 -9
- data/lib/stripe/resources/v2/event.rb +1 -0
- data/lib/stripe/resources/v2/event_destination.rb +1 -0
- data/lib/stripe/resources/webhook_endpoint.rb +0 -9
- data/lib/stripe/resources.rb +0 -25
- data/lib/stripe/services/account_external_account_service.rb +1 -1
- data/lib/stripe/services/account_service.rb +68 -509
- data/lib/stripe/services/account_session_service.rb +1 -217
- data/lib/stripe/services/balance_transaction_service.rb +1 -1
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +2 -2
- data/lib/stripe/services/billing/credit_grant_service.rb +2 -2
- data/lib/stripe/services/billing/meter_service.rb +1 -1
- data/lib/stripe/services/charge_service.rb +1 -1335
- data/lib/stripe/services/checkout/session_service.rb +60 -168
- data/lib/stripe/services/credit_note_preview_lines_service.rb +0 -4
- data/lib/stripe/services/credit_note_service.rb +0 -8
- data/lib/stripe/services/customer_service.rb +0 -16
- data/lib/stripe/services/financial_connections/account_service.rb +1 -3
- data/lib/stripe/services/financial_connections/session_service.rb +1 -30
- data/lib/stripe/services/financial_connections_service.rb +1 -2
- data/lib/stripe/services/invoice_item_service.rb +34 -88
- data/lib/stripe/services/invoice_line_item_service.rb +25 -41
- data/lib/stripe/services/invoice_payment_service.rb +33 -5
- data/lib/stripe/services/invoice_service.rb +210 -3147
- data/lib/stripe/services/issuing/cardholder_service.rb +1 -2
- data/lib/stripe/services/issuing/transaction_service.rb +0 -4
- data/lib/stripe/services/issuing_service.rb +1 -5
- data/lib/stripe/services/payment_intent_service.rb +568 -4513
- data/lib/stripe/services/payment_link_service.rb +59 -6
- data/lib/stripe/services/payment_method_configuration_service.rb +62 -146
- data/lib/stripe/services/payment_method_domain_service.rb +6 -6
- data/lib/stripe/services/payment_method_service.rb +49 -119
- data/lib/stripe/services/plan_service.rb +0 -4
- data/lib/stripe/services/price_service.rb +2 -25
- data/lib/stripe/services/product_service.rb +0 -38
- data/lib/stripe/services/quote_service.rb +9 -1716
- data/lib/stripe/services/setup_intent_service.rb +158 -492
- data/lib/stripe/services/subscription_item_service.rb +5 -111
- data/lib/stripe/services/subscription_schedule_service.rb +14 -1005
- data/lib/stripe/services/subscription_service.rb +13 -323
- data/lib/stripe/services/tax/registration_service.rb +1 -1
- data/lib/stripe/services/tax_service.rb +1 -3
- data/lib/stripe/services/terminal/configuration_service.rb +170 -4
- data/lib/stripe/services/terminal/reader_service.rb +0 -177
- data/lib/stripe/services/terminal_service.rb +1 -2
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +49 -87
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +0 -43
- data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +1 -25
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +1 -25
- data/lib/stripe/services/token_service.rb +1 -1
- data/lib/stripe/services/treasury/financial_account_features_service.rb +1 -4
- data/lib/stripe/services/treasury/financial_account_service.rb +3 -17
- data/lib/stripe/services/treasury/outbound_transfer_service.rb +0 -24
- data/lib/stripe/services/v1_services.rb +2 -8
- data/lib/stripe/services/v2/core/event_destination_service.rb +1 -4
- data/lib/stripe/services/v2/core/event_service.rb +1 -4
- data/lib/stripe/services.rb +0 -27
- data/lib/stripe/stripe_client.rb +1 -0
- data/lib/stripe/stripe_configuration.rb +1 -3
- data/lib/stripe/util.rb +1 -7
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -45
- data/rbi/stripe/resources/account.rbi +1131 -1479
- data/rbi/stripe/resources/account_link.rbi +9 -9
- data/rbi/stripe/resources/account_session.rbi +118 -367
- data/rbi/stripe/resources/apple_pay_domain.rbi +8 -15
- data/rbi/stripe/resources/application_fee.rbi +15 -20
- data/rbi/stripe/resources/apps/secret.rbi +20 -20
- data/rbi/stripe/resources/balance.rbi +0 -7
- data/rbi/stripe/resources/balance_transaction.rbi +19 -24
- data/rbi/stripe/resources/bank_account.rbi +1 -1
- data/rbi/stripe/resources/billing/alert.rbi +23 -28
- data/rbi/stripe/resources/billing/credit_balance_summary.rbi +0 -53
- data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +6 -13
- data/rbi/stripe/resources/billing/credit_grant.rbi +30 -37
- data/rbi/stripe/resources/billing/meter.rbi +19 -26
- data/rbi/stripe/resources/billing/meter_event.rbi +4 -4
- data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +5 -5
- data/rbi/stripe/resources/billing_portal/configuration.rbi +86 -81
- data/rbi/stripe/resources/billing_portal/session.rbi +31 -27
- data/rbi/stripe/resources/card.rbi +2 -5
- data/rbi/stripe/resources/charge.rbi +136 -1576
- data/rbi/stripe/resources/checkout/session.rbi +631 -748
- data/rbi/stripe/resources/climate/order.rbi +20 -25
- data/rbi/stripe/resources/climate/product.rbi +5 -12
- data/rbi/stripe/resources/climate/supplier.rbi +5 -12
- data/rbi/stripe/resources/confirmation_token.rbi +274 -268
- data/rbi/stripe/resources/country_spec.rbi +5 -12
- data/rbi/stripe/resources/coupon.rbi +34 -39
- data/rbi/stripe/resources/credit_note.rbi +134 -146
- data/rbi/stripe/resources/credit_note_line_item.rbi +20 -18
- data/rbi/stripe/resources/customer.rbi +172 -164
- data/rbi/stripe/resources/customer_balance_transaction.rbi +4 -1
- data/rbi/stripe/resources/customer_session.rbi +19 -15
- data/rbi/stripe/resources/dispute.rbi +92 -95
- data/rbi/stripe/resources/entitlements/active_entitlement.rbi +5 -12
- data/rbi/stripe/resources/entitlements/feature.rbi +15 -22
- data/rbi/stripe/resources/ephemeral_key.rbi +2 -2
- data/rbi/stripe/resources/event.rbi +16 -60
- data/rbi/stripe/resources/exchange_rate.rbi +5 -12
- data/rbi/stripe/resources/file.rbi +20 -25
- data/rbi/stripe/resources/file_link.rbi +23 -28
- data/rbi/stripe/resources/financial_connections/account.rbi +25 -44
- data/rbi/stripe/resources/financial_connections/session.rbi +12 -75
- data/rbi/stripe/resources/financial_connections/transaction.rbi +16 -19
- data/rbi/stripe/resources/forwarding/request.rbi +21 -24
- data/rbi/stripe/resources/identity/verification_report.rbi +18 -21
- data/rbi/stripe/resources/identity/verification_session.rbi +60 -61
- data/rbi/stripe/resources/invoice.rbi +723 -5918
- data/rbi/stripe/resources/invoice_item.rbi +138 -177
- data/rbi/stripe/resources/invoice_line_item.rbi +199 -264
- data/rbi/stripe/resources/invoice_payment.rbi +51 -7
- data/rbi/stripe/resources/invoice_rendering_template.rbi +10 -20
- data/rbi/stripe/resources/issuing/authorization.rbi +216 -199
- data/rbi/stripe/resources/issuing/card.rbi +104 -101
- data/rbi/stripe/resources/issuing/cardholder.rbi +120 -108
- data/rbi/stripe/resources/issuing/dispute.rbi +164 -151
- data/rbi/stripe/resources/issuing/personalization_design.rbi +61 -56
- data/rbi/stripe/resources/issuing/physical_bundle.rbi +7 -14
- data/rbi/stripe/resources/issuing/token.rbi +16 -21
- data/rbi/stripe/resources/issuing/transaction.rbi +180 -176
- data/rbi/stripe/resources/line_item.rbi +0 -36
- data/rbi/stripe/resources/mandate.rbi +8 -40
- data/rbi/stripe/resources/payment_intent.rbi +2252 -6482
- data/rbi/stripe/resources/payment_link.rbi +346 -211
- data/rbi/stripe/resources/payment_method.rbi +226 -330
- data/rbi/stripe/resources/payment_method_configuration.rbi +602 -685
- data/rbi/stripe/resources/payment_method_domain.rbi +26 -31
- data/rbi/stripe/resources/payout.rbi +43 -42
- data/rbi/stripe/resources/person.rbi +9 -9
- data/rbi/stripe/resources/plan.rbi +51 -63
- data/rbi/stripe/resources/price.rbi +114 -151
- data/rbi/stripe/resources/product.rbi +90 -152
- data/rbi/stripe/resources/promotion_code.rbi +42 -47
- data/rbi/stripe/resources/quote.rbi +168 -2231
- data/rbi/stripe/resources/radar/early_fraud_warning.rbi +17 -20
- data/rbi/stripe/resources/radar/value_list.rbi +24 -29
- data/rbi/stripe/resources/radar/value_list_item.rbi +18 -21
- data/rbi/stripe/resources/refund.rbi +52 -51
- data/rbi/stripe/resources/reporting/report_run.rbi +27 -30
- data/rbi/stripe/resources/reporting/report_type.rbi +2 -9
- data/rbi/stripe/resources/review.rbi +17 -22
- data/rbi/stripe/resources/setup_attempt.rbi +25 -32
- data/rbi/stripe/resources/setup_intent.rbi +900 -1102
- data/rbi/stripe/resources/shipping_rate.rbi +41 -46
- data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +5 -12
- data/rbi/stripe/resources/source.rbi +132 -179
- data/rbi/stripe/resources/subscription.rbi +363 -707
- data/rbi/stripe/resources/subscription_item.rbi +69 -177
- data/rbi/stripe/resources/subscription_schedule.rbi +289 -1447
- data/rbi/stripe/resources/tax/calculation.rbi +43 -48
- data/rbi/stripe/resources/tax/registration.rbi +217 -170
- data/rbi/stripe/resources/tax/settings.rbi +14 -21
- data/rbi/stripe/resources/tax/transaction.rbi +20 -25
- data/rbi/stripe/resources/tax_code.rbi +5 -12
- data/rbi/stripe/resources/tax_id.rbi +15 -22
- data/rbi/stripe/resources/tax_rate.rbi +34 -39
- data/rbi/stripe/resources/terminal/configuration.rbi +457 -212
- data/rbi/stripe/resources/terminal/connection_token.rbi +3 -3
- data/rbi/stripe/resources/terminal/location.rbi +28 -35
- data/rbi/stripe/resources/terminal/reader.rbi +71 -441
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +12 -17
- data/rbi/stripe/resources/token.rbi +288 -263
- data/rbi/stripe/resources/topup.rbi +35 -38
- data/rbi/stripe/resources/transfer.rbi +27 -32
- data/rbi/stripe/resources/treasury/credit_reversal.rbi +10 -17
- data/rbi/stripe/resources/treasury/debit_reversal.rbi +11 -18
- data/rbi/stripe/resources/treasury/financial_account.rbi +125 -130
- data/rbi/stripe/resources/treasury/financial_account_features.rbi +0 -3
- data/rbi/stripe/resources/treasury/inbound_transfer.rbi +22 -29
- data/rbi/stripe/resources/treasury/outbound_payment.rbi +82 -79
- data/rbi/stripe/resources/treasury/outbound_transfer.rbi +44 -86
- data/rbi/stripe/resources/treasury/received_credit.rbi +18 -64
- data/rbi/stripe/resources/treasury/received_debit.rbi +17 -66
- data/rbi/stripe/resources/treasury/transaction.rbi +27 -28
- data/rbi/stripe/resources/treasury/transaction_entry.rbi +25 -26
- data/rbi/stripe/resources/v2/amount.rbi +1 -1
- data/rbi/stripe/resources/v2/event.rbi +1 -0
- data/rbi/stripe/resources/v2/event_destination.rbi +1 -0
- data/rbi/stripe/resources/webhook_endpoint.rbi +18 -25
- data/rbi/stripe/services/account_capability_service.rbi +7 -7
- data/rbi/stripe/services/account_external_account_service.rbi +52 -52
- data/rbi/stripe/services/account_link_service.rbi +9 -9
- data/rbi/stripe/services/account_login_link_service.rbi +2 -2
- data/rbi/stripe/services/account_person_service.rbi +221 -201
- data/rbi/stripe/services/account_service.rbi +1221 -1345
- data/rbi/stripe/services/account_session_service.rbi +115 -346
- data/rbi/stripe/services/apple_pay_domain_service.rbi +10 -10
- data/rbi/stripe/services/application_fee_refund_service.rbi +16 -14
- data/rbi/stripe/services/application_fee_service.rbi +18 -14
- data/rbi/stripe/services/apps/secret_service.rbi +20 -20
- data/rbi/stripe/services/balance_service.rbi +2 -2
- data/rbi/stripe/services/balance_transaction_service.rbi +22 -18
- data/rbi/stripe/services/billing/alert_service.rbi +23 -23
- data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +10 -10
- data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +8 -8
- data/rbi/stripe/services/billing/credit_grant_service.rbi +32 -30
- data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +7 -5
- data/rbi/stripe/services/billing/meter_event_service.rbi +4 -4
- data/rbi/stripe/services/billing/meter_event_summary_service.rbi +6 -6
- data/rbi/stripe/services/billing/meter_service.rbi +21 -21
- data/rbi/stripe/services/billing_portal/configuration_service.rbi +90 -76
- data/rbi/stripe/services/billing_portal/session_service.rbi +29 -27
- data/rbi/stripe/services/charge_service.rbi +96 -1464
- data/rbi/stripe/services/checkout/session_line_item_service.rbi +5 -5
- data/rbi/stripe/services/checkout/session_service.rbi +555 -591
- data/rbi/stripe/services/climate/order_service.rbi +22 -20
- data/rbi/stripe/services/climate/product_service.rbi +7 -7
- data/rbi/stripe/services/climate/supplier_service.rbi +7 -7
- data/rbi/stripe/services/confirmation_token_service.rbi +2 -2
- data/rbi/stripe/services/country_spec_service.rbi +7 -7
- data/rbi/stripe/services/coupon_service.rbi +40 -34
- data/rbi/stripe/services/credit_note_line_item_service.rbi +5 -5
- data/rbi/stripe/services/credit_note_preview_lines_service.rbi +35 -35
- data/rbi/stripe/services/credit_note_service.rbi +81 -85
- data/rbi/stripe/services/customer_balance_transaction_service.rbi +15 -15
- data/rbi/stripe/services/customer_cash_balance_service.rbi +7 -7
- data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +7 -7
- data/rbi/stripe/services/customer_funding_instructions_service.rbi +5 -5
- data/rbi/stripe/services/customer_payment_method_service.rbi +9 -9
- data/rbi/stripe/services/customer_payment_source_service.rbi +48 -44
- data/rbi/stripe/services/customer_service.rbi +143 -139
- data/rbi/stripe/services/customer_session_service.rbi +21 -15
- data/rbi/stripe/services/customer_tax_id_service.rbi +9 -9
- data/rbi/stripe/services/dispute_service.rbi +92 -90
- data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +7 -7
- data/rbi/stripe/services/entitlements/feature_service.rbi +17 -17
- data/rbi/stripe/services/ephemeral_key_service.rbi +8 -8
- data/rbi/stripe/services/event_service.rbi +18 -16
- data/rbi/stripe/services/exchange_rate_service.rbi +7 -7
- data/rbi/stripe/services/file_link_service.rbi +25 -23
- data/rbi/stripe/services/file_service.rbi +22 -20
- data/rbi/stripe/services/financial_connections/account_owner_service.rbi +5 -5
- data/rbi/stripe/services/financial_connections/account_service.rbi +22 -21
- data/rbi/stripe/services/financial_connections/session_service.rbi +16 -39
- data/rbi/stripe/services/financial_connections/transaction_service.rbi +16 -14
- data/rbi/stripe/services/financial_connections_service.rbi +0 -1
- data/rbi/stripe/services/forwarding/request_service.rbi +21 -19
- data/rbi/stripe/services/identity/verification_report_service.rbi +18 -16
- data/rbi/stripe/services/identity/verification_session_service.rbi +62 -56
- data/rbi/stripe/services/invoice_item_service.rbi +99 -155
- data/rbi/stripe/services/invoice_line_item_service.rbi +71 -82
- data/rbi/stripe/services/invoice_payment_service.rbi +39 -12
- data/rbi/stripe/services/invoice_rendering_template_service.rbi +13 -13
- data/rbi/stripe/services/invoice_service.rbi +679 -3799
- data/rbi/stripe/services/issuing/authorization_service.rbi +32 -26
- data/rbi/stripe/services/issuing/card_service.rbi +102 -86
- data/rbi/stripe/services/issuing/cardholder_service.rbi +122 -103
- data/rbi/stripe/services/issuing/dispute_service.rbi +152 -146
- data/rbi/stripe/services/issuing/personalization_design_service.rbi +52 -42
- data/rbi/stripe/services/issuing/physical_bundle_service.rbi +9 -9
- data/rbi/stripe/services/issuing/token_service.rbi +20 -16
- data/rbi/stripe/services/issuing/transaction_service.rbi +25 -23
- data/rbi/stripe/services/issuing_service.rbi +0 -3
- data/rbi/stripe/services/mandate_service.rbi +2 -2
- data/rbi/stripe/services/payment_intent_service.rbi +2312 -6081
- data/rbi/stripe/services/payment_link_line_item_service.rbi +5 -5
- data/rbi/stripe/services/payment_link_service.rbi +303 -201
- data/rbi/stripe/services/payment_method_configuration_service.rbi +616 -620
- data/rbi/stripe/services/payment_method_domain_service.rbi +25 -23
- data/rbi/stripe/services/payment_method_service.rbi +192 -249
- data/rbi/stripe/services/payout_service.rbi +45 -37
- data/rbi/stripe/services/plan_service.rbi +53 -55
- data/rbi/stripe/services/price_service.rbi +124 -129
- data/rbi/stripe/services/product_feature_service.rbi +9 -9
- data/rbi/stripe/services/product_service.rbi +94 -122
- data/rbi/stripe/services/promotion_code_service.rbi +46 -42
- data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +5 -5
- data/rbi/stripe/services/quote_line_item_service.rbi +5 -5
- data/rbi/stripe/services/quote_service.rbi +159 -1863
- data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +17 -15
- data/rbi/stripe/services/radar/value_list_item_service.rbi +20 -16
- data/rbi/stripe/services/radar/value_list_service.rbi +28 -24
- data/rbi/stripe/services/refund_service.rbi +37 -33
- data/rbi/stripe/services/reporting/report_run_service.rbi +29 -25
- data/rbi/stripe/services/reporting/report_type_service.rbi +4 -4
- data/rbi/stripe/services/review_service.rbi +17 -15
- data/rbi/stripe/services/setup_attempt_service.rbi +13 -11
- data/rbi/stripe/services/setup_intent_service.rbi +1028 -1062
- data/rbi/stripe/services/shipping_rate_service.rbi +47 -41
- data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +7 -7
- data/rbi/stripe/services/source_service.rbi +149 -133
- data/rbi/stripe/services/source_transaction_service.rbi +5 -5
- data/rbi/stripe/services/subscription_item_service.rbi +61 -159
- data/rbi/stripe/services/subscription_schedule_service.rbi +289 -1305
- data/rbi/stripe/services/subscription_service.rbi +366 -640
- data/rbi/stripe/services/tax/calculation_line_item_service.rbi +5 -5
- data/rbi/stripe/services/tax/calculation_service.rbi +40 -38
- data/rbi/stripe/services/tax/registration_service.rbi +337 -165
- data/rbi/stripe/services/tax/settings_service.rbi +16 -16
- data/rbi/stripe/services/tax/transaction_line_item_service.rbi +5 -5
- data/rbi/stripe/services/tax/transaction_service.rbi +19 -15
- data/rbi/stripe/services/tax_code_service.rbi +7 -7
- data/rbi/stripe/services/tax_id_service.rbi +17 -17
- data/rbi/stripe/services/tax_rate_service.rbi +36 -34
- data/rbi/stripe/services/tax_service.rbi +0 -2
- data/rbi/stripe/services/terminal/configuration_service.rbi +464 -204
- data/rbi/stripe/services/terminal/connection_token_service.rbi +3 -3
- data/rbi/stripe/services/terminal/location_service.rbi +30 -30
- data/rbi/stripe/services/terminal/reader_service.rbi +57 -226
- data/rbi/stripe/services/terminal_service.rbi +0 -1
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +157 -198
- data/rbi/stripe/services/test_helpers/customer_service.rbi +3 -3
- data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +180 -168
- data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +10 -10
- data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +11 -9
- data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +151 -145
- data/rbi/stripe/services/test_helpers/refund_service.rbi +2 -2
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +10 -39
- data/rbi/stripe/services/test_helpers/test_clock_service.rbi +14 -12
- data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +9 -9
- data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +20 -18
- data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +20 -18
- data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +11 -38
- data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +11 -38
- data/rbi/stripe/services/token_service.rbi +292 -258
- data/rbi/stripe/services/topup_service.rbi +37 -33
- data/rbi/stripe/services/transfer_reversal_service.rbi +18 -16
- data/rbi/stripe/services/transfer_service.rbi +29 -27
- data/rbi/stripe/services/treasury/credit_reversal_service.rbi +12 -12
- data/rbi/stripe/services/treasury/debit_reversal_service.rbi +13 -13
- data/rbi/stripe/services/treasury/financial_account_features_service.rbi +23 -26
- data/rbi/stripe/services/treasury/financial_account_service.rbi +92 -96
- data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +15 -15
- data/rbi/stripe/services/treasury/outbound_payment_service.rbi +60 -56
- data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +24 -49
- data/rbi/stripe/services/treasury/received_credit_service.rbi +11 -9
- data/rbi/stripe/services/treasury/received_debit_service.rbi +8 -8
- data/rbi/stripe/services/treasury/transaction_entry_service.rbi +25 -21
- data/rbi/stripe/services/treasury/transaction_service.rbi +31 -23
- data/rbi/stripe/services/v1_services.rbi +1 -7
- data/rbi/stripe/services/v2/billing/meter_event_service.rbi +3 -3
- data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +3 -3
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +21 -24
- data/rbi/stripe/services/v2/core/event_service.rbi +3 -6
- data/rbi/stripe/services/webhook_endpoint_service.rbi +20 -20
- metadata +4 -109
- data/lib/stripe/request_signing_authenticator.rb +0 -79
- data/lib/stripe/resources/account_notice.rb +0 -132
- data/lib/stripe/resources/billing/meter_error_report.rb +0 -59
- data/lib/stripe/resources/capital/financing_offer.rb +0 -188
- data/lib/stripe/resources/capital/financing_summary.rb +0 -64
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -123
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
- data/lib/stripe/resources/financial_connections/institution.rb +0 -99
- data/lib/stripe/resources/gift_cards/card.rb +0 -217
- data/lib/stripe/resources/gift_cards/transaction.rb +0 -281
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -611
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -84
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -95
- data/lib/stripe/resources/issuing/settlement.rb +0 -49
- data/lib/stripe/resources/margin.rb +0 -124
- data/lib/stripe/resources/order.rb +0 -2868
- data/lib/stripe/resources/payment_attempt_record.rb +0 -184
- data/lib/stripe/resources/payment_record.rb +0 -715
- data/lib/stripe/resources/quote_line.rb +0 -274
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -652
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -362
- data/lib/stripe/resources/tax/association.rb +0 -89
- data/lib/stripe/resources/tax/form.rb +0 -220
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -40
- data/lib/stripe/resources/usage_record.rb +0 -30
- data/lib/stripe/resources/usage_record_summary.rb +0 -33
- data/lib/stripe/services/account_notice_service.rb +0 -101
- data/lib/stripe/services/capital/financing_offer_service.rb +0 -112
- data/lib/stripe/services/capital/financing_summary_service.rb +0 -28
- data/lib/stripe/services/capital/financing_transaction_service.rb +0 -79
- data/lib/stripe/services/capital_service.rb +0 -15
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -37
- data/lib/stripe/services/financial_connections/institution_service.rb +0 -57
- data/lib/stripe/services/gift_cards/card_service.rb +0 -170
- data/lib/stripe/services/gift_cards/transaction_service.rb +0 -209
- data/lib/stripe/services/gift_cards_service.rb +0 -14
- data/lib/stripe/services/invoice_upcoming_lines_service.rb +0 -1881
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -504
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -66
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -83
- data/lib/stripe/services/margin_service.rb +0 -119
- data/lib/stripe/services/order_line_item_service.rb +0 -35
- data/lib/stripe/services/order_service.rb +0 -2268
- data/lib/stripe/services/payment_attempt_record_service.rb +0 -49
- data/lib/stripe/services/payment_record_service.rb +0 -542
- data/lib/stripe/services/quote_line_service.rb +0 -35
- data/lib/stripe/services/quote_preview_invoice_service.rb +0 -35
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -35
- data/lib/stripe/services/subscription_item_usage_record_service.rb +0 -41
- data/lib/stripe/services/subscription_item_usage_record_summary_service.rb +0 -37
- data/lib/stripe/services/tax/association_service.rb +0 -31
- data/lib/stripe/services/tax/form_service.rb +0 -100
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -28
- data/rbi/stripe/resources/account_notice.rbi +0 -139
- data/rbi/stripe/resources/billing/meter_error_report.rbi +0 -71
- data/rbi/stripe/resources/capital/financing_offer.rbi +0 -190
- data/rbi/stripe/resources/capital/financing_summary.rbi +0 -74
- data/rbi/stripe/resources/capital/financing_transaction.rbi +0 -130
- data/rbi/stripe/resources/financial_connections/account_inferred_balance.rbi +0 -27
- data/rbi/stripe/resources/financial_connections/institution.rbi +0 -99
- data/rbi/stripe/resources/gift_cards/card.rbi +0 -206
- data/rbi/stripe/resources/gift_cards/transaction.rbi +0 -257
- data/rbi/stripe/resources/issuing/credit_underwriting_record.rbi +0 -622
- data/rbi/stripe/resources/issuing/dispute_settlement_detail.rbi +0 -83
- data/rbi/stripe/resources/issuing/fraud_liability_debit.rbi +0 -90
- data/rbi/stripe/resources/issuing/settlement.rbi +0 -62
- data/rbi/stripe/resources/margin.rbi +0 -127
- data/rbi/stripe/resources/order.rbi +0 -3036
- data/rbi/stripe/resources/payment_attempt_record.rbi +0 -215
- data/rbi/stripe/resources/payment_record.rbi +0 -722
- data/rbi/stripe/resources/quote_line.rbi +0 -350
- data/rbi/stripe/resources/quote_preview_invoice.rbi +0 -850
- data/rbi/stripe/resources/quote_preview_subscription_schedule.rbi +0 -474
- data/rbi/stripe/resources/tax/association.rbi +0 -94
- data/rbi/stripe/resources/tax/form.rbi +0 -224
- data/rbi/stripe/resources/terminal/reader_collected_data.rbi +0 -41
- data/rbi/stripe/resources/usage_record.rbi +0 -32
- data/rbi/stripe/resources/usage_record_summary.rbi +0 -38
- data/rbi/stripe/services/account_notice_service.rbi +0 -90
- data/rbi/stripe/services/capital/financing_offer_service.rbi +0 -95
- data/rbi/stripe/services/capital/financing_summary_service.rbi +0 -22
- data/rbi/stripe/services/capital/financing_transaction_service.rbi +0 -68
- data/rbi/stripe/services/capital_service.rbi +0 -11
- data/rbi/stripe/services/financial_connections/account_inferred_balance_service.rbi +0 -33
- data/rbi/stripe/services/financial_connections/institution_service.rbi +0 -46
- data/rbi/stripe/services/gift_cards/card_service.rbi +0 -142
- data/rbi/stripe/services/gift_cards/transaction_service.rbi +0 -174
- data/rbi/stripe/services/gift_cards_service.rbi +0 -10
- data/rbi/stripe/services/invoice_upcoming_lines_service.rbi +0 -2023
- data/rbi/stripe/services/issuing/credit_underwriting_record_service.rbi +0 -498
- data/rbi/stripe/services/issuing/dispute_settlement_detail_service.rbi +0 -55
- data/rbi/stripe/services/issuing/fraud_liability_debit_service.rbi +0 -73
- data/rbi/stripe/services/margin_service.rbi +0 -104
- data/rbi/stripe/services/order_line_item_service.rbi +0 -31
- data/rbi/stripe/services/order_service.rbi +0 -2320
- data/rbi/stripe/services/payment_attempt_record_service.rbi +0 -36
- data/rbi/stripe/services/payment_record_service.rbi +0 -521
- data/rbi/stripe/services/quote_line_service.rbi +0 -31
- data/rbi/stripe/services/quote_preview_invoice_service.rbi +0 -31
- data/rbi/stripe/services/quote_preview_subscription_schedule_service.rbi +0 -31
- data/rbi/stripe/services/subscription_item_usage_record_service.rbi +0 -37
- data/rbi/stripe/services/subscription_item_usage_record_summary_service.rbi +0 -33
- data/rbi/stripe/services/tax/association_service.rbi +0 -25
- data/rbi/stripe/services/tax/form_service.rbi +0 -85
- data/rbi/stripe/services/terminal/reader_collected_data_service.rbi +0 -22
@@ -369,46 +369,50 @@ module Stripe
|
|
369
369
|
class ListParams < Stripe::RequestParams
|
370
370
|
class Created < Stripe::RequestParams
|
371
371
|
# Minimum value to filter by (exclusive)
|
372
|
-
sig { returns(Integer) }
|
372
|
+
sig { returns(T.nilable(Integer)) }
|
373
373
|
attr_accessor :gt
|
374
374
|
# Minimum value to filter by (inclusive)
|
375
|
-
sig { returns(Integer) }
|
375
|
+
sig { returns(T.nilable(Integer)) }
|
376
376
|
attr_accessor :gte
|
377
377
|
# Maximum value to filter by (exclusive)
|
378
|
-
sig { returns(Integer) }
|
378
|
+
sig { returns(T.nilable(Integer)) }
|
379
379
|
attr_accessor :lt
|
380
380
|
# Maximum value to filter by (inclusive)
|
381
|
-
sig { returns(Integer) }
|
381
|
+
sig { returns(T.nilable(Integer)) }
|
382
382
|
attr_accessor :lte
|
383
|
-
sig {
|
383
|
+
sig {
|
384
|
+
params(gt: T.nilable(Integer), gte: T.nilable(Integer), lt: T.nilable(Integer), lte: T.nilable(Integer)).void
|
385
|
+
}
|
384
386
|
def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end
|
385
387
|
end
|
386
388
|
# Only return authorizations that belong to the given card.
|
387
|
-
sig { returns(String) }
|
389
|
+
sig { returns(T.nilable(String)) }
|
388
390
|
attr_accessor :card
|
389
391
|
# Only return authorizations that belong to the given cardholder.
|
390
|
-
sig { returns(String) }
|
392
|
+
sig { returns(T.nilable(String)) }
|
391
393
|
attr_accessor :cardholder
|
392
394
|
# Only return authorizations that were created during the given date interval.
|
393
|
-
sig {
|
395
|
+
sig {
|
396
|
+
returns(T.nilable(T.any(::Stripe::Issuing::Authorization::ListParams::Created, Integer)))
|
397
|
+
}
|
394
398
|
attr_accessor :created
|
395
399
|
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
396
|
-
sig { returns(String) }
|
400
|
+
sig { returns(T.nilable(String)) }
|
397
401
|
attr_accessor :ending_before
|
398
402
|
# Specifies which fields in the response should be expanded.
|
399
|
-
sig { returns(T::Array[String]) }
|
403
|
+
sig { returns(T.nilable(T::Array[String])) }
|
400
404
|
attr_accessor :expand
|
401
405
|
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
402
|
-
sig { returns(Integer) }
|
406
|
+
sig { returns(T.nilable(Integer)) }
|
403
407
|
attr_accessor :limit
|
404
408
|
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
405
|
-
sig { returns(String) }
|
409
|
+
sig { returns(T.nilable(String)) }
|
406
410
|
attr_accessor :starting_after
|
407
411
|
# Only return authorizations with the given status. One of `pending`, `closed`, or `reversed`.
|
408
|
-
sig { returns(String) }
|
412
|
+
sig { returns(T.nilable(String)) }
|
409
413
|
attr_accessor :status
|
410
414
|
sig {
|
411
|
-
params(card: String, cardholder: String, created: T.any(::Stripe::Issuing::Authorization::ListParams::Created, Integer), ending_before: String, expand: T::Array[String], limit: Integer, starting_after: String, status: String).void
|
415
|
+
params(card: T.nilable(String), cardholder: T.nilable(String), created: T.nilable(T.any(::Stripe::Issuing::Authorization::ListParams::Created, Integer)), ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), starting_after: T.nilable(String), status: T.nilable(String)).void
|
412
416
|
}
|
413
417
|
def initialize(
|
414
418
|
card: nil,
|
@@ -421,78 +425,75 @@ module Stripe
|
|
421
425
|
status: nil
|
422
426
|
); end
|
423
427
|
end
|
424
|
-
class RetrieveParams < Stripe::RequestParams
|
425
|
-
# Specifies which fields in the response should be expanded.
|
426
|
-
sig { returns(T::Array[String]) }
|
427
|
-
attr_accessor :expand
|
428
|
-
sig { params(expand: T::Array[String]).void }
|
429
|
-
def initialize(expand: nil); end
|
430
|
-
end
|
431
428
|
class UpdateParams < Stripe::RequestParams
|
432
429
|
# Specifies which fields in the response should be expanded.
|
433
|
-
sig { returns(T::Array[String]) }
|
430
|
+
sig { returns(T.nilable(T::Array[String])) }
|
434
431
|
attr_accessor :expand
|
435
432
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
436
|
-
sig { returns(T.nilable(T::Hash[String, String])) }
|
433
|
+
sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
|
437
434
|
attr_accessor :metadata
|
438
|
-
sig {
|
435
|
+
sig {
|
436
|
+
params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
|
437
|
+
}
|
439
438
|
def initialize(expand: nil, metadata: nil); end
|
440
439
|
end
|
441
440
|
class ApproveParams < Stripe::RequestParams
|
442
441
|
# If the authorization's `pending_request.is_amount_controllable` property is `true`, you may provide this value to control how much to hold for the authorization. Must be positive (use [`decline`](https://stripe.com/docs/api/issuing/authorizations/decline) to decline an authorization request).
|
443
|
-
sig { returns(Integer) }
|
442
|
+
sig { returns(T.nilable(Integer)) }
|
444
443
|
attr_accessor :amount
|
445
444
|
# Specifies which fields in the response should be expanded.
|
446
|
-
sig { returns(T::Array[String]) }
|
445
|
+
sig { returns(T.nilable(T::Array[String])) }
|
447
446
|
attr_accessor :expand
|
448
447
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
449
|
-
sig { returns(T.nilable(T::Hash[String, String])) }
|
448
|
+
sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
|
450
449
|
attr_accessor :metadata
|
451
450
|
sig {
|
452
|
-
params(amount: Integer, expand: T::Array[String], metadata: T.nilable(T::Hash[String, String])).void
|
451
|
+
params(amount: T.nilable(Integer), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
|
453
452
|
}
|
454
453
|
def initialize(amount: nil, expand: nil, metadata: nil); end
|
455
454
|
end
|
456
455
|
class DeclineParams < Stripe::RequestParams
|
457
456
|
# Specifies which fields in the response should be expanded.
|
458
|
-
sig { returns(T::Array[String]) }
|
457
|
+
sig { returns(T.nilable(T::Array[String])) }
|
459
458
|
attr_accessor :expand
|
460
459
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
461
|
-
sig { returns(T.nilable(T::Hash[String, String])) }
|
460
|
+
sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
|
462
461
|
attr_accessor :metadata
|
463
|
-
sig {
|
462
|
+
sig {
|
463
|
+
params(expand: T.nilable(T::Array[String]), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String])))).void
|
464
|
+
}
|
464
465
|
def initialize(expand: nil, metadata: nil); end
|
465
466
|
end
|
466
467
|
class CreateParams < Stripe::RequestParams
|
467
468
|
class AmountDetails < Stripe::RequestParams
|
468
469
|
# The ATM withdrawal fee.
|
469
|
-
sig { returns(Integer) }
|
470
|
+
sig { returns(T.nilable(Integer)) }
|
470
471
|
attr_accessor :atm_fee
|
471
472
|
# The amount of cash requested by the cardholder.
|
472
|
-
sig { returns(Integer) }
|
473
|
+
sig { returns(T.nilable(Integer)) }
|
473
474
|
attr_accessor :cashback_amount
|
474
|
-
sig { params(atm_fee: Integer, cashback_amount: Integer).void }
|
475
|
+
sig { params(atm_fee: T.nilable(Integer), cashback_amount: T.nilable(Integer)).void }
|
475
476
|
def initialize(atm_fee: nil, cashback_amount: nil); end
|
476
477
|
end
|
477
478
|
class Fleet < Stripe::RequestParams
|
478
479
|
class CardholderPromptData < Stripe::RequestParams
|
479
480
|
# Driver ID.
|
480
|
-
sig { returns(String) }
|
481
|
+
sig { returns(T.nilable(String)) }
|
481
482
|
attr_accessor :driver_id
|
482
483
|
# Odometer reading.
|
483
|
-
sig { returns(Integer) }
|
484
|
+
sig { returns(T.nilable(Integer)) }
|
484
485
|
attr_accessor :odometer
|
485
486
|
# An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type.
|
486
|
-
sig { returns(String) }
|
487
|
+
sig { returns(T.nilable(String)) }
|
487
488
|
attr_accessor :unspecified_id
|
488
489
|
# User ID.
|
489
|
-
sig { returns(String) }
|
490
|
+
sig { returns(T.nilable(String)) }
|
490
491
|
attr_accessor :user_id
|
491
492
|
# Vehicle number.
|
492
|
-
sig { returns(String) }
|
493
|
+
sig { returns(T.nilable(String)) }
|
493
494
|
attr_accessor :vehicle_number
|
494
495
|
sig {
|
495
|
-
params(driver_id: String, odometer: Integer, unspecified_id: String, user_id: String, vehicle_number: String).void
|
496
|
+
params(driver_id: T.nilable(String), odometer: T.nilable(Integer), unspecified_id: T.nilable(String), user_id: T.nilable(String), vehicle_number: T.nilable(String)).void
|
496
497
|
}
|
497
498
|
def initialize(
|
498
499
|
driver_id: nil,
|
@@ -505,64 +506,68 @@ module Stripe
|
|
505
506
|
class ReportedBreakdown < Stripe::RequestParams
|
506
507
|
class Fuel < Stripe::RequestParams
|
507
508
|
# Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
|
508
|
-
sig { returns(String) }
|
509
|
+
sig { returns(T.nilable(String)) }
|
509
510
|
attr_accessor :gross_amount_decimal
|
510
|
-
sig { params(gross_amount_decimal: String).void }
|
511
|
+
sig { params(gross_amount_decimal: T.nilable(String)).void }
|
511
512
|
def initialize(gross_amount_decimal: nil); end
|
512
513
|
end
|
513
514
|
class NonFuel < Stripe::RequestParams
|
514
515
|
# Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
|
515
|
-
sig { returns(String) }
|
516
|
+
sig { returns(T.nilable(String)) }
|
516
517
|
attr_accessor :gross_amount_decimal
|
517
|
-
sig { params(gross_amount_decimal: String).void }
|
518
|
+
sig { params(gross_amount_decimal: T.nilable(String)).void }
|
518
519
|
def initialize(gross_amount_decimal: nil); end
|
519
520
|
end
|
520
521
|
class Tax < Stripe::RequestParams
|
521
522
|
# Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
522
|
-
sig { returns(String) }
|
523
|
+
sig { returns(T.nilable(String)) }
|
523
524
|
attr_accessor :local_amount_decimal
|
524
525
|
# Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
525
|
-
sig { returns(String) }
|
526
|
+
sig { returns(T.nilable(String)) }
|
526
527
|
attr_accessor :national_amount_decimal
|
527
|
-
sig {
|
528
|
+
sig {
|
529
|
+
params(local_amount_decimal: T.nilable(String), national_amount_decimal: T.nilable(String)).void
|
530
|
+
}
|
528
531
|
def initialize(local_amount_decimal: nil, national_amount_decimal: nil); end
|
529
532
|
end
|
530
533
|
# Breakdown of fuel portion of the purchase.
|
531
534
|
sig {
|
532
|
-
returns(::Stripe::Issuing::Authorization::CreateParams::Fleet::ReportedBreakdown::Fuel)
|
535
|
+
returns(T.nilable(::Stripe::Issuing::Authorization::CreateParams::Fleet::ReportedBreakdown::Fuel))
|
533
536
|
}
|
534
537
|
attr_accessor :fuel
|
535
538
|
# Breakdown of non-fuel portion of the purchase.
|
536
539
|
sig {
|
537
|
-
returns(::Stripe::Issuing::Authorization::CreateParams::Fleet::ReportedBreakdown::NonFuel)
|
540
|
+
returns(T.nilable(::Stripe::Issuing::Authorization::CreateParams::Fleet::ReportedBreakdown::NonFuel))
|
538
541
|
}
|
539
542
|
attr_accessor :non_fuel
|
540
543
|
# Information about tax included in this transaction.
|
541
544
|
sig {
|
542
|
-
returns(::Stripe::Issuing::Authorization::CreateParams::Fleet::ReportedBreakdown::Tax)
|
545
|
+
returns(T.nilable(::Stripe::Issuing::Authorization::CreateParams::Fleet::ReportedBreakdown::Tax))
|
543
546
|
}
|
544
547
|
attr_accessor :tax
|
545
548
|
sig {
|
546
|
-
params(fuel: ::Stripe::Issuing::Authorization::CreateParams::Fleet::ReportedBreakdown::Fuel, non_fuel: ::Stripe::Issuing::Authorization::CreateParams::Fleet::ReportedBreakdown::NonFuel, tax: ::Stripe::Issuing::Authorization::CreateParams::Fleet::ReportedBreakdown::Tax).void
|
549
|
+
params(fuel: T.nilable(::Stripe::Issuing::Authorization::CreateParams::Fleet::ReportedBreakdown::Fuel), non_fuel: T.nilable(::Stripe::Issuing::Authorization::CreateParams::Fleet::ReportedBreakdown::NonFuel), tax: T.nilable(::Stripe::Issuing::Authorization::CreateParams::Fleet::ReportedBreakdown::Tax)).void
|
547
550
|
}
|
548
551
|
def initialize(fuel: nil, non_fuel: nil, tax: nil); end
|
549
552
|
end
|
550
553
|
# Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
|
551
554
|
sig {
|
552
|
-
returns(::Stripe::Issuing::Authorization::CreateParams::Fleet::CardholderPromptData)
|
555
|
+
returns(T.nilable(::Stripe::Issuing::Authorization::CreateParams::Fleet::CardholderPromptData))
|
553
556
|
}
|
554
557
|
attr_accessor :cardholder_prompt_data
|
555
558
|
# The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
|
556
|
-
sig { returns(String) }
|
559
|
+
sig { returns(T.nilable(String)) }
|
557
560
|
attr_accessor :purchase_type
|
558
561
|
# More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
|
559
|
-
sig {
|
562
|
+
sig {
|
563
|
+
returns(T.nilable(::Stripe::Issuing::Authorization::CreateParams::Fleet::ReportedBreakdown))
|
564
|
+
}
|
560
565
|
attr_accessor :reported_breakdown
|
561
566
|
# The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
|
562
|
-
sig { returns(String) }
|
567
|
+
sig { returns(T.nilable(String)) }
|
563
568
|
attr_accessor :service_type
|
564
569
|
sig {
|
565
|
-
params(cardholder_prompt_data: ::Stripe::Issuing::Authorization::CreateParams::Fleet::CardholderPromptData, purchase_type: String, reported_breakdown: ::Stripe::Issuing::Authorization::CreateParams::Fleet::ReportedBreakdown, service_type: String).void
|
570
|
+
params(cardholder_prompt_data: T.nilable(::Stripe::Issuing::Authorization::CreateParams::Fleet::CardholderPromptData), purchase_type: T.nilable(String), reported_breakdown: T.nilable(::Stripe::Issuing::Authorization::CreateParams::Fleet::ReportedBreakdown), service_type: T.nilable(String)).void
|
566
571
|
}
|
567
572
|
def initialize(
|
568
573
|
cardholder_prompt_data: nil,
|
@@ -573,22 +578,22 @@ module Stripe
|
|
573
578
|
end
|
574
579
|
class Fuel < Stripe::RequestParams
|
575
580
|
# [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.
|
576
|
-
sig { returns(String) }
|
581
|
+
sig { returns(T.nilable(String)) }
|
577
582
|
attr_accessor :industry_product_code
|
578
583
|
# The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
|
579
|
-
sig { returns(String) }
|
584
|
+
sig { returns(T.nilable(String)) }
|
580
585
|
attr_accessor :quantity_decimal
|
581
586
|
# The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
|
582
|
-
sig { returns(String) }
|
587
|
+
sig { returns(T.nilable(String)) }
|
583
588
|
attr_accessor :type
|
584
589
|
# The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
|
585
|
-
sig { returns(String) }
|
590
|
+
sig { returns(T.nilable(String)) }
|
586
591
|
attr_accessor :unit
|
587
592
|
# The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
|
588
|
-
sig { returns(String) }
|
593
|
+
sig { returns(T.nilable(String)) }
|
589
594
|
attr_accessor :unit_cost_decimal
|
590
595
|
sig {
|
591
|
-
params(industry_product_code: String, quantity_decimal: String, type: String, unit: String, unit_cost_decimal: String).void
|
596
|
+
params(industry_product_code: T.nilable(String), quantity_decimal: T.nilable(String), type: T.nilable(String), unit: T.nilable(String), unit_cost_decimal: T.nilable(String)).void
|
592
597
|
}
|
593
598
|
def initialize(
|
594
599
|
industry_product_code: nil,
|
@@ -600,34 +605,34 @@ module Stripe
|
|
600
605
|
end
|
601
606
|
class MerchantData < Stripe::RequestParams
|
602
607
|
# A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values.
|
603
|
-
sig { returns(String) }
|
608
|
+
sig { returns(T.nilable(String)) }
|
604
609
|
attr_accessor :category
|
605
610
|
# City where the seller is located
|
606
|
-
sig { returns(String) }
|
611
|
+
sig { returns(T.nilable(String)) }
|
607
612
|
attr_accessor :city
|
608
613
|
# Country where the seller is located
|
609
|
-
sig { returns(String) }
|
614
|
+
sig { returns(T.nilable(String)) }
|
610
615
|
attr_accessor :country
|
611
616
|
# Name of the seller
|
612
|
-
sig { returns(String) }
|
617
|
+
sig { returns(T.nilable(String)) }
|
613
618
|
attr_accessor :name
|
614
619
|
# Identifier assigned to the seller by the card network. Different card networks may assign different network_id fields to the same merchant.
|
615
|
-
sig { returns(String) }
|
620
|
+
sig { returns(T.nilable(String)) }
|
616
621
|
attr_accessor :network_id
|
617
622
|
# Postal code where the seller is located
|
618
|
-
sig { returns(String) }
|
623
|
+
sig { returns(T.nilable(String)) }
|
619
624
|
attr_accessor :postal_code
|
620
625
|
# State where the seller is located
|
621
|
-
sig { returns(String) }
|
626
|
+
sig { returns(T.nilable(String)) }
|
622
627
|
attr_accessor :state
|
623
628
|
# An ID assigned by the seller to the location of the sale.
|
624
|
-
sig { returns(String) }
|
629
|
+
sig { returns(T.nilable(String)) }
|
625
630
|
attr_accessor :terminal_id
|
626
631
|
# URL provided by the merchant on a 3DS request
|
627
|
-
sig { returns(String) }
|
632
|
+
sig { returns(T.nilable(String)) }
|
628
633
|
attr_accessor :url
|
629
634
|
sig {
|
630
|
-
params(category: String, city: String, country: String, name: String, network_id: String, postal_code: String, state: String, terminal_id: String, url: String).void
|
635
|
+
params(category: T.nilable(String), city: T.nilable(String), country: T.nilable(String), name: T.nilable(String), network_id: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), terminal_id: T.nilable(String), url: T.nilable(String)).void
|
631
636
|
}
|
632
637
|
def initialize(
|
633
638
|
category: nil,
|
@@ -643,9 +648,9 @@ module Stripe
|
|
643
648
|
end
|
644
649
|
class NetworkData < Stripe::RequestParams
|
645
650
|
# Identifier assigned to the acquirer by the card network.
|
646
|
-
sig { returns(String) }
|
651
|
+
sig { returns(T.nilable(String)) }
|
647
652
|
attr_accessor :acquiring_institution_id
|
648
|
-
sig { params(acquiring_institution_id: String).void }
|
653
|
+
sig { params(acquiring_institution_id: T.nilable(String)).void }
|
649
654
|
def initialize(acquiring_institution_id: nil); end
|
650
655
|
end
|
651
656
|
class VerificationData < Stripe::RequestParams
|
@@ -667,29 +672,29 @@ module Stripe
|
|
667
672
|
def initialize(result: nil); end
|
668
673
|
end
|
669
674
|
# Whether the cardholder provided an address first line and if it matched the cardholder’s `billing.address.line1`.
|
670
|
-
sig { returns(String) }
|
675
|
+
sig { returns(T.nilable(String)) }
|
671
676
|
attr_accessor :address_line1_check
|
672
677
|
# Whether the cardholder provided a postal code and if it matched the cardholder’s `billing.address.postal_code`.
|
673
|
-
sig { returns(String) }
|
678
|
+
sig { returns(T.nilable(String)) }
|
674
679
|
attr_accessor :address_postal_code_check
|
675
680
|
# The exemption applied to this authorization.
|
676
681
|
sig {
|
677
|
-
returns(::Stripe::Issuing::Authorization::CreateParams::VerificationData::AuthenticationExemption)
|
682
|
+
returns(T.nilable(::Stripe::Issuing::Authorization::CreateParams::VerificationData::AuthenticationExemption))
|
678
683
|
}
|
679
684
|
attr_accessor :authentication_exemption
|
680
685
|
# Whether the cardholder provided a CVC and if it matched Stripe’s record.
|
681
|
-
sig { returns(String) }
|
686
|
+
sig { returns(T.nilable(String)) }
|
682
687
|
attr_accessor :cvc_check
|
683
688
|
# Whether the cardholder provided an expiry date and if it matched Stripe’s record.
|
684
|
-
sig { returns(String) }
|
689
|
+
sig { returns(T.nilable(String)) }
|
685
690
|
attr_accessor :expiry_check
|
686
691
|
# 3D Secure details.
|
687
692
|
sig {
|
688
|
-
returns(::Stripe::Issuing::Authorization::CreateParams::VerificationData::ThreeDSecure)
|
693
|
+
returns(T.nilable(::Stripe::Issuing::Authorization::CreateParams::VerificationData::ThreeDSecure))
|
689
694
|
}
|
690
695
|
attr_accessor :three_d_secure
|
691
696
|
sig {
|
692
|
-
params(address_line1_check: String, address_postal_code_check: String, authentication_exemption: ::Stripe::Issuing::Authorization::CreateParams::VerificationData::AuthenticationExemption, cvc_check: String, expiry_check: String, three_d_secure: ::Stripe::Issuing::Authorization::CreateParams::VerificationData::ThreeDSecure).void
|
697
|
+
params(address_line1_check: T.nilable(String), address_postal_code_check: T.nilable(String), authentication_exemption: T.nilable(::Stripe::Issuing::Authorization::CreateParams::VerificationData::AuthenticationExemption), cvc_check: T.nilable(String), expiry_check: T.nilable(String), three_d_secure: T.nilable(::Stripe::Issuing::Authorization::CreateParams::VerificationData::ThreeDSecure)).void
|
693
698
|
}
|
694
699
|
def initialize(
|
695
700
|
address_line1_check: nil,
|
@@ -701,52 +706,52 @@ module Stripe
|
|
701
706
|
); end
|
702
707
|
end
|
703
708
|
# The total amount to attempt to authorize. This amount is in the provided currency, or defaults to the card's currency, and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
|
704
|
-
sig { returns(Integer) }
|
709
|
+
sig { returns(T.nilable(Integer)) }
|
705
710
|
attr_accessor :amount
|
706
711
|
# Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
|
707
|
-
sig { returns(::Stripe::Issuing::Authorization::CreateParams::AmountDetails) }
|
712
|
+
sig { returns(T.nilable(::Stripe::Issuing::Authorization::CreateParams::AmountDetails)) }
|
708
713
|
attr_accessor :amount_details
|
709
714
|
# How the card details were provided. Defaults to online.
|
710
|
-
sig { returns(String) }
|
715
|
+
sig { returns(T.nilable(String)) }
|
711
716
|
attr_accessor :authorization_method
|
712
717
|
# Card associated with this authorization.
|
713
718
|
sig { returns(String) }
|
714
719
|
attr_accessor :card
|
715
720
|
# The currency of the authorization. If not provided, defaults to the currency of the card. 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).
|
716
|
-
sig { returns(String) }
|
721
|
+
sig { returns(T.nilable(String)) }
|
717
722
|
attr_accessor :currency
|
718
723
|
# Specifies which fields in the response should be expanded.
|
719
|
-
sig { returns(T::Array[String]) }
|
724
|
+
sig { returns(T.nilable(T::Array[String])) }
|
720
725
|
attr_accessor :expand
|
721
726
|
# Fleet-specific information for authorizations using Fleet cards.
|
722
|
-
sig { returns(::Stripe::Issuing::Authorization::CreateParams::Fleet) }
|
727
|
+
sig { returns(T.nilable(::Stripe::Issuing::Authorization::CreateParams::Fleet)) }
|
723
728
|
attr_accessor :fleet
|
724
729
|
# Information about fuel that was purchased with this transaction.
|
725
|
-
sig { returns(::Stripe::Issuing::Authorization::CreateParams::Fuel) }
|
730
|
+
sig { returns(T.nilable(::Stripe::Issuing::Authorization::CreateParams::Fuel)) }
|
726
731
|
attr_accessor :fuel
|
727
732
|
# If set `true`, you may provide [amount](https://stripe.com/docs/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization.
|
728
|
-
sig { returns(T::Boolean) }
|
733
|
+
sig { returns(T.nilable(T::Boolean)) }
|
729
734
|
attr_accessor :is_amount_controllable
|
730
735
|
# The total amount to attempt to authorize. This amount is in the provided merchant currency, and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
|
731
|
-
sig { returns(Integer) }
|
736
|
+
sig { returns(T.nilable(Integer)) }
|
732
737
|
attr_accessor :merchant_amount
|
733
738
|
# The currency of the authorization. If not provided, defaults to the currency of the card. 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).
|
734
|
-
sig { returns(String) }
|
739
|
+
sig { returns(T.nilable(String)) }
|
735
740
|
attr_accessor :merchant_currency
|
736
741
|
# Details about the seller (grocery store, e-commerce website, etc.) where the card authorization happened.
|
737
|
-
sig { returns(::Stripe::Issuing::Authorization::CreateParams::MerchantData) }
|
742
|
+
sig { returns(T.nilable(::Stripe::Issuing::Authorization::CreateParams::MerchantData)) }
|
738
743
|
attr_accessor :merchant_data
|
739
744
|
# Details about the authorization, such as identifiers, set by the card network.
|
740
|
-
sig { returns(::Stripe::Issuing::Authorization::CreateParams::NetworkData) }
|
745
|
+
sig { returns(T.nilable(::Stripe::Issuing::Authorization::CreateParams::NetworkData)) }
|
741
746
|
attr_accessor :network_data
|
742
747
|
# Verifications that Stripe performed on information that the cardholder provided to the merchant.
|
743
|
-
sig { returns(::Stripe::Issuing::Authorization::CreateParams::VerificationData) }
|
748
|
+
sig { returns(T.nilable(::Stripe::Issuing::Authorization::CreateParams::VerificationData)) }
|
744
749
|
attr_accessor :verification_data
|
745
750
|
# The digital wallet used for this transaction. One of `apple_pay`, `google_pay`, or `samsung_pay`. Will populate as `null` when no digital wallet was utilized.
|
746
|
-
sig { returns(String) }
|
751
|
+
sig { returns(T.nilable(String)) }
|
747
752
|
attr_accessor :wallet
|
748
753
|
sig {
|
749
|
-
params(amount: Integer, amount_details: ::Stripe::Issuing::Authorization::CreateParams::AmountDetails, authorization_method: String, card: String, currency: String, expand: T::Array[String], fleet: ::Stripe::Issuing::Authorization::CreateParams::Fleet, fuel: ::Stripe::Issuing::Authorization::CreateParams::Fuel, is_amount_controllable: T::Boolean, merchant_amount: Integer, merchant_currency: String, merchant_data: ::Stripe::Issuing::Authorization::CreateParams::MerchantData, network_data: ::Stripe::Issuing::Authorization::CreateParams::NetworkData, verification_data: ::Stripe::Issuing::Authorization::CreateParams::VerificationData, wallet: String).void
|
754
|
+
params(amount: T.nilable(Integer), amount_details: T.nilable(::Stripe::Issuing::Authorization::CreateParams::AmountDetails), authorization_method: T.nilable(String), card: String, currency: T.nilable(String), expand: T.nilable(T::Array[String]), fleet: T.nilable(::Stripe::Issuing::Authorization::CreateParams::Fleet), fuel: T.nilable(::Stripe::Issuing::Authorization::CreateParams::Fuel), is_amount_controllable: T.nilable(T::Boolean), merchant_amount: T.nilable(Integer), merchant_currency: T.nilable(String), merchant_data: T.nilable(::Stripe::Issuing::Authorization::CreateParams::MerchantData), network_data: T.nilable(::Stripe::Issuing::Authorization::CreateParams::NetworkData), verification_data: T.nilable(::Stripe::Issuing::Authorization::CreateParams::VerificationData), wallet: T.nilable(String)).void
|
750
755
|
}
|
751
756
|
def initialize(
|
752
757
|
amount: nil,
|
@@ -771,22 +776,22 @@ module Stripe
|
|
771
776
|
class Fleet < Stripe::RequestParams
|
772
777
|
class CardholderPromptData < Stripe::RequestParams
|
773
778
|
# Driver ID.
|
774
|
-
sig { returns(String) }
|
779
|
+
sig { returns(T.nilable(String)) }
|
775
780
|
attr_accessor :driver_id
|
776
781
|
# Odometer reading.
|
777
|
-
sig { returns(Integer) }
|
782
|
+
sig { returns(T.nilable(Integer)) }
|
778
783
|
attr_accessor :odometer
|
779
784
|
# An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type.
|
780
|
-
sig { returns(String) }
|
785
|
+
sig { returns(T.nilable(String)) }
|
781
786
|
attr_accessor :unspecified_id
|
782
787
|
# User ID.
|
783
|
-
sig { returns(String) }
|
788
|
+
sig { returns(T.nilable(String)) }
|
784
789
|
attr_accessor :user_id
|
785
790
|
# Vehicle number.
|
786
|
-
sig { returns(String) }
|
791
|
+
sig { returns(T.nilable(String)) }
|
787
792
|
attr_accessor :vehicle_number
|
788
793
|
sig {
|
789
|
-
params(driver_id: String, odometer: Integer, unspecified_id: String, user_id: String, vehicle_number: String).void
|
794
|
+
params(driver_id: T.nilable(String), odometer: T.nilable(Integer), unspecified_id: T.nilable(String), user_id: T.nilable(String), vehicle_number: T.nilable(String)).void
|
790
795
|
}
|
791
796
|
def initialize(
|
792
797
|
driver_id: nil,
|
@@ -799,66 +804,68 @@ module Stripe
|
|
799
804
|
class ReportedBreakdown < Stripe::RequestParams
|
800
805
|
class Fuel < Stripe::RequestParams
|
801
806
|
# Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
|
802
|
-
sig { returns(String) }
|
807
|
+
sig { returns(T.nilable(String)) }
|
803
808
|
attr_accessor :gross_amount_decimal
|
804
|
-
sig { params(gross_amount_decimal: String).void }
|
809
|
+
sig { params(gross_amount_decimal: T.nilable(String)).void }
|
805
810
|
def initialize(gross_amount_decimal: nil); end
|
806
811
|
end
|
807
812
|
class NonFuel < Stripe::RequestParams
|
808
813
|
# Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
|
809
|
-
sig { returns(String) }
|
814
|
+
sig { returns(T.nilable(String)) }
|
810
815
|
attr_accessor :gross_amount_decimal
|
811
|
-
sig { params(gross_amount_decimal: String).void }
|
816
|
+
sig { params(gross_amount_decimal: T.nilable(String)).void }
|
812
817
|
def initialize(gross_amount_decimal: nil); end
|
813
818
|
end
|
814
819
|
class Tax < Stripe::RequestParams
|
815
820
|
# Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
816
|
-
sig { returns(String) }
|
821
|
+
sig { returns(T.nilable(String)) }
|
817
822
|
attr_accessor :local_amount_decimal
|
818
823
|
# Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
819
|
-
sig { returns(String) }
|
824
|
+
sig { returns(T.nilable(String)) }
|
820
825
|
attr_accessor :national_amount_decimal
|
821
|
-
sig {
|
826
|
+
sig {
|
827
|
+
params(local_amount_decimal: T.nilable(String), national_amount_decimal: T.nilable(String)).void
|
828
|
+
}
|
822
829
|
def initialize(local_amount_decimal: nil, national_amount_decimal: nil); end
|
823
830
|
end
|
824
831
|
# Breakdown of fuel portion of the purchase.
|
825
832
|
sig {
|
826
|
-
returns(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown::Fuel)
|
833
|
+
returns(T.nilable(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown::Fuel))
|
827
834
|
}
|
828
835
|
attr_accessor :fuel
|
829
836
|
# Breakdown of non-fuel portion of the purchase.
|
830
837
|
sig {
|
831
|
-
returns(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown::NonFuel)
|
838
|
+
returns(T.nilable(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown::NonFuel))
|
832
839
|
}
|
833
840
|
attr_accessor :non_fuel
|
834
841
|
# Information about tax included in this transaction.
|
835
842
|
sig {
|
836
|
-
returns(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown::Tax)
|
843
|
+
returns(T.nilable(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown::Tax))
|
837
844
|
}
|
838
845
|
attr_accessor :tax
|
839
846
|
sig {
|
840
|
-
params(fuel: ::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown::Fuel, non_fuel: ::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown::NonFuel, tax: ::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown::Tax).void
|
847
|
+
params(fuel: T.nilable(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown::Fuel), non_fuel: T.nilable(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown::NonFuel), tax: T.nilable(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown::Tax)).void
|
841
848
|
}
|
842
849
|
def initialize(fuel: nil, non_fuel: nil, tax: nil); end
|
843
850
|
end
|
844
851
|
# Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
|
845
852
|
sig {
|
846
|
-
returns(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fleet::CardholderPromptData)
|
853
|
+
returns(T.nilable(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fleet::CardholderPromptData))
|
847
854
|
}
|
848
855
|
attr_accessor :cardholder_prompt_data
|
849
856
|
# The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
|
850
|
-
sig { returns(String) }
|
857
|
+
sig { returns(T.nilable(String)) }
|
851
858
|
attr_accessor :purchase_type
|
852
859
|
# More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
|
853
860
|
sig {
|
854
|
-
returns(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown)
|
861
|
+
returns(T.nilable(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown))
|
855
862
|
}
|
856
863
|
attr_accessor :reported_breakdown
|
857
864
|
# The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
|
858
|
-
sig { returns(String) }
|
865
|
+
sig { returns(T.nilable(String)) }
|
859
866
|
attr_accessor :service_type
|
860
867
|
sig {
|
861
|
-
params(cardholder_prompt_data: ::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fleet::CardholderPromptData, purchase_type: String, reported_breakdown: ::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown, service_type: String).void
|
868
|
+
params(cardholder_prompt_data: T.nilable(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fleet::CardholderPromptData), purchase_type: T.nilable(String), reported_breakdown: T.nilable(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown), service_type: T.nilable(String)).void
|
862
869
|
}
|
863
870
|
def initialize(
|
864
871
|
cardholder_prompt_data: nil,
|
@@ -870,25 +877,25 @@ module Stripe
|
|
870
877
|
class Flight < Stripe::RequestParams
|
871
878
|
class Segment < Stripe::RequestParams
|
872
879
|
# The three-letter IATA airport code of the flight's destination.
|
873
|
-
sig { returns(String) }
|
880
|
+
sig { returns(T.nilable(String)) }
|
874
881
|
attr_accessor :arrival_airport_code
|
875
882
|
# The airline carrier code.
|
876
|
-
sig { returns(String) }
|
883
|
+
sig { returns(T.nilable(String)) }
|
877
884
|
attr_accessor :carrier
|
878
885
|
# The three-letter IATA airport code that the flight departed from.
|
879
|
-
sig { returns(String) }
|
886
|
+
sig { returns(T.nilable(String)) }
|
880
887
|
attr_accessor :departure_airport_code
|
881
888
|
# The flight number.
|
882
|
-
sig { returns(String) }
|
889
|
+
sig { returns(T.nilable(String)) }
|
883
890
|
attr_accessor :flight_number
|
884
891
|
# The flight's service class.
|
885
|
-
sig { returns(String) }
|
892
|
+
sig { returns(T.nilable(String)) }
|
886
893
|
attr_accessor :service_class
|
887
894
|
# Whether a stopover is allowed on this flight.
|
888
|
-
sig { returns(T::Boolean) }
|
895
|
+
sig { returns(T.nilable(T::Boolean)) }
|
889
896
|
attr_accessor :stopover_allowed
|
890
897
|
sig {
|
891
|
-
params(arrival_airport_code: String, carrier: String, departure_airport_code: String, flight_number: String, service_class: String, stopover_allowed: T::Boolean).void
|
898
|
+
params(arrival_airport_code: T.nilable(String), carrier: T.nilable(String), departure_airport_code: T.nilable(String), flight_number: T.nilable(String), service_class: T.nilable(String), stopover_allowed: T.nilable(T::Boolean)).void
|
892
899
|
}
|
893
900
|
def initialize(
|
894
901
|
arrival_airport_code: nil,
|
@@ -900,24 +907,24 @@ module Stripe
|
|
900
907
|
); end
|
901
908
|
end
|
902
909
|
# The time that the flight departed.
|
903
|
-
sig { returns(Integer) }
|
910
|
+
sig { returns(T.nilable(Integer)) }
|
904
911
|
attr_accessor :departure_at
|
905
912
|
# The name of the passenger.
|
906
|
-
sig { returns(String) }
|
913
|
+
sig { returns(T.nilable(String)) }
|
907
914
|
attr_accessor :passenger_name
|
908
915
|
# Whether the ticket is refundable.
|
909
|
-
sig { returns(T::Boolean) }
|
916
|
+
sig { returns(T.nilable(T::Boolean)) }
|
910
917
|
attr_accessor :refundable
|
911
918
|
# The legs of the trip.
|
912
919
|
sig {
|
913
|
-
returns(T::Array[::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Flight::Segment])
|
920
|
+
returns(T.nilable(T::Array[::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Flight::Segment]))
|
914
921
|
}
|
915
922
|
attr_accessor :segments
|
916
923
|
# The travel agency that issued the ticket.
|
917
|
-
sig { returns(String) }
|
924
|
+
sig { returns(T.nilable(String)) }
|
918
925
|
attr_accessor :travel_agency
|
919
926
|
sig {
|
920
|
-
params(departure_at: Integer, passenger_name: String, refundable: T::Boolean, segments: T::Array[::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Flight::Segment], travel_agency: String).void
|
927
|
+
params(departure_at: T.nilable(Integer), passenger_name: T.nilable(String), refundable: T.nilable(T::Boolean), segments: T.nilable(T::Array[::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Flight::Segment]), travel_agency: T.nilable(String)).void
|
921
928
|
}
|
922
929
|
def initialize(
|
923
930
|
departure_at: nil,
|
@@ -929,22 +936,22 @@ module Stripe
|
|
929
936
|
end
|
930
937
|
class Fuel < Stripe::RequestParams
|
931
938
|
# [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.
|
932
|
-
sig { returns(String) }
|
939
|
+
sig { returns(T.nilable(String)) }
|
933
940
|
attr_accessor :industry_product_code
|
934
941
|
# The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
|
935
|
-
sig { returns(String) }
|
942
|
+
sig { returns(T.nilable(String)) }
|
936
943
|
attr_accessor :quantity_decimal
|
937
944
|
# The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
|
938
|
-
sig { returns(String) }
|
945
|
+
sig { returns(T.nilable(String)) }
|
939
946
|
attr_accessor :type
|
940
947
|
# The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
|
941
|
-
sig { returns(String) }
|
948
|
+
sig { returns(T.nilable(String)) }
|
942
949
|
attr_accessor :unit
|
943
950
|
# The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
|
944
|
-
sig { returns(String) }
|
951
|
+
sig { returns(T.nilable(String)) }
|
945
952
|
attr_accessor :unit_cost_decimal
|
946
953
|
sig {
|
947
|
-
params(industry_product_code: String, quantity_decimal: String, type: String, unit: String, unit_cost_decimal: String).void
|
954
|
+
params(industry_product_code: T.nilable(String), quantity_decimal: T.nilable(String), type: T.nilable(String), unit: T.nilable(String), unit_cost_decimal: T.nilable(String)).void
|
948
955
|
}
|
949
956
|
def initialize(
|
950
957
|
industry_product_code: nil,
|
@@ -956,54 +963,62 @@ module Stripe
|
|
956
963
|
end
|
957
964
|
class Lodging < Stripe::RequestParams
|
958
965
|
# The time of checking into the lodging.
|
959
|
-
sig { returns(Integer) }
|
966
|
+
sig { returns(T.nilable(Integer)) }
|
960
967
|
attr_accessor :check_in_at
|
961
968
|
# The number of nights stayed at the lodging.
|
962
|
-
sig { returns(Integer) }
|
969
|
+
sig { returns(T.nilable(Integer)) }
|
963
970
|
attr_accessor :nights
|
964
|
-
sig { params(check_in_at: Integer, nights: Integer).void }
|
971
|
+
sig { params(check_in_at: T.nilable(Integer), nights: T.nilable(Integer)).void }
|
965
972
|
def initialize(check_in_at: nil, nights: nil); end
|
966
973
|
end
|
967
974
|
class Receipt < Stripe::RequestParams
|
968
975
|
# Attribute for param field description
|
969
|
-
sig { returns(String) }
|
976
|
+
sig { returns(T.nilable(String)) }
|
970
977
|
attr_accessor :description
|
971
978
|
# Attribute for param field quantity
|
972
|
-
sig { returns(String) }
|
979
|
+
sig { returns(T.nilable(String)) }
|
973
980
|
attr_accessor :quantity
|
974
981
|
# Attribute for param field total
|
975
|
-
sig { returns(Integer) }
|
982
|
+
sig { returns(T.nilable(Integer)) }
|
976
983
|
attr_accessor :total
|
977
984
|
# Attribute for param field unit_cost
|
978
|
-
sig { returns(Integer) }
|
985
|
+
sig { returns(T.nilable(Integer)) }
|
979
986
|
attr_accessor :unit_cost
|
980
987
|
sig {
|
981
|
-
params(description: String, quantity: String, total: Integer, unit_cost: Integer).void
|
988
|
+
params(description: T.nilable(String), quantity: T.nilable(String), total: T.nilable(Integer), unit_cost: T.nilable(Integer)).void
|
982
989
|
}
|
983
990
|
def initialize(description: nil, quantity: nil, total: nil, unit_cost: nil); end
|
984
991
|
end
|
985
992
|
# Fleet-specific information for transactions using Fleet cards.
|
986
|
-
sig {
|
993
|
+
sig {
|
994
|
+
returns(T.nilable(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fleet))
|
995
|
+
}
|
987
996
|
attr_accessor :fleet
|
988
997
|
# Information about the flight that was purchased with this transaction.
|
989
|
-
sig {
|
998
|
+
sig {
|
999
|
+
returns(T.nilable(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Flight))
|
1000
|
+
}
|
990
1001
|
attr_accessor :flight
|
991
1002
|
# Information about fuel that was purchased with this transaction.
|
992
|
-
sig {
|
1003
|
+
sig {
|
1004
|
+
returns(T.nilable(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fuel))
|
1005
|
+
}
|
993
1006
|
attr_accessor :fuel
|
994
1007
|
# Information about lodging that was purchased with this transaction.
|
995
|
-
sig {
|
1008
|
+
sig {
|
1009
|
+
returns(T.nilable(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Lodging))
|
1010
|
+
}
|
996
1011
|
attr_accessor :lodging
|
997
1012
|
# The line items in the purchase.
|
998
1013
|
sig {
|
999
|
-
returns(T::Array[::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Receipt])
|
1014
|
+
returns(T.nilable(T::Array[::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Receipt]))
|
1000
1015
|
}
|
1001
1016
|
attr_accessor :receipt
|
1002
1017
|
# A merchant-specific order number.
|
1003
|
-
sig { returns(String) }
|
1018
|
+
sig { returns(T.nilable(String)) }
|
1004
1019
|
attr_accessor :reference
|
1005
1020
|
sig {
|
1006
|
-
params(fleet: ::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fleet, flight: ::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Flight, fuel: ::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fuel, lodging: ::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Lodging, receipt: T::Array[::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Receipt], reference: String).void
|
1021
|
+
params(fleet: T.nilable(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fleet), flight: T.nilable(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Flight), fuel: T.nilable(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Fuel), lodging: T.nilable(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Lodging), receipt: T.nilable(T::Array[::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails::Receipt]), reference: T.nilable(String)).void
|
1007
1022
|
}
|
1008
1023
|
def initialize(
|
1009
1024
|
fleet: nil,
|
@@ -1015,19 +1030,19 @@ module Stripe
|
|
1015
1030
|
); end
|
1016
1031
|
end
|
1017
1032
|
# The amount to capture from the authorization. If not provided, the full amount of the authorization will be captured. This amount is in the authorization currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
|
1018
|
-
sig { returns(Integer) }
|
1033
|
+
sig { returns(T.nilable(Integer)) }
|
1019
1034
|
attr_accessor :capture_amount
|
1020
1035
|
# Whether to close the authorization after capture. Defaults to true. Set to false to enable multi-capture flows.
|
1021
|
-
sig { returns(T::Boolean) }
|
1036
|
+
sig { returns(T.nilable(T::Boolean)) }
|
1022
1037
|
attr_accessor :close_authorization
|
1023
1038
|
# Specifies which fields in the response should be expanded.
|
1024
|
-
sig { returns(T::Array[String]) }
|
1039
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1025
1040
|
attr_accessor :expand
|
1026
1041
|
# Additional purchase information that is optionally provided by the merchant.
|
1027
|
-
sig { returns(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails) }
|
1042
|
+
sig { returns(T.nilable(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails)) }
|
1028
1043
|
attr_accessor :purchase_details
|
1029
1044
|
sig {
|
1030
|
-
params(capture_amount: Integer, close_authorization: T::Boolean, expand: T::Array[String], purchase_details: ::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails).void
|
1045
|
+
params(capture_amount: T.nilable(Integer), close_authorization: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), purchase_details: T.nilable(::Stripe::Issuing::Authorization::CaptureParams::PurchaseDetails)).void
|
1031
1046
|
}
|
1032
1047
|
def initialize(
|
1033
1048
|
capture_amount: nil,
|
@@ -1038,31 +1053,31 @@ module Stripe
|
|
1038
1053
|
end
|
1039
1054
|
class ExpireParams < Stripe::RequestParams
|
1040
1055
|
# Specifies which fields in the response should be expanded.
|
1041
|
-
sig { returns(T::Array[String]) }
|
1056
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1042
1057
|
attr_accessor :expand
|
1043
|
-
sig { params(expand: T::Array[String]).void }
|
1058
|
+
sig { params(expand: T.nilable(T::Array[String])).void }
|
1044
1059
|
def initialize(expand: nil); end
|
1045
1060
|
end
|
1046
1061
|
class FinalizeAmountParams < Stripe::RequestParams
|
1047
1062
|
class Fleet < Stripe::RequestParams
|
1048
1063
|
class CardholderPromptData < Stripe::RequestParams
|
1049
1064
|
# Driver ID.
|
1050
|
-
sig { returns(String) }
|
1065
|
+
sig { returns(T.nilable(String)) }
|
1051
1066
|
attr_accessor :driver_id
|
1052
1067
|
# Odometer reading.
|
1053
|
-
sig { returns(Integer) }
|
1068
|
+
sig { returns(T.nilable(Integer)) }
|
1054
1069
|
attr_accessor :odometer
|
1055
1070
|
# An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type.
|
1056
|
-
sig { returns(String) }
|
1071
|
+
sig { returns(T.nilable(String)) }
|
1057
1072
|
attr_accessor :unspecified_id
|
1058
1073
|
# User ID.
|
1059
|
-
sig { returns(String) }
|
1074
|
+
sig { returns(T.nilable(String)) }
|
1060
1075
|
attr_accessor :user_id
|
1061
1076
|
# Vehicle number.
|
1062
|
-
sig { returns(String) }
|
1077
|
+
sig { returns(T.nilable(String)) }
|
1063
1078
|
attr_accessor :vehicle_number
|
1064
1079
|
sig {
|
1065
|
-
params(driver_id: String, odometer: Integer, unspecified_id: String, user_id: String, vehicle_number: String).void
|
1080
|
+
params(driver_id: T.nilable(String), odometer: T.nilable(Integer), unspecified_id: T.nilable(String), user_id: T.nilable(String), vehicle_number: T.nilable(String)).void
|
1066
1081
|
}
|
1067
1082
|
def initialize(
|
1068
1083
|
driver_id: nil,
|
@@ -1075,66 +1090,68 @@ module Stripe
|
|
1075
1090
|
class ReportedBreakdown < Stripe::RequestParams
|
1076
1091
|
class Fuel < Stripe::RequestParams
|
1077
1092
|
# Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
|
1078
|
-
sig { returns(String) }
|
1093
|
+
sig { returns(T.nilable(String)) }
|
1079
1094
|
attr_accessor :gross_amount_decimal
|
1080
|
-
sig { params(gross_amount_decimal: String).void }
|
1095
|
+
sig { params(gross_amount_decimal: T.nilable(String)).void }
|
1081
1096
|
def initialize(gross_amount_decimal: nil); end
|
1082
1097
|
end
|
1083
1098
|
class NonFuel < Stripe::RequestParams
|
1084
1099
|
# Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
|
1085
|
-
sig { returns(String) }
|
1100
|
+
sig { returns(T.nilable(String)) }
|
1086
1101
|
attr_accessor :gross_amount_decimal
|
1087
|
-
sig { params(gross_amount_decimal: String).void }
|
1102
|
+
sig { params(gross_amount_decimal: T.nilable(String)).void }
|
1088
1103
|
def initialize(gross_amount_decimal: nil); end
|
1089
1104
|
end
|
1090
1105
|
class Tax < Stripe::RequestParams
|
1091
1106
|
# Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
1092
|
-
sig { returns(String) }
|
1107
|
+
sig { returns(T.nilable(String)) }
|
1093
1108
|
attr_accessor :local_amount_decimal
|
1094
1109
|
# Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
1095
|
-
sig { returns(String) }
|
1110
|
+
sig { returns(T.nilable(String)) }
|
1096
1111
|
attr_accessor :national_amount_decimal
|
1097
|
-
sig {
|
1112
|
+
sig {
|
1113
|
+
params(local_amount_decimal: T.nilable(String), national_amount_decimal: T.nilable(String)).void
|
1114
|
+
}
|
1098
1115
|
def initialize(local_amount_decimal: nil, national_amount_decimal: nil); end
|
1099
1116
|
end
|
1100
1117
|
# Breakdown of fuel portion of the purchase.
|
1101
1118
|
sig {
|
1102
|
-
returns(::Stripe::Issuing::Authorization::FinalizeAmountParams::Fleet::ReportedBreakdown::Fuel)
|
1119
|
+
returns(T.nilable(::Stripe::Issuing::Authorization::FinalizeAmountParams::Fleet::ReportedBreakdown::Fuel))
|
1103
1120
|
}
|
1104
1121
|
attr_accessor :fuel
|
1105
1122
|
# Breakdown of non-fuel portion of the purchase.
|
1106
1123
|
sig {
|
1107
|
-
returns(::Stripe::Issuing::Authorization::FinalizeAmountParams::Fleet::ReportedBreakdown::NonFuel)
|
1124
|
+
returns(T.nilable(::Stripe::Issuing::Authorization::FinalizeAmountParams::Fleet::ReportedBreakdown::NonFuel))
|
1108
1125
|
}
|
1109
1126
|
attr_accessor :non_fuel
|
1110
1127
|
# Information about tax included in this transaction.
|
1111
1128
|
sig {
|
1112
|
-
returns(::Stripe::Issuing::Authorization::FinalizeAmountParams::Fleet::ReportedBreakdown::Tax)
|
1129
|
+
returns(T.nilable(::Stripe::Issuing::Authorization::FinalizeAmountParams::Fleet::ReportedBreakdown::Tax))
|
1113
1130
|
}
|
1114
1131
|
attr_accessor :tax
|
1115
1132
|
sig {
|
1116
|
-
params(fuel: ::Stripe::Issuing::Authorization::FinalizeAmountParams::Fleet::ReportedBreakdown::Fuel, non_fuel: ::Stripe::Issuing::Authorization::FinalizeAmountParams::Fleet::ReportedBreakdown::NonFuel, tax: ::Stripe::Issuing::Authorization::FinalizeAmountParams::Fleet::ReportedBreakdown::Tax).void
|
1133
|
+
params(fuel: T.nilable(::Stripe::Issuing::Authorization::FinalizeAmountParams::Fleet::ReportedBreakdown::Fuel), non_fuel: T.nilable(::Stripe::Issuing::Authorization::FinalizeAmountParams::Fleet::ReportedBreakdown::NonFuel), tax: T.nilable(::Stripe::Issuing::Authorization::FinalizeAmountParams::Fleet::ReportedBreakdown::Tax)).void
|
1117
1134
|
}
|
1118
1135
|
def initialize(fuel: nil, non_fuel: nil, tax: nil); end
|
1119
1136
|
end
|
1120
1137
|
# Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
|
1121
1138
|
sig {
|
1122
|
-
returns(::Stripe::Issuing::Authorization::FinalizeAmountParams::Fleet::CardholderPromptData)
|
1139
|
+
returns(T.nilable(::Stripe::Issuing::Authorization::FinalizeAmountParams::Fleet::CardholderPromptData))
|
1123
1140
|
}
|
1124
1141
|
attr_accessor :cardholder_prompt_data
|
1125
1142
|
# The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
|
1126
|
-
sig { returns(String) }
|
1143
|
+
sig { returns(T.nilable(String)) }
|
1127
1144
|
attr_accessor :purchase_type
|
1128
1145
|
# More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
|
1129
1146
|
sig {
|
1130
|
-
returns(::Stripe::Issuing::Authorization::FinalizeAmountParams::Fleet::ReportedBreakdown)
|
1147
|
+
returns(T.nilable(::Stripe::Issuing::Authorization::FinalizeAmountParams::Fleet::ReportedBreakdown))
|
1131
1148
|
}
|
1132
1149
|
attr_accessor :reported_breakdown
|
1133
1150
|
# The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
|
1134
|
-
sig { returns(String) }
|
1151
|
+
sig { returns(T.nilable(String)) }
|
1135
1152
|
attr_accessor :service_type
|
1136
1153
|
sig {
|
1137
|
-
params(cardholder_prompt_data: ::Stripe::Issuing::Authorization::FinalizeAmountParams::Fleet::CardholderPromptData, purchase_type: String, reported_breakdown: ::Stripe::Issuing::Authorization::FinalizeAmountParams::Fleet::ReportedBreakdown, service_type: String).void
|
1154
|
+
params(cardholder_prompt_data: T.nilable(::Stripe::Issuing::Authorization::FinalizeAmountParams::Fleet::CardholderPromptData), purchase_type: T.nilable(String), reported_breakdown: T.nilable(::Stripe::Issuing::Authorization::FinalizeAmountParams::Fleet::ReportedBreakdown), service_type: T.nilable(String)).void
|
1138
1155
|
}
|
1139
1156
|
def initialize(
|
1140
1157
|
cardholder_prompt_data: nil,
|
@@ -1145,22 +1162,22 @@ module Stripe
|
|
1145
1162
|
end
|
1146
1163
|
class Fuel < Stripe::RequestParams
|
1147
1164
|
# [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.
|
1148
|
-
sig { returns(String) }
|
1165
|
+
sig { returns(T.nilable(String)) }
|
1149
1166
|
attr_accessor :industry_product_code
|
1150
1167
|
# The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
|
1151
|
-
sig { returns(String) }
|
1168
|
+
sig { returns(T.nilable(String)) }
|
1152
1169
|
attr_accessor :quantity_decimal
|
1153
1170
|
# The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
|
1154
|
-
sig { returns(String) }
|
1171
|
+
sig { returns(T.nilable(String)) }
|
1155
1172
|
attr_accessor :type
|
1156
1173
|
# The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
|
1157
|
-
sig { returns(String) }
|
1174
|
+
sig { returns(T.nilable(String)) }
|
1158
1175
|
attr_accessor :unit
|
1159
1176
|
# The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
|
1160
|
-
sig { returns(String) }
|
1177
|
+
sig { returns(T.nilable(String)) }
|
1161
1178
|
attr_accessor :unit_cost_decimal
|
1162
1179
|
sig {
|
1163
|
-
params(industry_product_code: String, quantity_decimal: String, type: String, unit: String, unit_cost_decimal: String).void
|
1180
|
+
params(industry_product_code: T.nilable(String), quantity_decimal: T.nilable(String), type: T.nilable(String), unit: T.nilable(String), unit_cost_decimal: T.nilable(String)).void
|
1164
1181
|
}
|
1165
1182
|
def initialize(
|
1166
1183
|
industry_product_code: nil,
|
@@ -1171,19 +1188,19 @@ module Stripe
|
|
1171
1188
|
); end
|
1172
1189
|
end
|
1173
1190
|
# Specifies which fields in the response should be expanded.
|
1174
|
-
sig { returns(T::Array[String]) }
|
1191
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1175
1192
|
attr_accessor :expand
|
1176
1193
|
# The final authorization amount that will be captured by the merchant. This amount is in the authorization currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
|
1177
1194
|
sig { returns(Integer) }
|
1178
1195
|
attr_accessor :final_amount
|
1179
1196
|
# Fleet-specific information for authorizations using Fleet cards.
|
1180
|
-
sig { returns(::Stripe::Issuing::Authorization::FinalizeAmountParams::Fleet) }
|
1197
|
+
sig { returns(T.nilable(::Stripe::Issuing::Authorization::FinalizeAmountParams::Fleet)) }
|
1181
1198
|
attr_accessor :fleet
|
1182
1199
|
# Information about fuel that was purchased with this transaction.
|
1183
|
-
sig { returns(::Stripe::Issuing::Authorization::FinalizeAmountParams::Fuel) }
|
1200
|
+
sig { returns(T.nilable(::Stripe::Issuing::Authorization::FinalizeAmountParams::Fuel)) }
|
1184
1201
|
attr_accessor :fuel
|
1185
1202
|
sig {
|
1186
|
-
params(expand: T::Array[String], final_amount: Integer, fleet: ::Stripe::Issuing::Authorization::FinalizeAmountParams::Fleet, fuel: ::Stripe::Issuing::Authorization::FinalizeAmountParams::Fuel).void
|
1203
|
+
params(expand: T.nilable(T::Array[String]), final_amount: Integer, fleet: T.nilable(::Stripe::Issuing::Authorization::FinalizeAmountParams::Fleet), fuel: T.nilable(::Stripe::Issuing::Authorization::FinalizeAmountParams::Fuel)).void
|
1187
1204
|
}
|
1188
1205
|
def initialize(expand: nil, final_amount: nil, fleet: nil, fuel: nil); end
|
1189
1206
|
end
|
@@ -1192,34 +1209,34 @@ module Stripe
|
|
1192
1209
|
sig { returns(T::Boolean) }
|
1193
1210
|
attr_accessor :confirmed
|
1194
1211
|
# Specifies which fields in the response should be expanded.
|
1195
|
-
sig { returns(T::Array[String]) }
|
1212
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1196
1213
|
attr_accessor :expand
|
1197
|
-
sig { params(confirmed: T::Boolean, expand: T::Array[String]).void }
|
1214
|
+
sig { params(confirmed: T::Boolean, expand: T.nilable(T::Array[String])).void }
|
1198
1215
|
def initialize(confirmed: nil, expand: nil); end
|
1199
1216
|
end
|
1200
1217
|
class IncrementParams < Stripe::RequestParams
|
1201
1218
|
# Specifies which fields in the response should be expanded.
|
1202
|
-
sig { returns(T::Array[String]) }
|
1219
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1203
1220
|
attr_accessor :expand
|
1204
1221
|
# The amount to increment the authorization by. This amount is in the authorization currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
|
1205
1222
|
sig { returns(Integer) }
|
1206
1223
|
attr_accessor :increment_amount
|
1207
1224
|
# If set `true`, you may provide [amount](https://stripe.com/docs/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization.
|
1208
|
-
sig { returns(T::Boolean) }
|
1225
|
+
sig { returns(T.nilable(T::Boolean)) }
|
1209
1226
|
attr_accessor :is_amount_controllable
|
1210
1227
|
sig {
|
1211
|
-
params(expand: T::Array[String], increment_amount: Integer, is_amount_controllable: T::Boolean).void
|
1228
|
+
params(expand: T.nilable(T::Array[String]), increment_amount: Integer, is_amount_controllable: T.nilable(T::Boolean)).void
|
1212
1229
|
}
|
1213
1230
|
def initialize(expand: nil, increment_amount: nil, is_amount_controllable: nil); end
|
1214
1231
|
end
|
1215
1232
|
class ReverseParams < Stripe::RequestParams
|
1216
1233
|
# Specifies which fields in the response should be expanded.
|
1217
|
-
sig { returns(T::Array[String]) }
|
1234
|
+
sig { returns(T.nilable(T::Array[String])) }
|
1218
1235
|
attr_accessor :expand
|
1219
1236
|
# The amount to reverse from the authorization. If not provided, the full amount of the authorization will be reversed. This amount is in the authorization currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
|
1220
|
-
sig { returns(Integer) }
|
1237
|
+
sig { returns(T.nilable(Integer)) }
|
1221
1238
|
attr_accessor :reverse_amount
|
1222
|
-
sig { params(expand: T::Array[String], reverse_amount: Integer).void }
|
1239
|
+
sig { params(expand: T.nilable(T::Array[String]), reverse_amount: T.nilable(Integer)).void }
|
1223
1240
|
def initialize(expand: nil, reverse_amount: nil); end
|
1224
1241
|
end
|
1225
1242
|
# [Deprecated] Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations) flow.
|