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
@@ -9,33 +9,33 @@ module Stripe
|
|
9
9
|
class CreateParams < Stripe::RequestParams
|
10
10
|
class AmountDetails < Stripe::RequestParams
|
11
11
|
# The ATM withdrawal fee.
|
12
|
-
sig { returns(Integer) }
|
12
|
+
sig { returns(T.nilable(Integer)) }
|
13
13
|
attr_accessor :atm_fee
|
14
14
|
# The amount of cash requested by the cardholder.
|
15
|
-
sig { returns(Integer) }
|
15
|
+
sig { returns(T.nilable(Integer)) }
|
16
16
|
attr_accessor :cashback_amount
|
17
|
-
sig { params(atm_fee: Integer, cashback_amount: Integer).void }
|
17
|
+
sig { params(atm_fee: T.nilable(Integer), cashback_amount: T.nilable(Integer)).void }
|
18
18
|
def initialize(atm_fee: nil, cashback_amount: nil); end
|
19
19
|
end
|
20
20
|
class Fleet < Stripe::RequestParams
|
21
21
|
class CardholderPromptData < Stripe::RequestParams
|
22
22
|
# Driver ID.
|
23
|
-
sig { returns(String) }
|
23
|
+
sig { returns(T.nilable(String)) }
|
24
24
|
attr_accessor :driver_id
|
25
25
|
# Odometer reading.
|
26
|
-
sig { returns(Integer) }
|
26
|
+
sig { returns(T.nilable(Integer)) }
|
27
27
|
attr_accessor :odometer
|
28
28
|
# 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.
|
29
|
-
sig { returns(String) }
|
29
|
+
sig { returns(T.nilable(String)) }
|
30
30
|
attr_accessor :unspecified_id
|
31
31
|
# User ID.
|
32
|
-
sig { returns(String) }
|
32
|
+
sig { returns(T.nilable(String)) }
|
33
33
|
attr_accessor :user_id
|
34
34
|
# Vehicle number.
|
35
|
-
sig { returns(String) }
|
35
|
+
sig { returns(T.nilable(String)) }
|
36
36
|
attr_accessor :vehicle_number
|
37
37
|
sig {
|
38
|
-
params(driver_id: String, odometer: Integer, unspecified_id: String, user_id: String, vehicle_number: String).void
|
38
|
+
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
|
39
39
|
}
|
40
40
|
def initialize(
|
41
41
|
driver_id: nil,
|
@@ -48,66 +48,68 @@ module Stripe
|
|
48
48
|
class ReportedBreakdown < Stripe::RequestParams
|
49
49
|
class Fuel < Stripe::RequestParams
|
50
50
|
# Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
|
51
|
-
sig { returns(String) }
|
51
|
+
sig { returns(T.nilable(String)) }
|
52
52
|
attr_accessor :gross_amount_decimal
|
53
|
-
sig { params(gross_amount_decimal: String).void }
|
53
|
+
sig { params(gross_amount_decimal: T.nilable(String)).void }
|
54
54
|
def initialize(gross_amount_decimal: nil); end
|
55
55
|
end
|
56
56
|
class NonFuel < Stripe::RequestParams
|
57
57
|
# Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
|
58
|
-
sig { returns(String) }
|
58
|
+
sig { returns(T.nilable(String)) }
|
59
59
|
attr_accessor :gross_amount_decimal
|
60
|
-
sig { params(gross_amount_decimal: String).void }
|
60
|
+
sig { params(gross_amount_decimal: T.nilable(String)).void }
|
61
61
|
def initialize(gross_amount_decimal: nil); end
|
62
62
|
end
|
63
63
|
class Tax < Stripe::RequestParams
|
64
64
|
# Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
65
|
-
sig { returns(String) }
|
65
|
+
sig { returns(T.nilable(String)) }
|
66
66
|
attr_accessor :local_amount_decimal
|
67
67
|
# Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
68
|
-
sig { returns(String) }
|
68
|
+
sig { returns(T.nilable(String)) }
|
69
69
|
attr_accessor :national_amount_decimal
|
70
|
-
sig {
|
70
|
+
sig {
|
71
|
+
params(local_amount_decimal: T.nilable(String), national_amount_decimal: T.nilable(String)).void
|
72
|
+
}
|
71
73
|
def initialize(local_amount_decimal: nil, national_amount_decimal: nil); end
|
72
74
|
end
|
73
75
|
# Breakdown of fuel portion of the purchase.
|
74
76
|
sig {
|
75
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fleet::ReportedBreakdown::Fuel)
|
77
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fleet::ReportedBreakdown::Fuel))
|
76
78
|
}
|
77
79
|
attr_accessor :fuel
|
78
80
|
# Breakdown of non-fuel portion of the purchase.
|
79
81
|
sig {
|
80
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fleet::ReportedBreakdown::NonFuel)
|
82
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fleet::ReportedBreakdown::NonFuel))
|
81
83
|
}
|
82
84
|
attr_accessor :non_fuel
|
83
85
|
# Information about tax included in this transaction.
|
84
86
|
sig {
|
85
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fleet::ReportedBreakdown::Tax)
|
87
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fleet::ReportedBreakdown::Tax))
|
86
88
|
}
|
87
89
|
attr_accessor :tax
|
88
90
|
sig {
|
89
|
-
params(fuel: ::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fleet::ReportedBreakdown::Fuel, non_fuel: ::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fleet::ReportedBreakdown::NonFuel, tax: ::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fleet::ReportedBreakdown::Tax).void
|
91
|
+
params(fuel: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fleet::ReportedBreakdown::Fuel), non_fuel: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fleet::ReportedBreakdown::NonFuel), tax: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fleet::ReportedBreakdown::Tax)).void
|
90
92
|
}
|
91
93
|
def initialize(fuel: nil, non_fuel: nil, tax: nil); end
|
92
94
|
end
|
93
95
|
# 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.
|
94
96
|
sig {
|
95
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fleet::CardholderPromptData)
|
97
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fleet::CardholderPromptData))
|
96
98
|
}
|
97
99
|
attr_accessor :cardholder_prompt_data
|
98
100
|
# The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
|
99
|
-
sig { returns(String) }
|
101
|
+
sig { returns(T.nilable(String)) }
|
100
102
|
attr_accessor :purchase_type
|
101
103
|
# More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
|
102
104
|
sig {
|
103
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fleet::ReportedBreakdown)
|
105
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fleet::ReportedBreakdown))
|
104
106
|
}
|
105
107
|
attr_accessor :reported_breakdown
|
106
108
|
# The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
|
107
|
-
sig { returns(String) }
|
109
|
+
sig { returns(T.nilable(String)) }
|
108
110
|
attr_accessor :service_type
|
109
111
|
sig {
|
110
|
-
params(cardholder_prompt_data: ::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fleet::CardholderPromptData, purchase_type: String, reported_breakdown: ::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fleet::ReportedBreakdown, service_type: String).void
|
112
|
+
params(cardholder_prompt_data: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fleet::CardholderPromptData), purchase_type: T.nilable(String), reported_breakdown: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fleet::ReportedBreakdown), service_type: T.nilable(String)).void
|
111
113
|
}
|
112
114
|
def initialize(
|
113
115
|
cardholder_prompt_data: nil,
|
@@ -118,22 +120,22 @@ module Stripe
|
|
118
120
|
end
|
119
121
|
class Fuel < Stripe::RequestParams
|
120
122
|
# [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.
|
121
|
-
sig { returns(String) }
|
123
|
+
sig { returns(T.nilable(String)) }
|
122
124
|
attr_accessor :industry_product_code
|
123
125
|
# The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
|
124
|
-
sig { returns(String) }
|
126
|
+
sig { returns(T.nilable(String)) }
|
125
127
|
attr_accessor :quantity_decimal
|
126
128
|
# The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
|
127
|
-
sig { returns(String) }
|
129
|
+
sig { returns(T.nilable(String)) }
|
128
130
|
attr_accessor :type
|
129
131
|
# The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
|
130
|
-
sig { returns(String) }
|
132
|
+
sig { returns(T.nilable(String)) }
|
131
133
|
attr_accessor :unit
|
132
134
|
# The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
|
133
|
-
sig { returns(String) }
|
135
|
+
sig { returns(T.nilable(String)) }
|
134
136
|
attr_accessor :unit_cost_decimal
|
135
137
|
sig {
|
136
|
-
params(industry_product_code: String, quantity_decimal: String, type: String, unit: String, unit_cost_decimal: String).void
|
138
|
+
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
|
137
139
|
}
|
138
140
|
def initialize(
|
139
141
|
industry_product_code: nil,
|
@@ -145,34 +147,34 @@ module Stripe
|
|
145
147
|
end
|
146
148
|
class MerchantData < Stripe::RequestParams
|
147
149
|
# 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.
|
148
|
-
sig { returns(String) }
|
150
|
+
sig { returns(T.nilable(String)) }
|
149
151
|
attr_accessor :category
|
150
152
|
# City where the seller is located
|
151
|
-
sig { returns(String) }
|
153
|
+
sig { returns(T.nilable(String)) }
|
152
154
|
attr_accessor :city
|
153
155
|
# Country where the seller is located
|
154
|
-
sig { returns(String) }
|
156
|
+
sig { returns(T.nilable(String)) }
|
155
157
|
attr_accessor :country
|
156
158
|
# Name of the seller
|
157
|
-
sig { returns(String) }
|
159
|
+
sig { returns(T.nilable(String)) }
|
158
160
|
attr_accessor :name
|
159
161
|
# Identifier assigned to the seller by the card network. Different card networks may assign different network_id fields to the same merchant.
|
160
|
-
sig { returns(String) }
|
162
|
+
sig { returns(T.nilable(String)) }
|
161
163
|
attr_accessor :network_id
|
162
164
|
# Postal code where the seller is located
|
163
|
-
sig { returns(String) }
|
165
|
+
sig { returns(T.nilable(String)) }
|
164
166
|
attr_accessor :postal_code
|
165
167
|
# State where the seller is located
|
166
|
-
sig { returns(String) }
|
168
|
+
sig { returns(T.nilable(String)) }
|
167
169
|
attr_accessor :state
|
168
170
|
# An ID assigned by the seller to the location of the sale.
|
169
|
-
sig { returns(String) }
|
171
|
+
sig { returns(T.nilable(String)) }
|
170
172
|
attr_accessor :terminal_id
|
171
173
|
# URL provided by the merchant on a 3DS request
|
172
|
-
sig { returns(String) }
|
174
|
+
sig { returns(T.nilable(String)) }
|
173
175
|
attr_accessor :url
|
174
176
|
sig {
|
175
|
-
params(category: String, city: String, country: String, name: String, network_id: String, postal_code: String, state: String, terminal_id: String, url: String).void
|
177
|
+
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
|
176
178
|
}
|
177
179
|
def initialize(
|
178
180
|
category: nil,
|
@@ -188,9 +190,9 @@ module Stripe
|
|
188
190
|
end
|
189
191
|
class NetworkData < Stripe::RequestParams
|
190
192
|
# Identifier assigned to the acquirer by the card network.
|
191
|
-
sig { returns(String) }
|
193
|
+
sig { returns(T.nilable(String)) }
|
192
194
|
attr_accessor :acquiring_institution_id
|
193
|
-
sig { params(acquiring_institution_id: String).void }
|
195
|
+
sig { params(acquiring_institution_id: T.nilable(String)).void }
|
194
196
|
def initialize(acquiring_institution_id: nil); end
|
195
197
|
end
|
196
198
|
class VerificationData < Stripe::RequestParams
|
@@ -212,29 +214,29 @@ module Stripe
|
|
212
214
|
def initialize(result: nil); end
|
213
215
|
end
|
214
216
|
# Whether the cardholder provided an address first line and if it matched the cardholder’s `billing.address.line1`.
|
215
|
-
sig { returns(String) }
|
217
|
+
sig { returns(T.nilable(String)) }
|
216
218
|
attr_accessor :address_line1_check
|
217
219
|
# Whether the cardholder provided a postal code and if it matched the cardholder’s `billing.address.postal_code`.
|
218
|
-
sig { returns(String) }
|
220
|
+
sig { returns(T.nilable(String)) }
|
219
221
|
attr_accessor :address_postal_code_check
|
220
222
|
# The exemption applied to this authorization.
|
221
223
|
sig {
|
222
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::VerificationData::AuthenticationExemption)
|
224
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::VerificationData::AuthenticationExemption))
|
223
225
|
}
|
224
226
|
attr_accessor :authentication_exemption
|
225
227
|
# Whether the cardholder provided a CVC and if it matched Stripe’s record.
|
226
|
-
sig { returns(String) }
|
228
|
+
sig { returns(T.nilable(String)) }
|
227
229
|
attr_accessor :cvc_check
|
228
230
|
# Whether the cardholder provided an expiry date and if it matched Stripe’s record.
|
229
|
-
sig { returns(String) }
|
231
|
+
sig { returns(T.nilable(String)) }
|
230
232
|
attr_accessor :expiry_check
|
231
233
|
# 3D Secure details.
|
232
234
|
sig {
|
233
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::VerificationData::ThreeDSecure)
|
235
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::VerificationData::ThreeDSecure))
|
234
236
|
}
|
235
237
|
attr_accessor :three_d_secure
|
236
238
|
sig {
|
237
|
-
params(address_line1_check: String, address_postal_code_check: String, authentication_exemption: ::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::VerificationData::AuthenticationExemption, cvc_check: String, expiry_check: String, three_d_secure: ::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::VerificationData::ThreeDSecure).void
|
239
|
+
params(address_line1_check: T.nilable(String), address_postal_code_check: T.nilable(String), authentication_exemption: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::VerificationData::AuthenticationExemption), cvc_check: T.nilable(String), expiry_check: T.nilable(String), three_d_secure: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::VerificationData::ThreeDSecure)).void
|
238
240
|
}
|
239
241
|
def initialize(
|
240
242
|
address_line1_check: nil,
|
@@ -246,60 +248,64 @@ module Stripe
|
|
246
248
|
); end
|
247
249
|
end
|
248
250
|
# 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).
|
249
|
-
sig { returns(Integer) }
|
251
|
+
sig { returns(T.nilable(Integer)) }
|
250
252
|
attr_accessor :amount
|
251
253
|
# Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
|
252
254
|
sig {
|
253
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::AmountDetails)
|
255
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::AmountDetails))
|
254
256
|
}
|
255
257
|
attr_accessor :amount_details
|
256
258
|
# How the card details were provided. Defaults to online.
|
257
|
-
sig { returns(String) }
|
259
|
+
sig { returns(T.nilable(String)) }
|
258
260
|
attr_accessor :authorization_method
|
259
261
|
# Card associated with this authorization.
|
260
262
|
sig { returns(String) }
|
261
263
|
attr_accessor :card
|
262
264
|
# 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).
|
263
|
-
sig { returns(String) }
|
265
|
+
sig { returns(T.nilable(String)) }
|
264
266
|
attr_accessor :currency
|
265
267
|
# Specifies which fields in the response should be expanded.
|
266
|
-
sig { returns(T::Array[String]) }
|
268
|
+
sig { returns(T.nilable(T::Array[String])) }
|
267
269
|
attr_accessor :expand
|
268
270
|
# Fleet-specific information for authorizations using Fleet cards.
|
269
|
-
sig {
|
271
|
+
sig {
|
272
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fleet))
|
273
|
+
}
|
270
274
|
attr_accessor :fleet
|
271
275
|
# Information about fuel that was purchased with this transaction.
|
272
|
-
sig {
|
276
|
+
sig {
|
277
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fuel))
|
278
|
+
}
|
273
279
|
attr_accessor :fuel
|
274
280
|
# 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.
|
275
|
-
sig { returns(T::Boolean) }
|
281
|
+
sig { returns(T.nilable(T::Boolean)) }
|
276
282
|
attr_accessor :is_amount_controllable
|
277
283
|
# 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).
|
278
|
-
sig { returns(Integer) }
|
284
|
+
sig { returns(T.nilable(Integer)) }
|
279
285
|
attr_accessor :merchant_amount
|
280
286
|
# 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).
|
281
|
-
sig { returns(String) }
|
287
|
+
sig { returns(T.nilable(String)) }
|
282
288
|
attr_accessor :merchant_currency
|
283
289
|
# Details about the seller (grocery store, e-commerce website, etc.) where the card authorization happened.
|
284
290
|
sig {
|
285
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::MerchantData)
|
291
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::MerchantData))
|
286
292
|
}
|
287
293
|
attr_accessor :merchant_data
|
288
294
|
# Details about the authorization, such as identifiers, set by the card network.
|
289
295
|
sig {
|
290
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::NetworkData)
|
296
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::NetworkData))
|
291
297
|
}
|
292
298
|
attr_accessor :network_data
|
293
299
|
# Verifications that Stripe performed on information that the cardholder provided to the merchant.
|
294
300
|
sig {
|
295
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::VerificationData)
|
301
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::VerificationData))
|
296
302
|
}
|
297
303
|
attr_accessor :verification_data
|
298
304
|
# 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.
|
299
|
-
sig { returns(String) }
|
305
|
+
sig { returns(T.nilable(String)) }
|
300
306
|
attr_accessor :wallet
|
301
307
|
sig {
|
302
|
-
params(amount: Integer, amount_details: ::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::AmountDetails, authorization_method: String, card: String, currency: String, expand: T::Array[String], fleet: ::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fleet, fuel: ::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fuel, is_amount_controllable: T::Boolean, merchant_amount: Integer, merchant_currency: String, merchant_data: ::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::MerchantData, network_data: ::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::NetworkData, verification_data: ::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::VerificationData, wallet: String).void
|
308
|
+
params(amount: T.nilable(Integer), amount_details: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::AmountDetails), authorization_method: T.nilable(String), card: String, currency: T.nilable(String), expand: T.nilable(T::Array[String]), fleet: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fleet), fuel: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::Fuel), is_amount_controllable: T.nilable(T::Boolean), merchant_amount: T.nilable(Integer), merchant_currency: T.nilable(String), merchant_data: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::MerchantData), network_data: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::NetworkData), verification_data: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams::VerificationData), wallet: T.nilable(String)).void
|
303
309
|
}
|
304
310
|
def initialize(
|
305
311
|
amount: nil,
|
@@ -324,22 +330,22 @@ module Stripe
|
|
324
330
|
class Fleet < Stripe::RequestParams
|
325
331
|
class CardholderPromptData < Stripe::RequestParams
|
326
332
|
# Driver ID.
|
327
|
-
sig { returns(String) }
|
333
|
+
sig { returns(T.nilable(String)) }
|
328
334
|
attr_accessor :driver_id
|
329
335
|
# Odometer reading.
|
330
|
-
sig { returns(Integer) }
|
336
|
+
sig { returns(T.nilable(Integer)) }
|
331
337
|
attr_accessor :odometer
|
332
338
|
# 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.
|
333
|
-
sig { returns(String) }
|
339
|
+
sig { returns(T.nilable(String)) }
|
334
340
|
attr_accessor :unspecified_id
|
335
341
|
# User ID.
|
336
|
-
sig { returns(String) }
|
342
|
+
sig { returns(T.nilable(String)) }
|
337
343
|
attr_accessor :user_id
|
338
344
|
# Vehicle number.
|
339
|
-
sig { returns(String) }
|
345
|
+
sig { returns(T.nilable(String)) }
|
340
346
|
attr_accessor :vehicle_number
|
341
347
|
sig {
|
342
|
-
params(driver_id: String, odometer: Integer, unspecified_id: String, user_id: String, vehicle_number: String).void
|
348
|
+
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
|
343
349
|
}
|
344
350
|
def initialize(
|
345
351
|
driver_id: nil,
|
@@ -352,66 +358,68 @@ module Stripe
|
|
352
358
|
class ReportedBreakdown < Stripe::RequestParams
|
353
359
|
class Fuel < Stripe::RequestParams
|
354
360
|
# Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
|
355
|
-
sig { returns(String) }
|
361
|
+
sig { returns(T.nilable(String)) }
|
356
362
|
attr_accessor :gross_amount_decimal
|
357
|
-
sig { params(gross_amount_decimal: String).void }
|
363
|
+
sig { params(gross_amount_decimal: T.nilable(String)).void }
|
358
364
|
def initialize(gross_amount_decimal: nil); end
|
359
365
|
end
|
360
366
|
class NonFuel < Stripe::RequestParams
|
361
367
|
# Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
|
362
|
-
sig { returns(String) }
|
368
|
+
sig { returns(T.nilable(String)) }
|
363
369
|
attr_accessor :gross_amount_decimal
|
364
|
-
sig { params(gross_amount_decimal: String).void }
|
370
|
+
sig { params(gross_amount_decimal: T.nilable(String)).void }
|
365
371
|
def initialize(gross_amount_decimal: nil); end
|
366
372
|
end
|
367
373
|
class Tax < Stripe::RequestParams
|
368
374
|
# Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
369
|
-
sig { returns(String) }
|
375
|
+
sig { returns(T.nilable(String)) }
|
370
376
|
attr_accessor :local_amount_decimal
|
371
377
|
# Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
372
|
-
sig { returns(String) }
|
378
|
+
sig { returns(T.nilable(String)) }
|
373
379
|
attr_accessor :national_amount_decimal
|
374
|
-
sig {
|
380
|
+
sig {
|
381
|
+
params(local_amount_decimal: T.nilable(String), national_amount_decimal: T.nilable(String)).void
|
382
|
+
}
|
375
383
|
def initialize(local_amount_decimal: nil, national_amount_decimal: nil); end
|
376
384
|
end
|
377
385
|
# Breakdown of fuel portion of the purchase.
|
378
386
|
sig {
|
379
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown::Fuel)
|
387
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown::Fuel))
|
380
388
|
}
|
381
389
|
attr_accessor :fuel
|
382
390
|
# Breakdown of non-fuel portion of the purchase.
|
383
391
|
sig {
|
384
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown::NonFuel)
|
392
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown::NonFuel))
|
385
393
|
}
|
386
394
|
attr_accessor :non_fuel
|
387
395
|
# Information about tax included in this transaction.
|
388
396
|
sig {
|
389
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown::Tax)
|
397
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown::Tax))
|
390
398
|
}
|
391
399
|
attr_accessor :tax
|
392
400
|
sig {
|
393
|
-
params(fuel: ::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown::Fuel, non_fuel: ::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown::NonFuel, tax: ::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown::Tax).void
|
401
|
+
params(fuel: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown::Fuel), non_fuel: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown::NonFuel), tax: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown::Tax)).void
|
394
402
|
}
|
395
403
|
def initialize(fuel: nil, non_fuel: nil, tax: nil); end
|
396
404
|
end
|
397
405
|
# 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.
|
398
406
|
sig {
|
399
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fleet::CardholderPromptData)
|
407
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fleet::CardholderPromptData))
|
400
408
|
}
|
401
409
|
attr_accessor :cardholder_prompt_data
|
402
410
|
# The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
|
403
|
-
sig { returns(String) }
|
411
|
+
sig { returns(T.nilable(String)) }
|
404
412
|
attr_accessor :purchase_type
|
405
413
|
# More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
|
406
414
|
sig {
|
407
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown)
|
415
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown))
|
408
416
|
}
|
409
417
|
attr_accessor :reported_breakdown
|
410
418
|
# The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
|
411
|
-
sig { returns(String) }
|
419
|
+
sig { returns(T.nilable(String)) }
|
412
420
|
attr_accessor :service_type
|
413
421
|
sig {
|
414
|
-
params(cardholder_prompt_data: ::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fleet::CardholderPromptData, purchase_type: String, reported_breakdown: ::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown, service_type: String).void
|
422
|
+
params(cardholder_prompt_data: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fleet::CardholderPromptData), purchase_type: T.nilable(String), reported_breakdown: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fleet::ReportedBreakdown), service_type: T.nilable(String)).void
|
415
423
|
}
|
416
424
|
def initialize(
|
417
425
|
cardholder_prompt_data: nil,
|
@@ -423,25 +431,25 @@ module Stripe
|
|
423
431
|
class Flight < Stripe::RequestParams
|
424
432
|
class Segment < Stripe::RequestParams
|
425
433
|
# The three-letter IATA airport code of the flight's destination.
|
426
|
-
sig { returns(String) }
|
434
|
+
sig { returns(T.nilable(String)) }
|
427
435
|
attr_accessor :arrival_airport_code
|
428
436
|
# The airline carrier code.
|
429
|
-
sig { returns(String) }
|
437
|
+
sig { returns(T.nilable(String)) }
|
430
438
|
attr_accessor :carrier
|
431
439
|
# The three-letter IATA airport code that the flight departed from.
|
432
|
-
sig { returns(String) }
|
440
|
+
sig { returns(T.nilable(String)) }
|
433
441
|
attr_accessor :departure_airport_code
|
434
442
|
# The flight number.
|
435
|
-
sig { returns(String) }
|
443
|
+
sig { returns(T.nilable(String)) }
|
436
444
|
attr_accessor :flight_number
|
437
445
|
# The flight's service class.
|
438
|
-
sig { returns(String) }
|
446
|
+
sig { returns(T.nilable(String)) }
|
439
447
|
attr_accessor :service_class
|
440
448
|
# Whether a stopover is allowed on this flight.
|
441
|
-
sig { returns(T::Boolean) }
|
449
|
+
sig { returns(T.nilable(T::Boolean)) }
|
442
450
|
attr_accessor :stopover_allowed
|
443
451
|
sig {
|
444
|
-
params(arrival_airport_code: String, carrier: String, departure_airport_code: String, flight_number: String, service_class: String, stopover_allowed: T::Boolean).void
|
452
|
+
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
|
445
453
|
}
|
446
454
|
def initialize(
|
447
455
|
arrival_airport_code: nil,
|
@@ -453,24 +461,24 @@ module Stripe
|
|
453
461
|
); end
|
454
462
|
end
|
455
463
|
# The time that the flight departed.
|
456
|
-
sig { returns(Integer) }
|
464
|
+
sig { returns(T.nilable(Integer)) }
|
457
465
|
attr_accessor :departure_at
|
458
466
|
# The name of the passenger.
|
459
|
-
sig { returns(String) }
|
467
|
+
sig { returns(T.nilable(String)) }
|
460
468
|
attr_accessor :passenger_name
|
461
469
|
# Whether the ticket is refundable.
|
462
|
-
sig { returns(T::Boolean) }
|
470
|
+
sig { returns(T.nilable(T::Boolean)) }
|
463
471
|
attr_accessor :refundable
|
464
472
|
# The legs of the trip.
|
465
473
|
sig {
|
466
|
-
returns(T::Array[::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Flight::Segment])
|
474
|
+
returns(T.nilable(T::Array[::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Flight::Segment]))
|
467
475
|
}
|
468
476
|
attr_accessor :segments
|
469
477
|
# The travel agency that issued the ticket.
|
470
|
-
sig { returns(String) }
|
478
|
+
sig { returns(T.nilable(String)) }
|
471
479
|
attr_accessor :travel_agency
|
472
480
|
sig {
|
473
|
-
params(departure_at: Integer, passenger_name: String, refundable: T::Boolean, segments: T::Array[::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Flight::Segment], travel_agency: String).void
|
481
|
+
params(departure_at: T.nilable(Integer), passenger_name: T.nilable(String), refundable: T.nilable(T::Boolean), segments: T.nilable(T::Array[::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Flight::Segment]), travel_agency: T.nilable(String)).void
|
474
482
|
}
|
475
483
|
def initialize(
|
476
484
|
departure_at: nil,
|
@@ -482,22 +490,22 @@ module Stripe
|
|
482
490
|
end
|
483
491
|
class Fuel < Stripe::RequestParams
|
484
492
|
# [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.
|
485
|
-
sig { returns(String) }
|
493
|
+
sig { returns(T.nilable(String)) }
|
486
494
|
attr_accessor :industry_product_code
|
487
495
|
# The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
|
488
|
-
sig { returns(String) }
|
496
|
+
sig { returns(T.nilable(String)) }
|
489
497
|
attr_accessor :quantity_decimal
|
490
498
|
# The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
|
491
|
-
sig { returns(String) }
|
499
|
+
sig { returns(T.nilable(String)) }
|
492
500
|
attr_accessor :type
|
493
501
|
# The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
|
494
|
-
sig { returns(String) }
|
502
|
+
sig { returns(T.nilable(String)) }
|
495
503
|
attr_accessor :unit
|
496
504
|
# The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
|
497
|
-
sig { returns(String) }
|
505
|
+
sig { returns(T.nilable(String)) }
|
498
506
|
attr_accessor :unit_cost_decimal
|
499
507
|
sig {
|
500
|
-
params(industry_product_code: String, quantity_decimal: String, type: String, unit: String, unit_cost_decimal: String).void
|
508
|
+
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
|
501
509
|
}
|
502
510
|
def initialize(
|
503
511
|
industry_product_code: nil,
|
@@ -509,62 +517,62 @@ module Stripe
|
|
509
517
|
end
|
510
518
|
class Lodging < Stripe::RequestParams
|
511
519
|
# The time of checking into the lodging.
|
512
|
-
sig { returns(Integer) }
|
520
|
+
sig { returns(T.nilable(Integer)) }
|
513
521
|
attr_accessor :check_in_at
|
514
522
|
# The number of nights stayed at the lodging.
|
515
|
-
sig { returns(Integer) }
|
523
|
+
sig { returns(T.nilable(Integer)) }
|
516
524
|
attr_accessor :nights
|
517
|
-
sig { params(check_in_at: Integer, nights: Integer).void }
|
525
|
+
sig { params(check_in_at: T.nilable(Integer), nights: T.nilable(Integer)).void }
|
518
526
|
def initialize(check_in_at: nil, nights: nil); end
|
519
527
|
end
|
520
528
|
class Receipt < Stripe::RequestParams
|
521
529
|
# Attribute for param field description
|
522
|
-
sig { returns(String) }
|
530
|
+
sig { returns(T.nilable(String)) }
|
523
531
|
attr_accessor :description
|
524
532
|
# Attribute for param field quantity
|
525
|
-
sig { returns(String) }
|
533
|
+
sig { returns(T.nilable(String)) }
|
526
534
|
attr_accessor :quantity
|
527
535
|
# Attribute for param field total
|
528
|
-
sig { returns(Integer) }
|
536
|
+
sig { returns(T.nilable(Integer)) }
|
529
537
|
attr_accessor :total
|
530
538
|
# Attribute for param field unit_cost
|
531
|
-
sig { returns(Integer) }
|
539
|
+
sig { returns(T.nilable(Integer)) }
|
532
540
|
attr_accessor :unit_cost
|
533
541
|
sig {
|
534
|
-
params(description: String, quantity: String, total: Integer, unit_cost: Integer).void
|
542
|
+
params(description: T.nilable(String), quantity: T.nilable(String), total: T.nilable(Integer), unit_cost: T.nilable(Integer)).void
|
535
543
|
}
|
536
544
|
def initialize(description: nil, quantity: nil, total: nil, unit_cost: nil); end
|
537
545
|
end
|
538
546
|
# Fleet-specific information for transactions using Fleet cards.
|
539
547
|
sig {
|
540
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fleet)
|
548
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fleet))
|
541
549
|
}
|
542
550
|
attr_accessor :fleet
|
543
551
|
# Information about the flight that was purchased with this transaction.
|
544
552
|
sig {
|
545
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Flight)
|
553
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Flight))
|
546
554
|
}
|
547
555
|
attr_accessor :flight
|
548
556
|
# Information about fuel that was purchased with this transaction.
|
549
557
|
sig {
|
550
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fuel)
|
558
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fuel))
|
551
559
|
}
|
552
560
|
attr_accessor :fuel
|
553
561
|
# Information about lodging that was purchased with this transaction.
|
554
562
|
sig {
|
555
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Lodging)
|
563
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Lodging))
|
556
564
|
}
|
557
565
|
attr_accessor :lodging
|
558
566
|
# The line items in the purchase.
|
559
567
|
sig {
|
560
|
-
returns(T::Array[::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Receipt])
|
568
|
+
returns(T.nilable(T::Array[::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Receipt]))
|
561
569
|
}
|
562
570
|
attr_accessor :receipt
|
563
571
|
# A merchant-specific order number.
|
564
|
-
sig { returns(String) }
|
572
|
+
sig { returns(T.nilable(String)) }
|
565
573
|
attr_accessor :reference
|
566
574
|
sig {
|
567
|
-
params(fleet: ::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fleet, flight: ::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Flight, fuel: ::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fuel, lodging: ::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Lodging, receipt: T::Array[::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Receipt], reference: String).void
|
575
|
+
params(fleet: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fleet), flight: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Flight), fuel: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Fuel), lodging: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Lodging), receipt: T.nilable(T::Array[::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails::Receipt]), reference: T.nilable(String)).void
|
568
576
|
}
|
569
577
|
def initialize(
|
570
578
|
fleet: nil,
|
@@ -576,21 +584,21 @@ module Stripe
|
|
576
584
|
); end
|
577
585
|
end
|
578
586
|
# 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).
|
579
|
-
sig { returns(Integer) }
|
587
|
+
sig { returns(T.nilable(Integer)) }
|
580
588
|
attr_accessor :capture_amount
|
581
589
|
# Whether to close the authorization after capture. Defaults to true. Set to false to enable multi-capture flows.
|
582
|
-
sig { returns(T::Boolean) }
|
590
|
+
sig { returns(T.nilable(T::Boolean)) }
|
583
591
|
attr_accessor :close_authorization
|
584
592
|
# Specifies which fields in the response should be expanded.
|
585
|
-
sig { returns(T::Array[String]) }
|
593
|
+
sig { returns(T.nilable(T::Array[String])) }
|
586
594
|
attr_accessor :expand
|
587
595
|
# Additional purchase information that is optionally provided by the merchant.
|
588
596
|
sig {
|
589
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails)
|
597
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails))
|
590
598
|
}
|
591
599
|
attr_accessor :purchase_details
|
592
600
|
sig {
|
593
|
-
params(capture_amount: Integer, close_authorization: T::Boolean, expand: T::Array[String], purchase_details: ::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails).void
|
601
|
+
params(capture_amount: T.nilable(Integer), close_authorization: T.nilable(T::Boolean), expand: T.nilable(T::Array[String]), purchase_details: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::CaptureParams::PurchaseDetails)).void
|
594
602
|
}
|
595
603
|
def initialize(
|
596
604
|
capture_amount: nil,
|
@@ -601,31 +609,31 @@ module Stripe
|
|
601
609
|
end
|
602
610
|
class ExpireParams < Stripe::RequestParams
|
603
611
|
# Specifies which fields in the response should be expanded.
|
604
|
-
sig { returns(T::Array[String]) }
|
612
|
+
sig { returns(T.nilable(T::Array[String])) }
|
605
613
|
attr_accessor :expand
|
606
|
-
sig { params(expand: T::Array[String]).void }
|
614
|
+
sig { params(expand: T.nilable(T::Array[String])).void }
|
607
615
|
def initialize(expand: nil); end
|
608
616
|
end
|
609
617
|
class FinalizeAmountParams < Stripe::RequestParams
|
610
618
|
class Fleet < Stripe::RequestParams
|
611
619
|
class CardholderPromptData < Stripe::RequestParams
|
612
620
|
# Driver ID.
|
613
|
-
sig { returns(String) }
|
621
|
+
sig { returns(T.nilable(String)) }
|
614
622
|
attr_accessor :driver_id
|
615
623
|
# Odometer reading.
|
616
|
-
sig { returns(Integer) }
|
624
|
+
sig { returns(T.nilable(Integer)) }
|
617
625
|
attr_accessor :odometer
|
618
626
|
# 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.
|
619
|
-
sig { returns(String) }
|
627
|
+
sig { returns(T.nilable(String)) }
|
620
628
|
attr_accessor :unspecified_id
|
621
629
|
# User ID.
|
622
|
-
sig { returns(String) }
|
630
|
+
sig { returns(T.nilable(String)) }
|
623
631
|
attr_accessor :user_id
|
624
632
|
# Vehicle number.
|
625
|
-
sig { returns(String) }
|
633
|
+
sig { returns(T.nilable(String)) }
|
626
634
|
attr_accessor :vehicle_number
|
627
635
|
sig {
|
628
|
-
params(driver_id: String, odometer: Integer, unspecified_id: String, user_id: String, vehicle_number: String).void
|
636
|
+
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
|
629
637
|
}
|
630
638
|
def initialize(
|
631
639
|
driver_id: nil,
|
@@ -638,66 +646,68 @@ module Stripe
|
|
638
646
|
class ReportedBreakdown < Stripe::RequestParams
|
639
647
|
class Fuel < Stripe::RequestParams
|
640
648
|
# Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
|
641
|
-
sig { returns(String) }
|
649
|
+
sig { returns(T.nilable(String)) }
|
642
650
|
attr_accessor :gross_amount_decimal
|
643
|
-
sig { params(gross_amount_decimal: String).void }
|
651
|
+
sig { params(gross_amount_decimal: T.nilable(String)).void }
|
644
652
|
def initialize(gross_amount_decimal: nil); end
|
645
653
|
end
|
646
654
|
class NonFuel < Stripe::RequestParams
|
647
655
|
# Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
|
648
|
-
sig { returns(String) }
|
656
|
+
sig { returns(T.nilable(String)) }
|
649
657
|
attr_accessor :gross_amount_decimal
|
650
|
-
sig { params(gross_amount_decimal: String).void }
|
658
|
+
sig { params(gross_amount_decimal: T.nilable(String)).void }
|
651
659
|
def initialize(gross_amount_decimal: nil); end
|
652
660
|
end
|
653
661
|
class Tax < Stripe::RequestParams
|
654
662
|
# Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
655
|
-
sig { returns(String) }
|
663
|
+
sig { returns(T.nilable(String)) }
|
656
664
|
attr_accessor :local_amount_decimal
|
657
665
|
# Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
658
|
-
sig { returns(String) }
|
666
|
+
sig { returns(T.nilable(String)) }
|
659
667
|
attr_accessor :national_amount_decimal
|
660
|
-
sig {
|
668
|
+
sig {
|
669
|
+
params(local_amount_decimal: T.nilable(String), national_amount_decimal: T.nilable(String)).void
|
670
|
+
}
|
661
671
|
def initialize(local_amount_decimal: nil, national_amount_decimal: nil); end
|
662
672
|
end
|
663
673
|
# Breakdown of fuel portion of the purchase.
|
664
674
|
sig {
|
665
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fleet::ReportedBreakdown::Fuel)
|
675
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fleet::ReportedBreakdown::Fuel))
|
666
676
|
}
|
667
677
|
attr_accessor :fuel
|
668
678
|
# Breakdown of non-fuel portion of the purchase.
|
669
679
|
sig {
|
670
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fleet::ReportedBreakdown::NonFuel)
|
680
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fleet::ReportedBreakdown::NonFuel))
|
671
681
|
}
|
672
682
|
attr_accessor :non_fuel
|
673
683
|
# Information about tax included in this transaction.
|
674
684
|
sig {
|
675
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fleet::ReportedBreakdown::Tax)
|
685
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fleet::ReportedBreakdown::Tax))
|
676
686
|
}
|
677
687
|
attr_accessor :tax
|
678
688
|
sig {
|
679
|
-
params(fuel: ::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fleet::ReportedBreakdown::Fuel, non_fuel: ::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fleet::ReportedBreakdown::NonFuel, tax: ::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fleet::ReportedBreakdown::Tax).void
|
689
|
+
params(fuel: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fleet::ReportedBreakdown::Fuel), non_fuel: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fleet::ReportedBreakdown::NonFuel), tax: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fleet::ReportedBreakdown::Tax)).void
|
680
690
|
}
|
681
691
|
def initialize(fuel: nil, non_fuel: nil, tax: nil); end
|
682
692
|
end
|
683
693
|
# 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.
|
684
694
|
sig {
|
685
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fleet::CardholderPromptData)
|
695
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fleet::CardholderPromptData))
|
686
696
|
}
|
687
697
|
attr_accessor :cardholder_prompt_data
|
688
698
|
# The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
|
689
|
-
sig { returns(String) }
|
699
|
+
sig { returns(T.nilable(String)) }
|
690
700
|
attr_accessor :purchase_type
|
691
701
|
# More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
|
692
702
|
sig {
|
693
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fleet::ReportedBreakdown)
|
703
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fleet::ReportedBreakdown))
|
694
704
|
}
|
695
705
|
attr_accessor :reported_breakdown
|
696
706
|
# The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
|
697
|
-
sig { returns(String) }
|
707
|
+
sig { returns(T.nilable(String)) }
|
698
708
|
attr_accessor :service_type
|
699
709
|
sig {
|
700
|
-
params(cardholder_prompt_data: ::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fleet::CardholderPromptData, purchase_type: String, reported_breakdown: ::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fleet::ReportedBreakdown, service_type: String).void
|
710
|
+
params(cardholder_prompt_data: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fleet::CardholderPromptData), purchase_type: T.nilable(String), reported_breakdown: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fleet::ReportedBreakdown), service_type: T.nilable(String)).void
|
701
711
|
}
|
702
712
|
def initialize(
|
703
713
|
cardholder_prompt_data: nil,
|
@@ -708,22 +718,22 @@ module Stripe
|
|
708
718
|
end
|
709
719
|
class Fuel < Stripe::RequestParams
|
710
720
|
# [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.
|
711
|
-
sig { returns(String) }
|
721
|
+
sig { returns(T.nilable(String)) }
|
712
722
|
attr_accessor :industry_product_code
|
713
723
|
# The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
|
714
|
-
sig { returns(String) }
|
724
|
+
sig { returns(T.nilable(String)) }
|
715
725
|
attr_accessor :quantity_decimal
|
716
726
|
# The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
|
717
|
-
sig { returns(String) }
|
727
|
+
sig { returns(T.nilable(String)) }
|
718
728
|
attr_accessor :type
|
719
729
|
# The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
|
720
|
-
sig { returns(String) }
|
730
|
+
sig { returns(T.nilable(String)) }
|
721
731
|
attr_accessor :unit
|
722
732
|
# The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
|
723
|
-
sig { returns(String) }
|
733
|
+
sig { returns(T.nilable(String)) }
|
724
734
|
attr_accessor :unit_cost_decimal
|
725
735
|
sig {
|
726
|
-
params(industry_product_code: String, quantity_decimal: String, type: String, unit: String, unit_cost_decimal: String).void
|
736
|
+
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
|
727
737
|
}
|
728
738
|
def initialize(
|
729
739
|
industry_product_code: nil,
|
@@ -734,23 +744,23 @@ module Stripe
|
|
734
744
|
); end
|
735
745
|
end
|
736
746
|
# Specifies which fields in the response should be expanded.
|
737
|
-
sig { returns(T::Array[String]) }
|
747
|
+
sig { returns(T.nilable(T::Array[String])) }
|
738
748
|
attr_accessor :expand
|
739
749
|
# 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).
|
740
750
|
sig { returns(Integer) }
|
741
751
|
attr_accessor :final_amount
|
742
752
|
# Fleet-specific information for authorizations using Fleet cards.
|
743
753
|
sig {
|
744
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fleet)
|
754
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fleet))
|
745
755
|
}
|
746
756
|
attr_accessor :fleet
|
747
757
|
# Information about fuel that was purchased with this transaction.
|
748
758
|
sig {
|
749
|
-
returns(::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fuel)
|
759
|
+
returns(T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fuel))
|
750
760
|
}
|
751
761
|
attr_accessor :fuel
|
752
762
|
sig {
|
753
|
-
params(expand: T::Array[String], final_amount: Integer, fleet: ::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fleet, fuel: ::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fuel).void
|
763
|
+
params(expand: T.nilable(T::Array[String]), final_amount: Integer, fleet: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fleet), fuel: T.nilable(::Stripe::TestHelpers::Issuing::AuthorizationService::FinalizeAmountParams::Fuel)).void
|
754
764
|
}
|
755
765
|
def initialize(expand: nil, final_amount: nil, fleet: nil, fuel: nil); end
|
756
766
|
end
|
@@ -759,34 +769,36 @@ module Stripe
|
|
759
769
|
sig { returns(T::Boolean) }
|
760
770
|
attr_accessor :confirmed
|
761
771
|
# Specifies which fields in the response should be expanded.
|
762
|
-
sig { returns(T::Array[String]) }
|
772
|
+
sig { returns(T.nilable(T::Array[String])) }
|
763
773
|
attr_accessor :expand
|
764
|
-
sig { params(confirmed: T::Boolean, expand: T::Array[String]).void }
|
774
|
+
sig { params(confirmed: T::Boolean, expand: T.nilable(T::Array[String])).void }
|
765
775
|
def initialize(confirmed: nil, expand: nil); end
|
766
776
|
end
|
767
777
|
class IncrementParams < Stripe::RequestParams
|
768
778
|
# Specifies which fields in the response should be expanded.
|
769
|
-
sig { returns(T::Array[String]) }
|
779
|
+
sig { returns(T.nilable(T::Array[String])) }
|
770
780
|
attr_accessor :expand
|
771
781
|
# 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).
|
772
782
|
sig { returns(Integer) }
|
773
783
|
attr_accessor :increment_amount
|
774
784
|
# 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.
|
775
|
-
sig { returns(T::Boolean) }
|
785
|
+
sig { returns(T.nilable(T::Boolean)) }
|
776
786
|
attr_accessor :is_amount_controllable
|
777
787
|
sig {
|
778
|
-
params(expand: T::Array[String], increment_amount: Integer, is_amount_controllable: T::Boolean).void
|
788
|
+
params(expand: T.nilable(T::Array[String]), increment_amount: Integer, is_amount_controllable: T.nilable(T::Boolean)).void
|
779
789
|
}
|
780
790
|
def initialize(expand: nil, increment_amount: nil, is_amount_controllable: nil); end
|
781
791
|
end
|
782
792
|
class ReverseParams < Stripe::RequestParams
|
783
793
|
# Specifies which fields in the response should be expanded.
|
784
|
-
sig { returns(T::Array[String]) }
|
794
|
+
sig { returns(T.nilable(T::Array[String])) }
|
785
795
|
attr_accessor :expand
|
786
796
|
# 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).
|
787
|
-
sig { returns(Integer) }
|
797
|
+
sig { returns(T.nilable(Integer)) }
|
788
798
|
attr_accessor :reverse_amount
|
789
|
-
sig {
|
799
|
+
sig {
|
800
|
+
params(expand: T.nilable(T::Array[String]), reverse_amount: T.nilable(Integer)).void
|
801
|
+
}
|
790
802
|
def initialize(expand: nil, reverse_amount: nil); end
|
791
803
|
end
|
792
804
|
# Capture a test-mode authorization.
|