From befa0d9061c93424e6844372a01838c1dbcbf662 Mon Sep 17 00:00:00 2001 From: Matthew Zeitlin <37011898+mzeitlin11@users.noreply.github.com> Date: Tue, 9 Apr 2024 23:26:35 -0400 Subject: [PATCH] Split serde gate into serialize and deserialize --- .github/workflows/async-stripe.yml | 6 +- generated/stripe_billing/Cargo.toml | 3 +- .../billing_portal_configuration/requests.rs | 24 +- .../src/billing_portal_configuration/types.rs | 4 +- .../src/billing_portal_session/requests.rs | 6 +- .../src/billing_portal_session/types.rs | 6 +- .../src/credit_note/requests.rs | 6 +- .../stripe_billing/src/invoice/requests.rs | 124 ++--- .../src/invoice_item/requests.rs | 8 +- .../src/invoice_line_item/requests.rs | 4 +- generated/stripe_billing/src/plan/requests.rs | 2 +- .../src/portal_business_profile.rs | 4 +- .../src/portal_customer_update.rs | 8 +- .../stripe_billing/src/portal_features.rs | 4 +- ...ws_after_completion_hosted_confirmation.rs | 4 +- .../portal_flows_after_completion_redirect.rs | 4 +- .../src/portal_flows_coupon_offer.rs | 4 +- .../stripe_billing/src/portal_flows_flow.rs | 10 +- .../src/portal_flows_flow_after_completion.rs | 10 +- .../portal_flows_flow_subscription_cancel.rs | 4 +- .../portal_flows_flow_subscription_update.rs | 4 +- ..._flows_flow_subscription_update_confirm.rs | 4 +- .../src/portal_flows_retention.rs | 10 +- ...ws_subscription_update_confirm_discount.rs | 4 +- ..._flows_subscription_update_confirm_item.rs | 4 +- .../stripe_billing/src/portal_invoice_list.rs | 4 +- .../stripe_billing/src/portal_login_page.rs | 4 +- .../src/portal_payment_method_update.rs | 4 +- .../src/portal_subscription_cancel.rs | 12 +- ...portal_subscription_cancellation_reason.rs | 8 +- .../src/portal_subscription_pause.rs | 4 +- .../src/portal_subscription_update.rs | 12 +- .../src/portal_subscription_update_product.rs | 4 +- .../stripe_billing/src/quote/requests.rs | 16 +- .../src/subscription/requests.rs | 94 ++-- .../src/subscription_item/requests.rs | 18 +- .../src/subscription_schedule/requests.rs | 50 +- .../stripe_billing/src/tax_id/requests.rs | 8 +- .../src/usage_record/requests.rs | 2 +- .../stripe_billing/src/usage_record/types.rs | 4 +- generated/stripe_checkout/Cargo.toml | 3 +- .../checkout_acss_debit_mandate_options.rs | 16 +- ...ckout_acss_debit_payment_method_options.rs | 16 +- .../checkout_affirm_payment_method_options.rs | 8 +- ...fterpay_clearpay_payment_method_options.rs | 8 +- .../checkout_alipay_payment_method_options.rs | 8 +- ...ut_au_becs_debit_payment_method_options.rs | 8 +- ...ckout_bacs_debit_payment_method_options.rs | 8 +- ...ckout_bancontact_payment_method_options.rs | 8 +- .../checkout_boleto_payment_method_options.rs | 8 +- .../src/checkout_card_installments_options.rs | 4 +- .../checkout_card_payment_method_options.rs | 8 +- ...checkout_cashapp_payment_method_options.rs | 8 +- ...ce_bank_transfer_payment_method_options.rs | 14 +- ...customer_balance_payment_method_options.rs | 12 +- .../checkout_eps_payment_method_options.rs | 8 +- .../checkout_fpx_payment_method_options.rs | 8 +- ...checkout_giropay_payment_method_options.rs | 8 +- ...heckout_grab_pay_payment_method_options.rs | 8 +- .../checkout_ideal_payment_method_options.rs | 8 +- .../checkout_klarna_payment_method_options.rs | 8 +- ...checkout_konbini_payment_method_options.rs | 8 +- .../checkout_link_payment_method_options.rs | 8 +- .../checkout_oxxo_payment_method_options.rs | 8 +- .../checkout_p24_payment_method_options.rs | 8 +- .../checkout_paynow_payment_method_options.rs | 8 +- .../checkout_paypal_payment_method_options.rs | 12 +- .../checkout_pix_payment_method_options.rs | 4 +- ...kout_revolut_pay_payment_method_options.rs | 4 +- ...ckout_sepa_debit_payment_method_options.rs | 8 +- .../src/checkout_session/requests.rs | 138 ++--- .../src/checkout_session/types.rs | 30 +- ...checkout_session_payment_method_options.rs | 4 +- .../checkout_sofort_payment_method_options.rs | 8 +- .../checkout_swish_payment_method_options.rs | 4 +- ..._us_bank_account_payment_method_options.rs | 12 +- ...pages_checkout_session_after_expiration.rs | 4 +- ...ckout_session_after_expiration_recovery.rs | 4 +- ...nt_pages_checkout_session_automatic_tax.rs | 8 +- .../payment_pages_checkout_session_consent.rs | 12 +- ...ges_checkout_session_consent_collection.rs | 12 +- ...es_checkout_session_currency_conversion.rs | 4 +- ...nt_pages_checkout_session_custom_fields.rs | 10 +- ...checkout_session_custom_fields_dropdown.rs | 4 +- ...es_checkout_session_custom_fields_label.rs | 10 +- ..._checkout_session_custom_fields_numeric.rs | 4 +- ...s_checkout_session_custom_fields_option.rs | 4 +- ...ges_checkout_session_custom_fields_text.rs | 4 +- ...ment_pages_checkout_session_custom_text.rs | 4 +- ...s_checkout_session_custom_text_position.rs | 4 +- ...pages_checkout_session_customer_details.rs | 8 +- ...pages_checkout_session_invoice_creation.rs | 4 +- ...pages_checkout_session_invoice_settings.rs | 4 +- ..._session_payment_method_reuse_agreement.rs | 8 +- ...heckout_session_phone_number_collection.rs | 4 +- ...out_session_shipping_address_collection.rs | 8 +- ...nt_pages_checkout_session_shipping_cost.rs | 4 +- ..._pages_checkout_session_shipping_option.rs | 4 +- .../payment_pages_checkout_session_tax_id.rs | 10 +- ...ages_checkout_session_tax_id_collection.rs | 4 +- ...nt_pages_checkout_session_total_details.rs | 4 +- ...ession_total_details_resource_breakdown.rs | 4 +- generated/stripe_connect/Cargo.toml | 3 +- .../stripe_connect/src/account/requests.rs | 16 +- .../src/account_link/requests.rs | 8 +- .../stripe_connect/src/account_link/types.rs | 4 +- .../src/account_session/types.rs | 4 +- .../src/apps_secret/requests.rs | 8 +- .../stripe_connect/src/apps_secret/types.rs | 4 +- ...edded_account_session_create_components.rs | 4 +- .../src/connect_embedded_base_config_claim.rs | 4 +- .../src/connect_embedded_base_features.rs | 4 +- .../src/connect_embedded_payments_config.rs | 4 +- .../src/connect_embedded_payments_features.rs | 4 +- .../src/connect_embedded_payouts_config.rs | 4 +- .../src/connect_embedded_payouts_features.rs | 4 +- .../stripe_connect/src/country_spec/types.rs | 4 +- ...country_spec_verification_field_details.rs | 4 +- .../src/country_spec_verification_fields.rs | 4 +- .../src/external_account/requests.rs | 6 +- .../stripe_connect/src/login_link/types.rs | 4 +- .../src/secret_service_resource_scope.rs | 10 +- .../stripe_connect/src/topup/requests.rs | 2 +- .../stripe_connect/src/transfer/requests.rs | 2 +- generated/stripe_core/Cargo.toml | 3 +- generated/stripe_core/src/balance/types.rs | 4 +- generated/stripe_core/src/balance_amount.rs | 4 +- .../src/balance_amount_by_source_type.rs | 4 +- .../stripe_core/src/balance_amount_net.rs | 4 +- generated/stripe_core/src/balance_detail.rs | 4 +- .../stripe_core/src/cash_balance/requests.rs | 2 +- generated/stripe_core/src/charge/requests.rs | 2 +- .../stripe_core/src/customer/requests.rs | 28 +- .../stripe_core/src/customer_session/types.rs | 4 +- .../customer_session_resource_components.rs | 4 +- ...resource_components_resource_buy_button.rs | 4 +- ...ource_components_resource_pricing_table.rs | 4 +- .../src/payment_intent/requests.rs | 502 +++++++++--------- generated/stripe_core/src/payout/requests.rs | 4 +- generated/stripe_core/src/refund/requests.rs | 4 +- .../stripe_core/src/setup_intent/requests.rs | 178 +++---- generated/stripe_core/src/token/requests.rs | 10 +- generated/stripe_core/src/token/types.rs | 6 +- generated/stripe_fraud/Cargo.toml | 3 +- .../src/deleted_radar_value_list.rs | 4 +- .../src/deleted_radar_value_list_item.rs | 4 +- .../src/radar_early_fraud_warning/types.rs | 4 +- .../src/radar_value_list/types.rs | 6 +- .../src/radar_value_list_item/types.rs | 4 +- generated/stripe_issuing/Cargo.toml | 3 +- .../src/issuing_authorization/requests.rs | 22 +- .../src/issuing_card/requests.rs | 24 +- .../src/issuing_cardholder/requests.rs | 20 +- .../src/issuing_dispute/requests.rs | 24 +- .../src/issuing_token/requests.rs | 2 +- .../src/issuing_transaction/requests.rs | 12 +- generated/stripe_misc/Cargo.toml | 3 +- .../stripe_misc/src/apple_pay_domain/types.rs | 4 +- ...bank_connections_resource_accountholder.rs | 10 +- .../src/bank_connections_resource_balance.rs | 10 +- ...ource_balance_api_resource_cash_balance.rs | 4 +- ...rce_balance_api_resource_credit_balance.rs | 4 +- ...nk_connections_resource_balance_refresh.rs | 8 +- ...s_resource_link_account_session_filters.rs | 4 +- ..._connections_resource_ownership_refresh.rs | 8 +- ...onnections_resource_transaction_refresh.rs | 8 +- ...transaction_resource_status_transitions.rs | 4 +- .../stripe_misc/src/climate_order/types.rs | 12 +- .../stripe_misc/src/climate_product/types.rs | 4 +- .../src/climate_removals_beneficiary.rs | 4 +- .../src/climate_removals_location.rs | 4 +- .../src/climate_removals_order_deliveries.rs | 4 +- .../src/climate_removals_products_price.rs | 4 +- .../stripe_misc/src/climate_supplier/types.rs | 8 +- .../src/deleted_apple_pay_domain.rs | 4 +- .../src/deleted_webhook_endpoint.rs | 4 +- .../stripe_misc/src/ephemeral_key/types.rs | 4 +- .../stripe_misc/src/exchange_rate/types.rs | 4 +- .../financial_connections_account/requests.rs | 6 +- .../financial_connections_account/types.rs | 28 +- .../financial_connections_account_owner.rs | 4 +- ...financial_connections_account_ownership.rs | 4 +- .../financial_connections_session/requests.rs | 2 +- .../financial_connections_session/types.rs | 8 +- .../types.rs | 8 +- ...rting_finance_report_run_run_parameters.rs | 4 +- ...lato_data_document_report_date_of_birth.rs | 4 +- ...to_data_document_report_expiration_date.rs | 4 +- ...gelato_data_document_report_issued_date.rs | 4 +- .../src/gelato_data_id_number_report_date.rs | 4 +- .../src/gelato_data_verified_outputs_date.rs | 4 +- .../stripe_misc/src/gelato_document_report.rs | 14 +- .../src/gelato_document_report_error.rs | 8 +- .../src/gelato_id_number_report.rs | 12 +- .../src/gelato_id_number_report_error.rs | 8 +- .../src/gelato_report_document_options.rs | 8 +- .../src/gelato_report_id_number_options.rs | 4 +- .../stripe_misc/src/gelato_selfie_report.rs | 8 +- .../src/gelato_selfie_report_error.rs | 8 +- .../src/gelato_session_document_options.rs | 8 +- .../src/gelato_session_id_number_options.rs | 4 +- .../src/gelato_session_last_error.rs | 8 +- .../src/gelato_verification_report_options.rs | 4 +- .../gelato_verification_session_options.rs | 4 +- .../src/gelato_verified_outputs.rs | 8 +- .../src/identity_verification_report/types.rs | 8 +- .../identity_verification_session/requests.rs | 4 +- .../identity_verification_session/types.rs | 10 +- .../src/reporting_report_run/requests.rs | 4 +- .../src/reporting_report_run/types.rs | 4 +- .../src/reporting_report_type/types.rs | 4 +- .../src/scheduled_query_run/types.rs | 4 +- .../src/sigma_scheduled_query_run_error.rs | 4 +- .../src/tax_calculation/requests.rs | 10 +- .../stripe_misc/src/tax_calculation/types.rs | 4 +- .../src/tax_calculation_line_item.rs | 8 +- ..._registrations_resource_country_options.rs | 4 +- ...ce_country_options_ca_province_standard.rs | 4 +- ...rations_resource_country_options_canada.rs | 10 +- ...ations_resource_country_options_default.rs | 10 +- ...ns_resource_country_options_eu_standard.rs | 8 +- ...rations_resource_country_options_europe.rs | 10 +- ...ons_resource_country_options_simplified.rs | 10 +- ..._resource_country_options_united_states.rs | 10 +- ..._country_options_us_local_amusement_tax.rs | 4 +- ...urce_country_options_us_local_lease_tax.rs | 4 +- .../tax_product_resource_customer_details.rs | 12 +- ...source_customer_details_resource_tax_id.rs | 10 +- .../src/tax_product_resource_jurisdiction.rs | 8 +- ...roduct_resource_line_item_tax_breakdown.rs | 12 +- ...uct_resource_line_item_tax_rate_details.rs | 8 +- .../tax_product_resource_postal_address.rs | 4 +- .../src/tax_product_resource_tax_breakdown.rs | 8 +- ..._resource_tax_calculation_shipping_cost.rs | 8 +- .../tax_product_resource_tax_rate_details.rs | 8 +- ..._product_resource_tax_settings_defaults.rs | 8 +- ...oduct_resource_tax_settings_head_office.rs | 4 +- ...ct_resource_tax_settings_status_details.rs | 4 +- ...settings_status_details_resource_active.rs | 4 +- ...ettings_status_details_resource_pending.rs | 4 +- ...transaction_line_item_resource_reversal.rs | 4 +- ...ource_tax_transaction_resource_reversal.rs | 4 +- ..._resource_tax_transaction_shipping_cost.rs | 8 +- .../src/tax_registration/requests.rs | 154 +++--- .../stripe_misc/src/tax_registration/types.rs | 8 +- .../stripe_misc/src/tax_settings/requests.rs | 2 +- .../stripe_misc/src/tax_settings/types.rs | 8 +- .../src/tax_transaction/requests.rs | 2 +- .../stripe_misc/src/tax_transaction/types.rs | 10 +- .../src/tax_transaction_line_item.rs | 14 +- .../src/verification_session_redaction.rs | 8 +- .../src/webhook_endpoint/requests.rs | 4 +- .../stripe_misc/src/webhook_endpoint/types.rs | 4 +- generated/stripe_payment/Cargo.toml | 3 +- .../src/bank_account/requests.rs | 27 +- generated/stripe_payment/src/card/requests.rs | 27 +- .../src/payment_link/requests.rs | 54 +- .../src/payment_method/requests.rs | 24 +- ...thod_config_resource_display_preference.rs | 12 +- ...nfig_resource_payment_method_properties.rs | 4 +- .../payment_method_configuration/requests.rs | 140 ++--- .../src/payment_method_configuration/types.rs | 4 +- .../src/payment_method_domain/types.rs | 4 +- ...d_domain_resource_payment_method_status.rs | 8 +- ..._resource_payment_method_status_details.rs | 4 +- .../stripe_payment/src/source/requests.rs | 32 +- .../src/source_mandate_notification.rs | 6 +- ...ce_mandate_notification_acss_debit_data.rs | 4 +- ...ce_mandate_notification_bacs_debit_data.rs | 4 +- ...ce_mandate_notification_sepa_debit_data.rs | 4 +- generated/stripe_product/Cargo.toml | 3 +- .../stripe_product/src/price/requests.rs | 12 +- .../stripe_product/src/product/requests.rs | 6 +- .../src/shipping_rate/requests.rs | 4 +- generated/stripe_shared/Cargo.toml | 3 +- generated/stripe_shared/src/account.rs | 10 +- .../src/account_annual_revenue.rs | 4 +- .../account_bacs_debit_payments_settings.rs | 4 +- .../src/account_branding_settings.rs | 4 +- .../src/account_business_profile.rs | 4 +- .../stripe_shared/src/account_capabilities.rs | 8 +- .../account_capability_future_requirements.rs | 4 +- .../src/account_capability_requirements.rs | 4 +- .../src/account_card_issuing_settings.rs | 4 +- .../src/account_card_payments_settings.rs | 4 +- .../src/account_dashboard_settings.rs | 4 +- .../src/account_decline_charge_on.rs | 4 +- .../src/account_future_requirements.rs | 4 +- .../src/account_invoices_settings.rs | 4 +- .../src/account_monthly_estimated_revenue.rs | 4 +- .../src/account_payments_settings.rs | 4 +- .../src/account_payout_settings.rs | 4 +- .../stripe_shared/src/account_requirements.rs | 4 +- .../src/account_requirements_alternative.rs | 4 +- .../src/account_requirements_error.rs | 8 +- .../account_sepa_debit_payments_settings.rs | 4 +- .../stripe_shared/src/account_settings.rs | 4 +- .../src/account_terms_of_service.rs | 4 +- .../src/account_tos_acceptance.rs | 4 +- .../src/account_treasury_settings.rs | 4 +- .../account_unification_account_controller.rs | 10 +- generated/stripe_shared/src/address.rs | 4 +- generated/stripe_shared/src/api_errors.rs | 14 +- generated/stripe_shared/src/api_version.rs | 2 +- generated/stripe_shared/src/application.rs | 4 +- .../stripe_shared/src/application_fee.rs | 4 +- .../src/application_fee_refund.rs | 4 +- generated/stripe_shared/src/automatic_tax.rs | 8 +- .../stripe_shared/src/balance_transaction.rs | 10 +- .../src/balance_transaction_source.rs | 70 ++- generated/stripe_shared/src/bank_account.rs | 8 +- .../stripe_shared/src/billing_details.rs | 4 +- .../stripe_shared/src/cancellation_details.rs | 12 +- generated/stripe_shared/src/capability.rs | 8 +- generated/stripe_shared/src/card.rs | 8 +- .../card_issuing_account_terms_of_service.rs | 4 +- .../card_mandate_payment_method_details.rs | 4 +- generated/stripe_shared/src/cash_balance.rs | 4 +- generated/stripe_shared/src/charge.rs | 8 +- .../stripe_shared/src/charge_fraud_details.rs | 4 +- generated/stripe_shared/src/charge_outcome.rs | 6 +- .../stripe_shared/src/charge_transfer_data.rs | 4 +- .../src/checkout_session_item.rs | 4 +- .../src/connect_account_reference.rs | 10 +- .../src/connect_collection_transfer.rs | 4 +- generated/stripe_shared/src/coupon.rs | 6 +- .../stripe_shared/src/coupon_applies_to.rs | 4 +- .../src/coupon_currency_option.rs | 4 +- generated/stripe_shared/src/credit_note.rs | 16 +- .../src/credit_note_line_item.rs | 10 +- .../src/credit_note_tax_amount.rs | 8 +- .../stripe_shared/src/currency_option.rs | 8 +- .../stripe_shared/src/custom_unit_amount.rs | 4 +- generated/stripe_shared/src/customer.rs | 6 +- .../stripe_shared/src/customer_acceptance.rs | 10 +- ...tomer_balance_customer_balance_settings.rs | 8 +- ...saction_resource_adjusted_for_overdraft.rs | 4 +- ...resource_applied_to_payment_transaction.rs | 4 +- ...transaction_resource_funded_transaction.rs | 4 +- ...nded_transaction_resource_bank_transfer.rs | 10 +- ...bank_transfer_resource_eu_bank_transfer.rs | 4 +- ...bank_transfer_resource_gb_bank_transfer.rs | 4 +- ...bank_transfer_resource_jp_bank_transfer.rs | 4 +- ...bank_transfer_resource_us_bank_transfer.rs | 8 +- ...ource_refunded_from_payment_transaction.rs | 4 +- ...saction_resource_transferred_to_balance.rs | 4 +- ...urce_unapplied_from_payment_transaction.rs | 4 +- .../src/customer_balance_transaction.rs | 10 +- .../src/customer_cash_balance_transaction.rs | 10 +- generated/stripe_shared/src/customer_tax.rs | 8 +- .../src/customer_tax_location.rs | 8 +- .../stripe_shared/src/deleted_account.rs | 4 +- .../stripe_shared/src/deleted_bank_account.rs | 4 +- generated/stripe_shared/src/deleted_card.rs | 4 +- generated/stripe_shared/src/deleted_coupon.rs | 4 +- .../stripe_shared/src/deleted_customer.rs | 4 +- .../stripe_shared/src/deleted_discount.rs | 4 +- .../src/deleted_external_account.rs | 13 +- .../stripe_shared/src/deleted_invoice.rs | 4 +- .../stripe_shared/src/deleted_invoiceitem.rs | 4 +- .../src/deleted_payment_source.rs | 13 +- generated/stripe_shared/src/deleted_person.rs | 4 +- generated/stripe_shared/src/deleted_plan.rs | 4 +- .../stripe_shared/src/deleted_product.rs | 4 +- .../src/deleted_subscription_item.rs | 4 +- generated/stripe_shared/src/deleted_tax_id.rs | 4 +- .../src/deleted_test_helpers_test_clock.rs | 4 +- .../src/destination_details_unimplemented.rs | 4 +- generated/stripe_shared/src/discount.rs | 4 +- .../src/discounts_resource_discount_amount.rs | 4 +- generated/stripe_shared/src/dispute.rs | 8 +- .../stripe_shared/src/dispute_evidence.rs | 4 +- .../src/dispute_evidence_details.rs | 4 +- .../src/dispute_payment_method_details.rs | 10 +- .../dispute_payment_method_details_card.rs | 4 +- generated/stripe_shared/src/email_sent.rs | 4 +- generated/stripe_shared/src/error.rs | 4 +- generated/stripe_shared/src/event.rs | 10 +- .../stripe_shared/src/external_account.rs | 13 +- .../src/external_account_requirements.rs | 4 +- generated/stripe_shared/src/fee.rs | 6 +- generated/stripe_shared/src/file.rs | 8 +- generated/stripe_shared/src/file_link.rs | 4 +- .../stripe_shared/src/funding_instructions.rs | 8 +- .../src/funding_instructions_bank_transfer.rs | 10 +- ...g_instructions_bank_transfer_aba_record.rs | 4 +- ...uctions_bank_transfer_financial_address.rs | 14 +- ..._instructions_bank_transfer_iban_record.rs | 4 +- ...ructions_bank_transfer_sort_code_record.rs | 4 +- ..._instructions_bank_transfer_spei_record.rs | 4 +- ...instructions_bank_transfer_swift_record.rs | 4 +- ...nstructions_bank_transfer_zengin_record.rs | 4 +- generated/stripe_shared/src/invoice.rs | 16 +- .../src/invoice_installments_card.rs | 4 +- generated/stripe_shared/src/invoice_item.rs | 4 +- .../src/invoice_item_threshold_reason.rs | 4 +- .../stripe_shared/src/invoice_line_item.rs | 10 +- .../src/invoice_line_item_period.rs | 4 +- .../src/invoice_mandate_options_card.rs | 8 +- ...voice_payment_method_options_acss_debit.rs | 8 +- ...thod_options_acss_debit_mandate_options.rs | 8 +- ...voice_payment_method_options_bancontact.rs | 8 +- .../invoice_payment_method_options_card.rs | 8 +- ...payment_method_options_customer_balance.rs | 8 +- ..._options_customer_balance_bank_transfer.rs | 6 +- ..._balance_bank_transfer_eu_bank_transfer.rs | 8 +- .../invoice_payment_method_options_konbini.rs | 4 +- ..._payment_method_options_us_bank_account.rs | 8 +- ..._us_bank_account_linked_account_options.rs | 12 +- .../src/invoice_rendering_pdf.rs | 8 +- .../src/invoice_setting_custom_field.rs | 4 +- .../src/invoice_setting_customer_setting.rs | 4 +- .../src/invoice_setting_quote_setting.rs | 4 +- .../src/invoice_setting_rendering_options.rs | 4 +- ...ing_subscription_schedule_phase_setting.rs | 4 +- ...e_setting_subscription_schedule_setting.rs | 4 +- .../stripe_shared/src/invoice_tax_amount.rs | 8 +- .../src/invoice_threshold_reason.rs | 4 +- .../src/invoice_transfer_data.rs | 4 +- .../src/invoices_from_invoice.rs | 4 +- .../src/invoices_invoice_rendering.rs | 4 +- .../src/invoices_payment_method_options.rs | 4 +- .../src/invoices_payment_settings.rs | 8 +- .../src/invoices_resource_invoice_tax_id.rs | 10 +- ...ices_resource_line_items_credited_items.rs | 4 +- ...s_resource_line_items_proration_details.rs | 4 +- .../src/invoices_shipping_cost.rs | 4 +- .../src/invoices_status_transitions.rs | 4 +- .../src/issuing_authorization.rs | 8 +- .../issuing_authorization_amount_details.rs | 4 +- ..._authorization_authentication_exemption.rs | 14 +- .../issuing_authorization_merchant_data.rs | 4 +- .../src/issuing_authorization_network_data.rs | 4 +- .../issuing_authorization_pending_request.rs | 4 +- .../src/issuing_authorization_request.rs | 8 +- .../issuing_authorization_three_d_secure.rs | 8 +- .../src/issuing_authorization_treasury.rs | 4 +- ...issuing_authorization_verification_data.rs | 20 +- generated/stripe_shared/src/issuing_card.rs | 16 +- .../src/issuing_card_apple_pay.rs | 8 +- .../issuing_card_authorization_controls.rs | 12 +- .../src/issuing_card_google_pay.rs | 8 +- .../src/issuing_card_shipping.rs | 22 +- .../src/issuing_card_shipping_customs.rs | 4 +- .../src/issuing_card_spending_limit.rs | 12 +- .../stripe_shared/src/issuing_card_wallets.rs | 4 +- .../stripe_shared/src/issuing_cardholder.rs | 12 +- .../src/issuing_cardholder_address.rs | 4 +- ...suing_cardholder_authorization_controls.rs | 12 +- .../src/issuing_cardholder_card_issuing.rs | 4 +- .../src/issuing_cardholder_company.rs | 4 +- .../src/issuing_cardholder_id_document.rs | 4 +- .../src/issuing_cardholder_individual.rs | 4 +- .../src/issuing_cardholder_individual_dob.rs | 4 +- .../src/issuing_cardholder_requirements.rs | 12 +- .../src/issuing_cardholder_spending_limit.rs | 12 +- ...ssuing_cardholder_user_terms_acceptance.rs | 4 +- .../src/issuing_cardholder_verification.rs | 4 +- .../stripe_shared/src/issuing_dispute.rs | 6 +- .../src/issuing_dispute_canceled_evidence.rs | 12 +- .../src/issuing_dispute_duplicate_evidence.rs | 4 +- .../src/issuing_dispute_evidence.rs | 8 +- .../issuing_dispute_fraudulent_evidence.rs | 4 +- ...e_merchandise_not_as_described_evidence.rs | 8 +- .../issuing_dispute_not_received_evidence.rs | 8 +- .../src/issuing_dispute_other_evidence.rs | 8 +- ...spute_service_not_as_described_evidence.rs | 4 +- .../src/issuing_dispute_treasury.rs | 4 +- .../src/issuing_network_token_address.rs | 4 +- .../src/issuing_network_token_device.rs | 10 +- .../src/issuing_network_token_mastercard.rs | 4 +- .../src/issuing_network_token_network_data.rs | 10 +- .../src/issuing_network_token_visa.rs | 4 +- .../issuing_network_token_wallet_provider.rs | 16 +- generated/stripe_shared/src/issuing_token.rs | 14 +- .../stripe_shared/src/issuing_transaction.rs | 12 +- .../src/issuing_transaction_amount_details.rs | 4 +- .../src/issuing_transaction_flight_data.rs | 4 +- .../issuing_transaction_flight_data_leg.rs | 4 +- .../src/issuing_transaction_fuel_data.rs | 6 +- .../src/issuing_transaction_lodging_data.rs | 4 +- .../src/issuing_transaction_network_data.rs | 4 +- .../issuing_transaction_purchase_details.rs | 4 +- .../src/issuing_transaction_receipt_data.rs | 4 +- .../src/issuing_transaction_treasury.rs | 4 +- .../stripe_shared/src/legal_entity_company.rs | 8 +- .../src/legal_entity_company_verification.rs | 4 +- ...al_entity_company_verification_document.rs | 4 +- .../stripe_shared/src/legal_entity_dob.rs | 4 +- .../src/legal_entity_japan_address.rs | 4 +- .../src/legal_entity_person_verification.rs | 4 +- ...gal_entity_person_verification_document.rs | 4 +- .../src/legal_entity_ubo_declaration.rs | 4 +- generated/stripe_shared/src/level3.rs | 4 +- .../stripe_shared/src/level3_line_items.rs | 4 +- .../src/line_items_discount_amount.rs | 4 +- .../src/line_items_tax_amount.rs | 8 +- .../linked_account_options_us_bank_account.rs | 12 +- generated/stripe_shared/src/mandate.rs | 14 +- .../stripe_shared/src/mandate_acss_debit.rs | 16 +- .../src/mandate_au_becs_debit.rs | 4 +- .../stripe_shared/src/mandate_bacs_debit.rs | 12 +- .../stripe_shared/src/mandate_cashapp.rs | 4 +- generated/stripe_shared/src/mandate_link.rs | 4 +- .../stripe_shared/src/mandate_multi_use.rs | 4 +- .../src/mandate_payment_method_details.rs | 6 +- generated/stripe_shared/src/mandate_paypal.rs | 4 +- .../stripe_shared/src/mandate_sepa_debit.rs | 4 +- .../stripe_shared/src/mandate_single_use.rs | 4 +- .../src/mandate_us_bank_account.rs | 8 +- generated/stripe_shared/src/networks.rs | 4 +- .../src/notification_event_data.rs | 14 +- .../src/notification_event_request.rs | 4 +- .../stripe_shared/src/offline_acceptance.rs | 4 +- .../stripe_shared/src/online_acceptance.rs | 4 +- .../stripe_shared/src/package_dimensions.rs | 4 +- .../src/payment_flows_amount_details.rs | 4 +- ...yment_flows_amount_details_resource_tip.rs | 4 +- ...utomatic_payment_methods_payment_intent.rs | 8 +- ..._automatic_payment_methods_setup_intent.rs | 8 +- ...nt_flows_private_payment_methods_alipay.rs | 4 +- ..._private_payment_methods_alipay_details.rs | 4 +- ...ed_authorization_extended_authorization.rs | 8 +- ...authorization_incremental_authorization.rs | 8 +- ...rprise_features_overcapture_overcapture.rs | 8 +- ..._card_details_api_resource_multicapture.rs | 8 +- ...lows_private_payment_methods_klarna_dob.rs | 4 +- generated/stripe_shared/src/payment_intent.rs | 18 +- .../src/payment_intent_card_processing.rs | 4 +- .../src/payment_intent_next_action.rs | 11 +- ...tent_next_action_alipay_handle_redirect.rs | 4 +- .../src/payment_intent_next_action_boleto.rs | 4 +- ...ent_next_action_card_await_notification.rs | 4 +- ...happ_handle_redirect_or_display_qr_code.rs | 4 +- ...ment_intent_next_action_cashapp_qr_code.rs | 4 +- ...tion_display_bank_transfer_instructions.rs | 10 +- ...intent_next_action_display_oxxo_details.rs | 4 +- .../src/payment_intent_next_action_konbini.rs | 4 +- ...t_intent_next_action_konbini_familymart.rs | 4 +- ...yment_intent_next_action_konbini_lawson.rs | 4 +- ...ent_intent_next_action_konbini_ministop.rs | 4 +- ...nt_intent_next_action_konbini_seicomart.rs | 4 +- ...yment_intent_next_action_konbini_stores.rs | 4 +- ...tent_next_action_paynow_display_qr_code.rs | 4 +- ..._intent_next_action_pix_display_qr_code.rs | 4 +- ...t_next_action_promptpay_display_qr_code.rs | 4 +- ...ment_intent_next_action_redirect_to_url.rs | 4 +- ...wish_handle_redirect_or_display_qr_code.rs | 4 +- ...ayment_intent_next_action_swish_qr_code.rs | 4 +- ...t_next_action_verify_with_microdeposits.rs | 8 +- ..._next_action_wechat_pay_display_qr_code.rs | 4 +- ...tion_wechat_pay_redirect_to_android_app.rs | 4 +- ...t_action_wechat_pay_redirect_to_ios_app.rs | 4 +- .../payment_intent_payment_method_options.rs | 4 +- ...ntent_payment_method_options_acss_debit.rs | 12 +- ...nt_payment_method_options_au_becs_debit.rs | 8 +- ...ment_intent_payment_method_options_blik.rs | 8 +- ...ment_intent_payment_method_options_card.rs | 36 +- ...yment_intent_payment_method_options_eps.rs | 8 +- ...ment_intent_payment_method_options_link.rs | 12 +- ...thod_options_mandate_options_acss_debit.rs | 12 +- ...thod_options_mandate_options_sepa_debit.rs | 4 +- ...ntent_payment_method_options_sepa_debit.rs | 8 +- ...ent_intent_payment_method_options_swish.rs | 8 +- ..._payment_method_options_us_bank_account.rs | 16 +- .../src/payment_intent_processing.rs | 10 +- ...intent_processing_customer_notification.rs | 4 +- generated/stripe_shared/src/payment_link.rs | 18 +- ...payment_links_resource_after_completion.rs | 10 +- .../payment_links_resource_automatic_tax.rs | 4 +- ...yment_links_resource_completed_sessions.rs | 4 +- ...e_completion_behavior_confirmation_page.rs | 4 +- ...s_resource_completion_behavior_redirect.rs | 4 +- ...yment_links_resource_consent_collection.rs | 12 +- .../payment_links_resource_custom_fields.rs | 10 +- ...t_links_resource_custom_fields_dropdown.rs | 4 +- ..._resource_custom_fields_dropdown_option.rs | 4 +- ...ment_links_resource_custom_fields_label.rs | 10 +- ...nt_links_resource_custom_fields_numeric.rs | 4 +- ...yment_links_resource_custom_fields_text.rs | 4 +- .../src/payment_links_resource_custom_text.rs | 4 +- ...ent_links_resource_custom_text_position.rs | 4 +- ...payment_links_resource_invoice_creation.rs | 4 +- ...payment_links_resource_invoice_settings.rs | 4 +- ...ment_links_resource_payment_intent_data.rs | 12 +- ...resource_payment_method_reuse_agreement.rs | 8 +- ..._links_resource_phone_number_collection.rs | 4 +- .../payment_links_resource_restrictions.rs | 4 +- ...ks_resource_shipping_address_collection.rs | 8 +- .../payment_links_resource_shipping_option.rs | 4 +- ...ayment_links_resource_subscription_data.rs | 4 +- ...urce_subscription_data_invoice_settings.rs | 4 +- ...ayment_links_resource_tax_id_collection.rs | 4 +- .../payment_links_resource_transfer_data.rs | 4 +- generated/stripe_shared/src/payment_method.rs | 10 +- .../src/payment_method_acss_debit.rs | 4 +- .../src/payment_method_affirm.rs | 4 +- .../src/payment_method_afterpay_clearpay.rs | 4 +- .../src/payment_method_au_becs_debit.rs | 4 +- .../src/payment_method_bacs_debit.rs | 4 +- .../src/payment_method_bancontact.rs | 4 +- .../stripe_shared/src/payment_method_blik.rs | 4 +- .../src/payment_method_boleto.rs | 4 +- .../stripe_shared/src/payment_method_card.rs | 4 +- .../src/payment_method_card_checks.rs | 4 +- .../src/payment_method_card_present.rs | 8 +- .../payment_method_card_present_networks.rs | 4 +- .../src/payment_method_card_wallet.rs | 10 +- ...ethod_card_wallet_amex_express_checkout.rs | 4 +- .../payment_method_card_wallet_apple_pay.rs | 4 +- .../payment_method_card_wallet_google_pay.rs | 4 +- .../src/payment_method_card_wallet_link.rs | 4 +- .../payment_method_card_wallet_masterpass.rs | 4 +- .../payment_method_card_wallet_samsung_pay.rs | 4 +- ...ayment_method_card_wallet_visa_checkout.rs | 4 +- .../src/payment_method_cashapp.rs | 4 +- ...iz_payment_method_configuration_details.rs | 4 +- .../src/payment_method_customer_balance.rs | 4 +- .../src/payment_method_details.rs | 6 +- ...ment_method_details_ach_credit_transfer.rs | 4 +- .../src/payment_method_details_ach_debit.rs | 8 +- .../src/payment_method_details_acss_debit.rs | 4 +- .../src/payment_method_details_affirm.rs | 4 +- ...ayment_method_details_afterpay_clearpay.rs | 4 +- .../payment_method_details_au_becs_debit.rs | 4 +- .../src/payment_method_details_bacs_debit.rs | 4 +- .../src/payment_method_details_bancontact.rs | 8 +- .../src/payment_method_details_blik.rs | 4 +- .../src/payment_method_details_boleto.rs | 4 +- .../src/payment_method_details_card.rs | 4 +- .../src/payment_method_details_card_checks.rs | 4 +- ...ayment_method_details_card_installments.rs | 4 +- ...t_method_details_card_installments_plan.rs | 14 +- ...yment_method_details_card_network_token.rs | 4 +- .../payment_method_details_card_present.rs | 8 +- ...ent_method_details_card_present_offline.rs | 4 +- ...ent_method_details_card_present_receipt.rs | 8 +- .../src/payment_method_details_card_wallet.rs | 10 +- ...tails_card_wallet_amex_express_checkout.rs | 4 +- ...nt_method_details_card_wallet_apple_pay.rs | 4 +- ...t_method_details_card_wallet_google_pay.rs | 4 +- ...payment_method_details_card_wallet_link.rs | 4 +- ...t_method_details_card_wallet_masterpass.rs | 4 +- ..._method_details_card_wallet_samsung_pay.rs | 4 +- ...ethod_details_card_wallet_visa_checkout.rs | 4 +- .../src/payment_method_details_cashapp.rs | 4 +- ...payment_method_details_customer_balance.rs | 4 +- .../src/payment_method_details_eps.rs | 8 +- .../src/payment_method_details_fpx.rs | 12 +- .../src/payment_method_details_giropay.rs | 4 +- .../src/payment_method_details_grabpay.rs | 4 +- .../src/payment_method_details_ideal.rs | 12 +- .../payment_method_details_interac_present.rs | 8 +- ..._method_details_interac_present_receipt.rs | 8 +- .../src/payment_method_details_klarna.rs | 4 +- .../src/payment_method_details_konbini.rs | 4 +- .../payment_method_details_konbini_store.rs | 8 +- .../src/payment_method_details_link.rs | 4 +- .../src/payment_method_details_multibanco.rs | 4 +- .../src/payment_method_details_oxxo.rs | 4 +- .../src/payment_method_details_p24.rs | 8 +- .../src/payment_method_details_paynow.rs | 4 +- .../src/payment_method_details_paypal.rs | 4 +- .../src/payment_method_details_pix.rs | 4 +- .../src/payment_method_details_promptpay.rs | 4 +- .../src/payment_method_details_revolut_pay.rs | 4 +- ...ent_method_details_sepa_credit_transfer.rs | 4 +- .../src/payment_method_details_sepa_debit.rs | 4 +- .../src/payment_method_details_sofort.rs | 8 +- .../payment_method_details_stripe_account.rs | 4 +- .../src/payment_method_details_swish.rs | 4 +- .../payment_method_details_us_bank_account.rs | 12 +- .../src/payment_method_details_wechat.rs | 4 +- .../src/payment_method_details_wechat_pay.rs | 4 +- .../src/payment_method_details_zip.rs | 4 +- .../stripe_shared/src/payment_method_eps.rs | 8 +- .../stripe_shared/src/payment_method_fpx.rs | 12 +- .../src/payment_method_giropay.rs | 4 +- .../src/payment_method_grabpay.rs | 4 +- .../stripe_shared/src/payment_method_ideal.rs | 12 +- .../src/payment_method_interac_present.rs | 8 +- .../src/payment_method_klarna.rs | 4 +- .../src/payment_method_konbini.rs | 4 +- .../stripe_shared/src/payment_method_link.rs | 4 +- .../src/payment_method_options_affirm.rs | 12 +- ...ayment_method_options_afterpay_clearpay.rs | 12 +- .../src/payment_method_options_alipay.rs | 8 +- .../src/payment_method_options_bacs_debit.rs | 8 +- .../src/payment_method_options_bancontact.rs | 12 +- .../src/payment_method_options_boleto.rs | 8 +- ...ayment_method_options_card_installments.rs | 4 +- ...ent_method_options_card_mandate_options.rs | 16 +- .../payment_method_options_card_present.rs | 4 +- .../src/payment_method_options_cashapp.rs | 12 +- ...payment_method_options_customer_balance.rs | 12 +- ..._options_customer_balance_bank_transfer.rs | 14 +- ...ptions_customer_balance_eu_bank_account.rs | 8 +- .../src/payment_method_options_fpx.rs | 8 +- .../src/payment_method_options_giropay.rs | 8 +- .../src/payment_method_options_grabpay.rs | 8 +- .../src/payment_method_options_ideal.rs | 8 +- .../payment_method_options_interac_present.rs | 4 +- .../src/payment_method_options_klarna.rs | 12 +- .../src/payment_method_options_konbini.rs | 8 +- .../src/payment_method_options_oxxo.rs | 8 +- .../src/payment_method_options_p24.rs | 8 +- .../src/payment_method_options_paynow.rs | 8 +- .../src/payment_method_options_paypal.rs | 12 +- .../src/payment_method_options_pix.rs | 8 +- .../src/payment_method_options_promptpay.rs | 8 +- .../src/payment_method_options_revolut_pay.rs | 4 +- .../src/payment_method_options_sofort.rs | 12 +- ...options_us_bank_account_mandate_options.rs | 8 +- .../src/payment_method_options_wechat_pay.rs | 12 +- .../src/payment_method_options_zip.rs | 8 +- .../stripe_shared/src/payment_method_oxxo.rs | 4 +- .../stripe_shared/src/payment_method_p24.rs | 8 +- .../src/payment_method_paynow.rs | 4 +- .../src/payment_method_paypal.rs | 4 +- .../stripe_shared/src/payment_method_pix.rs | 4 +- .../src/payment_method_promptpay.rs | 4 +- .../src/payment_method_revolut_pay.rs | 4 +- .../src/payment_method_sepa_debit.rs | 4 +- .../src/payment_method_sofort.rs | 4 +- .../stripe_shared/src/payment_method_swish.rs | 4 +- .../src/payment_method_us_bank_account.rs | 12 +- .../payment_method_us_bank_account_blocked.rs | 12 +- ...t_method_us_bank_account_status_details.rs | 4 +- .../src/payment_method_wechat_pay.rs | 4 +- .../stripe_shared/src/payment_method_zip.rs | 4 +- generated/stripe_shared/src/payment_source.rs | 17 +- generated/stripe_shared/src/payout.rs | 14 +- .../src/paypal_seller_protection.rs | 12 +- generated/stripe_shared/src/period.rs | 4 +- generated/stripe_shared/src/person.rs | 8 +- .../src/person_additional_tos_acceptance.rs | 4 +- .../src/person_additional_tos_acceptances.rs | 4 +- .../src/person_future_requirements.rs | 4 +- .../stripe_shared/src/person_relationship.rs | 4 +- .../stripe_shared/src/person_requirements.rs | 4 +- generated/stripe_shared/src/plan.rs | 14 +- generated/stripe_shared/src/plan_tier.rs | 4 +- .../stripe_shared/src/platform_tax_fee.rs | 6 +- generated/stripe_shared/src/price.rs | 14 +- generated/stripe_shared/src/price_tier.rs | 4 +- generated/stripe_shared/src/product.rs | 8 +- .../stripe_shared/src/product_feature.rs | 4 +- generated/stripe_shared/src/promotion_code.rs | 4 +- .../src/promotion_code_currency_option.rs | 4 +- .../promotion_codes_resource_restrictions.rs | 4 +- generated/stripe_shared/src/quote.rs | 8 +- .../src/quotes_resource_automatic_tax.rs | 8 +- .../src/quotes_resource_computed.rs | 4 +- .../src/quotes_resource_from_quote.rs | 4 +- .../src/quotes_resource_recurring.rs | 8 +- .../src/quotes_resource_status_transitions.rs | 4 +- ...rce_subscription_data_subscription_data.rs | 4 +- .../src/quotes_resource_total_details.rs | 4 +- ...source_total_details_resource_breakdown.rs | 4 +- .../src/quotes_resource_transfer_data.rs | 4 +- .../src/quotes_resource_upfront.rs | 4 +- .../stripe_shared/src/radar_radar_options.rs | 4 +- .../src/radar_review_resource_location.rs | 4 +- .../src/radar_review_resource_session.rs | 4 +- generated/stripe_shared/src/recurring.rs | 16 +- generated/stripe_shared/src/refund.rs | 8 +- .../src/refund_destination_details.rs | 6 +- .../src/refund_destination_details_card.rs | 10 +- .../src/refund_destination_details_generic.rs | 4 +- .../stripe_shared/src/refund_next_action.rs | 6 +- .../src/refund_next_action_display_details.rs | 4 +- .../stripe_shared/src/reserve_transaction.rs | 4 +- generated/stripe_shared/src/review.rs | 12 +- generated/stripe_shared/src/rule.rs | 4 +- .../src/schedules_phase_automatic_tax.rs | 4 +- .../src/sepa_debit_generated_from.rs | 4 +- generated/stripe_shared/src/setup_attempt.rs | 8 +- .../setup_attempt_payment_method_details.rs | 6 +- ...tempt_payment_method_details_acss_debit.rs | 4 +- ...pt_payment_method_details_au_becs_debit.rs | 4 +- ...tempt_payment_method_details_bacs_debit.rs | 4 +- ...tempt_payment_method_details_bancontact.rs | 8 +- ...p_attempt_payment_method_details_boleto.rs | 4 +- ...tup_attempt_payment_method_details_card.rs | 4 +- ...empt_payment_method_details_card_checks.rs | 4 +- ...mpt_payment_method_details_card_present.rs | 4 +- ...empt_payment_method_details_card_wallet.rs | 10 +- ..._attempt_payment_method_details_cashapp.rs | 4 +- ...up_attempt_payment_method_details_ideal.rs | 12 +- ...p_attempt_payment_method_details_klarna.rs | 4 +- ...tup_attempt_payment_method_details_link.rs | 4 +- ...p_attempt_payment_method_details_paypal.rs | 4 +- ...tempt_payment_method_details_sepa_debit.rs | 4 +- ...p_attempt_payment_method_details_sofort.rs | 8 +- ..._payment_method_details_us_bank_account.rs | 4 +- generated/stripe_shared/src/setup_intent.rs | 12 +- .../src/setup_intent_next_action.rs | 11 +- ...etup_intent_next_action_redirect_to_url.rs | 4 +- ...t_next_action_verify_with_microdeposits.rs | 8 +- .../setup_intent_payment_method_options.rs | 4 +- ...ntent_payment_method_options_acss_debit.rs | 12 +- ...etup_intent_payment_method_options_card.rs | 12 +- ...ent_method_options_card_mandate_options.rs | 16 +- ...etup_intent_payment_method_options_link.rs | 4 +- ...thod_options_mandate_options_acss_debit.rs | 16 +- ...thod_options_mandate_options_sepa_debit.rs | 4 +- ...up_intent_payment_method_options_paypal.rs | 4 +- ...ntent_payment_method_options_sepa_debit.rs | 4 +- ..._payment_method_options_us_bank_account.rs | 8 +- generated/stripe_shared/src/shipping.rs | 4 +- generated/stripe_shared/src/shipping_rate.rs | 10 +- .../src/shipping_rate_currency_option.rs | 8 +- .../src/shipping_rate_delivery_estimate.rs | 4 +- .../shipping_rate_delivery_estimate_bound.rs | 8 +- .../src/shipping_rate_fixed_amount.rs | 4 +- generated/stripe_shared/src/source.rs | 10 +- .../src/source_code_verification_flow.rs | 4 +- generated/stripe_shared/src/source_order.rs | 4 +- .../stripe_shared/src/source_order_item.rs | 6 +- generated/stripe_shared/src/source_owner.rs | 4 +- .../stripe_shared/src/source_receiver_flow.rs | 4 +- .../stripe_shared/src/source_redirect_flow.rs | 4 +- .../stripe_shared/src/source_transaction.rs | 10 +- ...ce_transaction_ach_credit_transfer_data.rs | 4 +- ...ce_transaction_chf_credit_transfer_data.rs | 4 +- ...ce_transaction_gbp_credit_transfer_data.rs | 4 +- .../source_transaction_paper_check_data.rs | 4 +- ...e_transaction_sepa_credit_transfer_data.rs | 4 +- .../src/source_type_ach_credit_transfer.rs | 4 +- .../src/source_type_ach_debit.rs | 6 +- .../src/source_type_acss_debit.rs | 4 +- .../stripe_shared/src/source_type_alipay.rs | 4 +- .../src/source_type_au_becs_debit.rs | 4 +- .../src/source_type_bancontact.rs | 4 +- .../stripe_shared/src/source_type_card.rs | 4 +- .../src/source_type_card_present.rs | 4 +- .../stripe_shared/src/source_type_eps.rs | 4 +- .../stripe_shared/src/source_type_giropay.rs | 4 +- .../stripe_shared/src/source_type_ideal.rs | 4 +- .../stripe_shared/src/source_type_klarna.rs | 4 +- .../src/source_type_multibanco.rs | 4 +- .../stripe_shared/src/source_type_p24.rs | 4 +- .../src/source_type_sepa_credit_transfer.rs | 4 +- .../src/source_type_sepa_debit.rs | 4 +- .../stripe_shared/src/source_type_sofort.rs | 4 +- .../src/source_type_three_d_secure.rs | 4 +- .../stripe_shared/src/source_type_wechat.rs | 4 +- generated/stripe_shared/src/subscription.rs | 10 +- .../src/subscription_automatic_tax.rs | 4 +- .../src/subscription_billing_thresholds.rs | 4 +- .../src/subscription_details_data.rs | 4 +- .../stripe_shared/src/subscription_item.rs | 4 +- .../subscription_item_billing_thresholds.rs | 4 +- ...ubscription_payment_method_options_card.rs | 12 +- ...scription_pending_invoice_item_interval.rs | 8 +- .../src/subscription_schedule.rs | 10 +- .../subscription_schedule_add_invoice_item.rs | 4 +- ...ubscription_schedule_configuration_item.rs | 4 +- .../subscription_schedule_current_phase.rs | 4 +- ...bscription_schedule_phase_configuration.rs | 16 +- ...ion_schedules_resource_default_settings.rs | 12 +- ...resource_default_settings_automatic_tax.rs | 4 +- .../src/subscription_transfer_data.rs | 4 +- ...ns_resource_billing_cycle_anchor_config.rs | 4 +- ...subscriptions_resource_pause_collection.rs | 8 +- ...iptions_resource_payment_method_options.rs | 4 +- ...subscriptions_resource_payment_settings.rs | 12 +- .../subscriptions_resource_pending_update.rs | 4 +- ...scriptions_trials_resource_end_behavior.rs | 8 +- ...riptions_trials_resource_trial_settings.rs | 4 +- generated/stripe_shared/src/tax_code.rs | 4 +- .../src/tax_deducted_at_source.rs | 4 +- generated/stripe_shared/src/tax_i_ds_owner.rs | 10 +- generated/stripe_shared/src/tax_id.rs | 10 +- .../stripe_shared/src/tax_id_verification.rs | 8 +- generated/stripe_shared/src/tax_rate.rs | 10 +- .../src/test_helpers_test_clock.rs | 8 +- .../src/three_d_secure_details.rs | 24 +- .../src/three_d_secure_details_charge.rs | 28 +- .../stripe_shared/src/three_d_secure_usage.rs | 4 +- generated/stripe_shared/src/topup.rs | 8 +- generated/stripe_shared/src/transfer.rs | 4 +- generated/stripe_shared/src/transfer_data.rs | 4 +- .../stripe_shared/src/transfer_reversal.rs | 4 +- .../stripe_shared/src/transfer_schedule.rs | 4 +- .../stripe_shared/src/transform_quantity.rs | 8 +- .../stripe_shared/src/transform_usage.rs | 8 +- .../src/us_bank_account_networks.rs | 8 +- .../stripe_shared/src/usage_record_summary.rs | 4 +- generated/stripe_terminal/Cargo.toml | 3 +- .../src/deleted_terminal_configuration.rs | 4 +- .../src/deleted_terminal_location.rs | 4 +- .../src/deleted_terminal_reader.rs | 4 +- .../src/terminal_configuration/requests.rs | 12 +- .../src/terminal_configuration/types.rs | 4 +- ...ation_resource_currency_specific_config.rs | 4 +- ...on_resource_device_type_specific_config.rs | 4 +- ...n_configuration_resource_offline_config.rs | 4 +- ...guration_configuration_resource_tipping.rs | 4 +- .../src/terminal_connection_token/types.rs | 4 +- .../src/terminal_location/requests.rs | 12 +- .../src/terminal_location/types.rs | 4 +- .../src/terminal_reader/requests.rs | 16 +- .../src/terminal_reader/types.rs | 8 +- .../terminal_reader_reader_resource_cart.rs | 4 +- ...rminal_reader_reader_resource_line_item.rs | 4 +- ...l_reader_reader_resource_process_config.rs | 4 +- ..._resource_process_payment_intent_action.rs | 4 +- ...er_reader_resource_process_setup_config.rs | 4 +- ...er_resource_process_setup_intent_action.rs | 4 +- ...al_reader_reader_resource_reader_action.rs | 14 +- ...r_reader_resource_refund_payment_action.rs | 8 +- ...ader_resource_set_reader_display_action.rs | 10 +- ...l_reader_reader_resource_tipping_config.rs | 4 +- generated/stripe_treasury/Cargo.toml | 3 +- .../stripe_treasury/src/inbound_transfers.rs | 10 +- ..._payment_method_details_us_bank_account.rs | 16 +- ...utbound_payments_payment_method_details.rs | 10 +- ...ayment_method_details_financial_account.rs | 8 +- ..._payment_method_details_us_bank_account.rs | 16 +- ...tbound_transfers_payment_method_details.rs | 10 +- ..._payment_method_details_us_bank_account.rs | 16 +- ...ayment_method_details_financial_account.rs | 8 +- .../src/treasury_credit_reversal/types.rs | 10 +- .../src/treasury_debit_reversal/requests.rs | 4 +- .../src/treasury_debit_reversal/types.rs | 12 +- .../treasury_financial_account/requests.rs | 8 +- .../src/treasury_financial_account/types.rs | 12 +- .../treasury_financial_account_features.rs | 4 +- ..._financial_accounts_resource_aba_record.rs | 4 +- ...l_accounts_resource_aba_toggle_settings.rs | 8 +- ...l_accounts_resource_ach_toggle_settings.rs | 8 +- ...ury_financial_accounts_resource_balance.rs | 4 +- ...accounts_resource_closed_status_details.rs | 8 +- ...ial_accounts_resource_financial_address.rs | 14 +- ...s_resource_financial_addresses_features.rs | 4 +- ...ial_accounts_resource_inbound_transfers.rs | 4 +- ...ial_accounts_resource_outbound_payments.rs | 4 +- ...al_accounts_resource_outbound_transfers.rs | 4 +- ...accounts_resource_platform_restrictions.rs | 12 +- ...ancial_accounts_resource_status_details.rs | 4 +- ...ncial_accounts_resource_toggle_settings.rs | 8 +- ...resource_toggles_setting_status_details.rs | 16 +- .../src/treasury_inbound_transfer/requests.rs | 2 +- .../src/treasury_inbound_transfer/types.rs | 6 +- ...ound_transfers_resource_failure_details.rs | 8 +- ..._inbound_transfer_resource_linked_flows.rs | 4 +- ...nd_transfer_resource_status_transitions.rs | 4 +- .../src/treasury_outbound_payment/requests.rs | 10 +- .../src/treasury_outbound_payment/types.rs | 6 +- ...bound_payment_resource_end_user_details.rs | 4 +- ...und_payment_resource_status_transitions.rs | 4 +- ...bound_payments_resource_returned_status.rs | 8 +- .../treasury_outbound_transfer/requests.rs | 4 +- .../src/treasury_outbound_transfer/types.rs | 6 +- ...und_transfers_resource_returned_details.rs | 8 +- ...d_transfers_resource_status_transitions.rs | 4 +- .../src/treasury_received_credit/requests.rs | 6 +- .../src/treasury_received_credit/types.rs | 14 +- ..._received_credits_resource_linked_flows.rs | 4 +- ...eived_credits_resource_reversal_details.rs | 8 +- ...d_credits_resource_source_flows_details.rs | 10 +- ...ved_credits_resource_status_transitions.rs | 4 +- .../src/treasury_received_debit/requests.rs | 4 +- .../src/treasury_received_debit/types.rs | 14 +- ...ts_resource_debit_reversal_linked_flows.rs | 4 +- ...y_received_debits_resource_linked_flows.rs | 4 +- ...ceived_debits_resource_reversal_details.rs | 8 +- ...ived_debits_resource_status_transitions.rs | 4 +- ...reasury_shared_resource_billing_details.rs | 4 +- ...tails_initiating_payment_method_details.rs | 14 +- ..._payment_method_details_us_bank_account.rs | 4 +- .../src/treasury_transaction/requests.rs | 2 +- .../src/treasury_transaction/types.rs | 10 +- .../treasury_transaction_entry/requests.rs | 2 +- .../src/treasury_transaction_entry/types.rs | 14 +- ...transaction_resource_status_transitions.rs | 4 +- ...ry_transactions_resource_balance_impact.rs | 4 +- ...sury_transactions_resource_flow_details.rs | 10 +- openapi/src/templates/cargo_toml.rs | 26 +- openapi/src/templates/enums.rs | 33 +- openapi/src/templates/structs.rs | 60 +-- openapi/src/templates/utils.rs | 145 +++-- stripe_types/Cargo.toml | 3 +- stripe_types/src/currency.rs | 2 +- stripe_types/src/expandable.rs | 2 +- stripe_types/src/ids.rs | 2 +- stripe_types/src/pagination.rs | 4 +- stripe_types/src/params.rs | 2 +- stripe_webhook/src/generated/mod.rs | 100 ++-- tests/Cargo.toml | 24 +- 991 files changed, 4235 insertions(+), 4050 deletions(-) diff --git a/.github/workflows/async-stripe.yml b/.github/workflows/async-stripe.yml index a295bcaf0..75e759c71 100644 --- a/.github/workflows/async-stripe.yml +++ b/.github/workflows/async-stripe.yml @@ -97,7 +97,7 @@ jobs: - uses: Swatinem/rust-cache@v2 - name: Run clippy - run: cargo clippy --features "runtime-${{ matrix.runtime }} full serde" + run: cargo clippy --features "runtime-${{ matrix.runtime }} full serialize deserialize" test: runs-on: ubuntu-latest @@ -131,7 +131,7 @@ jobs: - uses: taiki-e/install-action@cargo-llvm-cov - name: Test and gather coverage - run: cargo llvm-cov --lcov --output-path lcov.info --features "runtime-${{ matrix.runtime }} serde" + run: cargo llvm-cov --lcov --output-path lcov.info --features "runtime-${{ matrix.runtime }} serialize deserialize" - name: Upload to codecov.io uses: codecov/codecov-action@v2.1.0 with: @@ -155,7 +155,7 @@ jobs: - uses: Swatinem/rust-cache@v2 - name: Build Documentation - run: cargo doc --lib --no-deps --features "runtime-tokio-hyper full serde" + run: cargo doc --lib --no-deps --features "runtime-tokio-hyper full" # Examples tested separately so that we can use crates which don't match our MSRV examples: diff --git a/generated/stripe_billing/Cargo.toml b/generated/stripe_billing/Cargo.toml index 2d11b01a6..a368651cb 100644 --- a/generated/stripe_billing/Cargo.toml +++ b/generated/stripe_billing/Cargo.toml @@ -29,7 +29,8 @@ stripe_shared = {path = "../../generated/stripe_shared"} [features] -serde = ["stripe_types/serde","stripe_shared/serde"] +serialize = ["stripe_types/serialize","stripe_shared/serialize"] +deserialize = ["stripe_types/deserialize","stripe_shared/deserialize"] runtime-tokio-hyper = ["async-stripe/runtime-tokio-hyper"] runtime-tokio-hyper-rustls = ["async-stripe/runtime-tokio-hyper-rustls"] runtime-tokio-hyper-rustls-webpki = ["async-stripe/runtime-tokio-hyper-rustls-webpki"] diff --git a/generated/stripe_billing/src/billing_portal_configuration/requests.rs b/generated/stripe_billing/src/billing_portal_configuration/requests.rs index 58a7119db..71f3be941 100644 --- a/generated/stripe_billing/src/billing_portal_configuration/requests.rs +++ b/generated/stripe_billing/src/billing_portal_configuration/requests.rs @@ -221,7 +221,7 @@ impl serde::Serialize for CreateBillingPortalConfigurationFeaturesCustomerUpdate serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateBillingPortalConfigurationFeaturesCustomerUpdateAllowedUpdates { @@ -366,7 +366,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateBillingPortalConfigurationFeaturesSubscriptionCancelCancellationReasonOptions { @@ -422,7 +422,7 @@ impl serde::Serialize for CreateBillingPortalConfigurationFeaturesSubscriptionCa serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateBillingPortalConfigurationFeaturesSubscriptionCancelMode { @@ -495,7 +495,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateBillingPortalConfigurationFeaturesSubscriptionCancelProrationBehavior { @@ -587,7 +587,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateBillingPortalConfigurationFeaturesSubscriptionUpdateDefaultAllowedUpdates { @@ -655,7 +655,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateBillingPortalConfigurationFeaturesSubscriptionUpdateProrationBehavior { @@ -839,7 +839,7 @@ impl serde::Serialize for UpdateBillingPortalConfigurationFeaturesCustomerUpdate serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateBillingPortalConfigurationFeaturesCustomerUpdateAllowedUpdates { @@ -984,7 +984,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateBillingPortalConfigurationFeaturesSubscriptionCancelCancellationReasonOptions { @@ -1040,7 +1040,7 @@ impl serde::Serialize for UpdateBillingPortalConfigurationFeaturesSubscriptionCa serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateBillingPortalConfigurationFeaturesSubscriptionCancelMode { @@ -1113,7 +1113,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateBillingPortalConfigurationFeaturesSubscriptionCancelProrationBehavior { @@ -1205,7 +1205,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateBillingPortalConfigurationFeaturesSubscriptionUpdateDefaultAllowedUpdates { @@ -1273,7 +1273,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateBillingPortalConfigurationFeaturesSubscriptionUpdateProrationBehavior { diff --git a/generated/stripe_billing/src/billing_portal_configuration/types.rs b/generated/stripe_billing/src/billing_portal_configuration/types.rs index 3daad9312..7606a43f2 100644 --- a/generated/stripe_billing/src/billing_portal_configuration/types.rs +++ b/generated/stripe_billing/src/billing_portal_configuration/types.rs @@ -1,6 +1,6 @@ /// A portal configuration describes the functionality and behavior of a portal session. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BillingPortalConfiguration { /// Whether the configuration is active and can be used to create portal sessions. pub active: bool, @@ -174,7 +174,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for BillingPortalConfiguration { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_billing/src/billing_portal_session/requests.rs b/generated/stripe_billing/src/billing_portal_session/requests.rs index 46e37d0e2..16d791668 100644 --- a/generated/stripe_billing/src/billing_portal_session/requests.rs +++ b/generated/stripe_billing/src/billing_portal_session/requests.rs @@ -163,7 +163,7 @@ impl serde::Serialize for CreateBillingPortalSessionFlowDataAfterCompletionType serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateBillingPortalSessionFlowDataAfterCompletionType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -260,7 +260,7 @@ impl serde::Serialize for CreateBillingPortalSessionFlowDataSubscriptionCancelRe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateBillingPortalSessionFlowDataSubscriptionCancelRetentionType { @@ -390,7 +390,7 @@ impl serde::Serialize for CreateBillingPortalSessionFlowDataType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateBillingPortalSessionFlowDataType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_billing/src/billing_portal_session/types.rs b/generated/stripe_billing/src/billing_portal_session/types.rs index 25239e3d9..f0acedf49 100644 --- a/generated/stripe_billing/src/billing_portal_session/types.rs +++ b/generated/stripe_billing/src/billing_portal_session/types.rs @@ -13,7 +13,7 @@ /// /// Learn more in the [integration guide](https://stripe.com/docs/billing/subscriptions/integrating-customer-portal). #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BillingPortalSession { /// The configuration used by this session, describing the features available. pub configuration: stripe_types::Expandable, @@ -176,7 +176,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for BillingPortalSession { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -404,7 +404,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(BillingPortalSessionLocale); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for BillingPortalSessionLocale { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_billing/src/credit_note/requests.rs b/generated/stripe_billing/src/credit_note/requests.rs index 4cbd38019..327516ded 100644 --- a/generated/stripe_billing/src/credit_note/requests.rs +++ b/generated/stripe_billing/src/credit_note/requests.rs @@ -224,7 +224,7 @@ impl serde::Serialize for PreviewCreditNoteLinesType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PreviewCreditNoteLinesType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -418,7 +418,7 @@ impl serde::Serialize for PreviewLinesCreditNoteLinesType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PreviewLinesCreditNoteLinesType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -605,7 +605,7 @@ impl serde::Serialize for CreateCreditNoteLinesType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCreditNoteLinesType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_billing/src/invoice/requests.rs b/generated/stripe_billing/src/invoice/requests.rs index a66439b17..a1f91fdc3 100644 --- a/generated/stripe_billing/src/invoice/requests.rs +++ b/generated/stripe_billing/src/invoice/requests.rs @@ -324,7 +324,7 @@ impl serde::Serialize for UpcomingInvoiceAutomaticTaxLiabilityType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpcomingInvoiceAutomaticTaxLiabilityType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -408,7 +408,7 @@ impl serde::Serialize for UpcomingInvoiceCustomerDetailsTaxExempt { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpcomingInvoiceCustomerDetailsTaxExempt { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -674,7 +674,7 @@ impl serde::Serialize for UpcomingInvoiceCustomerDetailsTaxIdsType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpcomingInvoiceCustomerDetailsTaxIdsType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -835,7 +835,7 @@ impl serde::Serialize for UpcomingInvoiceInvoiceItemsPriceDataTaxBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpcomingInvoiceInvoiceItemsPriceDataTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -899,7 +899,7 @@ impl serde::Serialize for UpcomingInvoiceInvoiceItemsTaxBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpcomingInvoiceInvoiceItemsTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -971,7 +971,7 @@ impl serde::Serialize for UpcomingInvoiceIssuerType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpcomingInvoiceIssuerType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1145,7 +1145,7 @@ impl serde::Serialize for UpcomingInvoiceSubscriptionItemsPriceDataRecurringInte serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpcomingInvoiceSubscriptionItemsPriceDataRecurringInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1209,7 +1209,7 @@ impl serde::Serialize for UpcomingInvoiceSubscriptionItemsPriceDataTaxBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpcomingInvoiceSubscriptionItemsPriceDataTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1271,7 +1271,7 @@ impl serde::Serialize for UpcomingInvoiceSubscriptionProrationBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpcomingInvoiceSubscriptionProrationBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1326,7 +1326,7 @@ impl serde::Serialize for UpcomingInvoiceSubscriptionResumeAt { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpcomingInvoiceSubscriptionResumeAt { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1565,7 +1565,7 @@ impl serde::Serialize for UpcomingLinesInvoiceAutomaticTaxLiabilityType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpcomingLinesInvoiceAutomaticTaxLiabilityType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1651,7 +1651,7 @@ impl serde::Serialize for UpcomingLinesInvoiceCustomerDetailsTaxExempt { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpcomingLinesInvoiceCustomerDetailsTaxExempt { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1919,7 +1919,7 @@ impl serde::Serialize for UpcomingLinesInvoiceCustomerDetailsTaxIdsType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpcomingLinesInvoiceCustomerDetailsTaxIdsType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2080,7 +2080,7 @@ impl serde::Serialize for UpcomingLinesInvoiceInvoiceItemsPriceDataTaxBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpcomingLinesInvoiceInvoiceItemsPriceDataTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2144,7 +2144,7 @@ impl serde::Serialize for UpcomingLinesInvoiceInvoiceItemsTaxBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpcomingLinesInvoiceInvoiceItemsTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2218,7 +2218,7 @@ impl serde::Serialize for UpcomingLinesInvoiceIssuerType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpcomingLinesInvoiceIssuerType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2393,7 +2393,7 @@ impl serde::Serialize for UpcomingLinesInvoiceSubscriptionItemsPriceDataRecurrin serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpcomingLinesInvoiceSubscriptionItemsPriceDataRecurringInterval { @@ -2459,7 +2459,7 @@ impl serde::Serialize for UpcomingLinesInvoiceSubscriptionItemsPriceDataTaxBehav serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpcomingLinesInvoiceSubscriptionItemsPriceDataTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2521,7 +2521,7 @@ impl serde::Serialize for UpcomingLinesInvoiceSubscriptionProrationBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpcomingLinesInvoiceSubscriptionProrationBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2576,7 +2576,7 @@ impl serde::Serialize for UpcomingLinesInvoiceSubscriptionResumeAt { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpcomingLinesInvoiceSubscriptionResumeAt { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2827,7 +2827,7 @@ impl serde::Serialize for CreateInvoiceAutomaticTaxLiabilityType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateInvoiceAutomaticTaxLiabilityType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2914,7 +2914,7 @@ impl serde::Serialize for CreateInvoiceFromInvoiceAction { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateInvoiceFromInvoiceAction { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2986,7 +2986,7 @@ impl serde::Serialize for CreateInvoiceIssuerType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateInvoiceIssuerType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3129,7 +3129,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateInvoicePaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsTransactionType { @@ -3196,7 +3196,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateInvoicePaymentSettingsPaymentMethodOptionsAcssDebitVerificationMethod { @@ -3279,7 +3279,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateInvoicePaymentSettingsPaymentMethodOptionsBancontactPreferredLanguage { @@ -3400,7 +3400,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateInvoicePaymentSettingsPaymentMethodOptionsCardInstallmentsPlanInterval { @@ -3457,7 +3457,7 @@ impl serde::Serialize for CreateInvoicePaymentSettingsPaymentMethodOptionsCardIn serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateInvoicePaymentSettingsPaymentMethodOptionsCardInstallmentsPlanType { @@ -3518,7 +3518,7 @@ impl serde::Serialize for CreateInvoicePaymentSettingsPaymentMethodOptionsCardRe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateInvoicePaymentSettingsPaymentMethodOptionsCardRequestThreeDSecure { @@ -3627,7 +3627,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateInvoicePaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsPermissions { @@ -3691,7 +3691,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateInvoicePaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch { @@ -3758,7 +3758,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateInvoicePaymentSettingsPaymentMethodOptionsUsBankAccountVerificationMethod { @@ -3892,7 +3892,7 @@ impl serde::Serialize for CreateInvoicePaymentSettingsPaymentMethodTypes { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateInvoicePaymentSettingsPaymentMethodTypes { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3953,7 +3953,7 @@ impl serde::Serialize for CreateInvoicePendingInvoiceItemsBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateInvoicePendingInvoiceItemsBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4030,7 +4030,7 @@ impl serde::Serialize for CreateInvoiceRenderingAmountTaxDisplay { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateInvoiceRenderingAmountTaxDisplay { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4105,7 +4105,7 @@ impl serde::Serialize for CreateInvoiceRenderingPdfPageSize { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateInvoiceRenderingPdfPageSize { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4181,7 +4181,7 @@ impl serde::Serialize for CreateInvoiceRenderingOptionsAmountTaxDisplay { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateInvoiceRenderingOptionsAmountTaxDisplay { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4340,7 +4340,7 @@ impl serde::Serialize for CreateInvoiceShippingCostShippingRateDataDeliveryEstim serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateInvoiceShippingCostShippingRateDataDeliveryEstimateMaximumUnit { @@ -4421,7 +4421,7 @@ impl serde::Serialize for CreateInvoiceShippingCostShippingRateDataDeliveryEstim serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateInvoiceShippingCostShippingRateDataDeliveryEstimateMinimumUnit { @@ -4529,7 +4529,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateInvoiceShippingCostShippingRateDataFixedAmountCurrencyOptionsTaxBehavior { @@ -4589,7 +4589,7 @@ impl serde::Serialize for CreateInvoiceShippingCostShippingRateDataTaxBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateInvoiceShippingCostShippingRateDataTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4644,7 +4644,7 @@ impl serde::Serialize for CreateInvoiceShippingCostShippingRateDataType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateInvoiceShippingCostShippingRateDataType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4860,7 +4860,7 @@ impl serde::Serialize for UpdateInvoiceAutomaticTaxLiabilityType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateInvoiceAutomaticTaxLiabilityType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4948,7 +4948,7 @@ impl serde::Serialize for UpdateInvoiceIssuerType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateInvoiceIssuerType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -5091,7 +5091,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateInvoicePaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsTransactionType { @@ -5158,7 +5158,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateInvoicePaymentSettingsPaymentMethodOptionsAcssDebitVerificationMethod { @@ -5241,7 +5241,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateInvoicePaymentSettingsPaymentMethodOptionsBancontactPreferredLanguage { @@ -5362,7 +5362,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateInvoicePaymentSettingsPaymentMethodOptionsCardInstallmentsPlanInterval { @@ -5419,7 +5419,7 @@ impl serde::Serialize for UpdateInvoicePaymentSettingsPaymentMethodOptionsCardIn serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateInvoicePaymentSettingsPaymentMethodOptionsCardInstallmentsPlanType { @@ -5480,7 +5480,7 @@ impl serde::Serialize for UpdateInvoicePaymentSettingsPaymentMethodOptionsCardRe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateInvoicePaymentSettingsPaymentMethodOptionsCardRequestThreeDSecure { @@ -5589,7 +5589,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateInvoicePaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsPermissions { @@ -5653,7 +5653,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateInvoicePaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch { @@ -5720,7 +5720,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateInvoicePaymentSettingsPaymentMethodOptionsUsBankAccountVerificationMethod { @@ -5854,7 +5854,7 @@ impl serde::Serialize for UpdateInvoicePaymentSettingsPaymentMethodTypes { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateInvoicePaymentSettingsPaymentMethodTypes { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -5929,7 +5929,7 @@ impl serde::Serialize for UpdateInvoiceRenderingAmountTaxDisplay { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateInvoiceRenderingAmountTaxDisplay { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -6004,7 +6004,7 @@ impl serde::Serialize for UpdateInvoiceRenderingPdfPageSize { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateInvoiceRenderingPdfPageSize { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -6080,7 +6080,7 @@ impl serde::Serialize for UpdateInvoiceRenderingOptionsAmountTaxDisplay { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateInvoiceRenderingOptionsAmountTaxDisplay { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -6239,7 +6239,7 @@ impl serde::Serialize for UpdateInvoiceShippingCostShippingRateDataDeliveryEstim serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateInvoiceShippingCostShippingRateDataDeliveryEstimateMaximumUnit { @@ -6320,7 +6320,7 @@ impl serde::Serialize for UpdateInvoiceShippingCostShippingRateDataDeliveryEstim serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateInvoiceShippingCostShippingRateDataDeliveryEstimateMinimumUnit { @@ -6428,7 +6428,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateInvoiceShippingCostShippingRateDataFixedAmountCurrencyOptionsTaxBehavior { @@ -6488,7 +6488,7 @@ impl serde::Serialize for UpdateInvoiceShippingCostShippingRateDataTaxBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateInvoiceShippingCostShippingRateDataTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -6543,7 +6543,7 @@ impl serde::Serialize for UpdateInvoiceShippingCostShippingRateDataType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateInvoiceShippingCostShippingRateDataType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_billing/src/invoice_item/requests.rs b/generated/stripe_billing/src/invoice_item/requests.rs index 405537e20..c447de557 100644 --- a/generated/stripe_billing/src/invoice_item/requests.rs +++ b/generated/stripe_billing/src/invoice_item/requests.rs @@ -277,7 +277,7 @@ impl serde::Serialize for CreateInvoiceItemPriceDataTaxBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateInvoiceItemPriceDataTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -339,7 +339,7 @@ impl serde::Serialize for CreateInvoiceItemTaxBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateInvoiceItemTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -507,7 +507,7 @@ impl serde::Serialize for UpdateInvoiceItemPriceDataTaxBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateInvoiceItemPriceDataTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -569,7 +569,7 @@ impl serde::Serialize for UpdateInvoiceItemTaxBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateInvoiceItemTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_billing/src/invoice_line_item/requests.rs b/generated/stripe_billing/src/invoice_line_item/requests.rs index 62478297e..844c45680 100644 --- a/generated/stripe_billing/src/invoice_line_item/requests.rs +++ b/generated/stripe_billing/src/invoice_line_item/requests.rs @@ -253,7 +253,7 @@ impl serde::Serialize for UpdateInvoiceLineItemPriceDataTaxBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateInvoiceLineItemPriceDataTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -422,7 +422,7 @@ impl serde::Serialize for UpdateInvoiceLineItemTaxAmountsTaxRateDataTaxType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateInvoiceLineItemTaxAmountsTaxRateDataTaxType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_billing/src/plan/requests.rs b/generated/stripe_billing/src/plan/requests.rs index 2457908e8..1a6d0dffe 100644 --- a/generated/stripe_billing/src/plan/requests.rs +++ b/generated/stripe_billing/src/plan/requests.rs @@ -341,7 +341,7 @@ impl serde::Serialize for CreatePlanTransformUsageRound { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePlanTransformUsageRound { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_billing/src/portal_business_profile.rs b/generated/stripe_billing/src/portal_business_profile.rs index 7e7e22010..f95d042b7 100644 --- a/generated/stripe_billing/src/portal_business_profile.rs +++ b/generated/stripe_billing/src/portal_business_profile.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PortalBusinessProfile { /// The messaging shown to customers in the portal. pub headline: Option, diff --git a/generated/stripe_billing/src/portal_customer_update.rs b/generated/stripe_billing/src/portal_customer_update.rs index 78f860a98..ac38bdc57 100644 --- a/generated/stripe_billing/src/portal_customer_update.rs +++ b/generated/stripe_billing/src/portal_customer_update.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PortalCustomerUpdate { /// The types of customer updates that are supported. When empty, customers are not updateable. pub allowed_updates: Vec, @@ -149,7 +149,7 @@ impl std::fmt::Debug for PortalCustomerUpdateAllowedUpdates { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PortalCustomerUpdateAllowedUpdates { fn serialize(&self, serializer: S) -> Result where @@ -174,7 +174,7 @@ impl miniserde::de::Visitor for crate::Place } stripe_types::impl_from_val_with_from_str!(PortalCustomerUpdateAllowedUpdates); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PortalCustomerUpdateAllowedUpdates { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_billing/src/portal_features.rs b/generated/stripe_billing/src/portal_features.rs index 2cf554e35..f02fe695b 100644 --- a/generated/stripe_billing/src/portal_features.rs +++ b/generated/stripe_billing/src/portal_features.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PortalFeatures { pub customer_update: stripe_billing::PortalCustomerUpdate, pub invoice_history: stripe_billing::PortalInvoiceList, diff --git a/generated/stripe_billing/src/portal_flows_after_completion_hosted_confirmation.rs b/generated/stripe_billing/src/portal_flows_after_completion_hosted_confirmation.rs index 5631f301f..07d01c809 100644 --- a/generated/stripe_billing/src/portal_flows_after_completion_hosted_confirmation.rs +++ b/generated/stripe_billing/src/portal_flows_after_completion_hosted_confirmation.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PortalFlowsAfterCompletionHostedConfirmation { /// A custom message to display to the customer after the flow is completed. pub custom_message: Option, diff --git a/generated/stripe_billing/src/portal_flows_after_completion_redirect.rs b/generated/stripe_billing/src/portal_flows_after_completion_redirect.rs index e4d3b26a5..d21bfb66d 100644 --- a/generated/stripe_billing/src/portal_flows_after_completion_redirect.rs +++ b/generated/stripe_billing/src/portal_flows_after_completion_redirect.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PortalFlowsAfterCompletionRedirect { /// The URL the customer will be redirected to after the flow is completed. pub return_url: String, diff --git a/generated/stripe_billing/src/portal_flows_coupon_offer.rs b/generated/stripe_billing/src/portal_flows_coupon_offer.rs index 19800227e..7d7275b8e 100644 --- a/generated/stripe_billing/src/portal_flows_coupon_offer.rs +++ b/generated/stripe_billing/src/portal_flows_coupon_offer.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PortalFlowsCouponOffer { /// The ID of the coupon to be offered. pub coupon: String, diff --git a/generated/stripe_billing/src/portal_flows_flow.rs b/generated/stripe_billing/src/portal_flows_flow.rs index ba3a9ff8b..2746b5649 100644 --- a/generated/stripe_billing/src/portal_flows_flow.rs +++ b/generated/stripe_billing/src/portal_flows_flow.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PortalFlowsFlow { pub after_completion: stripe_billing::PortalFlowsFlowAfterCompletion, /// Configuration when `flow.type=subscription_cancel`. @@ -11,7 +11,7 @@ pub struct PortalFlowsFlow { pub subscription_update_confirm: Option, /// Type of flow that the customer will go through. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: PortalFlowsFlowType, } #[doc(hidden)] @@ -177,7 +177,7 @@ impl std::fmt::Debug for PortalFlowsFlowType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PortalFlowsFlowType { fn serialize(&self, serializer: S) -> Result where @@ -201,7 +201,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PortalFlowsFlowType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PortalFlowsFlowType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_billing/src/portal_flows_flow_after_completion.rs b/generated/stripe_billing/src/portal_flows_flow_after_completion.rs index 0e72a70df..34d1c072f 100644 --- a/generated/stripe_billing/src/portal_flows_flow_after_completion.rs +++ b/generated/stripe_billing/src/portal_flows_flow_after_completion.rs @@ -1,13 +1,13 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PortalFlowsFlowAfterCompletion { /// Configuration when `after_completion.type=hosted_confirmation`. pub hosted_confirmation: Option, /// Configuration when `after_completion.type=redirect`. pub redirect: Option, /// The specified type of behavior after the flow is completed. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: PortalFlowsFlowAfterCompletionType, } #[doc(hidden)] @@ -154,7 +154,7 @@ impl std::fmt::Debug for PortalFlowsFlowAfterCompletionType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PortalFlowsFlowAfterCompletionType { fn serialize(&self, serializer: S) -> Result where @@ -179,7 +179,7 @@ impl miniserde::de::Visitor for crate::Place } stripe_types::impl_from_val_with_from_str!(PortalFlowsFlowAfterCompletionType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PortalFlowsFlowAfterCompletionType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_billing/src/portal_flows_flow_subscription_cancel.rs b/generated/stripe_billing/src/portal_flows_flow_subscription_cancel.rs index e087d19e1..cd68931c2 100644 --- a/generated/stripe_billing/src/portal_flows_flow_subscription_cancel.rs +++ b/generated/stripe_billing/src/portal_flows_flow_subscription_cancel.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PortalFlowsFlowSubscriptionCancel { /// Specify a retention strategy to be used in the cancellation flow. pub retention: Option, diff --git a/generated/stripe_billing/src/portal_flows_flow_subscription_update.rs b/generated/stripe_billing/src/portal_flows_flow_subscription_update.rs index d60f2f74a..3daa0cbba 100644 --- a/generated/stripe_billing/src/portal_flows_flow_subscription_update.rs +++ b/generated/stripe_billing/src/portal_flows_flow_subscription_update.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PortalFlowsFlowSubscriptionUpdate { /// The ID of the subscription to be updated. pub subscription: String, diff --git a/generated/stripe_billing/src/portal_flows_flow_subscription_update_confirm.rs b/generated/stripe_billing/src/portal_flows_flow_subscription_update_confirm.rs index 73a5c5292..0bf8d7203 100644 --- a/generated/stripe_billing/src/portal_flows_flow_subscription_update_confirm.rs +++ b/generated/stripe_billing/src/portal_flows_flow_subscription_update_confirm.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PortalFlowsFlowSubscriptionUpdateConfirm { /// The coupon or promotion code to apply to this subscription update. /// Currently, only up to one may be specified. diff --git a/generated/stripe_billing/src/portal_flows_retention.rs b/generated/stripe_billing/src/portal_flows_retention.rs index f3c2a546e..d6c7d358f 100644 --- a/generated/stripe_billing/src/portal_flows_retention.rs +++ b/generated/stripe_billing/src/portal_flows_retention.rs @@ -1,11 +1,11 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PortalFlowsRetention { /// Configuration when `retention.type=coupon_offer`. pub coupon_offer: Option, /// Type of retention strategy that will be used. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: PortalFlowsRetentionType, } #[doc(hidden)] @@ -132,7 +132,7 @@ impl std::fmt::Debug for PortalFlowsRetentionType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PortalFlowsRetentionType { fn serialize(&self, serializer: S) -> Result where @@ -156,7 +156,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PortalFlowsRetentionType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PortalFlowsRetentionType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_billing/src/portal_flows_subscription_update_confirm_discount.rs b/generated/stripe_billing/src/portal_flows_subscription_update_confirm_discount.rs index dcbf71507..3b8d6ad31 100644 --- a/generated/stripe_billing/src/portal_flows_subscription_update_confirm_discount.rs +++ b/generated/stripe_billing/src/portal_flows_subscription_update_confirm_discount.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PortalFlowsSubscriptionUpdateConfirmDiscount { /// The ID of the coupon to apply to this subscription update. pub coupon: Option, diff --git a/generated/stripe_billing/src/portal_flows_subscription_update_confirm_item.rs b/generated/stripe_billing/src/portal_flows_subscription_update_confirm_item.rs index 64ca04417..878b213fd 100644 --- a/generated/stripe_billing/src/portal_flows_subscription_update_confirm_item.rs +++ b/generated/stripe_billing/src/portal_flows_subscription_update_confirm_item.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PortalFlowsSubscriptionUpdateConfirmItem { /// The ID of the [subscription item](https://stripe.com/docs/api/subscriptions/object#subscription_object-items-data-id) to be updated. pub id: Option, diff --git a/generated/stripe_billing/src/portal_invoice_list.rs b/generated/stripe_billing/src/portal_invoice_list.rs index 0430b67f0..471f00fe7 100644 --- a/generated/stripe_billing/src/portal_invoice_list.rs +++ b/generated/stripe_billing/src/portal_invoice_list.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PortalInvoiceList { /// Whether the feature is enabled. pub enabled: bool, diff --git a/generated/stripe_billing/src/portal_login_page.rs b/generated/stripe_billing/src/portal_login_page.rs index 9981ceb6d..8eee616d3 100644 --- a/generated/stripe_billing/src/portal_login_page.rs +++ b/generated/stripe_billing/src/portal_login_page.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PortalLoginPage { /// If `true`, a shareable `url` will be generated that will take your customers to a hosted login page for the customer portal. /// diff --git a/generated/stripe_billing/src/portal_payment_method_update.rs b/generated/stripe_billing/src/portal_payment_method_update.rs index e5b6d9e75..e832b0eea 100644 --- a/generated/stripe_billing/src/portal_payment_method_update.rs +++ b/generated/stripe_billing/src/portal_payment_method_update.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PortalPaymentMethodUpdate { /// Whether the feature is enabled. pub enabled: bool, diff --git a/generated/stripe_billing/src/portal_subscription_cancel.rs b/generated/stripe_billing/src/portal_subscription_cancel.rs index 70d02bfca..f5fcb9bf7 100644 --- a/generated/stripe_billing/src/portal_subscription_cancel.rs +++ b/generated/stripe_billing/src/portal_subscription_cancel.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PortalSubscriptionCancel { pub cancellation_reason: stripe_billing::PortalSubscriptionCancellationReason, /// Whether the feature is enabled. @@ -158,7 +158,7 @@ impl std::fmt::Debug for PortalSubscriptionCancelMode { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PortalSubscriptionCancelMode { fn serialize(&self, serializer: S) -> Result where @@ -182,7 +182,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PortalSubscriptionCancelMode); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PortalSubscriptionCancelMode { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -233,7 +233,7 @@ impl std::fmt::Debug for PortalSubscriptionCancelProrationBehavior { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PortalSubscriptionCancelProrationBehavior { fn serialize(&self, serializer: S) -> Result where @@ -259,7 +259,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PortalSubscriptionCancelProrationBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_billing/src/portal_subscription_cancellation_reason.rs b/generated/stripe_billing/src/portal_subscription_cancellation_reason.rs index 57594ddf1..30173bca0 100644 --- a/generated/stripe_billing/src/portal_subscription_cancellation_reason.rs +++ b/generated/stripe_billing/src/portal_subscription_cancellation_reason.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PortalSubscriptionCancellationReason { /// Whether the feature is enabled. pub enabled: bool, @@ -152,7 +152,7 @@ impl std::fmt::Debug for PortalSubscriptionCancellationReasonOptions { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PortalSubscriptionCancellationReasonOptions { fn serialize(&self, serializer: S) -> Result where @@ -179,7 +179,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PortalSubscriptionCancellationReasonOptions { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_billing/src/portal_subscription_pause.rs b/generated/stripe_billing/src/portal_subscription_pause.rs index e2e81abae..f1816b075 100644 --- a/generated/stripe_billing/src/portal_subscription_pause.rs +++ b/generated/stripe_billing/src/portal_subscription_pause.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PortalSubscriptionPause { /// Whether the feature is enabled. pub enabled: bool, diff --git a/generated/stripe_billing/src/portal_subscription_update.rs b/generated/stripe_billing/src/portal_subscription_update.rs index 4fbbcc757..d0d45df72 100644 --- a/generated/stripe_billing/src/portal_subscription_update.rs +++ b/generated/stripe_billing/src/portal_subscription_update.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PortalSubscriptionUpdate { /// The types of subscription updates that are supported for items listed in the `products` attribute. /// When empty, subscriptions are not updateable. @@ -164,7 +164,7 @@ impl std::fmt::Debug for PortalSubscriptionUpdateDefaultAllowedUpdates { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PortalSubscriptionUpdateDefaultAllowedUpdates { fn serialize(&self, serializer: S) -> Result where @@ -191,7 +191,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PortalSubscriptionUpdateDefaultAllowedUpdates { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -245,7 +245,7 @@ impl std::fmt::Debug for PortalSubscriptionUpdateProrationBehavior { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PortalSubscriptionUpdateProrationBehavior { fn serialize(&self, serializer: S) -> Result where @@ -271,7 +271,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PortalSubscriptionUpdateProrationBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_billing/src/portal_subscription_update_product.rs b/generated/stripe_billing/src/portal_subscription_update_product.rs index 6d607f71c..ae994ae46 100644 --- a/generated/stripe_billing/src/portal_subscription_update_product.rs +++ b/generated/stripe_billing/src/portal_subscription_update_product.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PortalSubscriptionUpdateProduct { /// The list of price IDs which, when subscribed to, a subscription can be updated. pub prices: Vec, diff --git a/generated/stripe_billing/src/quote/requests.rs b/generated/stripe_billing/src/quote/requests.rs index 5063a7caa..6c0a264d2 100644 --- a/generated/stripe_billing/src/quote/requests.rs +++ b/generated/stripe_billing/src/quote/requests.rs @@ -321,7 +321,7 @@ impl serde::Serialize for CreateQuoteAutomaticTaxLiabilityType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateQuoteAutomaticTaxLiabilityType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -426,7 +426,7 @@ impl serde::Serialize for CreateQuoteInvoiceSettingsIssuerType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateQuoteInvoiceSettingsIssuerType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -566,7 +566,7 @@ impl serde::Serialize for CreateQuoteLineItemsPriceDataRecurringInterval { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateQuoteLineItemsPriceDataRecurringInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -630,7 +630,7 @@ impl serde::Serialize for CreateQuoteLineItemsPriceDataTaxBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateQuoteLineItemsPriceDataTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -844,7 +844,7 @@ impl serde::Serialize for UpdateQuoteAutomaticTaxLiabilityType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateQuoteAutomaticTaxLiabilityType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -933,7 +933,7 @@ impl serde::Serialize for UpdateQuoteInvoiceSettingsIssuerType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateQuoteInvoiceSettingsIssuerType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1076,7 +1076,7 @@ impl serde::Serialize for UpdateQuoteLineItemsPriceDataRecurringInterval { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateQuoteLineItemsPriceDataRecurringInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1140,7 +1140,7 @@ impl serde::Serialize for UpdateQuoteLineItemsPriceDataTaxBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateQuoteLineItemsPriceDataTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_billing/src/subscription/requests.rs b/generated/stripe_billing/src/subscription/requests.rs index a82876047..96d367ec2 100644 --- a/generated/stripe_billing/src/subscription/requests.rs +++ b/generated/stripe_billing/src/subscription/requests.rs @@ -97,7 +97,7 @@ impl serde::Serialize for CancelSubscriptionCancellationDetailsFeedback { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CancelSubscriptionCancellationDetailsFeedback { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -297,7 +297,7 @@ impl serde::Serialize for ListSubscriptionStatus { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ListSubscriptionStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -692,7 +692,7 @@ impl serde::Serialize for CreateSubscriptionAddInvoiceItemsPriceDataTaxBehavior serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionAddInvoiceItemsPriceDataTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -784,7 +784,7 @@ impl serde::Serialize for CreateSubscriptionAutomaticTaxLiabilityType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionAutomaticTaxLiabilityType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -899,7 +899,7 @@ impl serde::Serialize for CreateSubscriptionInvoiceSettingsIssuerType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionInvoiceSettingsIssuerType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1055,7 +1055,7 @@ impl serde::Serialize for CreateSubscriptionItemsPriceDataRecurringInterval { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionItemsPriceDataRecurringInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1119,7 +1119,7 @@ impl serde::Serialize for CreateSubscriptionItemsPriceDataTaxBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionItemsPriceDataTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1204,7 +1204,7 @@ impl serde::Serialize for CreateSubscriptionPaymentBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionPaymentBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1351,7 +1351,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsTransactionType { @@ -1418,7 +1418,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionPaymentSettingsPaymentMethodOptionsAcssDebitVerificationMethod { @@ -1501,7 +1501,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguage { @@ -1612,7 +1612,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionPaymentSettingsPaymentMethodOptionsCardMandateOptionsAmountType { @@ -1697,7 +1697,7 @@ impl serde::Serialize for CreateSubscriptionPaymentSettingsPaymentMethodOptionsC serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionPaymentSettingsPaymentMethodOptionsCardNetwork { @@ -1766,7 +1766,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionPaymentSettingsPaymentMethodOptionsCardRequestThreeDSecure { @@ -1869,7 +1869,7 @@ impl serde::Serialize for CreateSubscriptionPaymentSettingsPaymentMethodOptionsU serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsPermissions { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1924,7 +1924,7 @@ impl serde::Serialize for CreateSubscriptionPaymentSettingsPaymentMethodOptionsU serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1989,7 +1989,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionPaymentSettingsPaymentMethodOptionsUsBankAccountVerificationMethod { @@ -2123,7 +2123,7 @@ impl serde::Serialize for CreateSubscriptionPaymentSettingsPaymentMethodTypes { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionPaymentSettingsPaymentMethodTypes { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2178,7 +2178,7 @@ impl serde::Serialize for CreateSubscriptionPaymentSettingsSaveDefaultPaymentMet serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionPaymentSettingsSaveDefaultPaymentMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2259,7 +2259,7 @@ impl serde::Serialize for CreateSubscriptionPendingInvoiceItemIntervalInterval { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionPendingInvoiceItemIntervalInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2321,7 +2321,7 @@ impl serde::Serialize for CreateSubscriptionProrationBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionProrationBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2415,7 +2415,7 @@ impl serde::Serialize for CreateSubscriptionTrialSettingsEndBehaviorMissingPayme serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionTrialSettingsEndBehaviorMissingPaymentMethod { @@ -2516,7 +2516,7 @@ impl serde::Serialize for ResumeSubscriptionBillingCycleAnchor { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ResumeSubscriptionBillingCycleAnchor { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2576,7 +2576,7 @@ impl serde::Serialize for ResumeSubscriptionProrationBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ResumeSubscriptionProrationBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2864,7 +2864,7 @@ impl serde::Serialize for UpdateSubscriptionAddInvoiceItemsPriceDataTaxBehavior serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionAddInvoiceItemsPriceDataTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2956,7 +2956,7 @@ impl serde::Serialize for UpdateSubscriptionAutomaticTaxLiabilityType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionAutomaticTaxLiabilityType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3016,7 +3016,7 @@ impl serde::Serialize for UpdateSubscriptionBillingCycleAnchor { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionBillingCycleAnchor { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3105,7 +3105,7 @@ impl serde::Serialize for UpdateSubscriptionCancellationDetailsFeedback { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionCancellationDetailsFeedback { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3196,7 +3196,7 @@ impl serde::Serialize for UpdateSubscriptionInvoiceSettingsIssuerType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionInvoiceSettingsIssuerType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3363,7 +3363,7 @@ impl serde::Serialize for UpdateSubscriptionItemsPriceDataRecurringInterval { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionItemsPriceDataRecurringInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3427,7 +3427,7 @@ impl serde::Serialize for UpdateSubscriptionItemsPriceDataTaxBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionItemsPriceDataTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3504,7 +3504,7 @@ impl serde::Serialize for UpdateSubscriptionPauseCollectionBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionPauseCollectionBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3582,7 +3582,7 @@ impl serde::Serialize for UpdateSubscriptionPaymentBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionPaymentBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3729,7 +3729,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsTransactionType { @@ -3796,7 +3796,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionPaymentSettingsPaymentMethodOptionsAcssDebitVerificationMethod { @@ -3879,7 +3879,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguage { @@ -3990,7 +3990,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionPaymentSettingsPaymentMethodOptionsCardMandateOptionsAmountType { @@ -4075,7 +4075,7 @@ impl serde::Serialize for UpdateSubscriptionPaymentSettingsPaymentMethodOptionsC serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionPaymentSettingsPaymentMethodOptionsCardNetwork { @@ -4144,7 +4144,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionPaymentSettingsPaymentMethodOptionsCardRequestThreeDSecure { @@ -4247,7 +4247,7 @@ impl serde::Serialize for UpdateSubscriptionPaymentSettingsPaymentMethodOptionsU serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsPermissions { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4302,7 +4302,7 @@ impl serde::Serialize for UpdateSubscriptionPaymentSettingsPaymentMethodOptionsU serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4367,7 +4367,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionPaymentSettingsPaymentMethodOptionsUsBankAccountVerificationMethod { @@ -4501,7 +4501,7 @@ impl serde::Serialize for UpdateSubscriptionPaymentSettingsPaymentMethodTypes { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionPaymentSettingsPaymentMethodTypes { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4556,7 +4556,7 @@ impl serde::Serialize for UpdateSubscriptionPaymentSettingsSaveDefaultPaymentMet serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionPaymentSettingsSaveDefaultPaymentMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4637,7 +4637,7 @@ impl serde::Serialize for UpdateSubscriptionPendingInvoiceItemIntervalInterval { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionPendingInvoiceItemIntervalInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4699,7 +4699,7 @@ impl serde::Serialize for UpdateSubscriptionProrationBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionProrationBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4793,7 +4793,7 @@ impl serde::Serialize for UpdateSubscriptionTrialSettingsEndBehaviorMissingPayme serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionTrialSettingsEndBehaviorMissingPaymentMethod { diff --git a/generated/stripe_billing/src/subscription_item/requests.rs b/generated/stripe_billing/src/subscription_item/requests.rs index efcd62b39..f3f4d6b6d 100644 --- a/generated/stripe_billing/src/subscription_item/requests.rs +++ b/generated/stripe_billing/src/subscription_item/requests.rs @@ -68,7 +68,7 @@ impl serde::Serialize for DeleteSubscriptionItemProrationBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for DeleteSubscriptionItemProrationBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -351,7 +351,7 @@ impl serde::Serialize for CreateSubscriptionItemPaymentBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionItemPaymentBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -469,7 +469,7 @@ impl serde::Serialize for CreateSubscriptionItemPriceDataRecurringInterval { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionItemPriceDataRecurringInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -533,7 +533,7 @@ impl serde::Serialize for CreateSubscriptionItemPriceDataTaxBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionItemPriceDataTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -593,7 +593,7 @@ impl serde::Serialize for CreateSubscriptionItemProrationBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionItemProrationBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -749,7 +749,7 @@ impl serde::Serialize for UpdateSubscriptionItemPaymentBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionItemPaymentBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -867,7 +867,7 @@ impl serde::Serialize for UpdateSubscriptionItemPriceDataRecurringInterval { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionItemPriceDataRecurringInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -931,7 +931,7 @@ impl serde::Serialize for UpdateSubscriptionItemPriceDataTaxBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionItemPriceDataTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -991,7 +991,7 @@ impl serde::Serialize for UpdateSubscriptionItemProrationBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionItemProrationBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_billing/src/subscription_schedule/requests.rs b/generated/stripe_billing/src/subscription_schedule/requests.rs index 915775789..4677ae658 100644 --- a/generated/stripe_billing/src/subscription_schedule/requests.rs +++ b/generated/stripe_billing/src/subscription_schedule/requests.rs @@ -252,7 +252,7 @@ impl serde::Serialize for CreateSubscriptionScheduleDefaultSettingsAutomaticTaxL serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionScheduleDefaultSettingsAutomaticTaxLiabilityType { @@ -310,7 +310,7 @@ impl serde::Serialize for CreateSubscriptionScheduleDefaultSettingsBillingCycleA serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionScheduleDefaultSettingsBillingCycleAnchor { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -371,7 +371,7 @@ impl serde::Serialize for CreateSubscriptionScheduleDefaultSettingsCollectionMet serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionScheduleDefaultSettingsCollectionMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -466,7 +466,7 @@ impl serde::Serialize for CreateSubscriptionScheduleDefaultSettingsInvoiceSettin serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionScheduleDefaultSettingsInvoiceSettingsIssuerType { @@ -697,7 +697,7 @@ impl serde::Serialize for CreateSubscriptionSchedulePhasesAddInvoiceItemsPriceDa serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionSchedulePhasesAddInvoiceItemsPriceDataTaxBehavior { @@ -786,7 +786,7 @@ impl serde::Serialize for CreateSubscriptionSchedulePhasesAutomaticTaxLiabilityT serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionSchedulePhasesAutomaticTaxLiabilityType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -846,7 +846,7 @@ impl serde::Serialize for CreateSubscriptionSchedulePhasesBillingCycleAnchor { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionSchedulePhasesBillingCycleAnchor { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -907,7 +907,7 @@ impl serde::Serialize for CreateSubscriptionSchedulePhasesCollectionMethod { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionSchedulePhasesCollectionMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1002,7 +1002,7 @@ impl serde::Serialize for CreateSubscriptionSchedulePhasesInvoiceSettingsIssuerT serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionSchedulePhasesInvoiceSettingsIssuerType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1159,7 +1159,7 @@ impl serde::Serialize for CreateSubscriptionSchedulePhasesItemsPriceDataRecurrin serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionSchedulePhasesItemsPriceDataRecurringInterval { @@ -1225,7 +1225,7 @@ impl serde::Serialize for CreateSubscriptionSchedulePhasesItemsPriceDataTaxBehav serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionSchedulePhasesItemsPriceDataTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1289,7 +1289,7 @@ impl serde::Serialize for CreateSubscriptionSchedulePhasesProrationBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionSchedulePhasesProrationBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1486,7 +1486,7 @@ impl serde::Serialize for UpdateSubscriptionScheduleDefaultSettingsAutomaticTaxL serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionScheduleDefaultSettingsAutomaticTaxLiabilityType { @@ -1544,7 +1544,7 @@ impl serde::Serialize for UpdateSubscriptionScheduleDefaultSettingsBillingCycleA serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionScheduleDefaultSettingsBillingCycleAnchor { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1605,7 +1605,7 @@ impl serde::Serialize for UpdateSubscriptionScheduleDefaultSettingsCollectionMet serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionScheduleDefaultSettingsCollectionMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1700,7 +1700,7 @@ impl serde::Serialize for UpdateSubscriptionScheduleDefaultSettingsInvoiceSettin serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionScheduleDefaultSettingsInvoiceSettingsIssuerType { @@ -1937,7 +1937,7 @@ impl serde::Serialize for UpdateSubscriptionSchedulePhasesAddInvoiceItemsPriceDa serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionSchedulePhasesAddInvoiceItemsPriceDataTaxBehavior { @@ -2026,7 +2026,7 @@ impl serde::Serialize for UpdateSubscriptionSchedulePhasesAutomaticTaxLiabilityT serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionSchedulePhasesAutomaticTaxLiabilityType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2086,7 +2086,7 @@ impl serde::Serialize for UpdateSubscriptionSchedulePhasesBillingCycleAnchor { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionSchedulePhasesBillingCycleAnchor { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2147,7 +2147,7 @@ impl serde::Serialize for UpdateSubscriptionSchedulePhasesCollectionMethod { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionSchedulePhasesCollectionMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2250,7 +2250,7 @@ impl serde::Serialize for UpdateSubscriptionSchedulePhasesInvoiceSettingsIssuerT serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionSchedulePhasesInvoiceSettingsIssuerType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2407,7 +2407,7 @@ impl serde::Serialize for UpdateSubscriptionSchedulePhasesItemsPriceDataRecurrin serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionSchedulePhasesItemsPriceDataRecurringInterval { @@ -2473,7 +2473,7 @@ impl serde::Serialize for UpdateSubscriptionSchedulePhasesItemsPriceDataTaxBehav serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionSchedulePhasesItemsPriceDataTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2537,7 +2537,7 @@ impl serde::Serialize for UpdateSubscriptionSchedulePhasesProrationBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionSchedulePhasesProrationBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2615,7 +2615,7 @@ impl serde::Serialize for UpdateSubscriptionScheduleProrationBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSubscriptionScheduleProrationBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_billing/src/tax_id/requests.rs b/generated/stripe_billing/src/tax_id/requests.rs index d79437daf..405b112ec 100644 --- a/generated/stripe_billing/src/tax_id/requests.rs +++ b/generated/stripe_billing/src/tax_id/requests.rs @@ -198,7 +198,7 @@ impl serde::Serialize for ListTaxIdOwnerType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ListTaxIdOwnerType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -498,7 +498,7 @@ impl serde::Serialize for CreateCustomerTaxIdType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCustomerTaxIdType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -605,7 +605,7 @@ impl serde::Serialize for CreateTaxIdOwnerType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxIdOwnerType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -856,7 +856,7 @@ impl serde::Serialize for CreateTaxIdType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxIdType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_billing/src/usage_record/requests.rs b/generated/stripe_billing/src/usage_record/requests.rs index ca5efe3da..f87ba1cc4 100644 --- a/generated/stripe_billing/src/usage_record/requests.rs +++ b/generated/stripe_billing/src/usage_record/requests.rs @@ -72,7 +72,7 @@ impl serde::Serialize for CreateSubscriptionItemUsageRecordAction { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSubscriptionItemUsageRecordAction { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_billing/src/usage_record/types.rs b/generated/stripe_billing/src/usage_record/types.rs index 34b9a75ec..87b789954 100644 --- a/generated/stripe_billing/src/usage_record/types.rs +++ b/generated/stripe_billing/src/usage_record/types.rs @@ -5,7 +5,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct UsageRecord { /// Unique identifier for the object. pub id: stripe_billing::UsageRecordId, @@ -128,7 +128,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for UsageRecord { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_checkout/Cargo.toml b/generated/stripe_checkout/Cargo.toml index 489c65c44..c8b031a9e 100644 --- a/generated/stripe_checkout/Cargo.toml +++ b/generated/stripe_checkout/Cargo.toml @@ -29,7 +29,8 @@ stripe_shared = {path = "../../generated/stripe_shared"} [features] -serde = ["stripe_types/serde","stripe_shared/serde"] +serialize = ["stripe_types/serialize","stripe_shared/serialize"] +deserialize = ["stripe_types/deserialize","stripe_shared/deserialize"] runtime-tokio-hyper = ["async-stripe/runtime-tokio-hyper"] runtime-tokio-hyper-rustls = ["async-stripe/runtime-tokio-hyper-rustls"] runtime-tokio-hyper-rustls-webpki = ["async-stripe/runtime-tokio-hyper-rustls-webpki"] diff --git a/generated/stripe_checkout/src/checkout_acss_debit_mandate_options.rs b/generated/stripe_checkout/src/checkout_acss_debit_mandate_options.rs index 971c7d4bb..014fbf937 100644 --- a/generated/stripe_checkout/src/checkout_acss_debit_mandate_options.rs +++ b/generated/stripe_checkout/src/checkout_acss_debit_mandate_options.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutAcssDebitMandateOptions { /// A URL for custom mandate text pub custom_mandate_url: Option, @@ -168,7 +168,7 @@ impl std::fmt::Debug for CheckoutAcssDebitMandateOptionsDefaultFor { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutAcssDebitMandateOptionsDefaultFor { fn serialize(&self, serializer: S) -> Result where @@ -194,7 +194,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutAcssDebitMandateOptionsDefaultFor { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -245,7 +245,7 @@ impl std::fmt::Debug for CheckoutAcssDebitMandateOptionsPaymentSchedule { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutAcssDebitMandateOptionsPaymentSchedule { fn serialize(&self, serializer: S) -> Result where @@ -272,7 +272,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutAcssDebitMandateOptionsPaymentSchedule { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -322,7 +322,7 @@ impl std::fmt::Debug for CheckoutAcssDebitMandateOptionsTransactionType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutAcssDebitMandateOptionsTransactionType { fn serialize(&self, serializer: S) -> Result where @@ -349,7 +349,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutAcssDebitMandateOptionsTransactionType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_acss_debit_payment_method_options.rs b/generated/stripe_checkout/src/checkout_acss_debit_payment_method_options.rs index d6cfc891a..1b9b12919 100644 --- a/generated/stripe_checkout/src/checkout_acss_debit_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_acss_debit_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutAcssDebitPaymentMethodOptions { /// Currency supported by the bank account. Returned when the Session is in `setup` mode. pub currency: Option, @@ -162,7 +162,7 @@ impl std::fmt::Debug for CheckoutAcssDebitPaymentMethodOptionsCurrency { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutAcssDebitPaymentMethodOptionsCurrency { fn serialize(&self, serializer: S) -> Result where @@ -189,7 +189,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutAcssDebitPaymentMethodOptionsCurrency { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -247,7 +247,7 @@ impl std::fmt::Debug for CheckoutAcssDebitPaymentMethodOptionsSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutAcssDebitPaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -276,7 +276,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(CheckoutAcssDebitPaymentMethodOptionsSetupFutureUsage); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CheckoutAcssDebitPaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -329,7 +329,7 @@ impl std::fmt::Debug for CheckoutAcssDebitPaymentMethodOptionsVerificationMethod f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutAcssDebitPaymentMethodOptionsVerificationMethod { fn serialize(&self, serializer: S) -> Result where @@ -358,7 +358,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(CheckoutAcssDebitPaymentMethodOptionsVerificationMethod); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CheckoutAcssDebitPaymentMethodOptionsVerificationMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_affirm_payment_method_options.rs b/generated/stripe_checkout/src/checkout_affirm_payment_method_options.rs index d133ee4a8..b29eb617d 100644 --- a/generated/stripe_checkout/src/checkout_affirm_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_affirm_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutAffirmPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -138,7 +138,7 @@ impl std::fmt::Debug for CheckoutAffirmPaymentMethodOptionsSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutAffirmPaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -165,7 +165,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutAffirmPaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_afterpay_clearpay_payment_method_options.rs b/generated/stripe_checkout/src/checkout_afterpay_clearpay_payment_method_options.rs index 5ca7f1194..7ddfecea3 100644 --- a/generated/stripe_checkout/src/checkout_afterpay_clearpay_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_afterpay_clearpay_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutAfterpayClearpayPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -139,7 +139,7 @@ impl std::fmt::Debug for CheckoutAfterpayClearpayPaymentMethodOptionsSetupFuture f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutAfterpayClearpayPaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -170,7 +170,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( CheckoutAfterpayClearpayPaymentMethodOptionsSetupFutureUsage ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CheckoutAfterpayClearpayPaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_alipay_payment_method_options.rs b/generated/stripe_checkout/src/checkout_alipay_payment_method_options.rs index 5cb009626..86bdc2b5b 100644 --- a/generated/stripe_checkout/src/checkout_alipay_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_alipay_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutAlipayPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -138,7 +138,7 @@ impl std::fmt::Debug for CheckoutAlipayPaymentMethodOptionsSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutAlipayPaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -165,7 +165,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutAlipayPaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_au_becs_debit_payment_method_options.rs b/generated/stripe_checkout/src/checkout_au_becs_debit_payment_method_options.rs index 533e42b8c..e9f47cfba 100644 --- a/generated/stripe_checkout/src/checkout_au_becs_debit_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_au_becs_debit_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutAuBecsDebitPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -138,7 +138,7 @@ impl std::fmt::Debug for CheckoutAuBecsDebitPaymentMethodOptionsSetupFutureUsage f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutAuBecsDebitPaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -167,7 +167,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(CheckoutAuBecsDebitPaymentMethodOptionsSetupFutureUsage); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CheckoutAuBecsDebitPaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_bacs_debit_payment_method_options.rs b/generated/stripe_checkout/src/checkout_bacs_debit_payment_method_options.rs index 0f4a68e81..9a633e29c 100644 --- a/generated/stripe_checkout/src/checkout_bacs_debit_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_bacs_debit_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutBacsDebitPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -144,7 +144,7 @@ impl std::fmt::Debug for CheckoutBacsDebitPaymentMethodOptionsSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutBacsDebitPaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -173,7 +173,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(CheckoutBacsDebitPaymentMethodOptionsSetupFutureUsage); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CheckoutBacsDebitPaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_bancontact_payment_method_options.rs b/generated/stripe_checkout/src/checkout_bancontact_payment_method_options.rs index 5e9a635fa..c2c1ee484 100644 --- a/generated/stripe_checkout/src/checkout_bancontact_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_bancontact_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutBancontactPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -138,7 +138,7 @@ impl std::fmt::Debug for CheckoutBancontactPaymentMethodOptionsSetupFutureUsage f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutBancontactPaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -167,7 +167,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(CheckoutBancontactPaymentMethodOptionsSetupFutureUsage); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CheckoutBancontactPaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_boleto_payment_method_options.rs b/generated/stripe_checkout/src/checkout_boleto_payment_method_options.rs index b6828ff1e..a17ebcfdf 100644 --- a/generated/stripe_checkout/src/checkout_boleto_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_boleto_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutBoletoPaymentMethodOptions { /// The number of calendar days before a Boleto voucher expires. /// For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto voucher will expire on Wednesday at 23:59 America/Sao_Paulo time. @@ -158,7 +158,7 @@ impl std::fmt::Debug for CheckoutBoletoPaymentMethodOptionsSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutBoletoPaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -185,7 +185,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutBoletoPaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_card_installments_options.rs b/generated/stripe_checkout/src/checkout_card_installments_options.rs index b1e10bd1b..22172e834 100644 --- a/generated/stripe_checkout/src/checkout_card_installments_options.rs +++ b/generated/stripe_checkout/src/checkout_card_installments_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutCardInstallmentsOptions { /// Indicates if installments are enabled pub enabled: Option, diff --git a/generated/stripe_checkout/src/checkout_card_payment_method_options.rs b/generated/stripe_checkout/src/checkout_card_payment_method_options.rs index 2f8a06cf2..f9cfc58f3 100644 --- a/generated/stripe_checkout/src/checkout_card_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_card_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutCardPaymentMethodOptions { pub installments: Option, /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -182,7 +182,7 @@ impl std::fmt::Debug for CheckoutCardPaymentMethodOptionsSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutCardPaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -209,7 +209,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutCardPaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_cashapp_payment_method_options.rs b/generated/stripe_checkout/src/checkout_cashapp_payment_method_options.rs index 0996499cd..c068d9896 100644 --- a/generated/stripe_checkout/src/checkout_cashapp_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_cashapp_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutCashappPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -138,7 +138,7 @@ impl std::fmt::Debug for CheckoutCashappPaymentMethodOptionsSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutCashappPaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -165,7 +165,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutCashappPaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_customer_balance_bank_transfer_payment_method_options.rs b/generated/stripe_checkout/src/checkout_customer_balance_bank_transfer_payment_method_options.rs index e31dcaed2..2ded2276e 100644 --- a/generated/stripe_checkout/src/checkout_customer_balance_bank_transfer_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_customer_balance_bank_transfer_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutCustomerBalanceBankTransferPaymentMethodOptions { pub eu_bank_transfer: Option, /// List of address types that should be returned in the financial_addresses response. @@ -10,7 +10,7 @@ pub struct CheckoutCustomerBalanceBankTransferPaymentMethodOptions { pub requested_address_types: Option>, /// The bank transfer type that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: Option, } #[doc(hidden)] @@ -182,7 +182,7 @@ impl std::fmt::Debug f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutCustomerBalanceBankTransferPaymentMethodOptionsRequestedAddressTypes { @@ -219,7 +219,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( CheckoutCustomerBalanceBankTransferPaymentMethodOptionsRequestedAddressTypes ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CheckoutCustomerBalanceBankTransferPaymentMethodOptionsRequestedAddressTypes { @@ -276,7 +276,7 @@ impl std::fmt::Debug for CheckoutCustomerBalanceBankTransferPaymentMethodOptions f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutCustomerBalanceBankTransferPaymentMethodOptionsType { fn serialize(&self, serializer: S) -> Result where @@ -307,7 +307,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( CheckoutCustomerBalanceBankTransferPaymentMethodOptionsType ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CheckoutCustomerBalanceBankTransferPaymentMethodOptionsType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_customer_balance_payment_method_options.rs b/generated/stripe_checkout/src/checkout_customer_balance_payment_method_options.rs index eab42f167..9bd8b52af 100644 --- a/generated/stripe_checkout/src/checkout_customer_balance_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_customer_balance_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutCustomerBalancePaymentMethodOptions { pub bank_transfer: Option, @@ -154,7 +154,7 @@ impl std::fmt::Debug for CheckoutCustomerBalancePaymentMethodOptionsFundingType f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutCustomerBalancePaymentMethodOptionsFundingType { fn serialize(&self, serializer: S) -> Result where @@ -183,7 +183,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(CheckoutCustomerBalancePaymentMethodOptionsFundingType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CheckoutCustomerBalancePaymentMethodOptionsFundingType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -235,7 +235,7 @@ impl std::fmt::Debug for CheckoutCustomerBalancePaymentMethodOptionsSetupFutureU f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutCustomerBalancePaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -266,7 +266,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( CheckoutCustomerBalancePaymentMethodOptionsSetupFutureUsage ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CheckoutCustomerBalancePaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_eps_payment_method_options.rs b/generated/stripe_checkout/src/checkout_eps_payment_method_options.rs index 5ee09a69d..6b486549a 100644 --- a/generated/stripe_checkout/src/checkout_eps_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_eps_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutEpsPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -138,7 +138,7 @@ impl std::fmt::Debug for CheckoutEpsPaymentMethodOptionsSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutEpsPaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -165,7 +165,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutEpsPaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_fpx_payment_method_options.rs b/generated/stripe_checkout/src/checkout_fpx_payment_method_options.rs index bfdf989f9..f9925334b 100644 --- a/generated/stripe_checkout/src/checkout_fpx_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_fpx_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutFpxPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -138,7 +138,7 @@ impl std::fmt::Debug for CheckoutFpxPaymentMethodOptionsSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutFpxPaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -165,7 +165,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutFpxPaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_giropay_payment_method_options.rs b/generated/stripe_checkout/src/checkout_giropay_payment_method_options.rs index 265ef0119..8f6dac15e 100644 --- a/generated/stripe_checkout/src/checkout_giropay_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_giropay_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutGiropayPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -138,7 +138,7 @@ impl std::fmt::Debug for CheckoutGiropayPaymentMethodOptionsSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutGiropayPaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -165,7 +165,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutGiropayPaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_grab_pay_payment_method_options.rs b/generated/stripe_checkout/src/checkout_grab_pay_payment_method_options.rs index a67220ae4..6e9525662 100644 --- a/generated/stripe_checkout/src/checkout_grab_pay_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_grab_pay_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutGrabPayPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -138,7 +138,7 @@ impl std::fmt::Debug for CheckoutGrabPayPaymentMethodOptionsSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutGrabPayPaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -165,7 +165,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutGrabPayPaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_ideal_payment_method_options.rs b/generated/stripe_checkout/src/checkout_ideal_payment_method_options.rs index a180a0ca7..a506a6815 100644 --- a/generated/stripe_checkout/src/checkout_ideal_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_ideal_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutIdealPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -138,7 +138,7 @@ impl std::fmt::Debug for CheckoutIdealPaymentMethodOptionsSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutIdealPaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -165,7 +165,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutIdealPaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_klarna_payment_method_options.rs b/generated/stripe_checkout/src/checkout_klarna_payment_method_options.rs index 9b32d39fb..65667b0cc 100644 --- a/generated/stripe_checkout/src/checkout_klarna_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_klarna_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutKlarnaPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -144,7 +144,7 @@ impl std::fmt::Debug for CheckoutKlarnaPaymentMethodOptionsSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutKlarnaPaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -171,7 +171,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutKlarnaPaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_konbini_payment_method_options.rs b/generated/stripe_checkout/src/checkout_konbini_payment_method_options.rs index 5b0b597ee..e3142771f 100644 --- a/generated/stripe_checkout/src/checkout_konbini_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_konbini_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutKonbiniPaymentMethodOptions { /// The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. /// For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. @@ -152,7 +152,7 @@ impl std::fmt::Debug for CheckoutKonbiniPaymentMethodOptionsSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutKonbiniPaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -179,7 +179,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutKonbiniPaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_link_payment_method_options.rs b/generated/stripe_checkout/src/checkout_link_payment_method_options.rs index 4d66ab627..47a050b23 100644 --- a/generated/stripe_checkout/src/checkout_link_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_link_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutLinkPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -141,7 +141,7 @@ impl std::fmt::Debug for CheckoutLinkPaymentMethodOptionsSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutLinkPaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -168,7 +168,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutLinkPaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_oxxo_payment_method_options.rs b/generated/stripe_checkout/src/checkout_oxxo_payment_method_options.rs index d8a2f5649..955cbae4b 100644 --- a/generated/stripe_checkout/src/checkout_oxxo_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_oxxo_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutOxxoPaymentMethodOptions { /// The number of calendar days before an OXXO invoice expires. /// For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. @@ -152,7 +152,7 @@ impl std::fmt::Debug for CheckoutOxxoPaymentMethodOptionsSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutOxxoPaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -179,7 +179,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutOxxoPaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_p24_payment_method_options.rs b/generated/stripe_checkout/src/checkout_p24_payment_method_options.rs index 2fc2e4b56..c179949a0 100644 --- a/generated/stripe_checkout/src/checkout_p24_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_p24_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutP24PaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -138,7 +138,7 @@ impl std::fmt::Debug for CheckoutP24PaymentMethodOptionsSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutP24PaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -165,7 +165,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutP24PaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_paynow_payment_method_options.rs b/generated/stripe_checkout/src/checkout_paynow_payment_method_options.rs index 6953f8af5..8adfe6a3a 100644 --- a/generated/stripe_checkout/src/checkout_paynow_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_paynow_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutPaynowPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -138,7 +138,7 @@ impl std::fmt::Debug for CheckoutPaynowPaymentMethodOptionsSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutPaynowPaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -165,7 +165,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutPaynowPaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_paypal_payment_method_options.rs b/generated/stripe_checkout/src/checkout_paypal_payment_method_options.rs index b017ab948..15159ff1c 100644 --- a/generated/stripe_checkout/src/checkout_paypal_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_paypal_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutPaypalPaymentMethodOptions { /// Controls when the funds will be captured from the customer's account. pub capture_method: Option, @@ -159,7 +159,7 @@ impl std::fmt::Debug for CheckoutPaypalPaymentMethodOptionsCaptureMethod { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutPaypalPaymentMethodOptionsCaptureMethod { fn serialize(&self, serializer: S) -> Result where @@ -186,7 +186,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutPaypalPaymentMethodOptionsCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -241,7 +241,7 @@ impl std::fmt::Debug for CheckoutPaypalPaymentMethodOptionsSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutPaypalPaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -268,7 +268,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutPaypalPaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_pix_payment_method_options.rs b/generated/stripe_checkout/src/checkout_pix_payment_method_options.rs index a8264a83c..3c26c4a27 100644 --- a/generated/stripe_checkout/src/checkout_pix_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_pix_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutPixPaymentMethodOptions { /// The number of seconds after which Pix payment will expire. pub expires_after_seconds: Option, diff --git a/generated/stripe_checkout/src/checkout_revolut_pay_payment_method_options.rs b/generated/stripe_checkout/src/checkout_revolut_pay_payment_method_options.rs index 7c11c667d..a899b114e 100644 --- a/generated/stripe_checkout/src/checkout_revolut_pay_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_revolut_pay_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutRevolutPayPaymentMethodOptions {} #[doc(hidden)] pub struct CheckoutRevolutPayPaymentMethodOptionsBuilder {} diff --git a/generated/stripe_checkout/src/checkout_sepa_debit_payment_method_options.rs b/generated/stripe_checkout/src/checkout_sepa_debit_payment_method_options.rs index 6c2cdc8ee..795f8c83e 100644 --- a/generated/stripe_checkout/src/checkout_sepa_debit_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_sepa_debit_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutSepaDebitPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -144,7 +144,7 @@ impl std::fmt::Debug for CheckoutSepaDebitPaymentMethodOptionsSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutSepaDebitPaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -173,7 +173,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(CheckoutSepaDebitPaymentMethodOptionsSetupFutureUsage); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CheckoutSepaDebitPaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_session/requests.rs b/generated/stripe_checkout/src/checkout_session/requests.rs index ac49e4501..bf09056ce 100644 --- a/generated/stripe_checkout/src/checkout_session/requests.rs +++ b/generated/stripe_checkout/src/checkout_session/requests.rs @@ -440,7 +440,7 @@ impl serde::Serialize for CreateCheckoutSessionAutomaticTaxLiabilityType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionAutomaticTaxLiabilityType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -548,7 +548,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreementPosition { @@ -607,7 +607,7 @@ impl serde::Serialize for CreateCheckoutSessionConsentCollectionPromotions { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionConsentCollectionPromotions { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -666,7 +666,7 @@ impl serde::Serialize for CreateCheckoutSessionConsentCollectionTermsOfService { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionConsentCollectionTermsOfService { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -795,7 +795,7 @@ impl serde::Serialize for CreateCheckoutSessionCustomFieldsLabelType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionCustomFieldsLabelType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -884,7 +884,7 @@ impl serde::Serialize for CreateCheckoutSessionCustomFieldsType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionCustomFieldsType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -970,7 +970,7 @@ impl serde::Serialize for CreateCheckoutSessionCustomerCreation { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionCustomerCreation { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1048,7 +1048,7 @@ impl serde::Serialize for CreateCheckoutSessionCustomerUpdateAddress { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionCustomerUpdateAddress { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1104,7 +1104,7 @@ impl serde::Serialize for CreateCheckoutSessionCustomerUpdateName { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionCustomerUpdateName { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1161,7 +1161,7 @@ impl serde::Serialize for CreateCheckoutSessionCustomerUpdateShipping { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionCustomerUpdateShipping { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1312,7 +1312,7 @@ impl serde::Serialize for CreateCheckoutSessionInvoiceCreationInvoiceDataIssuerT serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionInvoiceCreationInvoiceDataIssuerType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1397,7 +1397,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionInvoiceCreationInvoiceDataRenderingOptionsAmountTaxDisplay { @@ -1605,7 +1605,7 @@ impl serde::Serialize for CreateCheckoutSessionLineItemsPriceDataRecurringInterv serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionLineItemsPriceDataRecurringInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1669,7 +1669,7 @@ impl serde::Serialize for CreateCheckoutSessionLineItemsPriceDataTaxBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionLineItemsPriceDataTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1807,7 +1807,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentIntentDataCaptureMethod { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentIntentDataCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1884,7 +1884,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentIntentDataSetupFutureUsage serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentIntentDataSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2018,7 +2018,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodCollection { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodCollection { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2208,7 +2208,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsAcssDebitCurr serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsAcssDebitCurrency { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2306,7 +2306,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsAcssDebitMandateOptionsDefaultFor { @@ -2373,7 +2373,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsAcssDebitMandateOptionsPaymentSchedule { @@ -2437,7 +2437,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsAcssDebitMandateOptionsTransactionType { @@ -2501,7 +2501,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsAcssDebitSetu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsAcssDebitSetupFutureUsage { @@ -2560,7 +2560,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsAcssDebitVeri serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsAcssDebitVerificationMethod { @@ -2635,7 +2635,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsAffirmSetupFu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsAffirmSetupFutureUsage { @@ -2721,7 +2721,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsAfterpayClearpaySetupFutureUsage { @@ -2796,7 +2796,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsAlipaySetupFu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsAlipaySetupFutureUsage { @@ -2876,7 +2876,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsAuBecsDebitSe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsAuBecsDebitSetupFutureUsage { @@ -2958,7 +2958,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsBacsDebitSetu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsBacsDebitSetupFutureUsage { @@ -3034,7 +3034,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsBancontactSet serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsBancontactSetupFutureUsage { @@ -3119,7 +3119,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsBoletoSetupFu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsBoletoSetupFutureUsage { @@ -3229,7 +3229,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsCardSetupFutu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsCardSetupFutureUsage { @@ -3315,7 +3315,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsCashappSetupF serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsCashappSetupFutureUsage { @@ -3459,7 +3459,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsCustomerBalanceBankTransferRequestedAddressTypes { @@ -3528,7 +3528,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsCustomerBalan serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsCustomerBalanceBankTransferType { @@ -3582,7 +3582,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsCustomerBalan serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsCustomerBalanceFundingType { @@ -3644,7 +3644,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsCustomerBalan serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsCustomerBalanceSetupFutureUsage { @@ -3719,7 +3719,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsEpsSetupFutur serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsEpsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3796,7 +3796,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsFpxSetupFutur serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsFpxSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3874,7 +3874,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsGiropaySetupF serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsGiropaySetupFutureUsage { @@ -3950,7 +3950,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsGrabpaySetupF serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsGrabpaySetupFutureUsage { @@ -4025,7 +4025,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsIdealSetupFut serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsIdealSetupFutureUsage { @@ -4104,7 +4104,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsKlarnaSetupFu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsKlarnaSetupFutureUsage { @@ -4189,7 +4189,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsKonbiniSetupF serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsKonbiniSetupFutureUsage { @@ -4267,7 +4267,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsLinkSetupFutu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsLinkSetupFutureUsage { @@ -4350,7 +4350,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsOxxoSetupFutu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsOxxoSetupFutureUsage { @@ -4432,7 +4432,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsP24SetupFutur serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsP24SetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4509,7 +4509,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsPaynowSetupFu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsPaynowSetupFutureUsage { @@ -4598,7 +4598,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsPaypalCapture serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsPaypalCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4717,7 +4717,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsPaypalPreferr serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsPaypalPreferredLocale { @@ -4780,7 +4780,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsPaypalSetupFu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsPaypalSetupFutureUsage { @@ -4876,7 +4876,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsRevolutPaySet serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsRevolutPaySetupFutureUsage { @@ -4958,7 +4958,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsSepaDebitSetu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsSepaDebitSetupFutureUsage { @@ -5033,7 +5033,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsSofortSetupFu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsSofortSetupFutureUsage { @@ -5166,7 +5166,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsUsBankAccountFinancialConnectionsPermissions { @@ -5230,7 +5230,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch { @@ -5294,7 +5294,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsUsBankAccount serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsUsBankAccountSetupFutureUsage { @@ -5354,7 +5354,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsUsBankAccount serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsUsBankAccountVerificationMethod { @@ -5436,7 +5436,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsWechatPayClie serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsWechatPayClient { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -5496,7 +5496,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodOptionsWechatPaySetu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodOptionsWechatPaySetupFutureUsage { @@ -5659,7 +5659,7 @@ impl serde::Serialize for CreateCheckoutSessionPaymentMethodTypes { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionPaymentMethodTypes { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -6475,7 +6475,7 @@ impl serde::Serialize for CreateCheckoutSessionShippingAddressCollectionAllowedC serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionShippingAddressCollectionAllowedCountries { @@ -6643,7 +6643,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionShippingOptionsShippingRateDataDeliveryEstimateMaximumUnit { @@ -6732,7 +6732,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionShippingOptionsShippingRateDataDeliveryEstimateMinimumUnit { @@ -6841,7 +6841,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionShippingOptionsShippingRateDataFixedAmountCurrencyOptionsTaxBehavior { @@ -6901,7 +6901,7 @@ impl serde::Serialize for CreateCheckoutSessionShippingOptionsShippingRateDataTa serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionShippingOptionsShippingRateDataTaxBehavior { @@ -6958,7 +6958,7 @@ impl serde::Serialize for CreateCheckoutSessionShippingOptionsShippingRateDataTy serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionShippingOptionsShippingRateDataType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -7104,7 +7104,7 @@ impl serde::Serialize for CreateCheckoutSessionSubscriptionDataInvoiceSettingsIs serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionSubscriptionDataInvoiceSettingsIssuerType { @@ -7165,7 +7165,7 @@ impl serde::Serialize for CreateCheckoutSessionSubscriptionDataProrationBehavior serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionSubscriptionDataProrationBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -7277,7 +7277,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCheckoutSessionSubscriptionDataTrialSettingsEndBehaviorMissingPaymentMethod { diff --git a/generated/stripe_checkout/src/checkout_session/types.rs b/generated/stripe_checkout/src/checkout_session/types.rs index bd126b5bb..8627a2a28 100644 --- a/generated/stripe_checkout/src/checkout_session/types.rs +++ b/generated/stripe_checkout/src/checkout_session/types.rs @@ -15,7 +15,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutSession { /// When set, provides configuration for actions to take if this Checkout Session expires. pub after_expiration: Option, @@ -541,7 +541,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutSession { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -645,7 +645,7 @@ impl std::fmt::Debug for CheckoutSessionCustomerCreation { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutSessionCustomerCreation { fn serialize(&self, serializer: S) -> Result where @@ -670,7 +670,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(CheckoutSessionCustomerCreation); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CheckoutSessionCustomerCreation { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -718,7 +718,7 @@ impl std::fmt::Debug for CheckoutSessionPaymentMethodCollection { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutSessionPaymentMethodCollection { fn serialize(&self, serializer: S) -> Result where @@ -744,7 +744,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutSessionPaymentMethodCollection { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -796,7 +796,7 @@ impl std::fmt::Debug for CheckoutSessionPaymentStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutSessionPaymentStatus { fn serialize(&self, serializer: S) -> Result where @@ -820,7 +820,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(CheckoutSessionPaymentStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CheckoutSessionPaymentStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -898,7 +898,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutSessionBillingAddressCollection { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1090,7 +1090,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(CheckoutSessionLocale); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CheckoutSessionLocale { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1161,7 +1161,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(CheckoutSessionMode); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CheckoutSessionMode { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1234,7 +1234,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutSessionRedirectOnCompletion { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1307,7 +1307,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(CheckoutSessionStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CheckoutSessionStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1382,7 +1382,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(CheckoutSessionSubmitType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CheckoutSessionSubmitType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1451,7 +1451,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(CheckoutSessionUiMode); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CheckoutSessionUiMode { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_session_payment_method_options.rs b/generated/stripe_checkout/src/checkout_session_payment_method_options.rs index 37740b76b..6f440bb9e 100644 --- a/generated/stripe_checkout/src/checkout_session_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_session_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutSessionPaymentMethodOptions { pub acss_debit: Option, pub affirm: Option, diff --git a/generated/stripe_checkout/src/checkout_sofort_payment_method_options.rs b/generated/stripe_checkout/src/checkout_sofort_payment_method_options.rs index a9d2539af..b2d20c01e 100644 --- a/generated/stripe_checkout/src/checkout_sofort_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_sofort_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutSofortPaymentMethodOptions { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -138,7 +138,7 @@ impl std::fmt::Debug for CheckoutSofortPaymentMethodOptionsSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutSofortPaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -165,7 +165,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CheckoutSofortPaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/checkout_swish_payment_method_options.rs b/generated/stripe_checkout/src/checkout_swish_payment_method_options.rs index 45f3d4abb..3cc6888c8 100644 --- a/generated/stripe_checkout/src/checkout_swish_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_swish_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutSwishPaymentMethodOptions { /// The order reference that will be displayed to customers in the Swish application. /// Defaults to the `id` of the Payment Intent. diff --git a/generated/stripe_checkout/src/checkout_us_bank_account_payment_method_options.rs b/generated/stripe_checkout/src/checkout_us_bank_account_payment_method_options.rs index 44ad0e1dd..7bc65a6c4 100644 --- a/generated/stripe_checkout/src/checkout_us_bank_account_payment_method_options.rs +++ b/generated/stripe_checkout/src/checkout_us_bank_account_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutUsBankAccountPaymentMethodOptions { pub financial_connections: Option, /// Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -166,7 +166,7 @@ impl std::fmt::Debug for CheckoutUsBankAccountPaymentMethodOptionsSetupFutureUsa f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutUsBankAccountPaymentMethodOptionsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -197,7 +197,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( CheckoutUsBankAccountPaymentMethodOptionsSetupFutureUsage ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CheckoutUsBankAccountPaymentMethodOptionsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -247,7 +247,7 @@ impl std::fmt::Debug for CheckoutUsBankAccountPaymentMethodOptionsVerificationMe f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutUsBankAccountPaymentMethodOptionsVerificationMethod { fn serialize(&self, serializer: S) -> Result where @@ -278,7 +278,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( CheckoutUsBankAccountPaymentMethodOptionsVerificationMethod ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CheckoutUsBankAccountPaymentMethodOptionsVerificationMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_after_expiration.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_after_expiration.rs index 0d83b5808..9cc5e8d0f 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_after_expiration.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_after_expiration.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionAfterExpiration { /// When set, configuration used to recover the Checkout Session on expiry. pub recovery: Option, diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_after_expiration_recovery.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_after_expiration_recovery.rs index d9964a456..f97ef29eb 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_after_expiration_recovery.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_after_expiration_recovery.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionAfterExpirationRecovery { /// Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults to `false` pub allow_promotion_codes: bool, diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_automatic_tax.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_automatic_tax.rs index 9491b2bfe..591c60c7c 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_automatic_tax.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_automatic_tax.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionAutomaticTax { /// Indicates whether automatic tax is enabled for the session pub enabled: bool, @@ -152,7 +152,7 @@ impl std::fmt::Debug for PaymentPagesCheckoutSessionAutomaticTaxStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentPagesCheckoutSessionAutomaticTaxStatus { fn serialize(&self, serializer: S) -> Result where @@ -179,7 +179,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentPagesCheckoutSessionAutomaticTaxStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_consent.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_consent.rs index 5b800b095..88d84c156 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_consent.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_consent.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionConsent { /// If `opt_in`, the customer consents to receiving promotional communications /// from the merchant about this Checkout Session. @@ -139,7 +139,7 @@ impl std::fmt::Debug for PaymentPagesCheckoutSessionConsentPromotions { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentPagesCheckoutSessionConsentPromotions { fn serialize(&self, serializer: S) -> Result where @@ -166,7 +166,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentPagesCheckoutSessionConsentPromotions { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -213,7 +213,7 @@ impl std::fmt::Debug for PaymentPagesCheckoutSessionConsentTermsOfService { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentPagesCheckoutSessionConsentTermsOfService { fn serialize(&self, serializer: S) -> Result where @@ -240,7 +240,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentPagesCheckoutSessionConsentTermsOfService { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_consent_collection.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_consent_collection.rs index a35bba458..e437185b4 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_consent_collection.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_consent_collection.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionConsentCollection { /// If set to `hidden`, it will hide legal text related to the reuse of a payment method. pub payment_method_reuse_agreement: @@ -159,7 +159,7 @@ impl std::fmt::Debug for PaymentPagesCheckoutSessionConsentCollectionPromotions f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentPagesCheckoutSessionConsentCollectionPromotions { fn serialize(&self, serializer: S) -> Result where @@ -188,7 +188,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(PaymentPagesCheckoutSessionConsentCollectionPromotions); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentPagesCheckoutSessionConsentCollectionPromotions { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -238,7 +238,7 @@ impl std::fmt::Debug for PaymentPagesCheckoutSessionConsentCollectionTermsOfServ f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentPagesCheckoutSessionConsentCollectionTermsOfService { fn serialize(&self, serializer: S) -> Result where @@ -269,7 +269,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( PaymentPagesCheckoutSessionConsentCollectionTermsOfService ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentPagesCheckoutSessionConsentCollectionTermsOfService { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_currency_conversion.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_currency_conversion.rs index 420510dfd..316ca31db 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_currency_conversion.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_currency_conversion.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionCurrencyConversion { /// Total of all items in source currency before discounts or taxes are applied. pub amount_subtotal: i64, diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields.rs index 4f5f57997..3c9228e6c 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionCustomFields { pub dropdown: Option, /// String of your choice that your integration can use to reconcile this field. @@ -13,7 +13,7 @@ pub struct PaymentPagesCheckoutSessionCustomFields { pub optional: bool, pub text: Option, /// The type of the field. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: PaymentPagesCheckoutSessionCustomFieldsType, } #[doc(hidden)] @@ -177,7 +177,7 @@ impl std::fmt::Debug for PaymentPagesCheckoutSessionCustomFieldsType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentPagesCheckoutSessionCustomFieldsType { fn serialize(&self, serializer: S) -> Result where @@ -204,7 +204,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentPagesCheckoutSessionCustomFieldsType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_dropdown.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_dropdown.rs index 84e0b396b..2ab3a7564 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_dropdown.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_dropdown.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionCustomFieldsDropdown { /// The options available for the customer to select. Up to 200 options allowed. pub options: Vec, diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_label.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_label.rs index ff5ee6df5..bae56568b 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_label.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_label.rs @@ -1,11 +1,11 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionCustomFieldsLabel { /// Custom text for the label, displayed to the customer. Up to 50 characters. pub custom: Option, /// The type of the label. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: PaymentPagesCheckoutSessionCustomFieldsLabelType, } #[doc(hidden)] @@ -132,7 +132,7 @@ impl std::fmt::Debug for PaymentPagesCheckoutSessionCustomFieldsLabelType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentPagesCheckoutSessionCustomFieldsLabelType { fn serialize(&self, serializer: S) -> Result where @@ -159,7 +159,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentPagesCheckoutSessionCustomFieldsLabelType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_numeric.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_numeric.rs index de57ebfa5..7d86ec471 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_numeric.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_numeric.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionCustomFieldsNumeric { /// The maximum character length constraint for the customer's input. pub maximum_length: Option, diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_option.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_option.rs index c7ceec0b9..8348abf04 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_option.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_option.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionCustomFieldsOption { /// The label for the option, displayed to the customer. Up to 100 characters. pub label: String, diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_text.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_text.rs index 4a0047c14..d07491a0c 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_text.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_custom_fields_text.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionCustomFieldsText { /// The maximum character length constraint for the customer's input. pub maximum_length: Option, diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_custom_text.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_custom_text.rs index 93e738d4e..b8a53d34a 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_custom_text.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_custom_text.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionCustomText { /// Custom text that should be displayed after the payment confirmation button. pub after_submit: Option, diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_custom_text_position.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_custom_text_position.rs index 51968e620..e0e7ea9c2 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_custom_text_position.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_custom_text_position.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionCustomTextPosition { /// Text may be up to 1200 characters in length. pub message: String, diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_customer_details.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_customer_details.rs index 3445c07ab..e660a0858 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_customer_details.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_customer_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionCustomerDetails { /// The customer's address after a completed Checkout Session. /// Note: This property is populated only for sessions on or after March 30, 2022. @@ -174,7 +174,7 @@ impl std::fmt::Debug for PaymentPagesCheckoutSessionCustomerDetailsTaxExempt { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentPagesCheckoutSessionCustomerDetailsTaxExempt { fn serialize(&self, serializer: S) -> Result where @@ -201,7 +201,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentPagesCheckoutSessionCustomerDetailsTaxExempt { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_invoice_creation.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_invoice_creation.rs index 9f9cdfefc..38ff9e3b3 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_invoice_creation.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_invoice_creation.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionInvoiceCreation { /// Indicates whether invoice creation is enabled for the Checkout Session. pub enabled: bool, diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_invoice_settings.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_invoice_settings.rs index 33e6571ec..d186ce128 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_invoice_settings.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_invoice_settings.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionInvoiceSettings { /// The account tax IDs associated with the invoice. pub account_tax_ids: Option>>, diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_payment_method_reuse_agreement.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_payment_method_reuse_agreement.rs index 5a07f3430..8bc0199f4 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_payment_method_reuse_agreement.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_payment_method_reuse_agreement.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionPaymentMethodReuseAgreement { /// Determines the position and visibility of the payment method reuse agreement in the UI. /// When set to `auto`, Stripe's defaults will be used. @@ -137,7 +137,7 @@ impl std::fmt::Debug for PaymentPagesCheckoutSessionPaymentMethodReuseAgreementP f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentPagesCheckoutSessionPaymentMethodReuseAgreementPosition { fn serialize(&self, serializer: S) -> Result where @@ -168,7 +168,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( PaymentPagesCheckoutSessionPaymentMethodReuseAgreementPosition ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentPagesCheckoutSessionPaymentMethodReuseAgreementPosition { diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_phone_number_collection.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_phone_number_collection.rs index 6a90b28da..f2e40df46 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_phone_number_collection.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_phone_number_collection.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionPhoneNumberCollection { /// Indicates whether phone number collection is enabled for the session pub enabled: bool, diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_shipping_address_collection.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_shipping_address_collection.rs index 67c7be28b..787640607 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_shipping_address_collection.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_shipping_address_collection.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionShippingAddressCollection { /// An array of two-letter ISO country codes representing which countries Checkout should provide as options for. /// shipping locations. @@ -846,7 +846,7 @@ impl std::fmt::Debug for PaymentPagesCheckoutSessionShippingAddressCollectionAll f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentPagesCheckoutSessionShippingAddressCollectionAllowedCountries { fn serialize(&self, serializer: S) -> Result where @@ -881,7 +881,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( PaymentPagesCheckoutSessionShippingAddressCollectionAllowedCountries ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentPagesCheckoutSessionShippingAddressCollectionAllowedCountries { diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_shipping_cost.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_shipping_cost.rs index 8f12f3cf9..37254fa3e 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_shipping_cost.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_shipping_cost.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionShippingCost { /// Total shipping cost before any discounts or taxes are applied. pub amount_subtotal: i64, diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_shipping_option.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_shipping_option.rs index dfe815c63..1eab5368f 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_shipping_option.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_shipping_option.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionShippingOption { /// A non-negative integer in cents representing how much to charge. pub shipping_amount: i64, diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_tax_id.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_tax_id.rs index fa701573e..206c1e1fa 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_tax_id.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_tax_id.rs @@ -1,9 +1,9 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionTaxId { /// The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: PaymentPagesCheckoutSessionTaxIdType, /// The value of the tax ID. pub value: Option, @@ -330,7 +330,7 @@ impl std::fmt::Debug for PaymentPagesCheckoutSessionTaxIdType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentPagesCheckoutSessionTaxIdType { fn serialize(&self, serializer: S) -> Result where @@ -355,7 +355,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentPagesCheckoutSessionTaxIdType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_tax_id_collection.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_tax_id_collection.rs index 8ce468a46..9fe52b1f9 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_tax_id_collection.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_tax_id_collection.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionTaxIdCollection { /// Indicates whether tax ID collection is enabled for the session pub enabled: bool, diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_total_details.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_total_details.rs index 5d6f59707..730c11a85 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_total_details.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_total_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionTotalDetails { /// This is the sum of all the discounts. pub amount_discount: i64, diff --git a/generated/stripe_checkout/src/payment_pages_checkout_session_total_details_resource_breakdown.rs b/generated/stripe_checkout/src/payment_pages_checkout_session_total_details_resource_breakdown.rs index 1c48967b1..e92f8b84d 100644 --- a/generated/stripe_checkout/src/payment_pages_checkout_session_total_details_resource_breakdown.rs +++ b/generated/stripe_checkout/src/payment_pages_checkout_session_total_details_resource_breakdown.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentPagesCheckoutSessionTotalDetailsResourceBreakdown { /// The aggregated discounts. pub discounts: Vec, diff --git a/generated/stripe_connect/Cargo.toml b/generated/stripe_connect/Cargo.toml index 0bdb05ea0..bbae86c41 100644 --- a/generated/stripe_connect/Cargo.toml +++ b/generated/stripe_connect/Cargo.toml @@ -29,7 +29,8 @@ stripe_shared = {path = "../../generated/stripe_shared"} [features] -serde = ["stripe_types/serde","stripe_shared/serde"] +serialize = ["stripe_types/serialize","stripe_shared/serialize"] +deserialize = ["stripe_types/deserialize","stripe_shared/deserialize"] runtime-tokio-hyper = ["async-stripe/runtime-tokio-hyper"] runtime-tokio-hyper-rustls = ["async-stripe/runtime-tokio-hyper-rustls"] runtime-tokio-hyper-rustls-webpki = ["async-stripe/runtime-tokio-hyper-rustls-webpki"] diff --git a/generated/stripe_connect/src/account/requests.rs b/generated/stripe_connect/src/account/requests.rs index 484cc9255..e3142fa03 100644 --- a/generated/stripe_connect/src/account/requests.rs +++ b/generated/stripe_connect/src/account/requests.rs @@ -527,7 +527,7 @@ impl serde::Serialize for CreateAccountCompanyStructure { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateAccountCompanyStructure { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -728,7 +728,7 @@ impl serde::Serialize for CreateAccountIndividualPoliticalExposure { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateAccountIndividualPoliticalExposure { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -885,7 +885,7 @@ impl serde::Serialize for CreateAccountSettingsPayoutsScheduleInterval { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateAccountSettingsPayoutsScheduleInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -959,7 +959,7 @@ impl serde::Serialize for CreateAccountSettingsPayoutsScheduleWeeklyAnchor { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateAccountSettingsPayoutsScheduleWeeklyAnchor { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1304,7 +1304,7 @@ impl serde::Serialize for UpdateAccountCompanyStructure { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateAccountCompanyStructure { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1505,7 +1505,7 @@ impl serde::Serialize for UpdateAccountIndividualPoliticalExposure { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateAccountIndividualPoliticalExposure { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1678,7 +1678,7 @@ impl serde::Serialize for UpdateAccountSettingsPayoutsScheduleInterval { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateAccountSettingsPayoutsScheduleInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1752,7 +1752,7 @@ impl serde::Serialize for UpdateAccountSettingsPayoutsScheduleWeeklyAnchor { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateAccountSettingsPayoutsScheduleWeeklyAnchor { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_connect/src/account_link/requests.rs b/generated/stripe_connect/src/account_link/requests.rs index 1a0e6ec27..9fd88d4f2 100644 --- a/generated/stripe_connect/src/account_link/requests.rs +++ b/generated/stripe_connect/src/account_link/requests.rs @@ -83,7 +83,7 @@ impl serde::Serialize for CreateAccountLinkCollect { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateAccountLinkCollect { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -155,7 +155,7 @@ impl serde::Serialize for CreateAccountLinkCollectionOptionsFields { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateAccountLinkCollectionOptionsFields { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -212,7 +212,7 @@ impl serde::Serialize for CreateAccountLinkCollectionOptionsFutureRequirements { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateAccountLinkCollectionOptionsFutureRequirements { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -271,7 +271,7 @@ impl serde::Serialize for CreateAccountLinkType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateAccountLinkType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_connect/src/account_link/types.rs b/generated/stripe_connect/src/account_link/types.rs index d72a49377..459afd29b 100644 --- a/generated/stripe_connect/src/account_link/types.rs +++ b/generated/stripe_connect/src/account_link/types.rs @@ -5,7 +5,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountLink { /// Time at which the object was created. Measured in seconds since the Unix epoch. pub created: stripe_types::Timestamp, @@ -114,7 +114,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for AccountLink { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_connect/src/account_session/types.rs b/generated/stripe_connect/src/account_session/types.rs index 1bd29a40a..3106dea8a 100644 --- a/generated/stripe_connect/src/account_session/types.rs +++ b/generated/stripe_connect/src/account_session/types.rs @@ -8,7 +8,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountSession { /// The ID of the account the AccountSession was created for pub account: String, @@ -137,7 +137,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for AccountSession { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_connect/src/apps_secret/requests.rs b/generated/stripe_connect/src/apps_secret/requests.rs index 4a692995b..340327ee4 100644 --- a/generated/stripe_connect/src/apps_secret/requests.rs +++ b/generated/stripe_connect/src/apps_secret/requests.rs @@ -89,7 +89,7 @@ impl serde::Serialize for ListAppsSecretScopeType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ListAppsSecretScopeType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -189,7 +189,7 @@ impl serde::Serialize for FindAppsSecretScopeType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for FindAppsSecretScopeType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -288,7 +288,7 @@ impl serde::Serialize for CreateAppsSecretScopeType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateAppsSecretScopeType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -382,7 +382,7 @@ impl serde::Serialize for DeleteWhereAppsSecretScopeType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for DeleteWhereAppsSecretScopeType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_connect/src/apps_secret/types.rs b/generated/stripe_connect/src/apps_secret/types.rs index 75af87b4d..c3b5c9e62 100644 --- a/generated/stripe_connect/src/apps_secret/types.rs +++ b/generated/stripe_connect/src/apps_secret/types.rs @@ -12,7 +12,7 @@ /// /// Related guide: [Store data between page reloads](https://stripe.com/docs/stripe-apps/store-auth-data-custom-objects). #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AppsSecret { /// Time at which the object was created. Measured in seconds since the Unix epoch. pub created: stripe_types::Timestamp, @@ -155,7 +155,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for AppsSecret { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_connect/src/connect_embedded_account_session_create_components.rs b/generated/stripe_connect/src/connect_embedded_account_session_create_components.rs index 14d938605..4c63c07b6 100644 --- a/generated/stripe_connect/src/connect_embedded_account_session_create_components.rs +++ b/generated/stripe_connect/src/connect_embedded_account_session_create_components.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ConnectEmbeddedAccountSessionCreateComponents { pub account_onboarding: stripe_connect::ConnectEmbeddedBaseConfigClaim, pub payment_details: stripe_connect::ConnectEmbeddedPaymentsConfig, diff --git a/generated/stripe_connect/src/connect_embedded_base_config_claim.rs b/generated/stripe_connect/src/connect_embedded_base_config_claim.rs index 2d032cbc0..90aedda47 100644 --- a/generated/stripe_connect/src/connect_embedded_base_config_claim.rs +++ b/generated/stripe_connect/src/connect_embedded_base_config_claim.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ConnectEmbeddedBaseConfigClaim { /// Whether the embedded component is enabled. pub enabled: bool, diff --git a/generated/stripe_connect/src/connect_embedded_base_features.rs b/generated/stripe_connect/src/connect_embedded_base_features.rs index 4ea19b6d6..73d187823 100644 --- a/generated/stripe_connect/src/connect_embedded_base_features.rs +++ b/generated/stripe_connect/src/connect_embedded_base_features.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ConnectEmbeddedBaseFeatures {} #[doc(hidden)] pub struct ConnectEmbeddedBaseFeaturesBuilder {} diff --git a/generated/stripe_connect/src/connect_embedded_payments_config.rs b/generated/stripe_connect/src/connect_embedded_payments_config.rs index 68d615798..7231c3d2a 100644 --- a/generated/stripe_connect/src/connect_embedded_payments_config.rs +++ b/generated/stripe_connect/src/connect_embedded_payments_config.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ConnectEmbeddedPaymentsConfig { /// Whether the embedded component is enabled. pub enabled: bool, diff --git a/generated/stripe_connect/src/connect_embedded_payments_features.rs b/generated/stripe_connect/src/connect_embedded_payments_features.rs index f89b46225..28e6e7953 100644 --- a/generated/stripe_connect/src/connect_embedded_payments_features.rs +++ b/generated/stripe_connect/src/connect_embedded_payments_features.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ConnectEmbeddedPaymentsFeatures { /// Whether to allow capturing and cancelling payment intents. This is `true` by default. pub capture_payments: bool, diff --git a/generated/stripe_connect/src/connect_embedded_payouts_config.rs b/generated/stripe_connect/src/connect_embedded_payouts_config.rs index b500550e2..17bf478e2 100644 --- a/generated/stripe_connect/src/connect_embedded_payouts_config.rs +++ b/generated/stripe_connect/src/connect_embedded_payouts_config.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ConnectEmbeddedPayoutsConfig { /// Whether the embedded component is enabled. pub enabled: bool, diff --git a/generated/stripe_connect/src/connect_embedded_payouts_features.rs b/generated/stripe_connect/src/connect_embedded_payouts_features.rs index d29f922bf..ac1f803fd 100644 --- a/generated/stripe_connect/src/connect_embedded_payouts_features.rs +++ b/generated/stripe_connect/src/connect_embedded_payouts_features.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ConnectEmbeddedPayoutsFeatures { /// Whether to allow payout schedule to be changed. /// Default `true` when Stripe owns Loss Liability, default `false` otherwise. diff --git a/generated/stripe_connect/src/country_spec/types.rs b/generated/stripe_connect/src/country_spec/types.rs index 4b36456cd..e319c176d 100644 --- a/generated/stripe_connect/src/country_spec/types.rs +++ b/generated/stripe_connect/src/country_spec/types.rs @@ -7,7 +7,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CountrySpec { /// The default currency for this country. This applies to both payment methods and bank accounts. pub default_currency: stripe_types::Currency, @@ -163,7 +163,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CountrySpec { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_connect/src/country_spec_verification_field_details.rs b/generated/stripe_connect/src/country_spec_verification_field_details.rs index 175e596bf..eefab2f2e 100644 --- a/generated/stripe_connect/src/country_spec_verification_field_details.rs +++ b/generated/stripe_connect/src/country_spec_verification_field_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CountrySpecVerificationFieldDetails { /// Additional fields which are only required for some users. pub additional: Vec, diff --git a/generated/stripe_connect/src/country_spec_verification_fields.rs b/generated/stripe_connect/src/country_spec_verification_fields.rs index 34baeafe4..0fc9daef7 100644 --- a/generated/stripe_connect/src/country_spec_verification_fields.rs +++ b/generated/stripe_connect/src/country_spec_verification_fields.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CountrySpecVerificationFields { pub company: stripe_connect::CountrySpecVerificationFieldDetails, pub individual: stripe_connect::CountrySpecVerificationFieldDetails, diff --git a/generated/stripe_connect/src/external_account/requests.rs b/generated/stripe_connect/src/external_account/requests.rs index cc26679e0..164701631 100644 --- a/generated/stripe_connect/src/external_account/requests.rs +++ b/generated/stripe_connect/src/external_account/requests.rs @@ -94,7 +94,7 @@ impl serde::Serialize for ListAccountExternalAccountObject { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ListAccountExternalAccountObject { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -288,7 +288,7 @@ impl serde::Serialize for UpdateExternalAccountAccountHolderType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateExternalAccountAccountHolderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -352,7 +352,7 @@ impl serde::Serialize for UpdateExternalAccountAccountType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateExternalAccountAccountType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_connect/src/login_link/types.rs b/generated/stripe_connect/src/login_link/types.rs index 2891ef165..10513b3d9 100644 --- a/generated/stripe_connect/src/login_link/types.rs +++ b/generated/stripe_connect/src/login_link/types.rs @@ -2,7 +2,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct LoginLink { /// Time at which the object was created. Measured in seconds since the Unix epoch. pub created: stripe_types::Timestamp, @@ -95,7 +95,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for LoginLink { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_connect/src/secret_service_resource_scope.rs b/generated/stripe_connect/src/secret_service_resource_scope.rs index 41b13e8fb..85299e2d2 100644 --- a/generated/stripe_connect/src/secret_service_resource_scope.rs +++ b/generated/stripe_connect/src/secret_service_resource_scope.rs @@ -1,9 +1,9 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SecretServiceResourceScope { /// The secret scope type. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: SecretServiceResourceScopeType, /// The user ID, if type is set to "user" pub user: Option, @@ -135,7 +135,7 @@ impl std::fmt::Debug for SecretServiceResourceScopeType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SecretServiceResourceScopeType { fn serialize(&self, serializer: S) -> Result where @@ -159,7 +159,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(SecretServiceResourceScopeType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SecretServiceResourceScopeType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_connect/src/topup/requests.rs b/generated/stripe_connect/src/topup/requests.rs index f87b3adbc..90052ce56 100644 --- a/generated/stripe_connect/src/topup/requests.rs +++ b/generated/stripe_connect/src/topup/requests.rs @@ -87,7 +87,7 @@ impl serde::Serialize for ListTopupStatus { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ListTopupStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_connect/src/transfer/requests.rs b/generated/stripe_connect/src/transfer/requests.rs index eadd323ff..f1fef91f2 100644 --- a/generated/stripe_connect/src/transfer/requests.rs +++ b/generated/stripe_connect/src/transfer/requests.rs @@ -169,7 +169,7 @@ impl serde::Serialize for CreateTransferSourceType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTransferSourceType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_core/Cargo.toml b/generated/stripe_core/Cargo.toml index 7f98c3d58..cd8a32b7a 100644 --- a/generated/stripe_core/Cargo.toml +++ b/generated/stripe_core/Cargo.toml @@ -29,7 +29,8 @@ stripe_shared = {path = "../../generated/stripe_shared"} [features] -serde = ["stripe_types/serde","stripe_shared/serde"] +serialize = ["stripe_types/serialize","stripe_shared/serialize"] +deserialize = ["stripe_types/deserialize","stripe_shared/deserialize"] runtime-tokio-hyper = ["async-stripe/runtime-tokio-hyper"] runtime-tokio-hyper-rustls = ["async-stripe/runtime-tokio-hyper-rustls"] runtime-tokio-hyper-rustls-webpki = ["async-stripe/runtime-tokio-hyper-rustls-webpki"] diff --git a/generated/stripe_core/src/balance/types.rs b/generated/stripe_core/src/balance/types.rs index 0259a699b..c4e8b18eb 100644 --- a/generated/stripe_core/src/balance/types.rs +++ b/generated/stripe_core/src/balance/types.rs @@ -12,7 +12,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Balance { /// Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://stripe.com/docs/api#transfers) or [Payouts API](https://stripe.com/docs/api#payouts). /// You can find the available balance for each currency and payment type in the `source_types` property. @@ -141,7 +141,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Balance { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_core/src/balance_amount.rs b/generated/stripe_core/src/balance_amount.rs index dac6cf209..fb6f09f13 100644 --- a/generated/stripe_core/src/balance_amount.rs +++ b/generated/stripe_core/src/balance_amount.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BalanceAmount { /// Balance amount. pub amount: i64, diff --git a/generated/stripe_core/src/balance_amount_by_source_type.rs b/generated/stripe_core/src/balance_amount_by_source_type.rs index e61893093..6103ca711 100644 --- a/generated/stripe_core/src/balance_amount_by_source_type.rs +++ b/generated/stripe_core/src/balance_amount_by_source_type.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BalanceAmountBySourceType { /// Amount for bank account. pub bank_account: Option, diff --git a/generated/stripe_core/src/balance_amount_net.rs b/generated/stripe_core/src/balance_amount_net.rs index 49dd009e4..03f2370f1 100644 --- a/generated/stripe_core/src/balance_amount_net.rs +++ b/generated/stripe_core/src/balance_amount_net.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BalanceAmountNet { /// Balance amount. pub amount: i64, diff --git a/generated/stripe_core/src/balance_detail.rs b/generated/stripe_core/src/balance_detail.rs index 2af9d1279..0b9a75616 100644 --- a/generated/stripe_core/src/balance_detail.rs +++ b/generated/stripe_core/src/balance_detail.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BalanceDetail { /// Funds that are available for use. pub available: Vec, diff --git a/generated/stripe_core/src/cash_balance/requests.rs b/generated/stripe_core/src/cash_balance/requests.rs index e799712d0..51ba5fc5d 100644 --- a/generated/stripe_core/src/cash_balance/requests.rs +++ b/generated/stripe_core/src/cash_balance/requests.rs @@ -98,7 +98,7 @@ impl serde::Serialize for UpdateCashBalanceSettingsReconciliationMode { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateCashBalanceSettingsReconciliationMode { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_core/src/charge/requests.rs b/generated/stripe_core/src/charge/requests.rs index 60367ba9e..a3732ea53 100644 --- a/generated/stripe_core/src/charge/requests.rs +++ b/generated/stripe_core/src/charge/requests.rs @@ -360,7 +360,7 @@ impl serde::Serialize for UpdateChargeFraudDetailsUserReport { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateChargeFraudDetailsUserReport { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_core/src/customer/requests.rs b/generated/stripe_core/src/customer/requests.rs index 4285a78c2..33791cd79 100644 --- a/generated/stripe_core/src/customer/requests.rs +++ b/generated/stripe_core/src/customer/requests.rs @@ -108,9 +108,9 @@ impl<'a> RetrieveCustomer<'a> { } } #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", serde(untagged))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(untagged))] pub enum RetrieveCustomerReturned { Customer(stripe_shared::Customer), DeletedCustomer(stripe_shared::DeletedCustomer), @@ -407,7 +407,7 @@ impl serde::Serialize for ListPaymentMethodsCustomerType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ListPaymentMethodsCustomerType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -660,7 +660,7 @@ impl serde::Serialize for CreateCustomerCashBalanceSettingsReconciliationMode { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCustomerCashBalanceSettingsReconciliationMode { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -758,7 +758,7 @@ impl serde::Serialize for CreateCustomerInvoiceSettingsRenderingOptionsAmountTax serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCustomerInvoiceSettingsRenderingOptionsAmountTaxDisplay { @@ -837,7 +837,7 @@ impl serde::Serialize for CreateCustomerTaxValidateLocation { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCustomerTaxValidateLocation { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1103,7 +1103,7 @@ impl serde::Serialize for CreateCustomerTaxIdDataType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateCustomerTaxIdDataType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1278,7 +1278,7 @@ impl serde::Serialize for UpdateCustomerCashBalanceSettingsReconciliationMode { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateCustomerCashBalanceSettingsReconciliationMode { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1376,7 +1376,7 @@ impl serde::Serialize for UpdateCustomerInvoiceSettingsRenderingOptionsAmountTax serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateCustomerInvoiceSettingsRenderingOptionsAmountTaxDisplay { @@ -1455,7 +1455,7 @@ impl serde::Serialize for UpdateCustomerTaxValidateLocation { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateCustomerTaxValidateLocation { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1593,7 +1593,7 @@ impl serde::Serialize for CreateFundingInstructionsCustomerBankTransferRequested serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateFundingInstructionsCustomerBankTransferRequestedAddressTypes { @@ -1658,7 +1658,7 @@ impl serde::Serialize for CreateFundingInstructionsCustomerBankTransferType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateFundingInstructionsCustomerBankTransferType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1713,7 +1713,7 @@ impl serde::Serialize for CreateFundingInstructionsCustomerFundingType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateFundingInstructionsCustomerFundingType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_core/src/customer_session/types.rs b/generated/stripe_core/src/customer_session/types.rs index acac94dbd..16b448dc7 100644 --- a/generated/stripe_core/src/customer_session/types.rs +++ b/generated/stripe_core/src/customer_session/types.rs @@ -1,7 +1,7 @@ /// A customer session allows you to grant client access to Stripe's frontend SDKs (like StripeJs) /// control over a customer. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomerSession { /// The client secret of this customer session. /// Used on the client to set up secure access to the given `customer`. @@ -135,7 +135,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CustomerSession { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_core/src/customer_session_resource_components.rs b/generated/stripe_core/src/customer_session_resource_components.rs index 38617311c..6e28172cd 100644 --- a/generated/stripe_core/src/customer_session_resource_components.rs +++ b/generated/stripe_core/src/customer_session_resource_components.rs @@ -1,7 +1,7 @@ /// Configuration for the components supported by this customer session. #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomerSessionResourceComponents { pub buy_button: stripe_core::CustomerSessionResourceComponentsResourceBuyButton, pub pricing_table: stripe_core::CustomerSessionResourceComponentsResourcePricingTable, diff --git a/generated/stripe_core/src/customer_session_resource_components_resource_buy_button.rs b/generated/stripe_core/src/customer_session_resource_components_resource_buy_button.rs index cbc358a7a..ea0e00ce7 100644 --- a/generated/stripe_core/src/customer_session_resource_components_resource_buy_button.rs +++ b/generated/stripe_core/src/customer_session_resource_components_resource_buy_button.rs @@ -1,7 +1,7 @@ /// This hash contains whether the buy button is enabled. #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomerSessionResourceComponentsResourceBuyButton { /// Whether the buy button is enabled. pub enabled: bool, diff --git a/generated/stripe_core/src/customer_session_resource_components_resource_pricing_table.rs b/generated/stripe_core/src/customer_session_resource_components_resource_pricing_table.rs index fa3ecd414..45a9c3660 100644 --- a/generated/stripe_core/src/customer_session_resource_components_resource_pricing_table.rs +++ b/generated/stripe_core/src/customer_session_resource_components_resource_pricing_table.rs @@ -1,7 +1,7 @@ /// This hash contains whether the pricing table is enabled. #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomerSessionResourceComponentsResourcePricingTable { /// Whether the pricing table is enabled. pub enabled: bool, diff --git a/generated/stripe_core/src/payment_intent/requests.rs b/generated/stripe_core/src/payment_intent/requests.rs index 33375fa60..b63c8a49e 100644 --- a/generated/stripe_core/src/payment_intent/requests.rs +++ b/generated/stripe_core/src/payment_intent/requests.rs @@ -358,7 +358,7 @@ impl serde::Serialize for CreatePaymentIntentAutomaticPaymentMethodsAllowRedirec serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentAutomaticPaymentMethodsAllowRedirects { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -452,7 +452,7 @@ impl serde::Serialize for CreatePaymentIntentMandateDataCustomerAcceptanceType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentMandateDataCustomerAcceptanceType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -888,7 +888,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodDataEpsBank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodDataEpsBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -956,7 +956,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodDataFpxAccountHolderTy serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodDataFpxAccountHolderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1078,7 +1078,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodDataFpxBank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodDataFpxBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1190,7 +1190,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodDataIdealBank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodDataIdealBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1344,7 +1344,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodDataP24Bank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodDataP24Bank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1445,7 +1445,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodDataSofortCountry { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodDataSofortCountry { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1599,7 +1599,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodDataType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodDataType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1678,7 +1678,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodDataUsBankAccountAccou serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodDataUsBankAccountAccountHolderType { @@ -1734,7 +1734,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodDataUsBankAccountAccou serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodDataUsBankAccountAccountType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1971,7 +1971,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsAcssDebitMandateOptionsPaymentSchedule { @@ -2035,7 +2035,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsAcssDebitMandateOptionsTransactionType { @@ -2101,7 +2101,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsAcssDebitSetupF serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsAcssDebitSetupFutureUsage { @@ -2160,7 +2160,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsAcssDebitVerifi serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsAcssDebitVerificationMethod { @@ -2246,7 +2246,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsAffirmCaptureMe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsAffirmCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2308,7 +2308,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsAffirmSetupFutu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsAffirmSetupFutureUsage { @@ -2402,7 +2402,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsAfterpayClearpa serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsAfterpayClearpayCaptureMethod { @@ -2462,7 +2462,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsAfterpayClearpa serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsAfterpayClearpaySetupFutureUsage { @@ -2544,7 +2544,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsAlipaySetupFutu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsAlipaySetupFutureUsage { @@ -2634,7 +2634,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsAuBecsDebitSetu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsAuBecsDebitSetupFutureUsage { @@ -2720,7 +2720,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsBacsDebitSetupF serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsBacsDebitSetupFutureUsage { @@ -2806,7 +2806,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsBancontactPrefe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsBancontactPreferredLanguage { @@ -2869,7 +2869,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsBancontactSetup serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsBancontactSetupFutureUsage { @@ -2952,7 +2952,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsBlikSetupFuture serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsBlikSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3043,7 +3043,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsBoletoSetupFutu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsBoletoSetupFutureUsage { @@ -3195,7 +3195,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsCardCaptureMeth serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsCardCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3293,7 +3293,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsCardInstallment serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsCardInstallmentsPlanInterval { @@ -3346,7 +3346,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsCardInstallment serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsCardInstallmentsPlanType { @@ -3463,7 +3463,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsCardMandateOpti serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsCardMandateOptionsAmountType { @@ -3528,7 +3528,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsCardMandateOpti serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsCardMandateOptionsInterval { @@ -3581,7 +3581,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsCardMandateOpti serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsCardMandateOptionsSupportedTypes { @@ -3666,7 +3666,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsCardNetwork { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsCardNetwork { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3724,7 +3724,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsCardRequestExte serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsCardRequestExtendedAuthorization { @@ -3788,7 +3788,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsCardRequestIncrementalAuthorization { @@ -3844,7 +3844,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsCardRequestMult serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsCardRequestMulticapture { @@ -3904,7 +3904,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsCardRequestOver serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsCardRequestOvercapture { @@ -3970,7 +3970,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsCardRequestThre serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsCardRequestThreeDSecure { @@ -4040,7 +4040,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsCardSetupFuture serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsCardSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4169,7 +4169,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsCardThreeDSecur serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsCardThreeDSecureAresTransStatus { @@ -4243,7 +4243,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsCardThreeDSecureElectronicCommerceIndicator { @@ -4305,7 +4305,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsCardThreeDSecureExemptionIndicator { @@ -4426,7 +4426,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancairesCbAvalgo { @@ -4485,7 +4485,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsCardThreeDSecur serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsCardThreeDSecureVersion { @@ -4572,7 +4572,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsCashappCaptureM serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsCashappCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4640,7 +4640,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsCashappSetupFut serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsCashappSetupFutureUsage { @@ -4778,7 +4778,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferRequestedAddressTypes { @@ -4843,7 +4843,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsCustomerBalance serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferType { @@ -4897,7 +4897,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsCustomerBalance serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsCustomerBalanceFundingType { @@ -4957,7 +4957,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsCustomerBalance serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsCustomerBalanceSetupFutureUsage { @@ -5036,7 +5036,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsEpsSetupFutureU serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsEpsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -5117,7 +5117,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsFpxSetupFutureU serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsFpxSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -5198,7 +5198,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsGiropaySetupFut serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsGiropaySetupFutureUsage { @@ -5281,7 +5281,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsGrabpaySetupFut serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsGrabpaySetupFutureUsage { @@ -5367,7 +5367,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsIdealSetupFutur serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsIdealSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -5455,7 +5455,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsKlarnaCaptureMe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsKlarnaCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -5643,7 +5643,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsKlarnaPreferred serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsKlarnaPreferredLocale { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -5701,7 +5701,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsKlarnaSetupFutu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsKlarnaSetupFutureUsage { @@ -5801,7 +5801,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsKonbiniSetupFut serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsKonbiniSetupFutureUsage { @@ -5891,7 +5891,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsLinkCaptureMeth serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsLinkCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -5956,7 +5956,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsLinkSetupFuture serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsLinkSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -6041,7 +6041,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsOxxoSetupFuture serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsOxxoSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -6125,7 +6125,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsP24SetupFutureU serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsP24SetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -6206,7 +6206,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsPaynowSetupFutu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsPaynowSetupFutureUsage { @@ -6295,7 +6295,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsPaypalCaptureMe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsPaypalCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -6414,7 +6414,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsPaypalPreferred serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsPaypalPreferredLocale { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -6475,7 +6475,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsPaypalSetupFutu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsPaypalSetupFutureUsage { @@ -6566,7 +6566,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsPixSetupFutureU serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsPixSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -6648,7 +6648,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsPromptpaySetupF serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsPromptpaySetupFutureUsage { @@ -6727,7 +6727,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsRevolutPaySetup serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsRevolutPaySetupFutureUsage { @@ -6817,7 +6817,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsSepaDebitSetupF serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsSepaDebitSetupFutureUsage { @@ -6910,7 +6910,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsSofortPreferred serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsSofortPreferredLanguage { @@ -6977,7 +6977,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsSofortSetupFutu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsSofortSetupFutureUsage { @@ -7063,7 +7063,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsSwishSetupFutur serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsSwishSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -7200,7 +7200,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsUsBankAccountFinancialConnectionsPermissions { @@ -7264,7 +7264,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch { @@ -7338,7 +7338,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsUsBankAccountMandateOptionsCollectionMethod { @@ -7407,7 +7407,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsUsBankAccountNe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsUsBankAccountNetworksRequested { @@ -7471,7 +7471,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsUsBankAccountPreferredSettlementSpeed { @@ -7537,7 +7537,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsUsBankAccountSe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsUsBankAccountSetupFutureUsage { @@ -7596,7 +7596,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsUsBankAccountVe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsUsBankAccountVerificationMethod { @@ -7680,7 +7680,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsWechatPayClient serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsWechatPayClient { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -7742,7 +7742,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsWechatPaySetupF serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsWechatPaySetupFutureUsage { @@ -7821,7 +7821,7 @@ impl serde::Serialize for CreatePaymentIntentPaymentMethodOptionsZipSetupFutureU serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentIntentPaymentMethodOptionsZipSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -8448,7 +8448,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodDataEpsBank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodDataEpsBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -8516,7 +8516,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodDataFpxAccountHolderTy serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodDataFpxAccountHolderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -8638,7 +8638,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodDataFpxBank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodDataFpxBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -8750,7 +8750,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodDataIdealBank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodDataIdealBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -8904,7 +8904,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodDataP24Bank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodDataP24Bank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -9005,7 +9005,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodDataSofortCountry { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodDataSofortCountry { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -9159,7 +9159,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodDataType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodDataType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -9238,7 +9238,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodDataUsBankAccountAccou serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodDataUsBankAccountAccountHolderType { @@ -9294,7 +9294,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodDataUsBankAccountAccou serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodDataUsBankAccountAccountType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -9531,7 +9531,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsAcssDebitMandateOptionsPaymentSchedule { @@ -9595,7 +9595,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsAcssDebitMandateOptionsTransactionType { @@ -9661,7 +9661,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsAcssDebitSetupF serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsAcssDebitSetupFutureUsage { @@ -9720,7 +9720,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsAcssDebitVerifi serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsAcssDebitVerificationMethod { @@ -9806,7 +9806,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsAffirmCaptureMe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsAffirmCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -9868,7 +9868,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsAffirmSetupFutu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsAffirmSetupFutureUsage { @@ -9962,7 +9962,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsAfterpayClearpa serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsAfterpayClearpayCaptureMethod { @@ -10022,7 +10022,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsAfterpayClearpa serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsAfterpayClearpaySetupFutureUsage { @@ -10104,7 +10104,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsAlipaySetupFutu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsAlipaySetupFutureUsage { @@ -10194,7 +10194,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsAuBecsDebitSetu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsAuBecsDebitSetupFutureUsage { @@ -10280,7 +10280,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsBacsDebitSetupF serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsBacsDebitSetupFutureUsage { @@ -10366,7 +10366,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsBancontactPrefe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsBancontactPreferredLanguage { @@ -10429,7 +10429,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsBancontactSetup serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsBancontactSetupFutureUsage { @@ -10512,7 +10512,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsBlikSetupFuture serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsBlikSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -10603,7 +10603,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsBoletoSetupFutu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsBoletoSetupFutureUsage { @@ -10755,7 +10755,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsCardCaptureMeth serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsCardCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -10853,7 +10853,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsCardInstallment serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsCardInstallmentsPlanInterval { @@ -10906,7 +10906,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsCardInstallment serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsCardInstallmentsPlanType { @@ -11023,7 +11023,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsCardMandateOpti serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsCardMandateOptionsAmountType { @@ -11088,7 +11088,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsCardMandateOpti serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsCardMandateOptionsInterval { @@ -11141,7 +11141,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsCardMandateOpti serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsCardMandateOptionsSupportedTypes { @@ -11226,7 +11226,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsCardNetwork { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsCardNetwork { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -11284,7 +11284,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsCardRequestExte serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsCardRequestExtendedAuthorization { @@ -11348,7 +11348,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsCardRequestIncrementalAuthorization { @@ -11404,7 +11404,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsCardRequestMult serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsCardRequestMulticapture { @@ -11464,7 +11464,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsCardRequestOver serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsCardRequestOvercapture { @@ -11530,7 +11530,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsCardRequestThre serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsCardRequestThreeDSecure { @@ -11600,7 +11600,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsCardSetupFuture serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsCardSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -11729,7 +11729,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsCardThreeDSecur serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsCardThreeDSecureAresTransStatus { @@ -11803,7 +11803,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsCardThreeDSecureElectronicCommerceIndicator { @@ -11865,7 +11865,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsCardThreeDSecureExemptionIndicator { @@ -11986,7 +11986,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancairesCbAvalgo { @@ -12045,7 +12045,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsCardThreeDSecur serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsCardThreeDSecureVersion { @@ -12132,7 +12132,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsCashappCaptureM serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsCashappCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -12200,7 +12200,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsCashappSetupFut serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsCashappSetupFutureUsage { @@ -12338,7 +12338,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferRequestedAddressTypes { @@ -12403,7 +12403,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsCustomerBalance serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferType { @@ -12457,7 +12457,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsCustomerBalance serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsCustomerBalanceFundingType { @@ -12517,7 +12517,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsCustomerBalance serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsCustomerBalanceSetupFutureUsage { @@ -12596,7 +12596,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsEpsSetupFutureU serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsEpsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -12677,7 +12677,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsFpxSetupFutureU serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsFpxSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -12758,7 +12758,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsGiropaySetupFut serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsGiropaySetupFutureUsage { @@ -12841,7 +12841,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsGrabpaySetupFut serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsGrabpaySetupFutureUsage { @@ -12927,7 +12927,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsIdealSetupFutur serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsIdealSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -13015,7 +13015,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsKlarnaCaptureMe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsKlarnaCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -13203,7 +13203,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsKlarnaPreferred serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsKlarnaPreferredLocale { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -13261,7 +13261,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsKlarnaSetupFutu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsKlarnaSetupFutureUsage { @@ -13361,7 +13361,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsKonbiniSetupFut serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsKonbiniSetupFutureUsage { @@ -13451,7 +13451,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsLinkCaptureMeth serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsLinkCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -13516,7 +13516,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsLinkSetupFuture serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsLinkSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -13601,7 +13601,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsOxxoSetupFuture serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsOxxoSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -13685,7 +13685,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsP24SetupFutureU serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsP24SetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -13766,7 +13766,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsPaynowSetupFutu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsPaynowSetupFutureUsage { @@ -13855,7 +13855,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsPaypalCaptureMe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsPaypalCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -13974,7 +13974,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsPaypalPreferred serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsPaypalPreferredLocale { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -14035,7 +14035,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsPaypalSetupFutu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsPaypalSetupFutureUsage { @@ -14126,7 +14126,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsPixSetupFutureU serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsPixSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -14208,7 +14208,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsPromptpaySetupF serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsPromptpaySetupFutureUsage { @@ -14287,7 +14287,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsRevolutPaySetup serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsRevolutPaySetupFutureUsage { @@ -14377,7 +14377,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsSepaDebitSetupF serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsSepaDebitSetupFutureUsage { @@ -14470,7 +14470,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsSofortPreferred serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsSofortPreferredLanguage { @@ -14537,7 +14537,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsSofortSetupFutu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsSofortSetupFutureUsage { @@ -14623,7 +14623,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsSwishSetupFutur serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsSwishSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -14760,7 +14760,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsUsBankAccountFinancialConnectionsPermissions { @@ -14824,7 +14824,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch { @@ -14898,7 +14898,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsUsBankAccountMandateOptionsCollectionMethod { @@ -14967,7 +14967,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsUsBankAccountNe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsUsBankAccountNetworksRequested { @@ -15031,7 +15031,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsUsBankAccountPreferredSettlementSpeed { @@ -15097,7 +15097,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsUsBankAccountSe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsUsBankAccountSetupFutureUsage { @@ -15156,7 +15156,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsUsBankAccountVe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsUsBankAccountVerificationMethod { @@ -15240,7 +15240,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsWechatPayClient serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsWechatPayClient { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -15302,7 +15302,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsWechatPaySetupF serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsWechatPaySetupFutureUsage { @@ -15381,7 +15381,7 @@ impl serde::Serialize for UpdatePaymentIntentPaymentMethodOptionsZipSetupFutureU serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentIntentPaymentMethodOptionsZipSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -15565,7 +15565,7 @@ impl serde::Serialize for CancelPaymentIntentCancellationReason { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CancelPaymentIntentCancellationReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -15817,7 +15817,7 @@ impl serde::Serialize for ConfirmPaymentIntentSecretKeyParamCustomerAcceptanceTy serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentSecretKeyParamCustomerAcceptanceType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -15916,7 +15916,7 @@ impl serde::Serialize for ConfirmPaymentIntentClientKeyParamCustomerAcceptanceTy serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentClientKeyParamCustomerAcceptanceType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -16351,7 +16351,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodDataEpsBank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodDataEpsBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -16419,7 +16419,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodDataFpxAccountHolderT serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodDataFpxAccountHolderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -16541,7 +16541,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodDataFpxBank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodDataFpxBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -16653,7 +16653,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodDataIdealBank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodDataIdealBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -16807,7 +16807,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodDataP24Bank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodDataP24Bank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -16908,7 +16908,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodDataSofortCountry { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodDataSofortCountry { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -17062,7 +17062,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodDataType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodDataType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -17141,7 +17141,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodDataUsBankAccountAcco serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodDataUsBankAccountAccountHolderType { @@ -17197,7 +17197,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodDataUsBankAccountAcco serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodDataUsBankAccountAccountType { @@ -17437,7 +17437,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsAcssDebitMandateOptionsPaymentSchedule { @@ -17501,7 +17501,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsAcssDebitMandateOptionsTransactionType { @@ -17567,7 +17567,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsAcssDebitSetup serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsAcssDebitSetupFutureUsage { @@ -17626,7 +17626,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsAcssDebitVerif serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsAcssDebitVerificationMethod { @@ -17712,7 +17712,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsAffirmCaptureM serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsAffirmCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -17774,7 +17774,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsAffirmSetupFut serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsAffirmSetupFutureUsage { @@ -17868,7 +17868,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsAfterpayClearp serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsAfterpayClearpayCaptureMethod { @@ -17932,7 +17932,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsAfterpayClearp serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsAfterpayClearpaySetupFutureUsage { @@ -18014,7 +18014,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsAlipaySetupFut serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsAlipaySetupFutureUsage { @@ -18104,7 +18104,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsAuBecsDebitSet serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsAuBecsDebitSetupFutureUsage { @@ -18190,7 +18190,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsBacsDebitSetup serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsBacsDebitSetupFutureUsage { @@ -18276,7 +18276,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsBancontactPref serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsBancontactPreferredLanguage { @@ -18339,7 +18339,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsBancontactSetu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsBancontactSetupFutureUsage { @@ -18422,7 +18422,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsBlikSetupFutur serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsBlikSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -18513,7 +18513,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsBoletoSetupFut serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsBoletoSetupFutureUsage { @@ -18665,7 +18665,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsCardCaptureMet serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsCardCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -18763,7 +18763,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsCardInstallmen serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsCardInstallmentsPlanInterval { @@ -18816,7 +18816,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsCardInstallmen serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsCardInstallmentsPlanType { @@ -18929,7 +18929,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsCardMandateOpt serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsCardMandateOptionsAmountType { @@ -18994,7 +18994,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsCardMandateOpt serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsCardMandateOptionsInterval { @@ -19051,7 +19051,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsCardMandateOpt serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsCardMandateOptionsSupportedTypes { @@ -19136,7 +19136,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsCardNetwork { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsCardNetwork { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -19198,7 +19198,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsCardRequestExt serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsCardRequestExtendedAuthorization { @@ -19262,7 +19262,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsCardRequestIncrementalAuthorization { @@ -19318,7 +19318,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsCardRequestMul serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsCardRequestMulticapture { @@ -19378,7 +19378,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsCardRequestOve serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsCardRequestOvercapture { @@ -19444,7 +19444,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsCardRequestThr serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsCardRequestThreeDSecure { @@ -19514,7 +19514,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsCardSetupFutur serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsCardSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -19643,7 +19643,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsCardThreeDSecu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsCardThreeDSecureAresTransStatus { @@ -19717,7 +19717,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsCardThreeDSecureElectronicCommerceIndicator { @@ -19781,7 +19781,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsCardThreeDSecureExemptionIndicator { @@ -19892,7 +19892,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsCardThreeDSecu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancairesCbAvalgo { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -19949,7 +19949,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsCardThreeDSecu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsCardThreeDSecureVersion { @@ -20036,7 +20036,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsCashappCapture serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsCashappCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -20104,7 +20104,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsCashappSetupFu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsCashappSetupFutureUsage { @@ -20242,7 +20242,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferRequestedAddressTypes { @@ -20307,7 +20307,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsCustomerBalanc serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferType { @@ -20361,7 +20361,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsCustomerBalanc serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsCustomerBalanceFundingType { @@ -20421,7 +20421,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsCustomerBalanc serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsCustomerBalanceSetupFutureUsage { @@ -20500,7 +20500,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsEpsSetupFuture serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsEpsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -20581,7 +20581,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsFpxSetupFuture serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsFpxSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -20662,7 +20662,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsGiropaySetupFu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsGiropaySetupFutureUsage { @@ -20745,7 +20745,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsGrabpaySetupFu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsGrabpaySetupFutureUsage { @@ -20831,7 +20831,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsIdealSetupFutu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsIdealSetupFutureUsage { @@ -20921,7 +20921,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsKlarnaCaptureM serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsKlarnaCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -21109,7 +21109,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsKlarnaPreferre serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsKlarnaPreferredLocale { @@ -21169,7 +21169,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsKlarnaSetupFut serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsKlarnaSetupFutureUsage { @@ -21269,7 +21269,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsKonbiniSetupFu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsKonbiniSetupFutureUsage { @@ -21359,7 +21359,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsLinkCaptureMet serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsLinkCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -21424,7 +21424,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsLinkSetupFutur serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsLinkSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -21509,7 +21509,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsOxxoSetupFutur serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsOxxoSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -21593,7 +21593,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsP24SetupFuture serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsP24SetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -21674,7 +21674,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsPaynowSetupFut serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsPaynowSetupFutureUsage { @@ -21763,7 +21763,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsPaypalCaptureM serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsPaypalCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -21882,7 +21882,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsPaypalPreferre serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsPaypalPreferredLocale { @@ -21945,7 +21945,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsPaypalSetupFut serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsPaypalSetupFutureUsage { @@ -22036,7 +22036,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsPixSetupFuture serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsPixSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -22118,7 +22118,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsPromptpaySetup serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsPromptpaySetupFutureUsage { @@ -22197,7 +22197,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsRevolutPaySetu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsRevolutPaySetupFutureUsage { @@ -22287,7 +22287,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsSepaDebitSetup serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsSepaDebitSetupFutureUsage { @@ -22380,7 +22380,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsSofortPreferre serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsSofortPreferredLanguage { @@ -22447,7 +22447,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsSofortSetupFut serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsSofortSetupFutureUsage { @@ -22533,7 +22533,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsSwishSetupFutu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsSwishSetupFutureUsage { @@ -22670,7 +22670,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsUsBankAccountFinancialConnectionsPermissions { @@ -22734,7 +22734,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch { @@ -22808,7 +22808,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsUsBankAccountMandateOptionsCollectionMethod { @@ -22877,7 +22877,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsUsBankAccountN serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsUsBankAccountNetworksRequested { @@ -22941,7 +22941,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsUsBankAccountPreferredSettlementSpeed { @@ -23007,7 +23007,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsUsBankAccountS serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsUsBankAccountSetupFutureUsage { @@ -23066,7 +23066,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsUsBankAccountV serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsUsBankAccountVerificationMethod { @@ -23150,7 +23150,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsWechatPayClien serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsWechatPayClient { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -23212,7 +23212,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsWechatPaySetup serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsWechatPaySetupFutureUsage { @@ -23291,7 +23291,7 @@ impl serde::Serialize for ConfirmPaymentIntentPaymentMethodOptionsZipSetupFuture serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmPaymentIntentPaymentMethodOptionsZipSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_core/src/payout/requests.rs b/generated/stripe_core/src/payout/requests.rs index c1ecd08c0..92096bf14 100644 --- a/generated/stripe_core/src/payout/requests.rs +++ b/generated/stripe_core/src/payout/requests.rs @@ -173,7 +173,7 @@ impl serde::Serialize for CreatePayoutMethod { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePayoutMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -234,7 +234,7 @@ impl serde::Serialize for CreatePayoutSourceType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePayoutSourceType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_core/src/refund/requests.rs b/generated/stripe_core/src/refund/requests.rs index 3068770ed..77b62bc10 100644 --- a/generated/stripe_core/src/refund/requests.rs +++ b/generated/stripe_core/src/refund/requests.rs @@ -163,7 +163,7 @@ impl serde::Serialize for CreateRefundOrigin { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateRefundOrigin { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -223,7 +223,7 @@ impl serde::Serialize for CreateRefundReason { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateRefundReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_core/src/setup_intent/requests.rs b/generated/stripe_core/src/setup_intent/requests.rs index e84f9ad31..4aae8c968 100644 --- a/generated/stripe_core/src/setup_intent/requests.rs +++ b/generated/stripe_core/src/setup_intent/requests.rs @@ -234,7 +234,7 @@ impl serde::Serialize for CreateSetupIntentAutomaticPaymentMethodsAllowRedirects serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentAutomaticPaymentMethodsAllowRedirects { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -328,7 +328,7 @@ impl serde::Serialize for CreateSetupIntentMandateDataCustomerAcceptanceType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentMandateDataCustomerAcceptanceType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -705,7 +705,7 @@ impl serde::Serialize for CreateSetupIntentPaymentMethodDataEpsBank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodDataEpsBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -773,7 +773,7 @@ impl serde::Serialize for CreateSetupIntentPaymentMethodDataFpxAccountHolderType serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodDataFpxAccountHolderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -895,7 +895,7 @@ impl serde::Serialize for CreateSetupIntentPaymentMethodDataFpxBank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodDataFpxBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1007,7 +1007,7 @@ impl serde::Serialize for CreateSetupIntentPaymentMethodDataIdealBank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodDataIdealBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1161,7 +1161,7 @@ impl serde::Serialize for CreateSetupIntentPaymentMethodDataP24Bank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodDataP24Bank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1249,7 +1249,7 @@ impl serde::Serialize for CreateSetupIntentPaymentMethodDataSofortCountry { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodDataSofortCountry { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1403,7 +1403,7 @@ impl serde::Serialize for CreateSetupIntentPaymentMethodDataType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodDataType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1482,7 +1482,7 @@ impl serde::Serialize for CreateSetupIntentPaymentMethodDataUsBankAccountAccount serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodDataUsBankAccountAccountHolderType { @@ -1538,7 +1538,7 @@ impl serde::Serialize for CreateSetupIntentPaymentMethodDataUsBankAccountAccount serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodDataUsBankAccountAccountType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1644,7 +1644,7 @@ impl serde::Serialize for CreateSetupIntentPaymentMethodOptionsAcssDebitCurrency serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodOptionsAcssDebitCurrency { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1732,7 +1732,7 @@ impl serde::Serialize for CreateSetupIntentPaymentMethodOptionsAcssDebitMandateO serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodOptionsAcssDebitMandateOptionsDefaultFor { @@ -1799,7 +1799,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodOptionsAcssDebitMandateOptionsPaymentSchedule { @@ -1863,7 +1863,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodOptionsAcssDebitMandateOptionsTransactionType { @@ -1922,7 +1922,7 @@ impl serde::Serialize for CreateSetupIntentPaymentMethodOptionsAcssDebitVerifica serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodOptionsAcssDebitVerificationMethod { @@ -2074,7 +2074,7 @@ impl serde::Serialize for CreateSetupIntentPaymentMethodOptionsCardMandateOption serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodOptionsCardMandateOptionsAmountType { @@ -2139,7 +2139,7 @@ impl serde::Serialize for CreateSetupIntentPaymentMethodOptionsCardMandateOption serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodOptionsCardMandateOptionsInterval { @@ -2196,7 +2196,7 @@ impl serde::Serialize for CreateSetupIntentPaymentMethodOptionsCardMandateOption serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodOptionsCardMandateOptionsSupportedTypes { @@ -2281,7 +2281,7 @@ impl serde::Serialize for CreateSetupIntentPaymentMethodOptionsCardNetwork { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodOptionsCardNetwork { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2345,7 +2345,7 @@ impl serde::Serialize for CreateSetupIntentPaymentMethodOptionsCardRequestThreeD serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodOptionsCardRequestThreeDSecure { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2460,7 +2460,7 @@ impl serde::Serialize for CreateSetupIntentPaymentMethodOptionsCardThreeDSecureA serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodOptionsCardThreeDSecureAresTransStatus { @@ -2534,7 +2534,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodOptionsCardThreeDSecureElectronicCommerceIndicator { @@ -2655,7 +2655,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancairesCbAvalgo { @@ -2714,7 +2714,7 @@ impl serde::Serialize for CreateSetupIntentPaymentMethodOptionsCardThreeDSecureV serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodOptionsCardThreeDSecureVersion { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2849,7 +2849,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodOptionsUsBankAccountFinancialConnectionsPermissions { @@ -2913,7 +2913,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch { @@ -2987,7 +2987,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodOptionsUsBankAccountMandateOptionsCollectionMethod { @@ -3056,7 +3056,7 @@ impl serde::Serialize for CreateSetupIntentPaymentMethodOptionsUsBankAccountNetw serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodOptionsUsBankAccountNetworksRequested { @@ -3115,7 +3115,7 @@ impl serde::Serialize for CreateSetupIntentPaymentMethodOptionsUsBankAccountVeri serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentPaymentMethodOptionsUsBankAccountVerificationMethod { @@ -3189,7 +3189,7 @@ impl serde::Serialize for CreateSetupIntentUsage { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSetupIntentUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3628,7 +3628,7 @@ impl serde::Serialize for UpdateSetupIntentPaymentMethodDataEpsBank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodDataEpsBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3696,7 +3696,7 @@ impl serde::Serialize for UpdateSetupIntentPaymentMethodDataFpxAccountHolderType serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodDataFpxAccountHolderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3818,7 +3818,7 @@ impl serde::Serialize for UpdateSetupIntentPaymentMethodDataFpxBank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodDataFpxBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3930,7 +3930,7 @@ impl serde::Serialize for UpdateSetupIntentPaymentMethodDataIdealBank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodDataIdealBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4084,7 +4084,7 @@ impl serde::Serialize for UpdateSetupIntentPaymentMethodDataP24Bank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodDataP24Bank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4172,7 +4172,7 @@ impl serde::Serialize for UpdateSetupIntentPaymentMethodDataSofortCountry { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodDataSofortCountry { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4326,7 +4326,7 @@ impl serde::Serialize for UpdateSetupIntentPaymentMethodDataType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodDataType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4405,7 +4405,7 @@ impl serde::Serialize for UpdateSetupIntentPaymentMethodDataUsBankAccountAccount serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodDataUsBankAccountAccountHolderType { @@ -4461,7 +4461,7 @@ impl serde::Serialize for UpdateSetupIntentPaymentMethodDataUsBankAccountAccount serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodDataUsBankAccountAccountType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4567,7 +4567,7 @@ impl serde::Serialize for UpdateSetupIntentPaymentMethodOptionsAcssDebitCurrency serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodOptionsAcssDebitCurrency { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4655,7 +4655,7 @@ impl serde::Serialize for UpdateSetupIntentPaymentMethodOptionsAcssDebitMandateO serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodOptionsAcssDebitMandateOptionsDefaultFor { @@ -4722,7 +4722,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodOptionsAcssDebitMandateOptionsPaymentSchedule { @@ -4786,7 +4786,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodOptionsAcssDebitMandateOptionsTransactionType { @@ -4845,7 +4845,7 @@ impl serde::Serialize for UpdateSetupIntentPaymentMethodOptionsAcssDebitVerifica serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodOptionsAcssDebitVerificationMethod { @@ -4997,7 +4997,7 @@ impl serde::Serialize for UpdateSetupIntentPaymentMethodOptionsCardMandateOption serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodOptionsCardMandateOptionsAmountType { @@ -5062,7 +5062,7 @@ impl serde::Serialize for UpdateSetupIntentPaymentMethodOptionsCardMandateOption serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodOptionsCardMandateOptionsInterval { @@ -5119,7 +5119,7 @@ impl serde::Serialize for UpdateSetupIntentPaymentMethodOptionsCardMandateOption serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodOptionsCardMandateOptionsSupportedTypes { @@ -5204,7 +5204,7 @@ impl serde::Serialize for UpdateSetupIntentPaymentMethodOptionsCardNetwork { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodOptionsCardNetwork { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -5268,7 +5268,7 @@ impl serde::Serialize for UpdateSetupIntentPaymentMethodOptionsCardRequestThreeD serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodOptionsCardRequestThreeDSecure { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -5383,7 +5383,7 @@ impl serde::Serialize for UpdateSetupIntentPaymentMethodOptionsCardThreeDSecureA serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodOptionsCardThreeDSecureAresTransStatus { @@ -5457,7 +5457,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodOptionsCardThreeDSecureElectronicCommerceIndicator { @@ -5578,7 +5578,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancairesCbAvalgo { @@ -5637,7 +5637,7 @@ impl serde::Serialize for UpdateSetupIntentPaymentMethodOptionsCardThreeDSecureV serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodOptionsCardThreeDSecureVersion { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -5772,7 +5772,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodOptionsUsBankAccountFinancialConnectionsPermissions { @@ -5836,7 +5836,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch { @@ -5910,7 +5910,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodOptionsUsBankAccountMandateOptionsCollectionMethod { @@ -5979,7 +5979,7 @@ impl serde::Serialize for UpdateSetupIntentPaymentMethodOptionsUsBankAccountNetw serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodOptionsUsBankAccountNetworksRequested { @@ -6038,7 +6038,7 @@ impl serde::Serialize for UpdateSetupIntentPaymentMethodOptionsUsBankAccountVeri serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSetupIntentPaymentMethodOptionsUsBankAccountVerificationMethod { @@ -6205,7 +6205,7 @@ impl serde::Serialize for ConfirmSetupIntentSecretKeyParamCustomerAcceptanceType serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentSecretKeyParamCustomerAcceptanceType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -6304,7 +6304,7 @@ impl serde::Serialize for ConfirmSetupIntentClientKeyParamCustomerAcceptanceType serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentClientKeyParamCustomerAcceptanceType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -6681,7 +6681,7 @@ impl serde::Serialize for ConfirmSetupIntentPaymentMethodDataEpsBank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodDataEpsBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -6749,7 +6749,7 @@ impl serde::Serialize for ConfirmSetupIntentPaymentMethodDataFpxAccountHolderTyp serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodDataFpxAccountHolderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -6871,7 +6871,7 @@ impl serde::Serialize for ConfirmSetupIntentPaymentMethodDataFpxBank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodDataFpxBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -6983,7 +6983,7 @@ impl serde::Serialize for ConfirmSetupIntentPaymentMethodDataIdealBank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodDataIdealBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -7137,7 +7137,7 @@ impl serde::Serialize for ConfirmSetupIntentPaymentMethodDataP24Bank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodDataP24Bank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -7225,7 +7225,7 @@ impl serde::Serialize for ConfirmSetupIntentPaymentMethodDataSofortCountry { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodDataSofortCountry { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -7379,7 +7379,7 @@ impl serde::Serialize for ConfirmSetupIntentPaymentMethodDataType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodDataType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -7458,7 +7458,7 @@ impl serde::Serialize for ConfirmSetupIntentPaymentMethodDataUsBankAccountAccoun serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodDataUsBankAccountAccountHolderType { @@ -7514,7 +7514,7 @@ impl serde::Serialize for ConfirmSetupIntentPaymentMethodDataUsBankAccountAccoun serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodDataUsBankAccountAccountType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -7620,7 +7620,7 @@ impl serde::Serialize for ConfirmSetupIntentPaymentMethodOptionsAcssDebitCurrenc serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodOptionsAcssDebitCurrency { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -7708,7 +7708,7 @@ impl serde::Serialize for ConfirmSetupIntentPaymentMethodOptionsAcssDebitMandate serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodOptionsAcssDebitMandateOptionsDefaultFor { @@ -7775,7 +7775,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodOptionsAcssDebitMandateOptionsPaymentSchedule { @@ -7839,7 +7839,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodOptionsAcssDebitMandateOptionsTransactionType { @@ -7898,7 +7898,7 @@ impl serde::Serialize for ConfirmSetupIntentPaymentMethodOptionsAcssDebitVerific serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodOptionsAcssDebitVerificationMethod { @@ -8050,7 +8050,7 @@ impl serde::Serialize for ConfirmSetupIntentPaymentMethodOptionsCardMandateOptio serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodOptionsCardMandateOptionsAmountType { @@ -8115,7 +8115,7 @@ impl serde::Serialize for ConfirmSetupIntentPaymentMethodOptionsCardMandateOptio serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodOptionsCardMandateOptionsInterval { @@ -8168,7 +8168,7 @@ impl serde::Serialize for ConfirmSetupIntentPaymentMethodOptionsCardMandateOptio serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodOptionsCardMandateOptionsSupportedTypes { @@ -8253,7 +8253,7 @@ impl serde::Serialize for ConfirmSetupIntentPaymentMethodOptionsCardNetwork { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodOptionsCardNetwork { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -8317,7 +8317,7 @@ impl serde::Serialize for ConfirmSetupIntentPaymentMethodOptionsCardRequestThree serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodOptionsCardRequestThreeDSecure { @@ -8434,7 +8434,7 @@ impl serde::Serialize for ConfirmSetupIntentPaymentMethodOptionsCardThreeDSecure serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodOptionsCardThreeDSecureAresTransStatus { @@ -8508,7 +8508,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodOptionsCardThreeDSecureElectronicCommerceIndicator { @@ -8629,7 +8629,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancairesCbAvalgo { @@ -8688,7 +8688,7 @@ impl serde::Serialize for ConfirmSetupIntentPaymentMethodOptionsCardThreeDSecure serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodOptionsCardThreeDSecureVersion { @@ -8825,7 +8825,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodOptionsUsBankAccountFinancialConnectionsPermissions { @@ -8889,7 +8889,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch { @@ -8963,7 +8963,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodOptionsUsBankAccountMandateOptionsCollectionMethod { @@ -9032,7 +9032,7 @@ impl serde::Serialize for ConfirmSetupIntentPaymentMethodOptionsUsBankAccountNet serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodOptionsUsBankAccountNetworksRequested { @@ -9091,7 +9091,7 @@ impl serde::Serialize for ConfirmSetupIntentPaymentMethodOptionsUsBankAccountVer serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConfirmSetupIntentPaymentMethodOptionsUsBankAccountVerificationMethod { diff --git a/generated/stripe_core/src/token/requests.rs b/generated/stripe_core/src/token/requests.rs index a07e30273..bb345c749 100644 --- a/generated/stripe_core/src/token/requests.rs +++ b/generated/stripe_core/src/token/requests.rs @@ -129,7 +129,7 @@ impl serde::Serialize for CreateTokenAccountBusinessType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTokenAccountBusinessType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -409,7 +409,7 @@ impl serde::Serialize for CreateTokenAccountCompanyStructure { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTokenAccountCompanyStructure { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -637,7 +637,7 @@ impl serde::Serialize for CreateTokenAccountIndividualPoliticalExposure { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTokenAccountIndividualPoliticalExposure { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -765,7 +765,7 @@ impl serde::Serialize for CreateTokenBankAccountAccountHolderType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTokenBankAccountAccountHolderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -829,7 +829,7 @@ impl serde::Serialize for CreateTokenBankAccountAccountType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTokenBankAccountAccountType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_core/src/token/types.rs b/generated/stripe_core/src/token/types.rs index 2646a3477..3bb921c65 100644 --- a/generated/stripe_core/src/token/types.rs +++ b/generated/stripe_core/src/token/types.rs @@ -21,7 +21,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Token { pub bank_account: Option, pub card: Option, @@ -34,7 +34,7 @@ pub struct Token { /// Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. pub livemode: bool, /// Type of the token: `account`, `bank_account`, `card`, or `pii`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: String, /// Determines if you have already used this token (you can only use tokens once). pub used: bool, @@ -161,7 +161,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Token { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_fraud/Cargo.toml b/generated/stripe_fraud/Cargo.toml index 2f4f4bc73..5ec97ae3c 100644 --- a/generated/stripe_fraud/Cargo.toml +++ b/generated/stripe_fraud/Cargo.toml @@ -29,7 +29,8 @@ stripe_shared = {path = "../../generated/stripe_shared"} [features] -serde = ["stripe_types/serde","stripe_shared/serde"] +serialize = ["stripe_types/serialize","stripe_shared/serialize"] +deserialize = ["stripe_types/deserialize","stripe_shared/deserialize"] runtime-tokio-hyper = ["async-stripe/runtime-tokio-hyper"] runtime-tokio-hyper-rustls = ["async-stripe/runtime-tokio-hyper-rustls"] runtime-tokio-hyper-rustls-webpki = ["async-stripe/runtime-tokio-hyper-rustls-webpki"] diff --git a/generated/stripe_fraud/src/deleted_radar_value_list.rs b/generated/stripe_fraud/src/deleted_radar_value_list.rs index f4828faa8..8f4186474 100644 --- a/generated/stripe_fraud/src/deleted_radar_value_list.rs +++ b/generated/stripe_fraud/src/deleted_radar_value_list.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedRadarValueList { /// Always true for a deleted object #[allow(dead_code)] @@ -96,7 +96,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for DeletedRadarValueList { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_fraud/src/deleted_radar_value_list_item.rs b/generated/stripe_fraud/src/deleted_radar_value_list_item.rs index ee7d3ba0d..a4dbf19b4 100644 --- a/generated/stripe_fraud/src/deleted_radar_value_list_item.rs +++ b/generated/stripe_fraud/src/deleted_radar_value_list_item.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedRadarValueListItem { /// Always true for a deleted object #[allow(dead_code)] @@ -96,7 +96,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for DeletedRadarValueListItem { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_fraud/src/radar_early_fraud_warning/types.rs b/generated/stripe_fraud/src/radar_early_fraud_warning/types.rs index d75c24e76..838995ce9 100644 --- a/generated/stripe_fraud/src/radar_early_fraud_warning/types.rs +++ b/generated/stripe_fraud/src/radar_early_fraud_warning/types.rs @@ -3,7 +3,7 @@ /// /// Related guide: [Early fraud warnings](https://stripe.com/docs/disputes/measuring#early-fraud-warnings). #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct RadarEarlyFraudWarning { /// An EFW is actionable if it has not received a dispute and has not been fully refunded. /// You may wish to proactively refund a charge that receives an EFW, in order to avoid receiving a dispute later. @@ -142,7 +142,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for RadarEarlyFraudWarning { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_fraud/src/radar_value_list/types.rs b/generated/stripe_fraud/src/radar_value_list/types.rs index 06421275e..b159b8bd5 100644 --- a/generated/stripe_fraud/src/radar_value_list/types.rs +++ b/generated/stripe_fraud/src/radar_value_list/types.rs @@ -4,7 +4,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct RadarValueList { /// The name of the value list for use in rules. pub alias: String, @@ -157,7 +157,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for RadarValueList { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -267,7 +267,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(RadarValueListItemType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for RadarValueListItemType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_fraud/src/radar_value_list_item/types.rs b/generated/stripe_fraud/src/radar_value_list_item/types.rs index fc320a96e..637eedf67 100644 --- a/generated/stripe_fraud/src/radar_value_list_item/types.rs +++ b/generated/stripe_fraud/src/radar_value_list_item/types.rs @@ -4,7 +4,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct RadarValueListItem { /// Time at which the object was created. Measured in seconds since the Unix epoch. pub created: stripe_types::Timestamp, @@ -134,7 +134,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for RadarValueListItem { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_issuing/Cargo.toml b/generated/stripe_issuing/Cargo.toml index c10ac4f76..379de15c6 100644 --- a/generated/stripe_issuing/Cargo.toml +++ b/generated/stripe_issuing/Cargo.toml @@ -29,7 +29,8 @@ stripe_shared = {path = "../../generated/stripe_shared"} [features] -serde = ["stripe_types/serde","stripe_shared/serde"] +serialize = ["stripe_types/serialize","stripe_shared/serialize"] +deserialize = ["stripe_types/deserialize","stripe_shared/deserialize"] runtime-tokio-hyper = ["async-stripe/runtime-tokio-hyper"] runtime-tokio-hyper-rustls = ["async-stripe/runtime-tokio-hyper-rustls"] runtime-tokio-hyper-rustls-webpki = ["async-stripe/runtime-tokio-hyper-rustls-webpki"] diff --git a/generated/stripe_issuing/src/issuing_authorization/requests.rs b/generated/stripe_issuing/src/issuing_authorization/requests.rs index 22a362ce6..f6bd1c80d 100644 --- a/generated/stripe_issuing/src/issuing_authorization/requests.rs +++ b/generated/stripe_issuing/src/issuing_authorization/requests.rs @@ -1307,7 +1307,7 @@ impl serde::Serialize for CreateIssuingAuthorizationMerchantDataCategory { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingAuthorizationMerchantDataCategory { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1405,7 +1405,7 @@ impl serde::Serialize for CreateIssuingAuthorizationVerificationDataAddressLine1 serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingAuthorizationVerificationDataAddressLine1Check { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1466,7 +1466,7 @@ impl serde::Serialize for CreateIssuingAuthorizationVerificationDataAddressPosta serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingAuthorizationVerificationDataAddressPostalCodeCheck { @@ -1547,7 +1547,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingAuthorizationVerificationDataAuthenticationExemptionClaimedBy { @@ -1606,7 +1606,7 @@ impl serde::Serialize for CreateIssuingAuthorizationVerificationDataAuthenticati serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingAuthorizationVerificationDataAuthenticationExemptionType { @@ -1665,7 +1665,7 @@ impl serde::Serialize for CreateIssuingAuthorizationVerificationDataCvcCheck { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingAuthorizationVerificationDataCvcCheck { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1726,7 +1726,7 @@ impl serde::Serialize for CreateIssuingAuthorizationVerificationDataExpiryCheck serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingAuthorizationVerificationDataExpiryCheck { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1801,7 +1801,7 @@ impl serde::Serialize for CreateIssuingAuthorizationVerificationDataThreeDSecure serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingAuthorizationVerificationDataThreeDSecureResult { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1864,7 +1864,7 @@ impl serde::Serialize for CreateIssuingAuthorizationWallet { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingAuthorizationWallet { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2061,7 +2061,7 @@ impl serde::Serialize for CaptureIssuingAuthorizationPurchaseDetailsFuelType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CaptureIssuingAuthorizationPurchaseDetailsFuelType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2119,7 +2119,7 @@ impl serde::Serialize for CaptureIssuingAuthorizationPurchaseDetailsFuelUnit { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CaptureIssuingAuthorizationPurchaseDetailsFuelUnit { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_issuing/src/issuing_card/requests.rs b/generated/stripe_issuing/src/issuing_card/requests.rs index b487d45a4..d39521b19 100644 --- a/generated/stripe_issuing/src/issuing_card/requests.rs +++ b/generated/stripe_issuing/src/issuing_card/requests.rs @@ -262,7 +262,7 @@ impl serde::Serialize for CreateIssuingCardShippingService { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingCardShippingService { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -318,7 +318,7 @@ impl serde::Serialize for CreateIssuingCardShippingType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingCardShippingType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1374,7 +1374,7 @@ impl serde::Serialize for CreateIssuingCardSpendingControlsAllowedCategories { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingCardSpendingControlsAllowedCategories { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2405,7 +2405,7 @@ impl serde::Serialize for CreateIssuingCardSpendingControlsBlockedCategories { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingCardSpendingControlsBlockedCategories { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3455,7 +3455,7 @@ impl serde::Serialize for CreateIssuingCardSpendingControlsSpendingLimitsCategor serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingCardSpendingControlsSpendingLimitsCategories { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3521,7 +3521,7 @@ impl serde::Serialize for CreateIssuingCardSpendingControlsSpendingLimitsInterva serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingCardSpendingControlsSpendingLimitsInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3581,7 +3581,7 @@ impl serde::Serialize for CreateIssuingCardStatus { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingCardStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3675,7 +3675,7 @@ impl serde::Serialize for UpdateIssuingCardCancellationReason { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateIssuingCardCancellationReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4731,7 +4731,7 @@ impl serde::Serialize for UpdateIssuingCardSpendingControlsAllowedCategories { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateIssuingCardSpendingControlsAllowedCategories { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -5762,7 +5762,7 @@ impl serde::Serialize for UpdateIssuingCardSpendingControlsBlockedCategories { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateIssuingCardSpendingControlsBlockedCategories { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -6812,7 +6812,7 @@ impl serde::Serialize for UpdateIssuingCardSpendingControlsSpendingLimitsCategor serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateIssuingCardSpendingControlsSpendingLimitsCategories { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -6878,7 +6878,7 @@ impl serde::Serialize for UpdateIssuingCardSpendingControlsSpendingLimitsInterva serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateIssuingCardSpendingControlsSpendingLimitsInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_issuing/src/issuing_cardholder/requests.rs b/generated/stripe_issuing/src/issuing_cardholder/requests.rs index 11efa662f..e743c7f15 100644 --- a/generated/stripe_issuing/src/issuing_cardholder/requests.rs +++ b/generated/stripe_issuing/src/issuing_cardholder/requests.rs @@ -1193,7 +1193,7 @@ impl serde::Serialize for CreateIssuingCardholderSpendingControlsAllowedCategori serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingCardholderSpendingControlsAllowedCategories { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2224,7 +2224,7 @@ impl serde::Serialize for CreateIssuingCardholderSpendingControlsBlockedCategori serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingCardholderSpendingControlsBlockedCategories { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3274,7 +3274,7 @@ impl serde::Serialize for CreateIssuingCardholderSpendingControlsSpendingLimitsC serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingCardholderSpendingControlsSpendingLimitsCategories { @@ -3342,7 +3342,7 @@ impl serde::Serialize for CreateIssuingCardholderSpendingControlsSpendingLimitsI serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingCardholderSpendingControlsSpendingLimitsInterval { @@ -3402,7 +3402,7 @@ impl serde::Serialize for CreateIssuingCardholderStatus { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingCardholderStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4516,7 +4516,7 @@ impl serde::Serialize for UpdateIssuingCardholderSpendingControlsAllowedCategori serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateIssuingCardholderSpendingControlsAllowedCategories { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -5547,7 +5547,7 @@ impl serde::Serialize for UpdateIssuingCardholderSpendingControlsBlockedCategori serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateIssuingCardholderSpendingControlsBlockedCategories { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -6597,7 +6597,7 @@ impl serde::Serialize for UpdateIssuingCardholderSpendingControlsSpendingLimitsC serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateIssuingCardholderSpendingControlsSpendingLimitsCategories { @@ -6665,7 +6665,7 @@ impl serde::Serialize for UpdateIssuingCardholderSpendingControlsSpendingLimitsI serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateIssuingCardholderSpendingControlsSpendingLimitsInterval { @@ -6725,7 +6725,7 @@ impl serde::Serialize for UpdateIssuingCardholderStatus { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateIssuingCardholderStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_issuing/src/issuing_dispute/requests.rs b/generated/stripe_issuing/src/issuing_dispute/requests.rs index 35260ae4e..5a3431094 100644 --- a/generated/stripe_issuing/src/issuing_dispute/requests.rs +++ b/generated/stripe_issuing/src/issuing_dispute/requests.rs @@ -218,7 +218,7 @@ impl serde::Serialize for CreateIssuingDisputeEvidenceCanceledProductType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingDisputeEvidenceCanceledProductType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -276,7 +276,7 @@ impl serde::Serialize for CreateIssuingDisputeEvidenceCanceledReturnStatus { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingDisputeEvidenceCanceledReturnStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -361,7 +361,7 @@ impl serde::Serialize for CreateIssuingDisputeEvidenceMerchandiseNotAsDescribedR serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingDisputeEvidenceMerchandiseNotAsDescribedReturnStatus { @@ -441,7 +441,7 @@ impl serde::Serialize for CreateIssuingDisputeEvidenceNotReceivedProductType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingDisputeEvidenceNotReceivedProductType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -520,7 +520,7 @@ impl serde::Serialize for CreateIssuingDisputeEvidenceOtherProductType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingDisputeEvidenceOtherProductType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -593,7 +593,7 @@ impl serde::Serialize for CreateIssuingDisputeEvidenceReason { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIssuingDisputeEvidenceReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -765,7 +765,7 @@ impl serde::Serialize for UpdateIssuingDisputeEvidenceCanceledProductType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateIssuingDisputeEvidenceCanceledProductType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -823,7 +823,7 @@ impl serde::Serialize for UpdateIssuingDisputeEvidenceCanceledReturnStatus { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateIssuingDisputeEvidenceCanceledReturnStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -908,7 +908,7 @@ impl serde::Serialize for UpdateIssuingDisputeEvidenceMerchandiseNotAsDescribedR serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateIssuingDisputeEvidenceMerchandiseNotAsDescribedReturnStatus { @@ -988,7 +988,7 @@ impl serde::Serialize for UpdateIssuingDisputeEvidenceNotReceivedProductType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateIssuingDisputeEvidenceNotReceivedProductType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1067,7 +1067,7 @@ impl serde::Serialize for UpdateIssuingDisputeEvidenceOtherProductType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateIssuingDisputeEvidenceOtherProductType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1140,7 +1140,7 @@ impl serde::Serialize for UpdateIssuingDisputeEvidenceReason { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateIssuingDisputeEvidenceReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_issuing/src/issuing_token/requests.rs b/generated/stripe_issuing/src/issuing_token/requests.rs index 2ec92ef12..dd9066dff 100644 --- a/generated/stripe_issuing/src/issuing_token/requests.rs +++ b/generated/stripe_issuing/src/issuing_token/requests.rs @@ -136,7 +136,7 @@ impl serde::Serialize for UpdateIssuingTokenStatus { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateIssuingTokenStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_issuing/src/issuing_transaction/requests.rs b/generated/stripe_issuing/src/issuing_transaction/requests.rs index 6dd1cdb48..09de901ab 100644 --- a/generated/stripe_issuing/src/issuing_transaction/requests.rs +++ b/generated/stripe_issuing/src/issuing_transaction/requests.rs @@ -1225,7 +1225,7 @@ impl serde::Serialize for CreateForceCaptureIssuingTransactionMerchantDataCatego serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateForceCaptureIssuingTransactionMerchantDataCategory { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1336,7 +1336,7 @@ impl serde::Serialize for CreateForceCaptureIssuingTransactionPurchaseDetailsFue serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateForceCaptureIssuingTransactionPurchaseDetailsFuelType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1394,7 +1394,7 @@ impl serde::Serialize for CreateForceCaptureIssuingTransactionPurchaseDetailsFue serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateForceCaptureIssuingTransactionPurchaseDetailsFuelUnit { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2511,7 +2511,7 @@ impl serde::Serialize for CreateUnlinkedRefundIssuingTransactionMerchantDataCate serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateUnlinkedRefundIssuingTransactionMerchantDataCategory { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2622,7 +2622,7 @@ impl serde::Serialize for CreateUnlinkedRefundIssuingTransactionPurchaseDetailsF serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateUnlinkedRefundIssuingTransactionPurchaseDetailsFuelType { @@ -2682,7 +2682,7 @@ impl serde::Serialize for CreateUnlinkedRefundIssuingTransactionPurchaseDetailsF serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateUnlinkedRefundIssuingTransactionPurchaseDetailsFuelUnit { diff --git a/generated/stripe_misc/Cargo.toml b/generated/stripe_misc/Cargo.toml index 39de7bc1a..9c70a5ab1 100644 --- a/generated/stripe_misc/Cargo.toml +++ b/generated/stripe_misc/Cargo.toml @@ -29,7 +29,8 @@ stripe_shared = {path = "../../generated/stripe_shared"} [features] -serde = ["stripe_types/serde","stripe_shared/serde"] +serialize = ["stripe_types/serialize","stripe_shared/serialize"] +deserialize = ["stripe_types/deserialize","stripe_shared/deserialize"] runtime-tokio-hyper = ["async-stripe/runtime-tokio-hyper"] runtime-tokio-hyper-rustls = ["async-stripe/runtime-tokio-hyper-rustls"] runtime-tokio-hyper-rustls-webpki = ["async-stripe/runtime-tokio-hyper-rustls-webpki"] diff --git a/generated/stripe_misc/src/apple_pay_domain/types.rs b/generated/stripe_misc/src/apple_pay_domain/types.rs index 367c3091e..d483256d2 100644 --- a/generated/stripe_misc/src/apple_pay_domain/types.rs +++ b/generated/stripe_misc/src/apple_pay_domain/types.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ApplePayDomain { /// Time at which the object was created. Measured in seconds since the Unix epoch. pub created: stripe_types::Timestamp, @@ -114,7 +114,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ApplePayDomain { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_misc/src/bank_connections_resource_accountholder.rs b/generated/stripe_misc/src/bank_connections_resource_accountholder.rs index 3befcc830..29a57342d 100644 --- a/generated/stripe_misc/src/bank_connections_resource_accountholder.rs +++ b/generated/stripe_misc/src/bank_connections_resource_accountholder.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BankConnectionsResourceAccountholder { /// The ID of the Stripe account this account belongs to. /// Should only be present if `account_holder.type` is `account`. @@ -9,7 +9,7 @@ pub struct BankConnectionsResourceAccountholder { /// Present if and only if `account_holder.type` is `customer`. pub customer: Option>, /// Type of account holder that this account belongs to. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: BankConnectionsResourceAccountholderType, } #[doc(hidden)] @@ -150,7 +150,7 @@ impl std::fmt::Debug for BankConnectionsResourceAccountholderType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for BankConnectionsResourceAccountholderType { fn serialize(&self, serializer: S) -> Result where @@ -176,7 +176,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for BankConnectionsResourceAccountholderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/bank_connections_resource_balance.rs b/generated/stripe_misc/src/bank_connections_resource_balance.rs index b73fac020..fc36f2d5d 100644 --- a/generated/stripe_misc/src/bank_connections_resource_balance.rs +++ b/generated/stripe_misc/src/bank_connections_resource_balance.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BankConnectionsResourceBalance { /// The time that the external institution calculated this balance. /// Measured in seconds since the Unix epoch. @@ -17,7 +17,7 @@ pub struct BankConnectionsResourceBalance { pub current: std::collections::HashMap, /// The `type` of the balance. /// An additional hash is included on the balance with a name matching this value. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: BankConnectionsResourceBalanceType, } #[doc(hidden)] @@ -169,7 +169,7 @@ impl std::fmt::Debug for BankConnectionsResourceBalanceType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for BankConnectionsResourceBalanceType { fn serialize(&self, serializer: S) -> Result where @@ -194,7 +194,7 @@ impl miniserde::de::Visitor for crate::Place } stripe_types::impl_from_val_with_from_str!(BankConnectionsResourceBalanceType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for BankConnectionsResourceBalanceType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/bank_connections_resource_balance_api_resource_cash_balance.rs b/generated/stripe_misc/src/bank_connections_resource_balance_api_resource_cash_balance.rs index 4b29d8433..babecbdf4 100644 --- a/generated/stripe_misc/src/bank_connections_resource_balance_api_resource_cash_balance.rs +++ b/generated/stripe_misc/src/bank_connections_resource_balance_api_resource_cash_balance.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BankConnectionsResourceBalanceApiResourceCashBalance { /// The funds available to the account holder. Typically this is the current balance less any holds. /// diff --git a/generated/stripe_misc/src/bank_connections_resource_balance_api_resource_credit_balance.rs b/generated/stripe_misc/src/bank_connections_resource_balance_api_resource_credit_balance.rs index b1dc6a4ec..9aef568b2 100644 --- a/generated/stripe_misc/src/bank_connections_resource_balance_api_resource_credit_balance.rs +++ b/generated/stripe_misc/src/bank_connections_resource_balance_api_resource_credit_balance.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BankConnectionsResourceBalanceApiResourceCreditBalance { /// The credit that has been used by the account holder. /// diff --git a/generated/stripe_misc/src/bank_connections_resource_balance_refresh.rs b/generated/stripe_misc/src/bank_connections_resource_balance_refresh.rs index 20ddc8702..56d01b9da 100644 --- a/generated/stripe_misc/src/bank_connections_resource_balance_refresh.rs +++ b/generated/stripe_misc/src/bank_connections_resource_balance_refresh.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BankConnectionsResourceBalanceRefresh { /// The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch. pub last_attempted_at: stripe_types::Timestamp, @@ -156,7 +156,7 @@ impl std::fmt::Debug for BankConnectionsResourceBalanceRefreshStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for BankConnectionsResourceBalanceRefreshStatus { fn serialize(&self, serializer: S) -> Result where @@ -183,7 +183,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for BankConnectionsResourceBalanceRefreshStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/bank_connections_resource_link_account_session_filters.rs b/generated/stripe_misc/src/bank_connections_resource_link_account_session_filters.rs index b5fc4d99c..9677fe0d0 100644 --- a/generated/stripe_misc/src/bank_connections_resource_link_account_session_filters.rs +++ b/generated/stripe_misc/src/bank_connections_resource_link_account_session_filters.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BankConnectionsResourceLinkAccountSessionFilters { /// List of countries from which to filter accounts. pub countries: Option>, diff --git a/generated/stripe_misc/src/bank_connections_resource_ownership_refresh.rs b/generated/stripe_misc/src/bank_connections_resource_ownership_refresh.rs index 2eebe5365..9062a9101 100644 --- a/generated/stripe_misc/src/bank_connections_resource_ownership_refresh.rs +++ b/generated/stripe_misc/src/bank_connections_resource_ownership_refresh.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BankConnectionsResourceOwnershipRefresh { /// The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch. pub last_attempted_at: stripe_types::Timestamp, @@ -137,7 +137,7 @@ impl std::fmt::Debug for BankConnectionsResourceOwnershipRefreshStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for BankConnectionsResourceOwnershipRefreshStatus { fn serialize(&self, serializer: S) -> Result where @@ -164,7 +164,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for BankConnectionsResourceOwnershipRefreshStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/bank_connections_resource_transaction_refresh.rs b/generated/stripe_misc/src/bank_connections_resource_transaction_refresh.rs index eaa0cb34e..66099abcb 100644 --- a/generated/stripe_misc/src/bank_connections_resource_transaction_refresh.rs +++ b/generated/stripe_misc/src/bank_connections_resource_transaction_refresh.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BankConnectionsResourceTransactionRefresh { /// Unique identifier for the object. pub id: stripe_misc::BankConnectionsResourceTransactionRefreshId, @@ -163,7 +163,7 @@ impl std::fmt::Debug for BankConnectionsResourceTransactionRefreshStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for BankConnectionsResourceTransactionRefreshStatus { fn serialize(&self, serializer: S) -> Result where @@ -190,7 +190,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for BankConnectionsResourceTransactionRefreshStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/bank_connections_resource_transaction_resource_status_transitions.rs b/generated/stripe_misc/src/bank_connections_resource_transaction_resource_status_transitions.rs index dfcfde0fd..e381bd553 100644 --- a/generated/stripe_misc/src/bank_connections_resource_transaction_resource_status_transitions.rs +++ b/generated/stripe_misc/src/bank_connections_resource_transaction_resource_status_transitions.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BankConnectionsResourceTransactionResourceStatusTransitions { /// Time at which this transaction posted. Measured in seconds since the Unix epoch. pub posted_at: Option, diff --git a/generated/stripe_misc/src/climate_order/types.rs b/generated/stripe_misc/src/climate_order/types.rs index 8e79c282b..25a7913c4 100644 --- a/generated/stripe_misc/src/climate_order/types.rs +++ b/generated/stripe_misc/src/climate_order/types.rs @@ -2,7 +2,7 @@ /// When you create an order, the. /// payment is deducted from your merchant balance. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ClimateOrder { /// Total amount of [Frontier](https://frontierclimate.com/)'s service fees in the currency's smallest unit. pub amount_fees: i64, @@ -245,7 +245,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ClimateOrder { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -317,7 +317,7 @@ impl std::fmt::Debug for ClimateOrderCancellationReason { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ClimateOrderCancellationReason { fn serialize(&self, serializer: S) -> Result where @@ -341,7 +341,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(ClimateOrderCancellationReason); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ClimateOrderCancellationReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -398,7 +398,7 @@ impl std::fmt::Debug for ClimateOrderStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ClimateOrderStatus { fn serialize(&self, serializer: S) -> Result where @@ -422,7 +422,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(ClimateOrderStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ClimateOrderStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/climate_product/types.rs b/generated/stripe_misc/src/climate_product/types.rs index 7bb3ee626..59121b37c 100644 --- a/generated/stripe_misc/src/climate_product/types.rs +++ b/generated/stripe_misc/src/climate_product/types.rs @@ -1,7 +1,7 @@ /// A Climate product represents a type of carbon removal unit available for reservation. /// You can retrieve it to see the current price and availability. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ClimateProduct { /// Time at which the object was created. Measured in seconds since the Unix epoch. pub created: stripe_types::Timestamp, @@ -156,7 +156,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ClimateProduct { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_misc/src/climate_removals_beneficiary.rs b/generated/stripe_misc/src/climate_removals_beneficiary.rs index 4644b3dc1..76ac3b476 100644 --- a/generated/stripe_misc/src/climate_removals_beneficiary.rs +++ b/generated/stripe_misc/src/climate_removals_beneficiary.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ClimateRemovalsBeneficiary { /// Publicly displayable name for the end beneficiary of carbon removal. pub public_name: String, diff --git a/generated/stripe_misc/src/climate_removals_location.rs b/generated/stripe_misc/src/climate_removals_location.rs index afe6c084d..bb4c9146e 100644 --- a/generated/stripe_misc/src/climate_removals_location.rs +++ b/generated/stripe_misc/src/climate_removals_location.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ClimateRemovalsLocation { /// The city where the supplier is located. pub city: Option, diff --git a/generated/stripe_misc/src/climate_removals_order_deliveries.rs b/generated/stripe_misc/src/climate_removals_order_deliveries.rs index fa2972c62..06485ea85 100644 --- a/generated/stripe_misc/src/climate_removals_order_deliveries.rs +++ b/generated/stripe_misc/src/climate_removals_order_deliveries.rs @@ -1,7 +1,7 @@ /// The delivery of a specified quantity of carbon for an order. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ClimateRemovalsOrderDeliveries { /// Time at which the delivery occurred. Measured in seconds since the Unix epoch. pub delivered_at: stripe_types::Timestamp, diff --git a/generated/stripe_misc/src/climate_removals_products_price.rs b/generated/stripe_misc/src/climate_removals_products_price.rs index f51e3ca36..24208db67 100644 --- a/generated/stripe_misc/src/climate_removals_products_price.rs +++ b/generated/stripe_misc/src/climate_removals_products_price.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ClimateRemovalsProductsPrice { /// Fees for one metric ton of carbon removal in the currency's smallest unit. pub amount_fees: i64, diff --git a/generated/stripe_misc/src/climate_supplier/types.rs b/generated/stripe_misc/src/climate_supplier/types.rs index 58ee8c143..40f48d5fc 100644 --- a/generated/stripe_misc/src/climate_supplier/types.rs +++ b/generated/stripe_misc/src/climate_supplier/types.rs @@ -1,6 +1,6 @@ /// A supplier of carbon removal. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ClimateSupplier { /// Unique identifier for the object. pub id: stripe_misc::ClimateSupplierId, @@ -130,7 +130,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ClimateSupplier { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -187,7 +187,7 @@ impl std::fmt::Debug for ClimateSupplierRemovalPathway { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ClimateSupplierRemovalPathway { fn serialize(&self, serializer: S) -> Result where @@ -211,7 +211,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(ClimateSupplierRemovalPathway); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ClimateSupplierRemovalPathway { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/deleted_apple_pay_domain.rs b/generated/stripe_misc/src/deleted_apple_pay_domain.rs index 7ba1c4f2f..af9c3e761 100644 --- a/generated/stripe_misc/src/deleted_apple_pay_domain.rs +++ b/generated/stripe_misc/src/deleted_apple_pay_domain.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedApplePayDomain { /// Always true for a deleted object #[allow(dead_code)] @@ -96,7 +96,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for DeletedApplePayDomain { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_misc/src/deleted_webhook_endpoint.rs b/generated/stripe_misc/src/deleted_webhook_endpoint.rs index fc44b00dc..371d37ee3 100644 --- a/generated/stripe_misc/src/deleted_webhook_endpoint.rs +++ b/generated/stripe_misc/src/deleted_webhook_endpoint.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedWebhookEndpoint { /// Always true for a deleted object #[allow(dead_code)] @@ -96,7 +96,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for DeletedWebhookEndpoint { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_misc/src/ephemeral_key/types.rs b/generated/stripe_misc/src/ephemeral_key/types.rs index c9517ec49..5e8cf0a8f 100644 --- a/generated/stripe_misc/src/ephemeral_key/types.rs +++ b/generated/stripe_misc/src/ephemeral_key/types.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct EphemeralKey { /// Time at which the object was created. Measured in seconds since the Unix epoch. pub created: stripe_types::Timestamp, @@ -122,7 +122,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for EphemeralKey { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_misc/src/exchange_rate/types.rs b/generated/stripe_misc/src/exchange_rate/types.rs index f4f683b4b..8c58d6ca4 100644 --- a/generated/stripe_misc/src/exchange_rate/types.rs +++ b/generated/stripe_misc/src/exchange_rate/types.rs @@ -27,7 +27,7 @@ /// /// *Using this Exchange Rates API beta for any purpose other than to transact on Stripe is strictly prohibited and constitutes a violation of Stripe's terms of service.*. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ExchangeRate { /// Unique identifier for the object. /// Represented as the three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) in lowercase. @@ -124,7 +124,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ExchangeRate { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_misc/src/financial_connections_account/requests.rs b/generated/stripe_misc/src/financial_connections_account/requests.rs index 45e67f090..2f772e19b 100644 --- a/generated/stripe_misc/src/financial_connections_account/requests.rs +++ b/generated/stripe_misc/src/financial_connections_account/requests.rs @@ -217,7 +217,7 @@ impl serde::Serialize for RefreshFinancialConnectionsAccountFeatures { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for RefreshFinancialConnectionsAccountFeatures { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -297,7 +297,7 @@ impl serde::Serialize for SubscribeFinancialConnectionsAccountFeatures { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SubscribeFinancialConnectionsAccountFeatures { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -379,7 +379,7 @@ impl serde::Serialize for UnsubscribeFinancialConnectionsAccountFeatures { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UnsubscribeFinancialConnectionsAccountFeatures { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/financial_connections_account/types.rs b/generated/stripe_misc/src/financial_connections_account/types.rs index f659e789e..b7fbadab5 100644 --- a/generated/stripe_misc/src/financial_connections_account/types.rs +++ b/generated/stripe_misc/src/financial_connections_account/types.rs @@ -2,7 +2,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct FinancialConnectionsAccount { /// The account holder that this account belongs to. pub account_holder: Option, @@ -238,7 +238,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for FinancialConnectionsAccount { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -310,7 +310,7 @@ impl std::fmt::Debug for FinancialConnectionsAccountCategory { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for FinancialConnectionsAccountCategory { fn serialize(&self, serializer: S) -> Result where @@ -335,7 +335,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for FinancialConnectionsAccountCategory { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -389,7 +389,7 @@ impl std::fmt::Debug for FinancialConnectionsAccountPermissions { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for FinancialConnectionsAccountPermissions { fn serialize(&self, serializer: S) -> Result where @@ -415,7 +415,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for FinancialConnectionsAccountPermissions { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -466,7 +466,7 @@ impl std::fmt::Debug for FinancialConnectionsAccountStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for FinancialConnectionsAccountStatus { fn serialize(&self, serializer: S) -> Result where @@ -491,7 +491,7 @@ impl miniserde::de::Visitor for crate::Place } stripe_types::impl_from_val_with_from_str!(FinancialConnectionsAccountStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for FinancialConnectionsAccountStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -564,7 +564,7 @@ impl std::fmt::Debug for FinancialConnectionsAccountSubcategory { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for FinancialConnectionsAccountSubcategory { fn serialize(&self, serializer: S) -> Result where @@ -590,7 +590,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for FinancialConnectionsAccountSubcategory { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -635,7 +635,7 @@ impl std::fmt::Debug for FinancialConnectionsAccountSubscriptions { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for FinancialConnectionsAccountSubscriptions { fn serialize(&self, serializer: S) -> Result where @@ -661,7 +661,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for FinancialConnectionsAccountSubscriptions { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -709,7 +709,7 @@ impl std::fmt::Debug for FinancialConnectionsAccountSupportedPaymentMethodTypes f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for FinancialConnectionsAccountSupportedPaymentMethodTypes { fn serialize(&self, serializer: S) -> Result where @@ -738,7 +738,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(FinancialConnectionsAccountSupportedPaymentMethodTypes); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for FinancialConnectionsAccountSupportedPaymentMethodTypes { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/financial_connections_account_owner.rs b/generated/stripe_misc/src/financial_connections_account_owner.rs index 3ecd25269..4505381e3 100644 --- a/generated/stripe_misc/src/financial_connections_account_owner.rs +++ b/generated/stripe_misc/src/financial_connections_account_owner.rs @@ -1,6 +1,6 @@ /// Describes an owner of an account. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct FinancialConnectionsAccountOwner { /// The email address of the owner. pub email: Option, @@ -137,7 +137,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for FinancialConnectionsAccountOwner { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_misc/src/financial_connections_account_ownership.rs b/generated/stripe_misc/src/financial_connections_account_ownership.rs index a89e426d4..b5e9516f8 100644 --- a/generated/stripe_misc/src/financial_connections_account_ownership.rs +++ b/generated/stripe_misc/src/financial_connections_account_ownership.rs @@ -1,6 +1,6 @@ /// Describes a snapshot of the owners of an account at a particular point in time. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct FinancialConnectionsAccountOwnership { /// Time at which the object was created. Measured in seconds since the Unix epoch. pub created: stripe_types::Timestamp, @@ -109,7 +109,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for FinancialConnectionsAccountOwnership { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_misc/src/financial_connections_session/requests.rs b/generated/stripe_misc/src/financial_connections_session/requests.rs index 41ca5e995..db0426661 100644 --- a/generated/stripe_misc/src/financial_connections_session/requests.rs +++ b/generated/stripe_misc/src/financial_connections_session/requests.rs @@ -122,7 +122,7 @@ impl serde::Serialize for CreateFinancialConnectionsSessionAccountHolderType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateFinancialConnectionsSessionAccountHolderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/financial_connections_session/types.rs b/generated/stripe_misc/src/financial_connections_session/types.rs index fc1fa0a9f..4fec72336 100644 --- a/generated/stripe_misc/src/financial_connections_session/types.rs +++ b/generated/stripe_misc/src/financial_connections_session/types.rs @@ -2,7 +2,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct FinancialConnectionsSession { /// The account holder for whom accounts are collected in this session. pub account_holder: Option, @@ -153,7 +153,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for FinancialConnectionsSession { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -247,7 +247,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for FinancialConnectionsSessionPermissions { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -321,7 +321,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for FinancialConnectionsSessionPrefetch { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/financial_connections_transaction/types.rs b/generated/stripe_misc/src/financial_connections_transaction/types.rs index bbec2e6bd..be41a1ddc 100644 --- a/generated/stripe_misc/src/financial_connections_transaction/types.rs +++ b/generated/stripe_misc/src/financial_connections_transaction/types.rs @@ -1,6 +1,6 @@ /// A Transaction represents a real transaction that affects a Financial Connections Account balance. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct FinancialConnectionsTransaction { /// The ID of the Financial Connections Account this transaction belongs to. pub account: String, @@ -171,7 +171,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for FinancialConnectionsTransaction { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -233,7 +233,7 @@ impl std::fmt::Debug for FinancialConnectionsTransactionStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for FinancialConnectionsTransactionStatus { fn serialize(&self, serializer: S) -> Result where @@ -258,7 +258,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for FinancialConnectionsTransactionStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/financial_reporting_finance_report_run_run_parameters.rs b/generated/stripe_misc/src/financial_reporting_finance_report_run_run_parameters.rs index 50c1ff339..dc3c1cf0b 100644 --- a/generated/stripe_misc/src/financial_reporting_finance_report_run_run_parameters.rs +++ b/generated/stripe_misc/src/financial_reporting_finance_report_run_run_parameters.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct FinancialReportingFinanceReportRunRunParameters { /// The set of output columns requested for inclusion in the report run. pub columns: Option>, diff --git a/generated/stripe_misc/src/gelato_data_document_report_date_of_birth.rs b/generated/stripe_misc/src/gelato_data_document_report_date_of_birth.rs index 5170f83fe..a7d9f67f2 100644 --- a/generated/stripe_misc/src/gelato_data_document_report_date_of_birth.rs +++ b/generated/stripe_misc/src/gelato_data_document_report_date_of_birth.rs @@ -1,7 +1,7 @@ /// Point in Time #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct GelatoDataDocumentReportDateOfBirth { /// Numerical day between 1 and 31. pub day: Option, diff --git a/generated/stripe_misc/src/gelato_data_document_report_expiration_date.rs b/generated/stripe_misc/src/gelato_data_document_report_expiration_date.rs index 674a671c2..1907e04c4 100644 --- a/generated/stripe_misc/src/gelato_data_document_report_expiration_date.rs +++ b/generated/stripe_misc/src/gelato_data_document_report_expiration_date.rs @@ -1,7 +1,7 @@ /// Point in Time #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct GelatoDataDocumentReportExpirationDate { /// Numerical day between 1 and 31. pub day: Option, diff --git a/generated/stripe_misc/src/gelato_data_document_report_issued_date.rs b/generated/stripe_misc/src/gelato_data_document_report_issued_date.rs index 2ad293ecc..3e007b460 100644 --- a/generated/stripe_misc/src/gelato_data_document_report_issued_date.rs +++ b/generated/stripe_misc/src/gelato_data_document_report_issued_date.rs @@ -1,7 +1,7 @@ /// Point in Time #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct GelatoDataDocumentReportIssuedDate { /// Numerical day between 1 and 31. pub day: Option, diff --git a/generated/stripe_misc/src/gelato_data_id_number_report_date.rs b/generated/stripe_misc/src/gelato_data_id_number_report_date.rs index ff355d6e3..5e60953b9 100644 --- a/generated/stripe_misc/src/gelato_data_id_number_report_date.rs +++ b/generated/stripe_misc/src/gelato_data_id_number_report_date.rs @@ -1,7 +1,7 @@ /// Point in Time #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct GelatoDataIdNumberReportDate { /// Numerical day between 1 and 31. pub day: Option, diff --git a/generated/stripe_misc/src/gelato_data_verified_outputs_date.rs b/generated/stripe_misc/src/gelato_data_verified_outputs_date.rs index 663020a47..a46f46b7e 100644 --- a/generated/stripe_misc/src/gelato_data_verified_outputs_date.rs +++ b/generated/stripe_misc/src/gelato_data_verified_outputs_date.rs @@ -1,7 +1,7 @@ /// Point in Time #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct GelatoDataVerifiedOutputsDate { /// Numerical day between 1 and 31. pub day: Option, diff --git a/generated/stripe_misc/src/gelato_document_report.rs b/generated/stripe_misc/src/gelato_document_report.rs index ae790558f..2c149be32 100644 --- a/generated/stripe_misc/src/gelato_document_report.rs +++ b/generated/stripe_misc/src/gelato_document_report.rs @@ -1,7 +1,7 @@ /// Result from a document check #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct GelatoDocumentReport { /// Address as it appears in the document. pub address: Option, @@ -26,7 +26,7 @@ pub struct GelatoDocumentReport { /// Status of this `document` check. pub status: GelatoDocumentReportStatus, /// Type of the document. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: Option, } #[doc(hidden)] @@ -212,7 +212,7 @@ impl std::fmt::Debug for GelatoDocumentReportStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for GelatoDocumentReportStatus { fn serialize(&self, serializer: S) -> Result where @@ -236,7 +236,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(GelatoDocumentReportStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for GelatoDocumentReportStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -286,7 +286,7 @@ impl std::fmt::Debug for GelatoDocumentReportType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for GelatoDocumentReportType { fn serialize(&self, serializer: S) -> Result where @@ -310,7 +310,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(GelatoDocumentReportType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for GelatoDocumentReportType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/gelato_document_report_error.rs b/generated/stripe_misc/src/gelato_document_report_error.rs index 8c8ca7239..9144ff8a1 100644 --- a/generated/stripe_misc/src/gelato_document_report_error.rs +++ b/generated/stripe_misc/src/gelato_document_report_error.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct GelatoDocumentReportError { /// A short machine-readable string giving the reason for the verification failure. pub code: Option, @@ -138,7 +138,7 @@ impl std::fmt::Debug for GelatoDocumentReportErrorCode { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for GelatoDocumentReportErrorCode { fn serialize(&self, serializer: S) -> Result where @@ -162,7 +162,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(GelatoDocumentReportErrorCode); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for GelatoDocumentReportErrorCode { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/gelato_id_number_report.rs b/generated/stripe_misc/src/gelato_id_number_report.rs index 1faabc35a..236a6eeb6 100644 --- a/generated/stripe_misc/src/gelato_id_number_report.rs +++ b/generated/stripe_misc/src/gelato_id_number_report.rs @@ -1,7 +1,7 @@ /// Result from an id_number check #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct GelatoIdNumberReport { /// Date of birth. pub dob: Option, @@ -179,7 +179,7 @@ impl std::fmt::Debug for GelatoIdNumberReportIdNumberType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for GelatoIdNumberReportIdNumberType { fn serialize(&self, serializer: S) -> Result where @@ -204,7 +204,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(GelatoIdNumberReportIdNumberType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for GelatoIdNumberReportIdNumberType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -252,7 +252,7 @@ impl std::fmt::Debug for GelatoIdNumberReportStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for GelatoIdNumberReportStatus { fn serialize(&self, serializer: S) -> Result where @@ -276,7 +276,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(GelatoIdNumberReportStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for GelatoIdNumberReportStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/gelato_id_number_report_error.rs b/generated/stripe_misc/src/gelato_id_number_report_error.rs index 8d24429a3..259f8aa4c 100644 --- a/generated/stripe_misc/src/gelato_id_number_report_error.rs +++ b/generated/stripe_misc/src/gelato_id_number_report_error.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct GelatoIdNumberReportError { /// A short machine-readable string giving the reason for the verification failure. pub code: Option, @@ -138,7 +138,7 @@ impl std::fmt::Debug for GelatoIdNumberReportErrorCode { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for GelatoIdNumberReportErrorCode { fn serialize(&self, serializer: S) -> Result where @@ -162,7 +162,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(GelatoIdNumberReportErrorCode); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for GelatoIdNumberReportErrorCode { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/gelato_report_document_options.rs b/generated/stripe_misc/src/gelato_report_document_options.rs index b02ccf782..9a5b150d8 100644 --- a/generated/stripe_misc/src/gelato_report_document_options.rs +++ b/generated/stripe_misc/src/gelato_report_document_options.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct GelatoReportDocumentOptions { /// Array of strings of allowed identity document types. /// If the provided identity document isn’t one of the allowed types, the verification check will fail with a document_type_not_allowed error code. @@ -164,7 +164,7 @@ impl std::fmt::Debug for GelatoReportDocumentOptionsAllowedTypes { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for GelatoReportDocumentOptionsAllowedTypes { fn serialize(&self, serializer: S) -> Result where @@ -190,7 +190,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for GelatoReportDocumentOptionsAllowedTypes { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/gelato_report_id_number_options.rs b/generated/stripe_misc/src/gelato_report_id_number_options.rs index c10f12b9f..4a35a23c6 100644 --- a/generated/stripe_misc/src/gelato_report_id_number_options.rs +++ b/generated/stripe_misc/src/gelato_report_id_number_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct GelatoReportIdNumberOptions {} #[doc(hidden)] pub struct GelatoReportIdNumberOptionsBuilder {} diff --git a/generated/stripe_misc/src/gelato_selfie_report.rs b/generated/stripe_misc/src/gelato_selfie_report.rs index b3d3d1c69..206f1aa91 100644 --- a/generated/stripe_misc/src/gelato_selfie_report.rs +++ b/generated/stripe_misc/src/gelato_selfie_report.rs @@ -1,7 +1,7 @@ /// Result from a selfie check #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct GelatoSelfieReport { /// ID of the [File](https://stripe.com/docs/api/files) holding the image of the identity document used in this check. pub document: Option, @@ -155,7 +155,7 @@ impl std::fmt::Debug for GelatoSelfieReportStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for GelatoSelfieReportStatus { fn serialize(&self, serializer: S) -> Result where @@ -179,7 +179,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(GelatoSelfieReportStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for GelatoSelfieReportStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/gelato_selfie_report_error.rs b/generated/stripe_misc/src/gelato_selfie_report_error.rs index 1adb7ef0c..6cc88eef3 100644 --- a/generated/stripe_misc/src/gelato_selfie_report_error.rs +++ b/generated/stripe_misc/src/gelato_selfie_report_error.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct GelatoSelfieReportError { /// A short machine-readable string giving the reason for the verification failure. pub code: Option, @@ -141,7 +141,7 @@ impl std::fmt::Debug for GelatoSelfieReportErrorCode { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for GelatoSelfieReportErrorCode { fn serialize(&self, serializer: S) -> Result where @@ -165,7 +165,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(GelatoSelfieReportErrorCode); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for GelatoSelfieReportErrorCode { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/gelato_session_document_options.rs b/generated/stripe_misc/src/gelato_session_document_options.rs index de0530ea2..5866d8a01 100644 --- a/generated/stripe_misc/src/gelato_session_document_options.rs +++ b/generated/stripe_misc/src/gelato_session_document_options.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct GelatoSessionDocumentOptions { /// Array of strings of allowed identity document types. /// If the provided identity document isn’t one of the allowed types, the verification check will fail with a document_type_not_allowed error code. @@ -164,7 +164,7 @@ impl std::fmt::Debug for GelatoSessionDocumentOptionsAllowedTypes { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for GelatoSessionDocumentOptionsAllowedTypes { fn serialize(&self, serializer: S) -> Result where @@ -190,7 +190,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for GelatoSessionDocumentOptionsAllowedTypes { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/gelato_session_id_number_options.rs b/generated/stripe_misc/src/gelato_session_id_number_options.rs index 822da0dca..ccd01075f 100644 --- a/generated/stripe_misc/src/gelato_session_id_number_options.rs +++ b/generated/stripe_misc/src/gelato_session_id_number_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct GelatoSessionIdNumberOptions {} #[doc(hidden)] pub struct GelatoSessionIdNumberOptionsBuilder {} diff --git a/generated/stripe_misc/src/gelato_session_last_error.rs b/generated/stripe_misc/src/gelato_session_last_error.rs index c639708da..0ecad901e 100644 --- a/generated/stripe_misc/src/gelato_session_last_error.rs +++ b/generated/stripe_misc/src/gelato_session_last_error.rs @@ -1,7 +1,7 @@ /// Shows last VerificationSession error #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct GelatoSessionLastError { /// A short machine-readable string giving the reason for the verification or user-session failure. pub code: Option, @@ -178,7 +178,7 @@ impl std::fmt::Debug for GelatoSessionLastErrorCode { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for GelatoSessionLastErrorCode { fn serialize(&self, serializer: S) -> Result where @@ -204,7 +204,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(GelatoSessionLastErrorCode); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for GelatoSessionLastErrorCode { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/gelato_verification_report_options.rs b/generated/stripe_misc/src/gelato_verification_report_options.rs index 5c0a10481..bb2b6d590 100644 --- a/generated/stripe_misc/src/gelato_verification_report_options.rs +++ b/generated/stripe_misc/src/gelato_verification_report_options.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct GelatoVerificationReportOptions { pub document: Option, pub id_number: Option, diff --git a/generated/stripe_misc/src/gelato_verification_session_options.rs b/generated/stripe_misc/src/gelato_verification_session_options.rs index 04341a10b..c2dcc5f05 100644 --- a/generated/stripe_misc/src/gelato_verification_session_options.rs +++ b/generated/stripe_misc/src/gelato_verification_session_options.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct GelatoVerificationSessionOptions { pub document: Option, pub id_number: Option, diff --git a/generated/stripe_misc/src/gelato_verified_outputs.rs b/generated/stripe_misc/src/gelato_verified_outputs.rs index c9b76699a..4fde00b7d 100644 --- a/generated/stripe_misc/src/gelato_verified_outputs.rs +++ b/generated/stripe_misc/src/gelato_verified_outputs.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct GelatoVerifiedOutputs { /// The user's verified address. pub address: Option, @@ -171,7 +171,7 @@ impl std::fmt::Debug for GelatoVerifiedOutputsIdNumberType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for GelatoVerifiedOutputsIdNumberType { fn serialize(&self, serializer: S) -> Result where @@ -196,7 +196,7 @@ impl miniserde::de::Visitor for crate::Place } stripe_types::impl_from_val_with_from_str!(GelatoVerifiedOutputsIdNumberType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for GelatoVerifiedOutputsIdNumberType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/identity_verification_report/types.rs b/generated/stripe_misc/src/identity_verification_report/types.rs index 20eac8c0a..884843490 100644 --- a/generated/stripe_misc/src/identity_verification_report/types.rs +++ b/generated/stripe_misc/src/identity_verification_report/types.rs @@ -12,7 +12,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IdentityVerificationReport { /// Time at which the object was created. Measured in seconds since the Unix epoch. pub created: stripe_types::Timestamp, @@ -25,7 +25,7 @@ pub struct IdentityVerificationReport { pub options: Option, pub selfie: Option, /// Type of report. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: Option, /// ID of the VerificationSession that created this report. pub verification_session: Option, @@ -162,7 +162,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IdentityVerificationReport { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -248,7 +248,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(IdentityVerificationReportType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IdentityVerificationReportType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/identity_verification_session/requests.rs b/generated/stripe_misc/src/identity_verification_session/requests.rs index 113ccd31f..bde2a5fc2 100644 --- a/generated/stripe_misc/src/identity_verification_session/requests.rs +++ b/generated/stripe_misc/src/identity_verification_session/requests.rs @@ -178,7 +178,7 @@ impl serde::Serialize for CreateIdentityVerificationSessionOptionsDocumentAllowe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateIdentityVerificationSessionOptionsDocumentAllowedTypes { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -314,7 +314,7 @@ impl serde::Serialize for UpdateIdentityVerificationSessionOptionsDocumentAllowe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateIdentityVerificationSessionOptionsDocumentAllowedTypes { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/identity_verification_session/types.rs b/generated/stripe_misc/src/identity_verification_session/types.rs index 2e96f4cba..cc9beb66c 100644 --- a/generated/stripe_misc/src/identity_verification_session/types.rs +++ b/generated/stripe_misc/src/identity_verification_session/types.rs @@ -12,7 +12,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IdentityVerificationSession { /// The short-lived client secret used by Stripe.js to [show a verification modal](https://stripe.com/docs/js/identity/modal) inside your app. /// This client secret expires after 24 hours and can only be used once. @@ -44,7 +44,7 @@ pub struct IdentityVerificationSession { /// [Learn more about the lifecycle of sessions](https://stripe.com/docs/identity/how-sessions-work). pub status: stripe_misc::IdentityVerificationSessionStatus, /// The type of [verification check](https://stripe.com/docs/identity/verification-checks) to be performed. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: Option, /// The short-lived URL that you use to redirect a user to Stripe to submit their identity information. /// This URL expires after 48 hours and can only be used once. @@ -209,7 +209,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IdentityVerificationSession { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -306,7 +306,7 @@ impl miniserde::de::Visitor for crate::Place } stripe_types::impl_from_val_with_from_str!(IdentityVerificationSessionStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IdentityVerificationSessionStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -377,7 +377,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(IdentityVerificationSessionType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IdentityVerificationSessionType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/reporting_report_run/requests.rs b/generated/stripe_misc/src/reporting_report_run/requests.rs index d3ef1d0fc..7bb108a84 100644 --- a/generated/stripe_misc/src/reporting_report_run/requests.rs +++ b/generated/stripe_misc/src/reporting_report_run/requests.rs @@ -270,7 +270,7 @@ impl serde::Serialize for CreateReportingReportRunParametersReportingCategory { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateReportingReportRunParametersReportingCategory { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2119,7 +2119,7 @@ impl serde::Serialize for CreateReportingReportRunParametersTimezone { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateReportingReportRunParametersTimezone { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/reporting_report_run/types.rs b/generated/stripe_misc/src/reporting_report_run/types.rs index b11c9db41..582b582ff 100644 --- a/generated/stripe_misc/src/reporting_report_run/types.rs +++ b/generated/stripe_misc/src/reporting_report_run/types.rs @@ -9,7 +9,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ReportingReportRun { /// Time at which the object was created. Measured in seconds since the Unix epoch. pub created: stripe_types::Timestamp, @@ -164,7 +164,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ReportingReportRun { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_misc/src/reporting_report_type/types.rs b/generated/stripe_misc/src/reporting_report_type/types.rs index 9b1c0ae12..42c682694 100644 --- a/generated/stripe_misc/src/reporting_report_type/types.rs +++ b/generated/stripe_misc/src/reporting_report_type/types.rs @@ -9,7 +9,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ReportingReportType { /// Most recent time for which this Report Type is available. Measured in seconds since the Unix epoch. pub data_available_end: stripe_types::Timestamp, @@ -159,7 +159,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ReportingReportType { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_misc/src/scheduled_query_run/types.rs b/generated/stripe_misc/src/scheduled_query_run/types.rs index 0eb8708d0..8b8d83a8d 100644 --- a/generated/stripe_misc/src/scheduled_query_run/types.rs +++ b/generated/stripe_misc/src/scheduled_query_run/types.rs @@ -5,7 +5,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ScheduledQueryRun { /// Time at which the object was created. Measured in seconds since the Unix epoch. pub created: stripe_types::Timestamp, @@ -164,7 +164,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ScheduledQueryRun { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_misc/src/sigma_scheduled_query_run_error.rs b/generated/stripe_misc/src/sigma_scheduled_query_run_error.rs index 715379698..4cee93946 100644 --- a/generated/stripe_misc/src/sigma_scheduled_query_run_error.rs +++ b/generated/stripe_misc/src/sigma_scheduled_query_run_error.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SigmaScheduledQueryRunError { /// Information about the run failure. pub message: String, diff --git a/generated/stripe_misc/src/tax_calculation/requests.rs b/generated/stripe_misc/src/tax_calculation/requests.rs index d7af9164d..aaaed07cb 100644 --- a/generated/stripe_misc/src/tax_calculation/requests.rs +++ b/generated/stripe_misc/src/tax_calculation/requests.rs @@ -185,7 +185,7 @@ impl serde::Serialize for CreateTaxCalculationCustomerDetailsAddressSource { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxCalculationCustomerDetailsAddressSource { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -455,7 +455,7 @@ impl serde::Serialize for CreateTaxCalculationCustomerDetailsTaxIdsType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxCalculationCustomerDetailsTaxIdsType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -514,7 +514,7 @@ impl serde::Serialize for CreateTaxCalculationCustomerDetailsTaxabilityOverride serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxCalculationCustomerDetailsTaxabilityOverride { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -612,7 +612,7 @@ impl serde::Serialize for CreateTaxCalculationLineItemsTaxBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxCalculationLineItemsTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -697,7 +697,7 @@ impl serde::Serialize for CreateTaxCalculationShippingCostTaxBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxCalculationShippingCostTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/tax_calculation/types.rs b/generated/stripe_misc/src/tax_calculation/types.rs index 340768be8..fdf722bb7 100644 --- a/generated/stripe_misc/src/tax_calculation/types.rs +++ b/generated/stripe_misc/src/tax_calculation/types.rs @@ -4,7 +4,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxCalculation { /// Total after taxes. pub amount_total: i64, @@ -187,7 +187,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxCalculation { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_misc/src/tax_calculation_line_item.rs b/generated/stripe_misc/src/tax_calculation_line_item.rs index f61b3750b..f5072bec6 100644 --- a/generated/stripe_misc/src/tax_calculation_line_item.rs +++ b/generated/stripe_misc/src/tax_calculation_line_item.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxCalculationLineItem { /// The line item amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). /// If `tax_behavior=inclusive`, then this amount includes taxes. @@ -160,7 +160,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxCalculationLineItem { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -219,7 +219,7 @@ impl std::fmt::Debug for TaxCalculationLineItemTaxBehavior { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxCalculationLineItemTaxBehavior { fn serialize(&self, serializer: S) -> Result where @@ -244,7 +244,7 @@ impl miniserde::de::Visitor for crate::Place } stripe_types::impl_from_val_with_from_str!(TaxCalculationLineItemTaxBehavior); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TaxCalculationLineItemTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/tax_product_registrations_resource_country_options.rs b/generated/stripe_misc/src/tax_product_registrations_resource_country_options.rs index b9d0ce06c..4cc526fba 100644 --- a/generated/stripe_misc/src/tax_product_registrations_resource_country_options.rs +++ b/generated/stripe_misc/src/tax_product_registrations_resource_country_options.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductRegistrationsResourceCountryOptions { pub ae: Option, pub at: Option, diff --git a/generated/stripe_misc/src/tax_product_registrations_resource_country_options_ca_province_standard.rs b/generated/stripe_misc/src/tax_product_registrations_resource_country_options_ca_province_standard.rs index e595d268f..b2f94cdcc 100644 --- a/generated/stripe_misc/src/tax_product_registrations_resource_country_options_ca_province_standard.rs +++ b/generated/stripe_misc/src/tax_product_registrations_resource_country_options_ca_province_standard.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductRegistrationsResourceCountryOptionsCaProvinceStandard { /// Two-letter CA province code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). pub province: String, diff --git a/generated/stripe_misc/src/tax_product_registrations_resource_country_options_canada.rs b/generated/stripe_misc/src/tax_product_registrations_resource_country_options_canada.rs index 353fc90d1..12491653a 100644 --- a/generated/stripe_misc/src/tax_product_registrations_resource_country_options_canada.rs +++ b/generated/stripe_misc/src/tax_product_registrations_resource_country_options_canada.rs @@ -1,11 +1,11 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductRegistrationsResourceCountryOptionsCanada { pub province_standard: Option, /// Type of registration in Canada. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: TaxProductRegistrationsResourceCountryOptionsCanadaType, } #[doc(hidden)] @@ -144,7 +144,7 @@ impl std::fmt::Debug for TaxProductRegistrationsResourceCountryOptionsCanadaType f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxProductRegistrationsResourceCountryOptionsCanadaType { fn serialize(&self, serializer: S) -> Result where @@ -173,7 +173,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(TaxProductRegistrationsResourceCountryOptionsCanadaType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TaxProductRegistrationsResourceCountryOptionsCanadaType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/tax_product_registrations_resource_country_options_default.rs b/generated/stripe_misc/src/tax_product_registrations_resource_country_options_default.rs index 116c79a3c..8abde5618 100644 --- a/generated/stripe_misc/src/tax_product_registrations_resource_country_options_default.rs +++ b/generated/stripe_misc/src/tax_product_registrations_resource_country_options_default.rs @@ -1,9 +1,9 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductRegistrationsResourceCountryOptionsDefault { /// Type of registration in `country`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: TaxProductRegistrationsResourceCountryOptionsDefaultType, } #[doc(hidden)] @@ -129,7 +129,7 @@ impl std::fmt::Debug for TaxProductRegistrationsResourceCountryOptionsDefaultTyp f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxProductRegistrationsResourceCountryOptionsDefaultType { fn serialize(&self, serializer: S) -> Result where @@ -160,7 +160,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( TaxProductRegistrationsResourceCountryOptionsDefaultType ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TaxProductRegistrationsResourceCountryOptionsDefaultType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/tax_product_registrations_resource_country_options_eu_standard.rs b/generated/stripe_misc/src/tax_product_registrations_resource_country_options_eu_standard.rs index 45d3efbf1..22db127f3 100644 --- a/generated/stripe_misc/src/tax_product_registrations_resource_country_options_eu_standard.rs +++ b/generated/stripe_misc/src/tax_product_registrations_resource_country_options_eu_standard.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductRegistrationsResourceCountryOptionsEuStandard { /// Place of supply scheme used in an EU standard registration. pub place_of_supply_scheme: @@ -141,7 +141,7 @@ impl std::fmt::Debug f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxProductRegistrationsResourceCountryOptionsEuStandardPlaceOfSupplyScheme { @@ -176,7 +176,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( TaxProductRegistrationsResourceCountryOptionsEuStandardPlaceOfSupplyScheme ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TaxProductRegistrationsResourceCountryOptionsEuStandardPlaceOfSupplyScheme { diff --git a/generated/stripe_misc/src/tax_product_registrations_resource_country_options_europe.rs b/generated/stripe_misc/src/tax_product_registrations_resource_country_options_europe.rs index 836f22459..e55fcb359 100644 --- a/generated/stripe_misc/src/tax_product_registrations_resource_country_options_europe.rs +++ b/generated/stripe_misc/src/tax_product_registrations_resource_country_options_europe.rs @@ -1,10 +1,10 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductRegistrationsResourceCountryOptionsEurope { pub standard: Option, /// Type of registration in an EU country. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: TaxProductRegistrationsResourceCountryOptionsEuropeType, } #[doc(hidden)] @@ -141,7 +141,7 @@ impl std::fmt::Debug for TaxProductRegistrationsResourceCountryOptionsEuropeType f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxProductRegistrationsResourceCountryOptionsEuropeType { fn serialize(&self, serializer: S) -> Result where @@ -170,7 +170,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(TaxProductRegistrationsResourceCountryOptionsEuropeType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TaxProductRegistrationsResourceCountryOptionsEuropeType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/tax_product_registrations_resource_country_options_simplified.rs b/generated/stripe_misc/src/tax_product_registrations_resource_country_options_simplified.rs index 1d326e9f2..0e7b7b3b1 100644 --- a/generated/stripe_misc/src/tax_product_registrations_resource_country_options_simplified.rs +++ b/generated/stripe_misc/src/tax_product_registrations_resource_country_options_simplified.rs @@ -1,9 +1,9 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductRegistrationsResourceCountryOptionsSimplified { /// Type of registration in `country`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: TaxProductRegistrationsResourceCountryOptionsSimplifiedType, } #[doc(hidden)] @@ -129,7 +129,7 @@ impl std::fmt::Debug for TaxProductRegistrationsResourceCountryOptionsSimplified f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxProductRegistrationsResourceCountryOptionsSimplifiedType { fn serialize(&self, serializer: S) -> Result where @@ -160,7 +160,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( TaxProductRegistrationsResourceCountryOptionsSimplifiedType ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TaxProductRegistrationsResourceCountryOptionsSimplifiedType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/tax_product_registrations_resource_country_options_united_states.rs b/generated/stripe_misc/src/tax_product_registrations_resource_country_options_united_states.rs index 90c9f676e..b61660822 100644 --- a/generated/stripe_misc/src/tax_product_registrations_resource_country_options_united_states.rs +++ b/generated/stripe_misc/src/tax_product_registrations_resource_country_options_united_states.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductRegistrationsResourceCountryOptionsUnitedStates { pub local_amusement_tax: Option, @@ -9,7 +9,7 @@ pub struct TaxProductRegistrationsResourceCountryOptionsUnitedStates { /// Two-letter US state code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). pub state: String, /// Type of registration in the US. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: TaxProductRegistrationsResourceCountryOptionsUnitedStatesType, } #[doc(hidden)] @@ -169,7 +169,7 @@ impl std::fmt::Debug for TaxProductRegistrationsResourceCountryOptionsUnitedStat f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxProductRegistrationsResourceCountryOptionsUnitedStatesType { fn serialize(&self, serializer: S) -> Result where @@ -200,7 +200,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( TaxProductRegistrationsResourceCountryOptionsUnitedStatesType ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TaxProductRegistrationsResourceCountryOptionsUnitedStatesType { diff --git a/generated/stripe_misc/src/tax_product_registrations_resource_country_options_us_local_amusement_tax.rs b/generated/stripe_misc/src/tax_product_registrations_resource_country_options_us_local_amusement_tax.rs index 74940766c..9338915df 100644 --- a/generated/stripe_misc/src/tax_product_registrations_resource_country_options_us_local_amusement_tax.rs +++ b/generated/stripe_misc/src/tax_product_registrations_resource_country_options_us_local_amusement_tax.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductRegistrationsResourceCountryOptionsUsLocalAmusementTax { /// A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. pub jurisdiction: String, diff --git a/generated/stripe_misc/src/tax_product_registrations_resource_country_options_us_local_lease_tax.rs b/generated/stripe_misc/src/tax_product_registrations_resource_country_options_us_local_lease_tax.rs index f203dec6c..c682cb8e6 100644 --- a/generated/stripe_misc/src/tax_product_registrations_resource_country_options_us_local_lease_tax.rs +++ b/generated/stripe_misc/src/tax_product_registrations_resource_country_options_us_local_lease_tax.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductRegistrationsResourceCountryOptionsUsLocalLeaseTax { /// A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. pub jurisdiction: String, diff --git a/generated/stripe_misc/src/tax_product_resource_customer_details.rs b/generated/stripe_misc/src/tax_product_resource_customer_details.rs index f5e6ecd3f..9167eb784 100644 --- a/generated/stripe_misc/src/tax_product_resource_customer_details.rs +++ b/generated/stripe_misc/src/tax_product_resource_customer_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductResourceCustomerDetails { /// The customer's postal address (for example, home or business location). pub address: Option, @@ -163,7 +163,7 @@ impl std::fmt::Debug for TaxProductResourceCustomerDetailsAddressSource { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxProductResourceCustomerDetailsAddressSource { fn serialize(&self, serializer: S) -> Result where @@ -190,7 +190,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for TaxProductResourceCustomerDetailsAddressSource { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -243,7 +243,7 @@ impl std::fmt::Debug for TaxProductResourceCustomerDetailsTaxabilityOverride { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxProductResourceCustomerDetailsTaxabilityOverride { fn serialize(&self, serializer: S) -> Result where @@ -270,7 +270,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for TaxProductResourceCustomerDetailsTaxabilityOverride { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/tax_product_resource_customer_details_resource_tax_id.rs b/generated/stripe_misc/src/tax_product_resource_customer_details_resource_tax_id.rs index 4ecd2546f..c6d3b5659 100644 --- a/generated/stripe_misc/src/tax_product_resource_customer_details_resource_tax_id.rs +++ b/generated/stripe_misc/src/tax_product_resource_customer_details_resource_tax_id.rs @@ -1,9 +1,9 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductResourceCustomerDetailsResourceTaxId { /// The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: TaxProductResourceCustomerDetailsResourceTaxIdType, /// The value of the tax ID. pub value: String, @@ -330,7 +330,7 @@ impl std::fmt::Debug for TaxProductResourceCustomerDetailsResourceTaxIdType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxProductResourceCustomerDetailsResourceTaxIdType { fn serialize(&self, serializer: S) -> Result where @@ -357,7 +357,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for TaxProductResourceCustomerDetailsResourceTaxIdType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/tax_product_resource_jurisdiction.rs b/generated/stripe_misc/src/tax_product_resource_jurisdiction.rs index d201b4f8a..6928a1e52 100644 --- a/generated/stripe_misc/src/tax_product_resource_jurisdiction.rs +++ b/generated/stripe_misc/src/tax_product_resource_jurisdiction.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductResourceJurisdiction { /// Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). pub country: String, @@ -164,7 +164,7 @@ impl std::fmt::Debug for TaxProductResourceJurisdictionLevel { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxProductResourceJurisdictionLevel { fn serialize(&self, serializer: S) -> Result where @@ -189,7 +189,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for TaxProductResourceJurisdictionLevel { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/tax_product_resource_line_item_tax_breakdown.rs b/generated/stripe_misc/src/tax_product_resource_line_item_tax_breakdown.rs index f850384b0..27e0c60af 100644 --- a/generated/stripe_misc/src/tax_product_resource_line_item_tax_breakdown.rs +++ b/generated/stripe_misc/src/tax_product_resource_line_item_tax_breakdown.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductResourceLineItemTaxBreakdown { /// The amount of tax, in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). pub amount: i64, @@ -169,7 +169,7 @@ impl std::fmt::Debug for TaxProductResourceLineItemTaxBreakdownSourcing { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxProductResourceLineItemTaxBreakdownSourcing { fn serialize(&self, serializer: S) -> Result where @@ -196,7 +196,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for TaxProductResourceLineItemTaxBreakdownSourcing { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -290,7 +290,7 @@ impl std::fmt::Debug for TaxProductResourceLineItemTaxBreakdownTaxabilityReason f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxProductResourceLineItemTaxBreakdownTaxabilityReason { fn serialize(&self, serializer: S) -> Result where @@ -319,7 +319,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(TaxProductResourceLineItemTaxBreakdownTaxabilityReason); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TaxProductResourceLineItemTaxBreakdownTaxabilityReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/tax_product_resource_line_item_tax_rate_details.rs b/generated/stripe_misc/src/tax_product_resource_line_item_tax_rate_details.rs index 5e257e067..28cc14ced 100644 --- a/generated/stripe_misc/src/tax_product_resource_line_item_tax_rate_details.rs +++ b/generated/stripe_misc/src/tax_product_resource_line_item_tax_rate_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductResourceLineItemTaxRateDetails { /// A localized display name for tax type, intended to be human-readable. /// For example, "Local Sales and Use Tax", "Value-added tax (VAT)", or "Umsatzsteuer (USt.)". @@ -180,7 +180,7 @@ impl std::fmt::Debug for TaxProductResourceLineItemTaxRateDetailsTaxType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxProductResourceLineItemTaxRateDetailsTaxType { fn serialize(&self, serializer: S) -> Result where @@ -207,7 +207,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for TaxProductResourceLineItemTaxRateDetailsTaxType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/tax_product_resource_postal_address.rs b/generated/stripe_misc/src/tax_product_resource_postal_address.rs index 5eb0ab99c..66bae8ef7 100644 --- a/generated/stripe_misc/src/tax_product_resource_postal_address.rs +++ b/generated/stripe_misc/src/tax_product_resource_postal_address.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductResourcePostalAddress { /// City, district, suburb, town, or village. pub city: Option, diff --git a/generated/stripe_misc/src/tax_product_resource_tax_breakdown.rs b/generated/stripe_misc/src/tax_product_resource_tax_breakdown.rs index 81097bf60..cace17b2e 100644 --- a/generated/stripe_misc/src/tax_product_resource_tax_breakdown.rs +++ b/generated/stripe_misc/src/tax_product_resource_tax_breakdown.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductResourceTaxBreakdown { /// The amount of tax, in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). pub amount: i64, @@ -205,7 +205,7 @@ impl std::fmt::Debug for TaxProductResourceTaxBreakdownTaxabilityReason { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxProductResourceTaxBreakdownTaxabilityReason { fn serialize(&self, serializer: S) -> Result where @@ -232,7 +232,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for TaxProductResourceTaxBreakdownTaxabilityReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/tax_product_resource_tax_calculation_shipping_cost.rs b/generated/stripe_misc/src/tax_product_resource_tax_calculation_shipping_cost.rs index 00825a8d4..91a5942be 100644 --- a/generated/stripe_misc/src/tax_product_resource_tax_calculation_shipping_cost.rs +++ b/generated/stripe_misc/src/tax_product_resource_tax_calculation_shipping_cost.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductResourceTaxCalculationShippingCost { /// The shipping amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). /// If `tax_behavior=inclusive`, then this amount includes taxes. @@ -172,7 +172,7 @@ impl std::fmt::Debug for TaxProductResourceTaxCalculationShippingCostTaxBehavior f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxProductResourceTaxCalculationShippingCostTaxBehavior { fn serialize(&self, serializer: S) -> Result where @@ -201,7 +201,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(TaxProductResourceTaxCalculationShippingCostTaxBehavior); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TaxProductResourceTaxCalculationShippingCostTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/tax_product_resource_tax_rate_details.rs b/generated/stripe_misc/src/tax_product_resource_tax_rate_details.rs index f5f402fcd..f7befbe0c 100644 --- a/generated/stripe_misc/src/tax_product_resource_tax_rate_details.rs +++ b/generated/stripe_misc/src/tax_product_resource_tax_rate_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductResourceTaxRateDetails { /// Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). pub country: Option, @@ -186,7 +186,7 @@ impl std::fmt::Debug for TaxProductResourceTaxRateDetailsTaxType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxProductResourceTaxRateDetailsTaxType { fn serialize(&self, serializer: S) -> Result where @@ -212,7 +212,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for TaxProductResourceTaxRateDetailsTaxType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/tax_product_resource_tax_settings_defaults.rs b/generated/stripe_misc/src/tax_product_resource_tax_settings_defaults.rs index 1e240480f..0bc8ed47f 100644 --- a/generated/stripe_misc/src/tax_product_resource_tax_settings_defaults.rs +++ b/generated/stripe_misc/src/tax_product_resource_tax_settings_defaults.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductResourceTaxSettingsDefaults { /// Default [tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#tax-behavior) used to specify whether the price is considered inclusive of taxes or exclusive of taxes. /// If the item's price has a tax behavior set, it will take precedence over the default tax behavior. @@ -139,7 +139,7 @@ impl std::fmt::Debug for TaxProductResourceTaxSettingsDefaultsTaxBehavior { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxProductResourceTaxSettingsDefaultsTaxBehavior { fn serialize(&self, serializer: S) -> Result where @@ -166,7 +166,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for TaxProductResourceTaxSettingsDefaultsTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/tax_product_resource_tax_settings_head_office.rs b/generated/stripe_misc/src/tax_product_resource_tax_settings_head_office.rs index dac218482..fc0a0783f 100644 --- a/generated/stripe_misc/src/tax_product_resource_tax_settings_head_office.rs +++ b/generated/stripe_misc/src/tax_product_resource_tax_settings_head_office.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductResourceTaxSettingsHeadOffice { pub address: stripe_shared::Address, } diff --git a/generated/stripe_misc/src/tax_product_resource_tax_settings_status_details.rs b/generated/stripe_misc/src/tax_product_resource_tax_settings_status_details.rs index c9708b413..85775c7c1 100644 --- a/generated/stripe_misc/src/tax_product_resource_tax_settings_status_details.rs +++ b/generated/stripe_misc/src/tax_product_resource_tax_settings_status_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductResourceTaxSettingsStatusDetails { pub active: Option, pub pending: Option, diff --git a/generated/stripe_misc/src/tax_product_resource_tax_settings_status_details_resource_active.rs b/generated/stripe_misc/src/tax_product_resource_tax_settings_status_details_resource_active.rs index de2005450..79677572e 100644 --- a/generated/stripe_misc/src/tax_product_resource_tax_settings_status_details_resource_active.rs +++ b/generated/stripe_misc/src/tax_product_resource_tax_settings_status_details_resource_active.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductResourceTaxSettingsStatusDetailsResourceActive {} #[doc(hidden)] pub struct TaxProductResourceTaxSettingsStatusDetailsResourceActiveBuilder {} diff --git a/generated/stripe_misc/src/tax_product_resource_tax_settings_status_details_resource_pending.rs b/generated/stripe_misc/src/tax_product_resource_tax_settings_status_details_resource_pending.rs index bf50c9dbb..009c4e6c7 100644 --- a/generated/stripe_misc/src/tax_product_resource_tax_settings_status_details_resource_pending.rs +++ b/generated/stripe_misc/src/tax_product_resource_tax_settings_status_details_resource_pending.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductResourceTaxSettingsStatusDetailsResourcePending { /// The list of missing fields that are required to perform calculations. /// It includes the entry `head_office` when the status is `pending`. diff --git a/generated/stripe_misc/src/tax_product_resource_tax_transaction_line_item_resource_reversal.rs b/generated/stripe_misc/src/tax_product_resource_tax_transaction_line_item_resource_reversal.rs index 5feee3779..e76567127 100644 --- a/generated/stripe_misc/src/tax_product_resource_tax_transaction_line_item_resource_reversal.rs +++ b/generated/stripe_misc/src/tax_product_resource_tax_transaction_line_item_resource_reversal.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductResourceTaxTransactionLineItemResourceReversal { /// The `id` of the line item to reverse in the original transaction. pub original_line_item: String, diff --git a/generated/stripe_misc/src/tax_product_resource_tax_transaction_resource_reversal.rs b/generated/stripe_misc/src/tax_product_resource_tax_transaction_resource_reversal.rs index 397bb7dd9..1ff5d2b61 100644 --- a/generated/stripe_misc/src/tax_product_resource_tax_transaction_resource_reversal.rs +++ b/generated/stripe_misc/src/tax_product_resource_tax_transaction_resource_reversal.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductResourceTaxTransactionResourceReversal { /// The `id` of the reversed `Transaction` object. pub original_transaction: Option, diff --git a/generated/stripe_misc/src/tax_product_resource_tax_transaction_shipping_cost.rs b/generated/stripe_misc/src/tax_product_resource_tax_transaction_shipping_cost.rs index 6b069d46c..b7790d521 100644 --- a/generated/stripe_misc/src/tax_product_resource_tax_transaction_shipping_cost.rs +++ b/generated/stripe_misc/src/tax_product_resource_tax_transaction_shipping_cost.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxProductResourceTaxTransactionShippingCost { /// The shipping amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). /// If `tax_behavior=inclusive`, then this amount includes taxes. @@ -173,7 +173,7 @@ impl std::fmt::Debug for TaxProductResourceTaxTransactionShippingCostTaxBehavior f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxProductResourceTaxTransactionShippingCostTaxBehavior { fn serialize(&self, serializer: S) -> Result where @@ -202,7 +202,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(TaxProductResourceTaxTransactionShippingCostTaxBehavior); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TaxProductResourceTaxTransactionShippingCostTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/tax_registration/requests.rs b/generated/stripe_misc/src/tax_registration/requests.rs index 586ab8fe0..9e06907b7 100644 --- a/generated/stripe_misc/src/tax_registration/requests.rs +++ b/generated/stripe_misc/src/tax_registration/requests.rs @@ -78,7 +78,7 @@ impl serde::Serialize for ListTaxRegistrationStatus { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ListTaxRegistrationStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -368,7 +368,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsAeType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsAeType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -452,7 +452,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsAtStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsAtStandardPlaceOfSupplyScheme { @@ -514,7 +514,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsAtType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsAtType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -579,7 +579,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsAuType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsAuType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -663,7 +663,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsBeStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsBeStandardPlaceOfSupplyScheme { @@ -725,7 +725,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsBeType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsBeType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -809,7 +809,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsBgStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsBgStandardPlaceOfSupplyScheme { @@ -871,7 +871,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsBgType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsBgType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -956,7 +956,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsCaType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsCaType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1021,7 +1021,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsChType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsChType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1086,7 +1086,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsClType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsClType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1151,7 +1151,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsCoType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsCoType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1235,7 +1235,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsCyStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsCyStandardPlaceOfSupplyScheme { @@ -1297,7 +1297,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsCyType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsCyType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1381,7 +1381,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsCzStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsCzStandardPlaceOfSupplyScheme { @@ -1443,7 +1443,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsCzType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsCzType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1527,7 +1527,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsDeStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsDeStandardPlaceOfSupplyScheme { @@ -1589,7 +1589,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsDeType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsDeType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1673,7 +1673,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsDkStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsDkStandardPlaceOfSupplyScheme { @@ -1735,7 +1735,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsDkType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsDkType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1819,7 +1819,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsEeStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsEeStandardPlaceOfSupplyScheme { @@ -1881,7 +1881,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsEeType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsEeType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1965,7 +1965,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsEsStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsEsStandardPlaceOfSupplyScheme { @@ -2027,7 +2027,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsEsType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsEsType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2111,7 +2111,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsFiStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsFiStandardPlaceOfSupplyScheme { @@ -2173,7 +2173,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsFiType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsFiType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2257,7 +2257,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsFrStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsFrStandardPlaceOfSupplyScheme { @@ -2319,7 +2319,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsFrType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsFrType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2384,7 +2384,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsGbType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsGbType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2468,7 +2468,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsGrStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsGrStandardPlaceOfSupplyScheme { @@ -2530,7 +2530,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsGrType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsGrType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2614,7 +2614,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsHrStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsHrStandardPlaceOfSupplyScheme { @@ -2676,7 +2676,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsHrType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsHrType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2760,7 +2760,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsHuStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsHuStandardPlaceOfSupplyScheme { @@ -2822,7 +2822,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsHuType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsHuType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2887,7 +2887,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsIdType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsIdType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2971,7 +2971,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsIeStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsIeStandardPlaceOfSupplyScheme { @@ -3033,7 +3033,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsIeType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsIeType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3098,7 +3098,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsIsType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsIsType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3182,7 +3182,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsItStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsItStandardPlaceOfSupplyScheme { @@ -3244,7 +3244,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsItType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsItType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3309,7 +3309,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsJpType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsJpType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3374,7 +3374,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsKrType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsKrType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3458,7 +3458,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsLtStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsLtStandardPlaceOfSupplyScheme { @@ -3520,7 +3520,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsLtType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsLtType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3604,7 +3604,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsLuStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsLuStandardPlaceOfSupplyScheme { @@ -3666,7 +3666,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsLuType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsLuType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3750,7 +3750,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsLvStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsLvStandardPlaceOfSupplyScheme { @@ -3812,7 +3812,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsLvType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsLvType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3896,7 +3896,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsMtStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsMtStandardPlaceOfSupplyScheme { @@ -3958,7 +3958,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsMtType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsMtType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4023,7 +4023,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsMxType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsMxType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4088,7 +4088,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsMyType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsMyType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4172,7 +4172,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsNlStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsNlStandardPlaceOfSupplyScheme { @@ -4234,7 +4234,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsNlType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsNlType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4299,7 +4299,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsNoType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsNoType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4364,7 +4364,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsNzType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsNzType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4448,7 +4448,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsPlStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsPlStandardPlaceOfSupplyScheme { @@ -4510,7 +4510,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsPlType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsPlType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4594,7 +4594,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsPtStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsPtStandardPlaceOfSupplyScheme { @@ -4656,7 +4656,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsPtType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsPtType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4740,7 +4740,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsRoStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsRoStandardPlaceOfSupplyScheme { @@ -4802,7 +4802,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsRoType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsRoType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4867,7 +4867,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsSaType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsSaType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4951,7 +4951,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsSeStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsSeStandardPlaceOfSupplyScheme { @@ -5013,7 +5013,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsSeType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsSeType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -5078,7 +5078,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsSgType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsSgType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -5162,7 +5162,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsSiStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsSiStandardPlaceOfSupplyScheme { @@ -5224,7 +5224,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsSiType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsSiType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -5308,7 +5308,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsSkStandardPlaceOfSu serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsSkStandardPlaceOfSupplyScheme { @@ -5370,7 +5370,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsSkType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsSkType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -5435,7 +5435,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsThType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsThType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -5500,7 +5500,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsTrType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsTrType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -5606,7 +5606,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsUsType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsUsType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -5671,7 +5671,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsVnType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsVnType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -5736,7 +5736,7 @@ impl serde::Serialize for CreateTaxRegistrationCountryOptionsZaType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTaxRegistrationCountryOptionsZaType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/tax_registration/types.rs b/generated/stripe_misc/src/tax_registration/types.rs index 00f329c67..8d20c8d52 100644 --- a/generated/stripe_misc/src/tax_registration/types.rs +++ b/generated/stripe_misc/src/tax_registration/types.rs @@ -5,7 +5,7 @@ /// /// Related guide: [Using the Registrations API](https://stripe.com/docs/tax/registrations-api) #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxRegistration { /// Time at which the registration becomes active. Measured in seconds since the Unix epoch. pub active_from: stripe_types::Timestamp, @@ -151,7 +151,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxRegistration { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -211,7 +211,7 @@ impl std::fmt::Debug for TaxRegistrationStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxRegistrationStatus { fn serialize(&self, serializer: S) -> Result where @@ -235,7 +235,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TaxRegistrationStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TaxRegistrationStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/tax_settings/requests.rs b/generated/stripe_misc/src/tax_settings/requests.rs index 334c4112a..9dc6274b1 100644 --- a/generated/stripe_misc/src/tax_settings/requests.rs +++ b/generated/stripe_misc/src/tax_settings/requests.rs @@ -100,7 +100,7 @@ impl serde::Serialize for UpdateTaxSettingsDefaultsTaxBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateTaxSettingsDefaultsTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/tax_settings/types.rs b/generated/stripe_misc/src/tax_settings/types.rs index c2618c70c..4854d8d4c 100644 --- a/generated/stripe_misc/src/tax_settings/types.rs +++ b/generated/stripe_misc/src/tax_settings/types.rs @@ -4,7 +4,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxSettings { pub defaults: stripe_misc::TaxProductResourceTaxSettingsDefaults, /// The place where your business is located. @@ -126,7 +126,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxSettings { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -180,7 +180,7 @@ impl std::fmt::Debug for TaxSettingsStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxSettingsStatus { fn serialize(&self, serializer: S) -> Result where @@ -204,7 +204,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TaxSettingsStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TaxSettingsStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/tax_transaction/requests.rs b/generated/stripe_misc/src/tax_transaction/requests.rs index 9bceca334..f35dee7e8 100644 --- a/generated/stripe_misc/src/tax_transaction/requests.rs +++ b/generated/stripe_misc/src/tax_transaction/requests.rs @@ -220,7 +220,7 @@ impl serde::Serialize for CreateReversalTaxTransactionMode { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateReversalTaxTransactionMode { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/tax_transaction/types.rs b/generated/stripe_misc/src/tax_transaction/types.rs index 2683f66a9..41f092330 100644 --- a/generated/stripe_misc/src/tax_transaction/types.rs +++ b/generated/stripe_misc/src/tax_transaction/types.rs @@ -4,7 +4,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxTransaction { /// Time at which the object was created. Measured in seconds since the Unix epoch. pub created: stripe_types::Timestamp, @@ -32,7 +32,7 @@ pub struct TaxTransaction { /// Timestamp of date at which the tax rules and rates in effect applies for the calculation. pub tax_date: stripe_types::Timestamp, /// If `reversal`, this transaction reverses an earlier transaction. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: TaxTransactionType, } #[doc(hidden)] @@ -185,7 +185,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxTransaction { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -246,7 +246,7 @@ impl std::fmt::Debug for TaxTransactionType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxTransactionType { fn serialize(&self, serializer: S) -> Result where @@ -270,7 +270,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TaxTransactionType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TaxTransactionType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/tax_transaction_line_item.rs b/generated/stripe_misc/src/tax_transaction_line_item.rs index cfcd48f05..594fd907f 100644 --- a/generated/stripe_misc/src/tax_transaction_line_item.rs +++ b/generated/stripe_misc/src/tax_transaction_line_item.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxTransactionLineItem { /// The line item amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). /// If `tax_behavior=inclusive`, then this amount includes taxes. @@ -28,7 +28,7 @@ pub struct TaxTransactionLineItem { /// The [tax code](https://stripe.com/docs/tax/tax-categories) ID used for this resource. pub tax_code: String, /// If `reversal`, this line item reverses an earlier transaction. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: TaxTransactionLineItemType, } #[doc(hidden)] @@ -176,7 +176,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxTransactionLineItem { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -237,7 +237,7 @@ impl std::fmt::Debug for TaxTransactionLineItemTaxBehavior { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxTransactionLineItemTaxBehavior { fn serialize(&self, serializer: S) -> Result where @@ -262,7 +262,7 @@ impl miniserde::de::Visitor for crate::Place } stripe_types::impl_from_val_with_from_str!(TaxTransactionLineItemTaxBehavior); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TaxTransactionLineItemTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -310,7 +310,7 @@ impl std::fmt::Debug for TaxTransactionLineItemType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxTransactionLineItemType { fn serialize(&self, serializer: S) -> Result where @@ -334,7 +334,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TaxTransactionLineItemType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TaxTransactionLineItemType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/verification_session_redaction.rs b/generated/stripe_misc/src/verification_session_redaction.rs index 7c2fa52bd..e259ef81d 100644 --- a/generated/stripe_misc/src/verification_session_redaction.rs +++ b/generated/stripe_misc/src/verification_session_redaction.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct VerificationSessionRedaction { /// Indicates whether this object and its related objects have been redacted or not. pub status: VerificationSessionRedactionStatus, @@ -129,7 +129,7 @@ impl std::fmt::Debug for VerificationSessionRedactionStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for VerificationSessionRedactionStatus { fn serialize(&self, serializer: S) -> Result where @@ -154,7 +154,7 @@ impl miniserde::de::Visitor for crate::Place } stripe_types::impl_from_val_with_from_str!(VerificationSessionRedactionStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for VerificationSessionRedactionStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/webhook_endpoint/requests.rs b/generated/stripe_misc/src/webhook_endpoint/requests.rs index aba528949..923e0f4aa 100644 --- a/generated/stripe_misc/src/webhook_endpoint/requests.rs +++ b/generated/stripe_misc/src/webhook_endpoint/requests.rs @@ -886,7 +886,7 @@ impl serde::Serialize for CreateWebhookEndpointEnabledEvents { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateWebhookEndpointEnabledEvents { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1700,7 +1700,7 @@ impl serde::Serialize for UpdateWebhookEndpointEnabledEvents { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateWebhookEndpointEnabledEvents { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_misc/src/webhook_endpoint/types.rs b/generated/stripe_misc/src/webhook_endpoint/types.rs index ef5b76a49..11307f706 100644 --- a/generated/stripe_misc/src/webhook_endpoint/types.rs +++ b/generated/stripe_misc/src/webhook_endpoint/types.rs @@ -8,7 +8,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct WebhookEndpoint { /// The API version events are rendered as for this webhook endpoint. pub api_version: Option, @@ -176,7 +176,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for WebhookEndpoint { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_payment/Cargo.toml b/generated/stripe_payment/Cargo.toml index e684d7bd3..829331a63 100644 --- a/generated/stripe_payment/Cargo.toml +++ b/generated/stripe_payment/Cargo.toml @@ -29,7 +29,8 @@ stripe_shared = {path = "../../generated/stripe_shared"} [features] -serde = ["stripe_types/serde","stripe_shared/serde"] +serialize = ["stripe_types/serialize","stripe_shared/serialize"] +deserialize = ["stripe_types/deserialize","stripe_shared/deserialize"] runtime-tokio-hyper = ["async-stripe/runtime-tokio-hyper"] runtime-tokio-hyper-rustls = ["async-stripe/runtime-tokio-hyper-rustls"] runtime-tokio-hyper-rustls-webpki = ["async-stripe/runtime-tokio-hyper-rustls-webpki"] diff --git a/generated/stripe_payment/src/bank_account/requests.rs b/generated/stripe_payment/src/bank_account/requests.rs index 35a78ce05..7f893e420 100644 --- a/generated/stripe_payment/src/bank_account/requests.rs +++ b/generated/stripe_payment/src/bank_account/requests.rs @@ -47,9 +47,9 @@ impl<'a> DeleteCustomerBankAccount<'a> { } } #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", serde(untagged))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(untagged))] pub enum DeleteCustomerBankAccountReturned { PaymentSource(stripe_shared::PaymentSource), DeletedPaymentSource(stripe_shared::DeletedPaymentSource), @@ -235,7 +235,7 @@ impl serde::Serialize for UpdateAccountBankAccountAccountHolderType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateAccountBankAccountAccountHolderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -299,7 +299,7 @@ impl serde::Serialize for UpdateAccountBankAccountAccountType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateAccountBankAccountAccountType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -452,7 +452,7 @@ impl serde::Serialize for UpdateCustomerBankAccountAccountHolderType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateCustomerBankAccountAccountHolderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -525,15 +525,18 @@ impl<'a> UpdateCustomerBankAccount<'a> { } } #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", serde(tag = "object"))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(tag = "object"))] pub enum UpdateCustomerBankAccountReturned { - #[cfg_attr(feature = "serde", serde(rename = "card"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "card"))] Card(stripe_shared::Card), - #[cfg_attr(feature = "serde", serde(rename = "bank_account"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(rename = "bank_account") + )] BankAccount(stripe_shared::BankAccount), - #[cfg_attr(feature = "serde", serde(rename = "source"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "source"))] Source(stripe_shared::Source), } diff --git a/generated/stripe_payment/src/card/requests.rs b/generated/stripe_payment/src/card/requests.rs index fca0ef7d4..64cb1186b 100644 --- a/generated/stripe_payment/src/card/requests.rs +++ b/generated/stripe_payment/src/card/requests.rs @@ -47,9 +47,9 @@ impl<'a> DeleteCustomerCard<'a> { } } #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", serde(untagged))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(untagged))] pub enum DeleteCustomerCardReturned { PaymentSource(stripe_shared::PaymentSource), DeletedPaymentSource(stripe_shared::DeletedPaymentSource), @@ -235,7 +235,7 @@ impl serde::Serialize for UpdateAccountCardAccountHolderType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateAccountCardAccountHolderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -299,7 +299,7 @@ impl serde::Serialize for UpdateAccountCardAccountType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateAccountCardAccountType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -451,7 +451,7 @@ impl serde::Serialize for UpdateCustomerCardAccountHolderType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateCustomerCardAccountHolderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -524,15 +524,18 @@ impl<'a> UpdateCustomerCard<'a> { } } #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", serde(tag = "object"))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(tag = "object"))] pub enum UpdateCustomerCardReturned { - #[cfg_attr(feature = "serde", serde(rename = "card"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "card"))] Card(stripe_shared::Card), - #[cfg_attr(feature = "serde", serde(rename = "bank_account"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(rename = "bank_account") + )] BankAccount(stripe_shared::BankAccount), - #[cfg_attr(feature = "serde", serde(rename = "source"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "source"))] Source(stripe_shared::Source), } diff --git a/generated/stripe_payment/src/payment_link/requests.rs b/generated/stripe_payment/src/payment_link/requests.rs index c83d49681..996da99d1 100644 --- a/generated/stripe_payment/src/payment_link/requests.rs +++ b/generated/stripe_payment/src/payment_link/requests.rs @@ -309,7 +309,7 @@ impl serde::Serialize for CreatePaymentLinkAfterCompletionType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentLinkAfterCompletionType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -398,7 +398,7 @@ impl serde::Serialize for CreatePaymentLinkAutomaticTaxLiabilityType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentLinkAutomaticTaxLiabilityType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -498,7 +498,7 @@ impl serde::Serialize for CreatePaymentLinkConsentCollectionPaymentMethodReuseAg serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentLinkConsentCollectionPaymentMethodReuseAgreementPosition { @@ -557,7 +557,7 @@ impl serde::Serialize for CreatePaymentLinkConsentCollectionPromotions { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentLinkConsentCollectionPromotions { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -616,7 +616,7 @@ impl serde::Serialize for CreatePaymentLinkConsentCollectionTermsOfService { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentLinkConsentCollectionTermsOfService { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -720,7 +720,7 @@ impl serde::Serialize for CreatePaymentLinkCustomFieldsLabelType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentLinkCustomFieldsLabelType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -809,7 +809,7 @@ impl serde::Serialize for CreatePaymentLinkCustomFieldsType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentLinkCustomFieldsType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -865,7 +865,7 @@ impl serde::Serialize for CreatePaymentLinkCustomerCreation { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentLinkCustomerCreation { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -985,7 +985,7 @@ impl serde::Serialize for CreatePaymentLinkInvoiceCreationInvoiceDataIssuerType serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentLinkInvoiceCreationInvoiceDataIssuerType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1070,7 +1070,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentLinkInvoiceCreationInvoiceDataRenderingOptionsAmountTaxDisplay { @@ -1194,7 +1194,7 @@ impl serde::Serialize for CreatePaymentLinkPaymentIntentDataCaptureMethod { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentLinkPaymentIntentDataCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1263,7 +1263,7 @@ impl serde::Serialize for CreatePaymentLinkPaymentIntentDataSetupFutureUsage { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentLinkPaymentIntentDataSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1326,7 +1326,7 @@ impl serde::Serialize for CreatePaymentLinkPaymentMethodCollection { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentLinkPaymentMethodCollection { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2121,7 +2121,7 @@ impl serde::Serialize for CreatePaymentLinkShippingAddressCollectionAllowedCount serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentLinkShippingAddressCollectionAllowedCountries { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2245,7 +2245,7 @@ impl serde::Serialize for CreatePaymentLinkSubscriptionDataInvoiceSettingsIssuer serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentLinkSubscriptionDataInvoiceSettingsIssuerType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2339,7 +2339,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentLinkSubscriptionDataTrialSettingsEndBehaviorMissingPaymentMethod { @@ -2527,7 +2527,7 @@ impl serde::Serialize for UpdatePaymentLinkAfterCompletionType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentLinkAfterCompletionType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2616,7 +2616,7 @@ impl serde::Serialize for UpdatePaymentLinkAutomaticTaxLiabilityType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentLinkAutomaticTaxLiabilityType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2718,7 +2718,7 @@ impl serde::Serialize for UpdatePaymentLinkCustomFieldsLabelType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentLinkCustomFieldsLabelType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2807,7 +2807,7 @@ impl serde::Serialize for UpdatePaymentLinkCustomFieldsType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentLinkCustomFieldsType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2863,7 +2863,7 @@ impl serde::Serialize for UpdatePaymentLinkCustomerCreation { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentLinkCustomerCreation { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2983,7 +2983,7 @@ impl serde::Serialize for UpdatePaymentLinkInvoiceCreationInvoiceDataIssuerType serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentLinkInvoiceCreationInvoiceDataIssuerType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3068,7 +3068,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentLinkInvoiceCreationInvoiceDataRenderingOptionsAmountTaxDisplay { @@ -3178,7 +3178,7 @@ impl serde::Serialize for UpdatePaymentLinkPaymentMethodCollection { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentLinkPaymentMethodCollection { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -3960,7 +3960,7 @@ impl serde::Serialize for UpdatePaymentLinkShippingAddressCollectionAllowedCount serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentLinkShippingAddressCollectionAllowedCountries { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4064,7 +4064,7 @@ impl serde::Serialize for UpdatePaymentLinkSubscriptionDataInvoiceSettingsIssuer serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentLinkSubscriptionDataInvoiceSettingsIssuerType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -4158,7 +4158,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentLinkSubscriptionDataTrialSettingsEndBehaviorMissingPaymentMethod { diff --git a/generated/stripe_payment/src/payment_method/requests.rs b/generated/stripe_payment/src/payment_method/requests.rs index c59cf73bc..88a3bfb90 100644 --- a/generated/stripe_payment/src/payment_method/requests.rs +++ b/generated/stripe_payment/src/payment_method/requests.rs @@ -177,7 +177,7 @@ impl serde::Serialize for ListPaymentMethodType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ListPaymentMethodType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -627,7 +627,7 @@ impl serde::Serialize for CreatePaymentMethodEpsBank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodEpsBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -695,7 +695,7 @@ impl serde::Serialize for CreatePaymentMethodFpxAccountHolderType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodFpxAccountHolderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -815,7 +815,7 @@ impl serde::Serialize for CreatePaymentMethodFpxBank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodFpxBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -927,7 +927,7 @@ impl serde::Serialize for CreatePaymentMethodIdealBank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodIdealBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1096,7 +1096,7 @@ impl serde::Serialize for CreatePaymentMethodP24Bank { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodP24Bank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1197,7 +1197,7 @@ impl serde::Serialize for CreatePaymentMethodSofortCountry { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodSofortCountry { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1352,7 +1352,7 @@ impl serde::Serialize for CreatePaymentMethodType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1430,7 +1430,7 @@ impl serde::Serialize for CreatePaymentMethodUsBankAccountAccountHolderType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodUsBankAccountAccountHolderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1488,7 +1488,7 @@ impl serde::Serialize for CreatePaymentMethodUsBankAccountAccountType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodUsBankAccountAccountType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1615,7 +1615,7 @@ impl serde::Serialize for UpdatePaymentMethodUsBankAccountAccountHolderType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodUsBankAccountAccountHolderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1673,7 +1673,7 @@ impl serde::Serialize for UpdatePaymentMethodUsBankAccountAccountType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodUsBankAccountAccountType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_payment/src/payment_method_config_resource_display_preference.rs b/generated/stripe_payment/src/payment_method_config_resource_display_preference.rs index 0f9451060..5584ddf46 100644 --- a/generated/stripe_payment/src/payment_method_config_resource_display_preference.rs +++ b/generated/stripe_payment/src/payment_method_config_resource_display_preference.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodConfigResourceDisplayPreference { /// For child configs, whether or not the account's preference will be observed. /// If `false`, the parent configuration's default is used. @@ -151,7 +151,7 @@ impl std::fmt::Debug for PaymentMethodConfigResourceDisplayPreferencePreference f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodConfigResourceDisplayPreferencePreference { fn serialize(&self, serializer: S) -> Result where @@ -180,7 +180,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(PaymentMethodConfigResourceDisplayPreferencePreference); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentMethodConfigResourceDisplayPreferencePreference { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -230,7 +230,7 @@ impl std::fmt::Debug for PaymentMethodConfigResourceDisplayPreferenceValue { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodConfigResourceDisplayPreferenceValue { fn serialize(&self, serializer: S) -> Result where @@ -257,7 +257,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodConfigResourceDisplayPreferenceValue { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_payment/src/payment_method_config_resource_payment_method_properties.rs b/generated/stripe_payment/src/payment_method_config_resource_payment_method_properties.rs index 49f09703a..c5cbe2547 100644 --- a/generated/stripe_payment/src/payment_method_config_resource_payment_method_properties.rs +++ b/generated/stripe_payment/src/payment_method_config_resource_payment_method_properties.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodConfigResourcePaymentMethodProperties { /// Whether this payment method may be offered at checkout. /// True if `display_preference` is `on` and the payment method's capability is active. diff --git a/generated/stripe_payment/src/payment_method_configuration/requests.rs b/generated/stripe_payment/src/payment_method_configuration/requests.rs index 154c9882a..e9eb5f265 100644 --- a/generated/stripe_payment/src/payment_method_configuration/requests.rs +++ b/generated/stripe_payment/src/payment_method_configuration/requests.rs @@ -298,7 +298,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationAcssDebitDisplayPrefer serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationAcssDebitDisplayPreferencePreference { @@ -383,7 +383,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationAffirmDisplayPreferenc serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationAffirmDisplayPreferencePreference { @@ -477,7 +477,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationAfterpayClearpayDisplayPreferencePreference { @@ -563,7 +563,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationAlipayDisplayPreferenc serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationAlipayDisplayPreferencePreference { @@ -648,7 +648,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationApplePayDisplayPrefere serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationApplePayDisplayPreferencePreference { @@ -736,7 +736,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationApplePayLaterDisplayPr serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationApplePayLaterDisplayPreferencePreference { @@ -820,7 +820,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationAuBecsDebitDisplayPref serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationAuBecsDebitDisplayPreferencePreference { @@ -903,7 +903,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationBacsDebitDisplayPrefer serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationBacsDebitDisplayPreferencePreference { @@ -988,7 +988,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationBancontactDisplayPrefe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationBancontactDisplayPreferencePreference { @@ -1073,7 +1073,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationBlikDisplayPreferenceP serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationBlikDisplayPreferencePreference { @@ -1161,7 +1161,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationBoletoDisplayPreferenc serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationBoletoDisplayPreferencePreference { @@ -1245,7 +1245,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationCardDisplayPreferenceP serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationCardDisplayPreferencePreference { @@ -1344,7 +1344,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationCartesBancairesDisplayPreferencePreference { @@ -1428,7 +1428,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationCashappDisplayPreferen serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationCashappDisplayPreferencePreference { @@ -1523,7 +1523,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationCustomerBalanceDisplayPreferencePreference { @@ -1608,7 +1608,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationEpsDisplayPreferencePr serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationEpsDisplayPreferencePreference { @@ -1698,7 +1698,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationFpxDisplayPreferencePr serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationFpxDisplayPreferencePreference { @@ -1789,7 +1789,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationGiropayDisplayPreferen serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationGiropayDisplayPreferencePreference { @@ -1874,7 +1874,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationGooglePayDisplayPrefer serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationGooglePayDisplayPreferencePreference { @@ -1959,7 +1959,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationGrabpayDisplayPreferen serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationGrabpayDisplayPreferencePreference { @@ -2044,7 +2044,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationIdealDisplayPreference serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationIdealDisplayPreferencePreference { @@ -2129,7 +2129,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationJcbDisplayPreferencePr serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationJcbDisplayPreferencePreference { @@ -2219,7 +2219,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationKlarnaDisplayPreferenc serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationKlarnaDisplayPreferencePreference { @@ -2303,7 +2303,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationKonbiniDisplayPreferen serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationKonbiniDisplayPreferencePreference { @@ -2387,7 +2387,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationLinkDisplayPreferenceP serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationLinkDisplayPreferencePreference { @@ -2476,7 +2476,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationOxxoDisplayPreferenceP serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationOxxoDisplayPreferencePreference { @@ -2565,7 +2565,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationP24DisplayPreferencePr serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationP24DisplayPreferencePreference { @@ -2653,7 +2653,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationPaynowDisplayPreferenc serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationPaynowDisplayPreferencePreference { @@ -2737,7 +2737,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationPaypalDisplayPreferenc serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationPaypalDisplayPreferencePreference { @@ -2821,7 +2821,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationPromptpayDisplayPrefer serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationPromptpayDisplayPreferencePreference { @@ -2905,7 +2905,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationRevolutPayDisplayPrefe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationRevolutPayDisplayPreferencePreference { @@ -2989,7 +2989,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationSepaDebitDisplayPrefer serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationSepaDebitDisplayPreferencePreference { @@ -3073,7 +3073,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationSofortDisplayPreferenc serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationSofortDisplayPreferencePreference { @@ -3162,7 +3162,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationUsBankAccountDisplayPr serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationUsBankAccountDisplayPreferencePreference { @@ -3248,7 +3248,7 @@ impl serde::Serialize for CreatePaymentMethodConfigurationWechatPayDisplayPrefer serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePaymentMethodConfigurationWechatPayDisplayPreferencePreference { @@ -3518,7 +3518,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationAcssDebitDisplayPrefer serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationAcssDebitDisplayPreferencePreference { @@ -3603,7 +3603,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationAffirmDisplayPreferenc serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationAffirmDisplayPreferencePreference { @@ -3697,7 +3697,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationAfterpayClearpayDisplayPreferencePreference { @@ -3783,7 +3783,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationAlipayDisplayPreferenc serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationAlipayDisplayPreferencePreference { @@ -3868,7 +3868,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationApplePayDisplayPrefere serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationApplePayDisplayPreferencePreference { @@ -3956,7 +3956,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationApplePayLaterDisplayPr serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationApplePayLaterDisplayPreferencePreference { @@ -4040,7 +4040,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationAuBecsDebitDisplayPref serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationAuBecsDebitDisplayPreferencePreference { @@ -4123,7 +4123,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationBacsDebitDisplayPrefer serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationBacsDebitDisplayPreferencePreference { @@ -4208,7 +4208,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationBancontactDisplayPrefe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationBancontactDisplayPreferencePreference { @@ -4293,7 +4293,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationBlikDisplayPreferenceP serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationBlikDisplayPreferencePreference { @@ -4381,7 +4381,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationBoletoDisplayPreferenc serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationBoletoDisplayPreferencePreference { @@ -4465,7 +4465,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationCardDisplayPreferenceP serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationCardDisplayPreferencePreference { @@ -4564,7 +4564,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationCartesBancairesDisplayPreferencePreference { @@ -4648,7 +4648,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationCashappDisplayPreferen serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationCashappDisplayPreferencePreference { @@ -4743,7 +4743,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationCustomerBalanceDisplayPreferencePreference { @@ -4828,7 +4828,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationEpsDisplayPreferencePr serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationEpsDisplayPreferencePreference { @@ -4918,7 +4918,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationFpxDisplayPreferencePr serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationFpxDisplayPreferencePreference { @@ -5009,7 +5009,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationGiropayDisplayPreferen serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationGiropayDisplayPreferencePreference { @@ -5094,7 +5094,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationGooglePayDisplayPrefer serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationGooglePayDisplayPreferencePreference { @@ -5179,7 +5179,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationGrabpayDisplayPreferen serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationGrabpayDisplayPreferencePreference { @@ -5264,7 +5264,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationIdealDisplayPreference serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationIdealDisplayPreferencePreference { @@ -5349,7 +5349,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationJcbDisplayPreferencePr serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationJcbDisplayPreferencePreference { @@ -5439,7 +5439,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationKlarnaDisplayPreferenc serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationKlarnaDisplayPreferencePreference { @@ -5523,7 +5523,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationKonbiniDisplayPreferen serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationKonbiniDisplayPreferencePreference { @@ -5607,7 +5607,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationLinkDisplayPreferenceP serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationLinkDisplayPreferencePreference { @@ -5696,7 +5696,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationOxxoDisplayPreferenceP serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationOxxoDisplayPreferencePreference { @@ -5785,7 +5785,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationP24DisplayPreferencePr serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationP24DisplayPreferencePreference { @@ -5873,7 +5873,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationPaynowDisplayPreferenc serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationPaynowDisplayPreferencePreference { @@ -5957,7 +5957,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationPaypalDisplayPreferenc serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationPaypalDisplayPreferencePreference { @@ -6041,7 +6041,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationPromptpayDisplayPrefer serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationPromptpayDisplayPreferencePreference { @@ -6125,7 +6125,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationRevolutPayDisplayPrefe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationRevolutPayDisplayPreferencePreference { @@ -6209,7 +6209,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationSepaDebitDisplayPrefer serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationSepaDebitDisplayPreferencePreference { @@ -6293,7 +6293,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationSofortDisplayPreferenc serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationSofortDisplayPreferencePreference { @@ -6382,7 +6382,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationUsBankAccountDisplayPr serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationUsBankAccountDisplayPreferencePreference { @@ -6468,7 +6468,7 @@ impl serde::Serialize for UpdatePaymentMethodConfigurationWechatPayDisplayPrefer serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdatePaymentMethodConfigurationWechatPayDisplayPreferencePreference { diff --git a/generated/stripe_payment/src/payment_method_configuration/types.rs b/generated/stripe_payment/src/payment_method_configuration/types.rs index 546aa5293..03bcc53a5 100644 --- a/generated/stripe_payment/src/payment_method_configuration/types.rs +++ b/generated/stripe_payment/src/payment_method_configuration/types.rs @@ -19,7 +19,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodConfiguration { pub acss_debit: Option, /// Whether the configuration can be used for new payments. @@ -368,7 +368,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodConfiguration { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_payment/src/payment_method_domain/types.rs b/generated/stripe_payment/src/payment_method_domain/types.rs index 3f1d7d9e3..48e57b196 100644 --- a/generated/stripe_payment/src/payment_method_domain/types.rs +++ b/generated/stripe_payment/src/payment_method_domain/types.rs @@ -5,7 +5,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDomain { pub apple_pay: stripe_payment::PaymentMethodDomainResourcePaymentMethodStatus, /// Time at which the object was created. Measured in seconds since the Unix epoch. @@ -153,7 +153,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodDomain { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_payment/src/payment_method_domain_resource_payment_method_status.rs b/generated/stripe_payment/src/payment_method_domain_resource_payment_method_status.rs index b00ae10d0..ec97b8993 100644 --- a/generated/stripe_payment/src/payment_method_domain_resource_payment_method_status.rs +++ b/generated/stripe_payment/src/payment_method_domain_resource_payment_method_status.rs @@ -1,7 +1,7 @@ /// Indicates the status of a specific payment method on a payment method domain. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDomainResourcePaymentMethodStatus { /// The status of the payment method on the domain. pub status: PaymentMethodDomainResourcePaymentMethodStatusStatus, @@ -136,7 +136,7 @@ impl std::fmt::Debug for PaymentMethodDomainResourcePaymentMethodStatusStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodDomainResourcePaymentMethodStatusStatus { fn serialize(&self, serializer: S) -> Result where @@ -163,7 +163,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodDomainResourcePaymentMethodStatusStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_payment/src/payment_method_domain_resource_payment_method_status_details.rs b/generated/stripe_payment/src/payment_method_domain_resource_payment_method_status_details.rs index 02a8c39b9..3eb84b502 100644 --- a/generated/stripe_payment/src/payment_method_domain_resource_payment_method_status_details.rs +++ b/generated/stripe_payment/src/payment_method_domain_resource_payment_method_status_details.rs @@ -1,7 +1,7 @@ /// Contains additional details about the status of a payment method for a specific payment method domain. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDomainResourcePaymentMethodStatusDetails { /// The error message associated with the status of the payment method on the domain. pub error_message: String, diff --git a/generated/stripe_payment/src/source/requests.rs b/generated/stripe_payment/src/source/requests.rs index 8403f0c54..302245d93 100644 --- a/generated/stripe_payment/src/source/requests.rs +++ b/generated/stripe_payment/src/source/requests.rs @@ -25,9 +25,9 @@ impl<'a> DetachSource<'a> { } } #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", serde(untagged))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(untagged))] pub enum DetachSourceReturned { PaymentSource(stripe_shared::PaymentSource), DeletedPaymentSource(stripe_shared::DeletedPaymentSource), @@ -295,7 +295,7 @@ impl serde::Serialize for CreateSourceFlow { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSourceFlow { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -424,7 +424,7 @@ impl serde::Serialize for CreateSourceMandateAcceptanceStatus { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSourceMandateAcceptanceStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -480,7 +480,7 @@ impl serde::Serialize for CreateSourceMandateAcceptanceType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSourceMandateAcceptanceType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -540,7 +540,7 @@ impl serde::Serialize for CreateSourceMandateInterval { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSourceMandateInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -605,7 +605,7 @@ impl serde::Serialize for CreateSourceMandateNotificationMethod { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSourceMandateNotificationMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -681,7 +681,7 @@ impl serde::Serialize for CreateSourceReceiverRefundAttributesMethod { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSourceReceiverRefundAttributesMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -797,7 +797,7 @@ impl serde::Serialize for CreateSourceSourceOrderItemsType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSourceSourceOrderItemsType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -852,7 +852,7 @@ impl serde::Serialize for CreateSourceUsage { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateSourceUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1017,7 +1017,7 @@ impl serde::Serialize for UpdateSourceMandateAcceptanceStatus { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSourceMandateAcceptanceStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1073,7 +1073,7 @@ impl serde::Serialize for UpdateSourceMandateAcceptanceType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSourceMandateAcceptanceType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1133,7 +1133,7 @@ impl serde::Serialize for UpdateSourceMandateInterval { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSourceMandateInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1198,7 +1198,7 @@ impl serde::Serialize for UpdateSourceMandateNotificationMethod { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSourceMandateNotificationMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1301,7 +1301,7 @@ impl serde::Serialize for UpdateSourceSourceOrderItemsType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateSourceSourceOrderItemsType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_payment/src/source_mandate_notification.rs b/generated/stripe_payment/src/source_mandate_notification.rs index 8b2dd8b80..4fada7500 100644 --- a/generated/stripe_payment/src/source_mandate_notification.rs +++ b/generated/stripe_payment/src/source_mandate_notification.rs @@ -2,7 +2,7 @@ /// a source mandate must be sent to the payer. They will trigger a webhook or /// deliver an email to the customer. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceMandateNotification { pub acss_debit: Option, /// A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the amount associated with the mandate notification. @@ -24,7 +24,7 @@ pub struct SourceMandateNotification { pub status: String, /// The type of source this mandate notification is attached to. /// Should be the source type identifier code for the payment method, such as `three_d_secure`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: String, } #[doc(hidden)] @@ -167,7 +167,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SourceMandateNotification { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_payment/src/source_mandate_notification_acss_debit_data.rs b/generated/stripe_payment/src/source_mandate_notification_acss_debit_data.rs index 4003d53d5..920a9c339 100644 --- a/generated/stripe_payment/src/source_mandate_notification_acss_debit_data.rs +++ b/generated/stripe_payment/src/source_mandate_notification_acss_debit_data.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceMandateNotificationAcssDebitData { /// The statement descriptor associate with the debit. pub statement_descriptor: Option, diff --git a/generated/stripe_payment/src/source_mandate_notification_bacs_debit_data.rs b/generated/stripe_payment/src/source_mandate_notification_bacs_debit_data.rs index 495a6f861..a925e5f47 100644 --- a/generated/stripe_payment/src/source_mandate_notification_bacs_debit_data.rs +++ b/generated/stripe_payment/src/source_mandate_notification_bacs_debit_data.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceMandateNotificationBacsDebitData { /// Last 4 digits of the account number associated with the debit. pub last4: Option, diff --git a/generated/stripe_payment/src/source_mandate_notification_sepa_debit_data.rs b/generated/stripe_payment/src/source_mandate_notification_sepa_debit_data.rs index 920d3e702..831029cce 100644 --- a/generated/stripe_payment/src/source_mandate_notification_sepa_debit_data.rs +++ b/generated/stripe_payment/src/source_mandate_notification_sepa_debit_data.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceMandateNotificationSepaDebitData { /// SEPA creditor ID. pub creditor_identifier: Option, diff --git a/generated/stripe_product/Cargo.toml b/generated/stripe_product/Cargo.toml index e1c332d44..b86996286 100644 --- a/generated/stripe_product/Cargo.toml +++ b/generated/stripe_product/Cargo.toml @@ -29,7 +29,8 @@ stripe_shared = {path = "../../generated/stripe_shared"} [features] -serde = ["stripe_types/serde","stripe_shared/serde"] +serialize = ["stripe_types/serialize","stripe_shared/serialize"] +deserialize = ["stripe_types/deserialize","stripe_shared/deserialize"] runtime-tokio-hyper = ["async-stripe/runtime-tokio-hyper"] runtime-tokio-hyper-rustls = ["async-stripe/runtime-tokio-hyper-rustls"] runtime-tokio-hyper-rustls-webpki = ["async-stripe/runtime-tokio-hyper-rustls-webpki"] diff --git a/generated/stripe_product/src/price/requests.rs b/generated/stripe_product/src/price/requests.rs index ab027be79..42a2c32cf 100644 --- a/generated/stripe_product/src/price/requests.rs +++ b/generated/stripe_product/src/price/requests.rs @@ -113,7 +113,7 @@ impl serde::Serialize for ListPriceRecurringInterval { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ListPriceRecurringInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -168,7 +168,7 @@ impl serde::Serialize for ListPriceRecurringUsageType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ListPriceRecurringUsageType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -564,7 +564,7 @@ impl serde::Serialize for CreatePriceRecurringAggregateUsage { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePriceRecurringAggregateUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -626,7 +626,7 @@ impl serde::Serialize for CreatePriceRecurringInterval { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePriceRecurringInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -685,7 +685,7 @@ impl serde::Serialize for CreatePriceRecurringUsageType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePriceRecurringUsageType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -799,7 +799,7 @@ impl serde::Serialize for CreatePriceTransformQuantityRound { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreatePriceTransformQuantityRound { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_product/src/product/requests.rs b/generated/stripe_product/src/product/requests.rs index 923650064..bf9d3bc0c 100644 --- a/generated/stripe_product/src/product/requests.rs +++ b/generated/stripe_product/src/product/requests.rs @@ -379,7 +379,7 @@ impl serde::Serialize for CreateProductDefaultPriceDataCurrencyOptionsTaxBehavio serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateProductDefaultPriceDataCurrencyOptionsTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -503,7 +503,7 @@ impl serde::Serialize for CreateProductDefaultPriceDataRecurringInterval { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateProductDefaultPriceDataRecurringInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -567,7 +567,7 @@ impl serde::Serialize for CreateProductDefaultPriceDataTaxBehavior { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateProductDefaultPriceDataTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_product/src/shipping_rate/requests.rs b/generated/stripe_product/src/shipping_rate/requests.rs index ac50c45c2..3ce01ef02 100644 --- a/generated/stripe_product/src/shipping_rate/requests.rs +++ b/generated/stripe_product/src/shipping_rate/requests.rs @@ -200,7 +200,7 @@ impl serde::Serialize for CreateShippingRateDeliveryEstimateMaximumUnit { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateShippingRateDeliveryEstimateMaximumUnit { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -280,7 +280,7 @@ impl serde::Serialize for CreateShippingRateDeliveryEstimateMinimumUnit { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateShippingRateDeliveryEstimateMinimumUnit { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/Cargo.toml b/generated/stripe_shared/Cargo.toml index 3fe55b36d..4064ed479 100644 --- a/generated/stripe_shared/Cargo.toml +++ b/generated/stripe_shared/Cargo.toml @@ -26,5 +26,6 @@ stripe_types = {path = "../../stripe_types"} [features] -serde = ["stripe_types/serde"] +serialize = ["stripe_types/serialize"] +deserialize = ["stripe_types/deserialize"] diff --git a/generated/stripe_shared/src/account.rs b/generated/stripe_shared/src/account.rs index bd20c78f9..3fc4b6814 100644 --- a/generated/stripe_shared/src/account.rs +++ b/generated/stripe_shared/src/account.rs @@ -11,7 +11,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Account { /// Business information about the account. pub business_profile: Option, @@ -53,7 +53,7 @@ pub struct Account { pub settings: Option, pub tos_acceptance: Option, /// The Stripe account type. Can be `standard`, `express`, or `custom`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: Option, } #[doc(hidden)] @@ -245,7 +245,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Account { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -349,7 +349,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(AccountBusinessType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for AccountBusinessType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -421,7 +421,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(AccountType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for AccountType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/account_annual_revenue.rs b/generated/stripe_shared/src/account_annual_revenue.rs index fc60d4784..40b626c78 100644 --- a/generated/stripe_shared/src/account_annual_revenue.rs +++ b/generated/stripe_shared/src/account_annual_revenue.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountAnnualRevenue { /// A non-negative integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). pub amount: Option, diff --git a/generated/stripe_shared/src/account_bacs_debit_payments_settings.rs b/generated/stripe_shared/src/account_bacs_debit_payments_settings.rs index 7aa9963eb..8ff6465bb 100644 --- a/generated/stripe_shared/src/account_bacs_debit_payments_settings.rs +++ b/generated/stripe_shared/src/account_bacs_debit_payments_settings.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountBacsDebitPaymentsSettings { /// The Bacs Direct Debit display name for this account. /// For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. diff --git a/generated/stripe_shared/src/account_branding_settings.rs b/generated/stripe_shared/src/account_branding_settings.rs index c47d356ea..862308d8f 100644 --- a/generated/stripe_shared/src/account_branding_settings.rs +++ b/generated/stripe_shared/src/account_branding_settings.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountBrandingSettings { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. /// Must be square and at least 128px x 128px. diff --git a/generated/stripe_shared/src/account_business_profile.rs b/generated/stripe_shared/src/account_business_profile.rs index 91b918ab7..d1b16f1c3 100644 --- a/generated/stripe_shared/src/account_business_profile.rs +++ b/generated/stripe_shared/src/account_business_profile.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountBusinessProfile { /// The applicant's gross annual revenue for its preceding fiscal year. pub annual_revenue: Option, diff --git a/generated/stripe_shared/src/account_capabilities.rs b/generated/stripe_shared/src/account_capabilities.rs index eb2211029..f1979b099 100644 --- a/generated/stripe_shared/src/account_capabilities.rs +++ b/generated/stripe_shared/src/account_capabilities.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountCapabilities { /// The status of the Canadian pre-authorized debits payments capability of the account, or whether the account can directly process Canadian pre-authorized debits charges. pub acss_debit_payments: Option, @@ -432,7 +432,7 @@ impl std::fmt::Debug for AccountCapabilitiesStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for AccountCapabilitiesStatus { fn serialize(&self, serializer: S) -> Result where @@ -456,7 +456,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(AccountCapabilitiesStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for AccountCapabilitiesStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/account_capability_future_requirements.rs b/generated/stripe_shared/src/account_capability_future_requirements.rs index dbf46106a..10ee56639 100644 --- a/generated/stripe_shared/src/account_capability_future_requirements.rs +++ b/generated/stripe_shared/src/account_capability_future_requirements.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountCapabilityFutureRequirements { /// Fields that are due and can be satisfied by providing the corresponding alternative fields instead. pub alternatives: Option>, diff --git a/generated/stripe_shared/src/account_capability_requirements.rs b/generated/stripe_shared/src/account_capability_requirements.rs index 8764d6831..cdacd0ce3 100644 --- a/generated/stripe_shared/src/account_capability_requirements.rs +++ b/generated/stripe_shared/src/account_capability_requirements.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountCapabilityRequirements { /// Fields that are due and can be satisfied by providing the corresponding alternative fields instead. pub alternatives: Option>, diff --git a/generated/stripe_shared/src/account_card_issuing_settings.rs b/generated/stripe_shared/src/account_card_issuing_settings.rs index e064cbae7..42518f333 100644 --- a/generated/stripe_shared/src/account_card_issuing_settings.rs +++ b/generated/stripe_shared/src/account_card_issuing_settings.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountCardIssuingSettings { pub tos_acceptance: Option, } diff --git a/generated/stripe_shared/src/account_card_payments_settings.rs b/generated/stripe_shared/src/account_card_payments_settings.rs index 48292debe..6c6f3e9b3 100644 --- a/generated/stripe_shared/src/account_card_payments_settings.rs +++ b/generated/stripe_shared/src/account_card_payments_settings.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountCardPaymentsSettings { pub decline_on: Option, /// The default text that appears on credit card statements when a charge is made. diff --git a/generated/stripe_shared/src/account_dashboard_settings.rs b/generated/stripe_shared/src/account_dashboard_settings.rs index 1ffc0bf34..50d723c37 100644 --- a/generated/stripe_shared/src/account_dashboard_settings.rs +++ b/generated/stripe_shared/src/account_dashboard_settings.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountDashboardSettings { /// The display name for this account. /// This is used on the Stripe Dashboard to differentiate between accounts. diff --git a/generated/stripe_shared/src/account_decline_charge_on.rs b/generated/stripe_shared/src/account_decline_charge_on.rs index 10e6bc4cb..f6615b4ab 100644 --- a/generated/stripe_shared/src/account_decline_charge_on.rs +++ b/generated/stripe_shared/src/account_decline_charge_on.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountDeclineChargeOn { /// Whether Stripe automatically declines charges with an incorrect ZIP or postal code. /// This setting only applies when a ZIP or postal code is provided and they fail bank verification. diff --git a/generated/stripe_shared/src/account_future_requirements.rs b/generated/stripe_shared/src/account_future_requirements.rs index d846ce625..200581a21 100644 --- a/generated/stripe_shared/src/account_future_requirements.rs +++ b/generated/stripe_shared/src/account_future_requirements.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountFutureRequirements { /// Fields that are due and can be satisfied by providing the corresponding alternative fields instead. pub alternatives: Option>, diff --git a/generated/stripe_shared/src/account_invoices_settings.rs b/generated/stripe_shared/src/account_invoices_settings.rs index 448be062a..42d8f49ba 100644 --- a/generated/stripe_shared/src/account_invoices_settings.rs +++ b/generated/stripe_shared/src/account_invoices_settings.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountInvoicesSettings { /// The list of default Account Tax IDs to automatically include on invoices. /// Account Tax IDs get added when an invoice is finalized. diff --git a/generated/stripe_shared/src/account_monthly_estimated_revenue.rs b/generated/stripe_shared/src/account_monthly_estimated_revenue.rs index d247ce9cf..768f24021 100644 --- a/generated/stripe_shared/src/account_monthly_estimated_revenue.rs +++ b/generated/stripe_shared/src/account_monthly_estimated_revenue.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountMonthlyEstimatedRevenue { /// A non-negative integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). pub amount: i64, diff --git a/generated/stripe_shared/src/account_payments_settings.rs b/generated/stripe_shared/src/account_payments_settings.rs index 101f3b1d0..4520954ee 100644 --- a/generated/stripe_shared/src/account_payments_settings.rs +++ b/generated/stripe_shared/src/account_payments_settings.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountPaymentsSettings { /// The default text that appears on credit card statements when a charge is made. /// This field prefixes any dynamic `statement_descriptor` specified on the charge. diff --git a/generated/stripe_shared/src/account_payout_settings.rs b/generated/stripe_shared/src/account_payout_settings.rs index e6bcac6b5..9f159373b 100644 --- a/generated/stripe_shared/src/account_payout_settings.rs +++ b/generated/stripe_shared/src/account_payout_settings.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountPayoutSettings { /// A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. /// See our [Understanding Connect Account Balances](https://stripe.com/docs/connect/account-balances) documentation for details. diff --git a/generated/stripe_shared/src/account_requirements.rs b/generated/stripe_shared/src/account_requirements.rs index 91cc7a83a..711c26bee 100644 --- a/generated/stripe_shared/src/account_requirements.rs +++ b/generated/stripe_shared/src/account_requirements.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountRequirements { /// Fields that are due and can be satisfied by providing the corresponding alternative fields instead. pub alternatives: Option>, diff --git a/generated/stripe_shared/src/account_requirements_alternative.rs b/generated/stripe_shared/src/account_requirements_alternative.rs index a13b1c8ee..1c56c0402 100644 --- a/generated/stripe_shared/src/account_requirements_alternative.rs +++ b/generated/stripe_shared/src/account_requirements_alternative.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountRequirementsAlternative { /// Fields that can be provided to satisfy all fields in `original_fields_due`. pub alternative_fields_due: Vec, diff --git a/generated/stripe_shared/src/account_requirements_error.rs b/generated/stripe_shared/src/account_requirements_error.rs index aa0cf16ae..792665fdd 100644 --- a/generated/stripe_shared/src/account_requirements_error.rs +++ b/generated/stripe_shared/src/account_requirements_error.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountRequirementsError { /// The code for the type of error. pub code: AccountRequirementsErrorCode, @@ -472,7 +472,7 @@ impl std::fmt::Debug for AccountRequirementsErrorCode { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for AccountRequirementsErrorCode { fn serialize(&self, serializer: S) -> Result where @@ -499,7 +499,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(AccountRequirementsErrorCode); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for AccountRequirementsErrorCode { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/account_sepa_debit_payments_settings.rs b/generated/stripe_shared/src/account_sepa_debit_payments_settings.rs index e57de0376..0b89cb874 100644 --- a/generated/stripe_shared/src/account_sepa_debit_payments_settings.rs +++ b/generated/stripe_shared/src/account_sepa_debit_payments_settings.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountSepaDebitPaymentsSettings { /// SEPA creditor identifier that identifies the company making the payment. pub creditor_id: Option, diff --git a/generated/stripe_shared/src/account_settings.rs b/generated/stripe_shared/src/account_settings.rs index 7056df55a..229bcafb2 100644 --- a/generated/stripe_shared/src/account_settings.rs +++ b/generated/stripe_shared/src/account_settings.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountSettings { pub bacs_debit_payments: Option, pub branding: stripe_shared::AccountBrandingSettings, diff --git a/generated/stripe_shared/src/account_terms_of_service.rs b/generated/stripe_shared/src/account_terms_of_service.rs index 375b3ca78..99f340b29 100644 --- a/generated/stripe_shared/src/account_terms_of_service.rs +++ b/generated/stripe_shared/src/account_terms_of_service.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountTermsOfService { /// The Unix timestamp marking when the account representative accepted the service agreement. pub date: Option, diff --git a/generated/stripe_shared/src/account_tos_acceptance.rs b/generated/stripe_shared/src/account_tos_acceptance.rs index 4d2474c10..74057b18b 100644 --- a/generated/stripe_shared/src/account_tos_acceptance.rs +++ b/generated/stripe_shared/src/account_tos_acceptance.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountTosAcceptance { /// The Unix timestamp marking when the account representative accepted their service agreement pub date: Option, diff --git a/generated/stripe_shared/src/account_treasury_settings.rs b/generated/stripe_shared/src/account_treasury_settings.rs index 6f23952ef..51e0628af 100644 --- a/generated/stripe_shared/src/account_treasury_settings.rs +++ b/generated/stripe_shared/src/account_treasury_settings.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountTreasurySettings { pub tos_acceptance: Option, } diff --git a/generated/stripe_shared/src/account_unification_account_controller.rs b/generated/stripe_shared/src/account_unification_account_controller.rs index fbb05b28a..9ee2c5653 100644 --- a/generated/stripe_shared/src/account_unification_account_controller.rs +++ b/generated/stripe_shared/src/account_unification_account_controller.rs @@ -1,13 +1,13 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AccountUnificationAccountController { /// `true` if the Connect application retrieving the resource controls the account and can therefore exercise [platform controls](https://stripe.com/docs/connect/platform-controls-for-standard-accounts). /// Otherwise, this field is null. pub is_controller: Option, /// The controller type. /// Can be `application`, if a Connect application controls the account, or `account`, if the account controls itself. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: AccountUnificationAccountControllerType, } #[doc(hidden)] @@ -138,7 +138,7 @@ impl std::fmt::Debug for AccountUnificationAccountControllerType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for AccountUnificationAccountControllerType { fn serialize(&self, serializer: S) -> Result where @@ -164,7 +164,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for AccountUnificationAccountControllerType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/address.rs b/generated/stripe_shared/src/address.rs index 0742b95db..c08940dbd 100644 --- a/generated/stripe_shared/src/address.rs +++ b/generated/stripe_shared/src/address.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Address { /// City, district, suburb, town, or village. pub city: Option, diff --git a/generated/stripe_shared/src/api_errors.rs b/generated/stripe_shared/src/api_errors.rs index fb87eadcb..305e8203a 100644 --- a/generated/stripe_shared/src/api_errors.rs +++ b/generated/stripe_shared/src/api_errors.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ApiErrors { /// For card errors, the ID of the failed charge. pub charge: Option, @@ -27,7 +27,7 @@ pub struct ApiErrors { pub source: Option, /// The type of error returned. /// One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: ApiErrorsType, } #[doc(hidden)] @@ -752,7 +752,7 @@ impl std::fmt::Debug for ApiErrorsCode { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ApiErrorsCode { fn serialize(&self, serializer: S) -> Result where @@ -776,7 +776,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(ApiErrorsCode); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ApiErrorsCode { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -829,7 +829,7 @@ impl std::fmt::Debug for ApiErrorsType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ApiErrorsType { fn serialize(&self, serializer: S) -> Result where @@ -853,7 +853,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(ApiErrorsType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ApiErrorsType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/api_version.rs b/generated/stripe_shared/src/api_version.rs index cf2b86bb5..97ec103b1 100644 --- a/generated/stripe_shared/src/api_version.rs +++ b/generated/stripe_shared/src/api_version.rs @@ -356,7 +356,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(ApiVersion); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ApiVersion { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/application.rs b/generated/stripe_shared/src/application.rs index 1caa9198d..a4981c90e 100644 --- a/generated/stripe_shared/src/application.rs +++ b/generated/stripe_shared/src/application.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Application { /// Unique identifier for the object. pub id: stripe_shared::ApplicationId, @@ -95,7 +95,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Application { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/application_fee.rs b/generated/stripe_shared/src/application_fee.rs index cfbafd2fc..f41da424c 100644 --- a/generated/stripe_shared/src/application_fee.rs +++ b/generated/stripe_shared/src/application_fee.rs @@ -1,6 +1,6 @@ /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ApplicationFee { /// ID of the Stripe account this fee was taken from. pub account: stripe_types::Expandable, @@ -186,7 +186,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ApplicationFee { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/application_fee_refund.rs b/generated/stripe_shared/src/application_fee_refund.rs index a9042868e..b8b6e0f0b 100644 --- a/generated/stripe_shared/src/application_fee_refund.rs +++ b/generated/stripe_shared/src/application_fee_refund.rs @@ -6,7 +6,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ApplicationFeeRefund { /// Amount, in cents (or local equivalent). pub amount: i64, @@ -148,7 +148,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ApplicationFeeRefund { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/automatic_tax.rs b/generated/stripe_shared/src/automatic_tax.rs index 04872fd57..0e5465ab3 100644 --- a/generated/stripe_shared/src/automatic_tax.rs +++ b/generated/stripe_shared/src/automatic_tax.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct AutomaticTax { /// Whether Stripe automatically computes tax on this invoice. /// Note that incompatible invoice items (invoice items with manually specified [tax rates](https://stripe.com/docs/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices. @@ -153,7 +153,7 @@ impl std::fmt::Debug for AutomaticTaxStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for AutomaticTaxStatus { fn serialize(&self, serializer: S) -> Result where @@ -177,7 +177,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(AutomaticTaxStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for AutomaticTaxStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/balance_transaction.rs b/generated/stripe_shared/src/balance_transaction.rs index 71b1f73de..e2333c058 100644 --- a/generated/stripe_shared/src/balance_transaction.rs +++ b/generated/stripe_shared/src/balance_transaction.rs @@ -5,7 +5,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BalanceTransaction { /// Gross amount of this transaction (in cents (or local equivalent)). /// A positive value represents funds charged to another party, and a negative value represents funds sent to another party. @@ -44,7 +44,7 @@ pub struct BalanceTransaction { /// Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. /// Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). /// To classify transactions for accounting purposes, consider `reporting_category` instead. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: BalanceTransactionType, } #[doc(hidden)] @@ -204,7 +204,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for BalanceTransaction { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -386,7 +386,7 @@ impl std::fmt::Debug for BalanceTransactionType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for BalanceTransactionType { fn serialize(&self, serializer: S) -> Result where @@ -411,7 +411,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(BalanceTransactionType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for BalanceTransactionType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/balance_transaction_source.rs b/generated/stripe_shared/src/balance_transaction_source.rs index 3e94a4630..f65ba139f 100644 --- a/generated/stripe_shared/src/balance_transaction_source.rs +++ b/generated/stripe_shared/src/balance_transaction_source.rs @@ -1,42 +1,72 @@ /// The resource representing a Stripe Polymorphic #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", serde(tag = "object"))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(tag = "object"))] pub enum BalanceTransactionSource { - #[cfg_attr(feature = "serde", serde(rename = "application_fee"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(rename = "application_fee") + )] ApplicationFee(stripe_shared::ApplicationFee), - #[cfg_attr(feature = "serde", serde(rename = "charge"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "charge"))] Charge(stripe_shared::Charge), - #[cfg_attr(feature = "serde", serde(rename = "connect_collection_transfer"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(rename = "connect_collection_transfer") + )] ConnectCollectionTransfer(stripe_shared::ConnectCollectionTransfer), - #[cfg_attr(feature = "serde", serde(rename = "customer_cash_balance_transaction"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(rename = "customer_cash_balance_transaction") + )] CustomerCashBalanceTransaction(stripe_shared::CustomerCashBalanceTransaction), - #[cfg_attr(feature = "serde", serde(rename = "dispute"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "dispute"))] Dispute(stripe_shared::Dispute), - #[cfg_attr(feature = "serde", serde(rename = "fee_refund"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "fee_refund"))] ApplicationFeeRefund(stripe_shared::ApplicationFeeRefund), - #[cfg_attr(feature = "serde", serde(rename = "issuing.authorization"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(rename = "issuing.authorization") + )] IssuingAuthorization(stripe_shared::IssuingAuthorization), - #[cfg_attr(feature = "serde", serde(rename = "issuing.dispute"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(rename = "issuing.dispute") + )] IssuingDispute(stripe_shared::IssuingDispute), - #[cfg_attr(feature = "serde", serde(rename = "issuing.transaction"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(rename = "issuing.transaction") + )] IssuingTransaction(stripe_shared::IssuingTransaction), - #[cfg_attr(feature = "serde", serde(rename = "payout"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "payout"))] Payout(stripe_shared::Payout), - #[cfg_attr(feature = "serde", serde(rename = "platform_tax_fee"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(rename = "platform_tax_fee") + )] PlatformTaxFee(stripe_shared::PlatformTaxFee), - #[cfg_attr(feature = "serde", serde(rename = "refund"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "refund"))] Refund(stripe_shared::Refund), - #[cfg_attr(feature = "serde", serde(rename = "reserve_transaction"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(rename = "reserve_transaction") + )] ReserveTransaction(stripe_shared::ReserveTransaction), - #[cfg_attr(feature = "serde", serde(rename = "tax_deducted_at_source"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(rename = "tax_deducted_at_source") + )] TaxDeductedAtSource(stripe_shared::TaxDeductedAtSource), - #[cfg_attr(feature = "serde", serde(rename = "topup"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "topup"))] Topup(stripe_shared::Topup), - #[cfg_attr(feature = "serde", serde(rename = "transfer"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "transfer"))] Transfer(stripe_shared::Transfer), - #[cfg_attr(feature = "serde", serde(rename = "transfer_reversal"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(rename = "transfer_reversal") + )] TransferReversal(stripe_shared::TransferReversal), } diff --git a/generated/stripe_shared/src/bank_account.rs b/generated/stripe_shared/src/bank_account.rs index fc2d5fc55..2e0acbf93 100644 --- a/generated/stripe_shared/src/bank_account.rs +++ b/generated/stripe_shared/src/bank_account.rs @@ -6,7 +6,7 @@ /// /// Related guide: [Bank debits and transfers](https://stripe.com/docs/payments/bank-debits-transfers) #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BankAccount { /// The ID of the account that the bank account is associated with. pub account: Option>, @@ -249,7 +249,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for BankAccount { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -316,7 +316,7 @@ impl std::fmt::Debug for BankAccountAvailablePayoutMethods { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for BankAccountAvailablePayoutMethods { fn serialize(&self, serializer: S) -> Result where @@ -341,7 +341,7 @@ impl miniserde::de::Visitor for crate::Place } stripe_types::impl_from_val_with_from_str!(BankAccountAvailablePayoutMethods); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for BankAccountAvailablePayoutMethods { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/billing_details.rs b/generated/stripe_shared/src/billing_details.rs index f6144c481..edf2ed15e 100644 --- a/generated/stripe_shared/src/billing_details.rs +++ b/generated/stripe_shared/src/billing_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct BillingDetails { /// Billing address. pub address: Option, diff --git a/generated/stripe_shared/src/cancellation_details.rs b/generated/stripe_shared/src/cancellation_details.rs index 5ff33e6c9..aaf193abf 100644 --- a/generated/stripe_shared/src/cancellation_details.rs +++ b/generated/stripe_shared/src/cancellation_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CancellationDetails { /// Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user. pub comment: Option, @@ -165,7 +165,7 @@ impl std::fmt::Debug for CancellationDetailsFeedback { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CancellationDetailsFeedback { fn serialize(&self, serializer: S) -> Result where @@ -189,7 +189,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(CancellationDetailsFeedback); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CancellationDetailsFeedback { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -239,7 +239,7 @@ impl std::fmt::Debug for CancellationDetailsReason { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CancellationDetailsReason { fn serialize(&self, serializer: S) -> Result where @@ -263,7 +263,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(CancellationDetailsReason); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CancellationDetailsReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/capability.rs b/generated/stripe_shared/src/capability.rs index 95c703cef..e7e70198e 100644 --- a/generated/stripe_shared/src/capability.rs +++ b/generated/stripe_shared/src/capability.rs @@ -4,7 +4,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Capability { /// The account for which the capability enables functionality. pub account: stripe_types::Expandable, @@ -141,7 +141,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Capability { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -205,7 +205,7 @@ impl std::fmt::Debug for CapabilityStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CapabilityStatus { fn serialize(&self, serializer: S) -> Result where @@ -229,7 +229,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(CapabilityStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CapabilityStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/card.rs b/generated/stripe_shared/src/card.rs index 0a22e2fe4..be0a9521d 100644 --- a/generated/stripe_shared/src/card.rs +++ b/generated/stripe_shared/src/card.rs @@ -6,7 +6,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Card { /// The account this card belongs to. /// This attribute will not be in the card object if the card belongs to a customer or recipient instead. @@ -331,7 +331,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Card { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -410,7 +410,7 @@ impl std::fmt::Debug for CardAvailablePayoutMethods { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CardAvailablePayoutMethods { fn serialize(&self, serializer: S) -> Result where @@ -434,7 +434,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(CardAvailablePayoutMethods); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CardAvailablePayoutMethods { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/card_issuing_account_terms_of_service.rs b/generated/stripe_shared/src/card_issuing_account_terms_of_service.rs index 3c865116c..c33f4bc84 100644 --- a/generated/stripe_shared/src/card_issuing_account_terms_of_service.rs +++ b/generated/stripe_shared/src/card_issuing_account_terms_of_service.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CardIssuingAccountTermsOfService { /// The Unix timestamp marking when the account representative accepted the service agreement. pub date: Option, diff --git a/generated/stripe_shared/src/card_mandate_payment_method_details.rs b/generated/stripe_shared/src/card_mandate_payment_method_details.rs index 15f6f0472..026cbd30a 100644 --- a/generated/stripe_shared/src/card_mandate_payment_method_details.rs +++ b/generated/stripe_shared/src/card_mandate_payment_method_details.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CardMandatePaymentMethodDetails {} #[doc(hidden)] pub struct CardMandatePaymentMethodDetailsBuilder {} diff --git a/generated/stripe_shared/src/cash_balance.rs b/generated/stripe_shared/src/cash_balance.rs index 585583945..870bd9684 100644 --- a/generated/stripe_shared/src/cash_balance.rs +++ b/generated/stripe_shared/src/cash_balance.rs @@ -4,7 +4,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CashBalance { /// A hash of all cash balances available to this customer. /// You cannot delete a customer with any cash balances, even if the balance is 0. @@ -121,7 +121,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CashBalance { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/charge.rs b/generated/stripe_shared/src/charge.rs index 0b402bfba..5dd599f61 100644 --- a/generated/stripe_shared/src/charge.rs +++ b/generated/stripe_shared/src/charge.rs @@ -5,7 +5,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Charge { /// Amount intended to be collected by this payment. /// A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). @@ -465,7 +465,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Charge { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -566,7 +566,7 @@ impl std::fmt::Debug for ChargeStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ChargeStatus { fn serialize(&self, serializer: S) -> Result where @@ -590,7 +590,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(ChargeStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ChargeStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/charge_fraud_details.rs b/generated/stripe_shared/src/charge_fraud_details.rs index c4ab575e2..1eda9e419 100644 --- a/generated/stripe_shared/src/charge_fraud_details.rs +++ b/generated/stripe_shared/src/charge_fraud_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ChargeFraudDetails { /// Assessments from Stripe. If set, the value is `fraudulent`. pub stripe_report: Option, diff --git a/generated/stripe_shared/src/charge_outcome.rs b/generated/stripe_shared/src/charge_outcome.rs index f05a275d3..d4028157d 100644 --- a/generated/stripe_shared/src/charge_outcome.rs +++ b/generated/stripe_shared/src/charge_outcome.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ChargeOutcome { /// Possible values are `approved_by_network`, `declined_by_network`, `not_sent_to_network`, and `reversed_after_approval`. /// The value `reversed_after_approval` indicates the payment was [blocked by Stripe](https://stripe.com/docs/declines#blocked-payments) after bank authorization, and may temporarily appear as "pending" on a cardholder's statement. @@ -28,7 +28,7 @@ pub struct ChargeOutcome { pub seller_message: Option, /// Possible values are `authorized`, `manual_review`, `issuer_declined`, `blocked`, and `invalid`. /// See [understanding declines](https://stripe.com/docs/declines) and [Radar reviews](https://stripe.com/docs/radar/reviews) for details. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: String, } #[doc(hidden)] diff --git a/generated/stripe_shared/src/charge_transfer_data.rs b/generated/stripe_shared/src/charge_transfer_data.rs index 3e7bebf6c..4504e2bb4 100644 --- a/generated/stripe_shared/src/charge_transfer_data.rs +++ b/generated/stripe_shared/src/charge_transfer_data.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ChargeTransferData { /// The amount transferred to the destination account, if specified. /// By default, the entire charge amount is transferred to the destination account. diff --git a/generated/stripe_shared/src/checkout_session_item.rs b/generated/stripe_shared/src/checkout_session_item.rs index 392d18c86..7ff876ee2 100644 --- a/generated/stripe_shared/src/checkout_session_item.rs +++ b/generated/stripe_shared/src/checkout_session_item.rs @@ -1,6 +1,6 @@ /// A line item. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CheckoutSessionItem { /// Total discount amount applied. If no discounts were applied, defaults to 0. pub amount_discount: i64, @@ -168,7 +168,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CheckoutSessionItem { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/connect_account_reference.rs b/generated/stripe_shared/src/connect_account_reference.rs index 15297b178..dcb76f046 100644 --- a/generated/stripe_shared/src/connect_account_reference.rs +++ b/generated/stripe_shared/src/connect_account_reference.rs @@ -1,11 +1,11 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ConnectAccountReference { /// The connected account being referenced when `type` is `account`. pub account: Option>, /// Type of the account referenced. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: ConnectAccountReferenceType, } #[doc(hidden)] @@ -135,7 +135,7 @@ impl std::fmt::Debug for ConnectAccountReferenceType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ConnectAccountReferenceType { fn serialize(&self, serializer: S) -> Result where @@ -159,7 +159,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(ConnectAccountReferenceType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ConnectAccountReferenceType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/connect_collection_transfer.rs b/generated/stripe_shared/src/connect_collection_transfer.rs index 9f102bb95..35fe02584 100644 --- a/generated/stripe_shared/src/connect_collection_transfer.rs +++ b/generated/stripe_shared/src/connect_collection_transfer.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ConnectCollectionTransfer { /// Amount transferred, in cents (or local equivalent). pub amount: i64, @@ -123,7 +123,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ConnectCollectionTransfer { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/coupon.rs b/generated/stripe_shared/src/coupon.rs index 65ac7a916..715337740 100644 --- a/generated/stripe_shared/src/coupon.rs +++ b/generated/stripe_shared/src/coupon.rs @@ -6,7 +6,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Coupon { /// Amount (in the `currency` specified) that will be taken off the subtotal of any invoices for this customer. pub amount_off: Option, @@ -215,7 +215,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Coupon { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -311,7 +311,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(CouponDuration); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CouponDuration { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/coupon_applies_to.rs b/generated/stripe_shared/src/coupon_applies_to.rs index 1db817a6f..a6779ded5 100644 --- a/generated/stripe_shared/src/coupon_applies_to.rs +++ b/generated/stripe_shared/src/coupon_applies_to.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CouponAppliesTo { /// A list of product IDs this coupon applies to pub products: Vec, diff --git a/generated/stripe_shared/src/coupon_currency_option.rs b/generated/stripe_shared/src/coupon_currency_option.rs index 37b0c1b70..bbbc08ce0 100644 --- a/generated/stripe_shared/src/coupon_currency_option.rs +++ b/generated/stripe_shared/src/coupon_currency_option.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CouponCurrencyOption { /// Amount (in the `currency` specified) that will be taken off the subtotal of any invoices for this customer. pub amount_off: i64, diff --git a/generated/stripe_shared/src/credit_note.rs b/generated/stripe_shared/src/credit_note.rs index 6e7f2a4a2..55579d39f 100644 --- a/generated/stripe_shared/src/credit_note.rs +++ b/generated/stripe_shared/src/credit_note.rs @@ -4,7 +4,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CreditNote { /// The integer amount in cents (or local equivalent) representing the total amount of the credit note, including tax. pub amount: i64, @@ -69,7 +69,7 @@ pub struct CreditNote { /// Type of this credit note, one of `pre_payment` or `post_payment`. /// A `pre_payment` credit note means it was issued when the invoice was open. /// A `post_payment` credit note means it was issued when the invoice was paid. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: CreditNoteType, /// The time that the credit note was voided. pub voided_at: Option, @@ -315,7 +315,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CreditNote { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -393,7 +393,7 @@ impl std::fmt::Debug for CreditNoteStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CreditNoteStatus { fn serialize(&self, serializer: S) -> Result where @@ -417,7 +417,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(CreditNoteStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreditNoteStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -466,7 +466,7 @@ impl std::fmt::Debug for CreditNoteType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CreditNoteType { fn serialize(&self, serializer: S) -> Result where @@ -490,7 +490,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(CreditNoteType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreditNoteType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -571,7 +571,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(CreditNoteReason); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreditNoteReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/credit_note_line_item.rs b/generated/stripe_shared/src/credit_note_line_item.rs index 1ef7208ee..e349c17dd 100644 --- a/generated/stripe_shared/src/credit_note_line_item.rs +++ b/generated/stripe_shared/src/credit_note_line_item.rs @@ -2,7 +2,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CreditNoteLineItem { /// The integer amount in cents (or local equivalent) representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts. pub amount: i64, @@ -28,7 +28,7 @@ pub struct CreditNoteLineItem { pub tax_rates: Vec, /// The type of the credit note line item, one of `invoice_line_item` or `custom_line_item`. /// When the type is `invoice_line_item` there is an additional `invoice_line_item` property on the resource the value of which is the id of the credited line item on the invoice. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: CreditNoteLineItemType, /// The cost of each unit of product being credited. pub unit_amount: Option, @@ -205,7 +205,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CreditNoteLineItem { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -269,7 +269,7 @@ impl std::fmt::Debug for CreditNoteLineItemType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CreditNoteLineItemType { fn serialize(&self, serializer: S) -> Result where @@ -293,7 +293,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(CreditNoteLineItemType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreditNoteLineItemType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/credit_note_tax_amount.rs b/generated/stripe_shared/src/credit_note_tax_amount.rs index 8e0f3344c..ed8abf93c 100644 --- a/generated/stripe_shared/src/credit_note_tax_amount.rs +++ b/generated/stripe_shared/src/credit_note_tax_amount.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CreditNoteTaxAmount { /// The amount, in cents (or local equivalent), of the tax. pub amount: i64, @@ -206,7 +206,7 @@ impl std::fmt::Debug for CreditNoteTaxAmountTaxabilityReason { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CreditNoteTaxAmountTaxabilityReason { fn serialize(&self, serializer: S) -> Result where @@ -233,7 +233,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CreditNoteTaxAmountTaxabilityReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/currency_option.rs b/generated/stripe_shared/src/currency_option.rs index 0691c05c4..eba162a0d 100644 --- a/generated/stripe_shared/src/currency_option.rs +++ b/generated/stripe_shared/src/currency_option.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CurrencyOption { /// When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links. pub custom_unit_amount: Option, @@ -178,7 +178,7 @@ impl std::fmt::Debug for CurrencyOptionTaxBehavior { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CurrencyOptionTaxBehavior { fn serialize(&self, serializer: S) -> Result where @@ -202,7 +202,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(CurrencyOptionTaxBehavior); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CurrencyOptionTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/custom_unit_amount.rs b/generated/stripe_shared/src/custom_unit_amount.rs index 4b1c1ee8e..51245c5de 100644 --- a/generated/stripe_shared/src/custom_unit_amount.rs +++ b/generated/stripe_shared/src/custom_unit_amount.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomUnitAmount { /// The maximum unit amount the customer can specify for this item. pub maximum: Option, diff --git a/generated/stripe_shared/src/customer.rs b/generated/stripe_shared/src/customer.rs index 7cd43e248..22d01e10d 100644 --- a/generated/stripe_shared/src/customer.rs +++ b/generated/stripe_shared/src/customer.rs @@ -5,7 +5,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Customer { /// The customer's address. pub address: Option, @@ -304,7 +304,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Customer { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -411,7 +411,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(CustomerTaxExempt); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CustomerTaxExempt { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/customer_acceptance.rs b/generated/stripe_shared/src/customer_acceptance.rs index e4371ad42..ced2d025d 100644 --- a/generated/stripe_shared/src/customer_acceptance.rs +++ b/generated/stripe_shared/src/customer_acceptance.rs @@ -1,13 +1,13 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomerAcceptance { /// The time that the customer accepts the mandate. pub accepted_at: Option, pub offline: Option, pub online: Option, /// The mandate includes the type of customer acceptance information, such as: `online` or `offline`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: CustomerAcceptanceType, } #[doc(hidden)] @@ -153,7 +153,7 @@ impl std::fmt::Debug for CustomerAcceptanceType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CustomerAcceptanceType { fn serialize(&self, serializer: S) -> Result where @@ -177,7 +177,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(CustomerAcceptanceType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CustomerAcceptanceType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/customer_balance_customer_balance_settings.rs b/generated/stripe_shared/src/customer_balance_customer_balance_settings.rs index 4e510ea21..3d62c7f95 100644 --- a/generated/stripe_shared/src/customer_balance_customer_balance_settings.rs +++ b/generated/stripe_shared/src/customer_balance_customer_balance_settings.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomerBalanceCustomerBalanceSettings { /// The configuration for how funds that land in the customer cash balance are reconciled. pub reconciliation_mode: CustomerBalanceCustomerBalanceSettingsReconciliationMode, @@ -144,7 +144,7 @@ impl std::fmt::Debug for CustomerBalanceCustomerBalanceSettingsReconciliationMod f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CustomerBalanceCustomerBalanceSettingsReconciliationMode { fn serialize(&self, serializer: S) -> Result where @@ -175,7 +175,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( CustomerBalanceCustomerBalanceSettingsReconciliationMode ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CustomerBalanceCustomerBalanceSettingsReconciliationMode { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_adjusted_for_overdraft.rs b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_adjusted_for_overdraft.rs index e26fbdf1a..b23a4011e 100644 --- a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_adjusted_for_overdraft.rs +++ b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_adjusted_for_overdraft.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomerBalanceResourceCashBalanceTransactionResourceAdjustedForOverdraft { /// The [Balance Transaction](https://stripe.com/docs/api/balance_transactions/object) that corresponds to funds taken out of your Stripe balance. pub balance_transaction: stripe_types::Expandable, diff --git a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_applied_to_payment_transaction.rs b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_applied_to_payment_transaction.rs index e91ac31a4..9af21a07e 100644 --- a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_applied_to_payment_transaction.rs +++ b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_applied_to_payment_transaction.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomerBalanceResourceCashBalanceTransactionResourceAppliedToPaymentTransaction { /// The [Payment Intent](https://stripe.com/docs/api/payment_intents/object) that funds were applied to. pub payment_intent: stripe_types::Expandable, diff --git a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction.rs b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction.rs index 69050765b..44af712b6 100644 --- a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction.rs +++ b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomerBalanceResourceCashBalanceTransactionResourceFundedTransaction { pub bank_transfer: stripe_shared::CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransfer, diff --git a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer.rs b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer.rs index cfa11fc00..63e44bd33 100644 --- a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer.rs +++ b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransfer { pub eu_bank_transfer: Option, pub gb_bank_transfer: Option, @@ -9,7 +9,7 @@ pub jp_bank_transfer: Option, /// The funding method type used to fund the customer balance. /// Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`. -#[cfg_attr(feature = "serde", serde(rename = "type"))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferType, pub us_bank_transfer: Option, @@ -182,7 +182,7 @@ impl std::fmt::Debug for CustomerBalanceResourceCashBalanceTransactionResourceFu f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferType { fn serialize(&self, serializer: S) -> Result where S: serde::Serializer { serializer.serialize_str(self.as_str()) @@ -205,7 +205,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_eu_bank_transfer.rs b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_eu_bank_transfer.rs index 41e6059e8..9bf536330 100644 --- a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_eu_bank_transfer.rs +++ b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_eu_bank_transfer.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceEuBankTransfer { /// The BIC of the bank of the sender of the funding. diff --git a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_gb_bank_transfer.rs b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_gb_bank_transfer.rs index 764d1a96b..a4cd43d2d 100644 --- a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_gb_bank_transfer.rs +++ b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_gb_bank_transfer.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceGbBankTransfer { /// The last 4 digits of the account number of the sender of the funding. diff --git a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_jp_bank_transfer.rs b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_jp_bank_transfer.rs index 26e322fd1..131c689bb 100644 --- a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_jp_bank_transfer.rs +++ b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_jp_bank_transfer.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceJpBankTransfer { /// The name of the bank of the sender of the funding. diff --git a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_us_bank_transfer.rs b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_us_bank_transfer.rs index c7e4e27d0..bdaa3cf37 100644 --- a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_us_bank_transfer.rs +++ b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_us_bank_transfer.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransfer { /// The banking network used for this funding. pub network: Option, @@ -148,7 +148,7 @@ impl std::fmt::Debug for CustomerBalanceResourceCashBalanceTransactionResourceFu f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransferNetwork { fn serialize(&self, serializer: S) -> Result where S: serde::Serializer { serializer.serialize_str(self.as_str()) @@ -169,7 +169,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransferNetwork { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_refunded_from_payment_transaction.rs b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_refunded_from_payment_transaction.rs index 22f76b4e3..17a71cf4c 100644 --- a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_refunded_from_payment_transaction.rs +++ b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_refunded_from_payment_transaction.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomerBalanceResourceCashBalanceTransactionResourceRefundedFromPaymentTransaction { /// The [Refund](https://stripe.com/docs/api/refunds/object) that moved these funds into the customer's cash balance. pub refund: stripe_types::Expandable, diff --git a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_transferred_to_balance.rs b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_transferred_to_balance.rs index c58291c36..97f2dffc3 100644 --- a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_transferred_to_balance.rs +++ b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_transferred_to_balance.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomerBalanceResourceCashBalanceTransactionResourceTransferredToBalance { /// The [Balance Transaction](https://stripe.com/docs/api/balance_transactions/object) that corresponds to funds transferred to your Stripe balance. pub balance_transaction: stripe_types::Expandable, diff --git a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_unapplied_from_payment_transaction.rs b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_unapplied_from_payment_transaction.rs index e6d9052b5..5799588ec 100644 --- a/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_unapplied_from_payment_transaction.rs +++ b/generated/stripe_shared/src/customer_balance_resource_cash_balance_transaction_resource_unapplied_from_payment_transaction.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomerBalanceResourceCashBalanceTransactionResourceUnappliedFromPaymentTransaction { /// The [Payment Intent](https://stripe.com/docs/api/payment_intents/object) that funds were unapplied from. pub payment_intent: stripe_types::Expandable, diff --git a/generated/stripe_shared/src/customer_balance_transaction.rs b/generated/stripe_shared/src/customer_balance_transaction.rs index 03702c8ee..6b8473a0a 100644 --- a/generated/stripe_shared/src/customer_balance_transaction.rs +++ b/generated/stripe_shared/src/customer_balance_transaction.rs @@ -7,7 +7,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomerBalanceTransaction { /// The amount of the transaction. /// A negative value is a credit for the customer's balance, and a positive value is a debit to the customer's `balance`. @@ -38,7 +38,7 @@ pub struct CustomerBalanceTransaction { pub metadata: Option>, /// Transaction type: `adjustment`, `applied_to_invoice`, `credit_note`, `initial`, `invoice_overpaid`, `invoice_too_large`, `invoice_too_small`, `unspent_receiver_credit`, or `unapplied_from_invoice`. /// See the [Customer Balance page](https://stripe.com/docs/billing/customer/balance#types) to learn more about transaction types. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: CustomerBalanceTransactionType, } #[doc(hidden)] @@ -186,7 +186,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CustomerBalanceTransaction { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -271,7 +271,7 @@ impl std::fmt::Debug for CustomerBalanceTransactionType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CustomerBalanceTransactionType { fn serialize(&self, serializer: S) -> Result where @@ -295,7 +295,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(CustomerBalanceTransactionType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CustomerBalanceTransactionType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/customer_cash_balance_transaction.rs b/generated/stripe_shared/src/customer_cash_balance_transaction.rs index 37b476229..d6bd31c95 100644 --- a/generated/stripe_shared/src/customer_cash_balance_transaction.rs +++ b/generated/stripe_shared/src/customer_cash_balance_transaction.rs @@ -7,7 +7,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomerCashBalanceTransaction { pub adjusted_for_overdraft: Option, pub applied_to_payment: Option, @@ -34,7 +34,7 @@ pub transferred_to_balance: Option, @@ -205,7 +205,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CustomerCashBalanceTransaction { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -290,7 +290,7 @@ impl std::fmt::Debug for CustomerCashBalanceTransactionType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CustomerCashBalanceTransactionType { fn serialize(&self, serializer: S) -> Result where @@ -315,7 +315,7 @@ impl miniserde::de::Visitor for crate::Place } stripe_types::impl_from_val_with_from_str!(CustomerCashBalanceTransactionType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CustomerCashBalanceTransactionType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/customer_tax.rs b/generated/stripe_shared/src/customer_tax.rs index c1f61157e..15f0a1414 100644 --- a/generated/stripe_shared/src/customer_tax.rs +++ b/generated/stripe_shared/src/customer_tax.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomerTax { /// Surfaces if automatic tax computation is possible given the current customer location information. pub automatic_tax: CustomerTaxAutomaticTax, @@ -153,7 +153,7 @@ impl std::fmt::Debug for CustomerTaxAutomaticTax { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CustomerTaxAutomaticTax { fn serialize(&self, serializer: S) -> Result where @@ -177,7 +177,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(CustomerTaxAutomaticTax); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CustomerTaxAutomaticTax { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/customer_tax_location.rs b/generated/stripe_shared/src/customer_tax_location.rs index 51d53fbf2..f5fe3720d 100644 --- a/generated/stripe_shared/src/customer_tax_location.rs +++ b/generated/stripe_shared/src/customer_tax_location.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct CustomerTaxLocation { /// The customer's country as identified by Stripe Tax. pub country: String, @@ -153,7 +153,7 @@ impl std::fmt::Debug for CustomerTaxLocationSource { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for CustomerTaxLocationSource { fn serialize(&self, serializer: S) -> Result where @@ -177,7 +177,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(CustomerTaxLocationSource); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CustomerTaxLocationSource { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/deleted_account.rs b/generated/stripe_shared/src/deleted_account.rs index 935201c53..5fa764946 100644 --- a/generated/stripe_shared/src/deleted_account.rs +++ b/generated/stripe_shared/src/deleted_account.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedAccount { /// Always true for a deleted object #[allow(dead_code)] @@ -96,7 +96,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for DeletedAccount { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/deleted_bank_account.rs b/generated/stripe_shared/src/deleted_bank_account.rs index eda56a0de..04c506840 100644 --- a/generated/stripe_shared/src/deleted_bank_account.rs +++ b/generated/stripe_shared/src/deleted_bank_account.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedBankAccount { /// Three-letter [ISO code for the currency](https://stripe.com/docs/payouts) paid out to the bank account. pub currency: Option, @@ -109,7 +109,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for DeletedBankAccount { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/deleted_card.rs b/generated/stripe_shared/src/deleted_card.rs index c680d8f8c..09fe6e7b5 100644 --- a/generated/stripe_shared/src/deleted_card.rs +++ b/generated/stripe_shared/src/deleted_card.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedCard { /// Three-letter [ISO code for the currency](https://stripe.com/docs/payouts) paid out to the bank account. pub currency: Option, @@ -109,7 +109,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for DeletedCard { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/deleted_coupon.rs b/generated/stripe_shared/src/deleted_coupon.rs index d9c798066..8f4166178 100644 --- a/generated/stripe_shared/src/deleted_coupon.rs +++ b/generated/stripe_shared/src/deleted_coupon.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedCoupon { /// Always true for a deleted object #[allow(dead_code)] @@ -96,7 +96,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for DeletedCoupon { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/deleted_customer.rs b/generated/stripe_shared/src/deleted_customer.rs index 0c61dfc83..7879e9a21 100644 --- a/generated/stripe_shared/src/deleted_customer.rs +++ b/generated/stripe_shared/src/deleted_customer.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedCustomer { /// Always true for a deleted object #[allow(dead_code)] @@ -96,7 +96,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for DeletedCustomer { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/deleted_discount.rs b/generated/stripe_shared/src/deleted_discount.rs index 800e9809b..a723aa3ff 100644 --- a/generated/stripe_shared/src/deleted_discount.rs +++ b/generated/stripe_shared/src/deleted_discount.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedDiscount { /// The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. /// Will not be present for subscription mode. @@ -160,7 +160,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for DeletedDiscount { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/deleted_external_account.rs b/generated/stripe_shared/src/deleted_external_account.rs index cafeb061d..87a6a8520 100644 --- a/generated/stripe_shared/src/deleted_external_account.rs +++ b/generated/stripe_shared/src/deleted_external_account.rs @@ -1,12 +1,15 @@ /// The resource representing a Stripe Polymorphic #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", serde(tag = "object"))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(tag = "object"))] pub enum DeletedExternalAccount { - #[cfg_attr(feature = "serde", serde(rename = "bank_account"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(rename = "bank_account") + )] DeletedBankAccount(stripe_shared::DeletedBankAccount), - #[cfg_attr(feature = "serde", serde(rename = "card"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "card"))] DeletedCard(stripe_shared::DeletedCard), } diff --git a/generated/stripe_shared/src/deleted_invoice.rs b/generated/stripe_shared/src/deleted_invoice.rs index b8380e33a..4a93f0c6b 100644 --- a/generated/stripe_shared/src/deleted_invoice.rs +++ b/generated/stripe_shared/src/deleted_invoice.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedInvoice { /// Always true for a deleted object #[allow(dead_code)] @@ -96,7 +96,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for DeletedInvoice { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/deleted_invoiceitem.rs b/generated/stripe_shared/src/deleted_invoiceitem.rs index d54fc4704..ff0730870 100644 --- a/generated/stripe_shared/src/deleted_invoiceitem.rs +++ b/generated/stripe_shared/src/deleted_invoiceitem.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedInvoiceitem { /// Always true for a deleted object #[allow(dead_code)] @@ -96,7 +96,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for DeletedInvoiceitem { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/deleted_payment_source.rs b/generated/stripe_shared/src/deleted_payment_source.rs index bf1c931a8..5f177ccc0 100644 --- a/generated/stripe_shared/src/deleted_payment_source.rs +++ b/generated/stripe_shared/src/deleted_payment_source.rs @@ -1,12 +1,15 @@ /// The resource representing a Stripe Polymorphic #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", serde(tag = "object"))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(tag = "object"))] pub enum DeletedPaymentSource { - #[cfg_attr(feature = "serde", serde(rename = "bank_account"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(rename = "bank_account") + )] DeletedBankAccount(stripe_shared::DeletedBankAccount), - #[cfg_attr(feature = "serde", serde(rename = "card"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "card"))] DeletedCard(stripe_shared::DeletedCard), } diff --git a/generated/stripe_shared/src/deleted_person.rs b/generated/stripe_shared/src/deleted_person.rs index 83a0c42ac..8b0245144 100644 --- a/generated/stripe_shared/src/deleted_person.rs +++ b/generated/stripe_shared/src/deleted_person.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedPerson { /// Always true for a deleted object #[allow(dead_code)] @@ -96,7 +96,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for DeletedPerson { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/deleted_plan.rs b/generated/stripe_shared/src/deleted_plan.rs index 15d137288..3f3e6c220 100644 --- a/generated/stripe_shared/src/deleted_plan.rs +++ b/generated/stripe_shared/src/deleted_plan.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedPlan { /// Always true for a deleted object #[allow(dead_code)] @@ -96,7 +96,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for DeletedPlan { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/deleted_product.rs b/generated/stripe_shared/src/deleted_product.rs index 06299694e..3e16fa231 100644 --- a/generated/stripe_shared/src/deleted_product.rs +++ b/generated/stripe_shared/src/deleted_product.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedProduct { /// Always true for a deleted object #[allow(dead_code)] @@ -96,7 +96,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for DeletedProduct { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/deleted_subscription_item.rs b/generated/stripe_shared/src/deleted_subscription_item.rs index fd690b8a9..9560368c5 100644 --- a/generated/stripe_shared/src/deleted_subscription_item.rs +++ b/generated/stripe_shared/src/deleted_subscription_item.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedSubscriptionItem { /// Always true for a deleted object #[allow(dead_code)] @@ -96,7 +96,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for DeletedSubscriptionItem { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/deleted_tax_id.rs b/generated/stripe_shared/src/deleted_tax_id.rs index dae66aa6b..7de0cdf99 100644 --- a/generated/stripe_shared/src/deleted_tax_id.rs +++ b/generated/stripe_shared/src/deleted_tax_id.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedTaxId { /// Always true for a deleted object #[allow(dead_code)] @@ -96,7 +96,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for DeletedTaxId { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/deleted_test_helpers_test_clock.rs b/generated/stripe_shared/src/deleted_test_helpers_test_clock.rs index 8c1b8fa72..a74e5c82d 100644 --- a/generated/stripe_shared/src/deleted_test_helpers_test_clock.rs +++ b/generated/stripe_shared/src/deleted_test_helpers_test_clock.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedTestHelpersTestClock { /// Always true for a deleted object #[allow(dead_code)] @@ -96,7 +96,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for DeletedTestHelpersTestClock { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/destination_details_unimplemented.rs b/generated/stripe_shared/src/destination_details_unimplemented.rs index 4af3db77d..404d284a2 100644 --- a/generated/stripe_shared/src/destination_details_unimplemented.rs +++ b/generated/stripe_shared/src/destination_details_unimplemented.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DestinationDetailsUnimplemented {} #[doc(hidden)] pub struct DestinationDetailsUnimplementedBuilder {} diff --git a/generated/stripe_shared/src/discount.rs b/generated/stripe_shared/src/discount.rs index 4239cf6cb..de10e1c87 100644 --- a/generated/stripe_shared/src/discount.rs +++ b/generated/stripe_shared/src/discount.rs @@ -5,7 +5,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Discount { /// The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. /// Will not be present for subscription mode. @@ -163,7 +163,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Discount { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/discounts_resource_discount_amount.rs b/generated/stripe_shared/src/discounts_resource_discount_amount.rs index b1f5a8de6..c6ac90b4a 100644 --- a/generated/stripe_shared/src/discounts_resource_discount_amount.rs +++ b/generated/stripe_shared/src/discounts_resource_discount_amount.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DiscountsResourceDiscountAmount { /// The amount, in cents (or local equivalent), of the discount. pub amount: i64, diff --git a/generated/stripe_shared/src/dispute.rs b/generated/stripe_shared/src/dispute.rs index ed0b698c4..78ec1701e 100644 --- a/generated/stripe_shared/src/dispute.rs +++ b/generated/stripe_shared/src/dispute.rs @@ -6,7 +6,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Dispute { /// Disputed amount. /// Usually the amount of the charge, but it can differ (usually because of currency fluctuation or because only part of the order is disputed). @@ -215,7 +215,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Dispute { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -295,7 +295,7 @@ impl std::fmt::Debug for DisputeStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for DisputeStatus { fn serialize(&self, serializer: S) -> Result where @@ -319,7 +319,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(DisputeStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for DisputeStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/dispute_evidence.rs b/generated/stripe_shared/src/dispute_evidence.rs index f7fe16f0a..46c721e5e 100644 --- a/generated/stripe_shared/src/dispute_evidence.rs +++ b/generated/stripe_shared/src/dispute_evidence.rs @@ -1,7 +1,7 @@ /// For more details see <>. #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DisputeEvidence { /// Any server or activity logs showing proof that the customer accessed or downloaded the purchased digital product. /// This information should include IP addresses, corresponding timestamps, and any detailed recorded activity. diff --git a/generated/stripe_shared/src/dispute_evidence_details.rs b/generated/stripe_shared/src/dispute_evidence_details.rs index 77fabb7b7..ff4e8c395 100644 --- a/generated/stripe_shared/src/dispute_evidence_details.rs +++ b/generated/stripe_shared/src/dispute_evidence_details.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DisputeEvidenceDetails { /// Date by which evidence must be submitted in order to successfully challenge dispute. /// Will be 0 if the customer's bank or credit card company doesn't allow a response for this particular dispute. diff --git a/generated/stripe_shared/src/dispute_payment_method_details.rs b/generated/stripe_shared/src/dispute_payment_method_details.rs index 8a46fca1a..6bc13cc00 100644 --- a/generated/stripe_shared/src/dispute_payment_method_details.rs +++ b/generated/stripe_shared/src/dispute_payment_method_details.rs @@ -1,11 +1,11 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DisputePaymentMethodDetails { /// Card specific dispute details. pub card: Option, /// Payment method type. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: DisputePaymentMethodDetailsType, } #[doc(hidden)] @@ -132,7 +132,7 @@ impl std::fmt::Debug for DisputePaymentMethodDetailsType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for DisputePaymentMethodDetailsType { fn serialize(&self, serializer: S) -> Result where @@ -157,7 +157,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(DisputePaymentMethodDetailsType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for DisputePaymentMethodDetailsType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/dispute_payment_method_details_card.rs b/generated/stripe_shared/src/dispute_payment_method_details_card.rs index ed7a63e61..4081a2725 100644 --- a/generated/stripe_shared/src/dispute_payment_method_details_card.rs +++ b/generated/stripe_shared/src/dispute_payment_method_details_card.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DisputePaymentMethodDetailsCard { /// Card brand. /// Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. diff --git a/generated/stripe_shared/src/email_sent.rs b/generated/stripe_shared/src/email_sent.rs index 1e64322d9..80b8153c0 100644 --- a/generated/stripe_shared/src/email_sent.rs +++ b/generated/stripe_shared/src/email_sent.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct EmailSent { /// The timestamp when the email was sent. pub email_sent_at: stripe_types::Timestamp, diff --git a/generated/stripe_shared/src/error.rs b/generated/stripe_shared/src/error.rs index 529d7019c..b1e6764fa 100644 --- a/generated/stripe_shared/src/error.rs +++ b/generated/stripe_shared/src/error.rs @@ -1,7 +1,7 @@ /// An error response from the Stripe API #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Error { pub error: Box, } diff --git a/generated/stripe_shared/src/event.rs b/generated/stripe_shared/src/event.rs index fa0026a3b..3cd02e5b5 100644 --- a/generated/stripe_shared/src/event.rs +++ b/generated/stripe_shared/src/event.rs @@ -31,7 +31,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Event { /// The connected account that originates the event. pub account: Option, @@ -50,7 +50,7 @@ pub struct Event { /// Information on the API request that triggers the event. pub request: Option, /// Description of the event (for example, `invoice.created` or `charge.refunded`). - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: EventType, } #[doc(hidden)] @@ -180,7 +180,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Event { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -954,7 +954,7 @@ impl std::fmt::Debug for EventType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for EventType { fn serialize(&self, serializer: S) -> Result where @@ -978,7 +978,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(EventType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for EventType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/external_account.rs b/generated/stripe_shared/src/external_account.rs index 61ef6eadb..1559a335d 100644 --- a/generated/stripe_shared/src/external_account.rs +++ b/generated/stripe_shared/src/external_account.rs @@ -1,12 +1,15 @@ /// The resource representing a Stripe Polymorphic #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", serde(tag = "object"))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(tag = "object"))] pub enum ExternalAccount { - #[cfg_attr(feature = "serde", serde(rename = "bank_account"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(rename = "bank_account") + )] BankAccount(stripe_shared::BankAccount), - #[cfg_attr(feature = "serde", serde(rename = "card"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "card"))] Card(stripe_shared::Card), } diff --git a/generated/stripe_shared/src/external_account_requirements.rs b/generated/stripe_shared/src/external_account_requirements.rs index 2413df1da..cd1696bb9 100644 --- a/generated/stripe_shared/src/external_account_requirements.rs +++ b/generated/stripe_shared/src/external_account_requirements.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ExternalAccountRequirements { /// Fields that need to be collected to keep the external account enabled. /// If not collected by `current_deadline`, these fields appear in `past_due` as well, and the account is disabled. diff --git a/generated/stripe_shared/src/fee.rs b/generated/stripe_shared/src/fee.rs index cbff78d9b..a66f3b651 100644 --- a/generated/stripe_shared/src/fee.rs +++ b/generated/stripe_shared/src/fee.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Fee { /// Amount of the fee, in cents. pub amount: i64, @@ -12,7 +12,7 @@ pub struct Fee { /// An arbitrary string attached to the object. Often useful for displaying to users. pub description: Option, /// Type of the fee, one of: `application_fee`, `stripe_fee` or `tax`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: String, } #[doc(hidden)] diff --git a/generated/stripe_shared/src/file.rs b/generated/stripe_shared/src/file.rs index 4a3f6abcc..7d1285d7a 100644 --- a/generated/stripe_shared/src/file.rs +++ b/generated/stripe_shared/src/file.rs @@ -8,7 +8,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct File { /// Time at which the object was created. Measured in seconds since the Unix epoch. pub created: stripe_types::Timestamp, @@ -27,7 +27,7 @@ pub struct File { /// A suitable title for the document. pub title: Option, /// The returned file type (for example, `csv`, `pdf`, `jpg`, or `png`). - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: Option, /// Use your live secret API key to download the file from this URL. pub url: Option, @@ -164,7 +164,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for File { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -294,7 +294,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(FilePurpose); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for FilePurpose { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/file_link.rs b/generated/stripe_shared/src/file_link.rs index 391863ac3..07892e06a 100644 --- a/generated/stripe_shared/src/file_link.rs +++ b/generated/stripe_shared/src/file_link.rs @@ -4,7 +4,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct FileLink { /// Time at which the object was created. Measured in seconds since the Unix epoch. pub created: stripe_types::Timestamp, @@ -146,7 +146,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for FileLink { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/funding_instructions.rs b/generated/stripe_shared/src/funding_instructions.rs index 7d3f5baa1..ff420ffc5 100644 --- a/generated/stripe_shared/src/funding_instructions.rs +++ b/generated/stripe_shared/src/funding_instructions.rs @@ -4,7 +4,7 @@ /// `financial_addresses` field. /// Related guide: [Customer balance funding instructions](https://stripe.com/docs/payments/customer-balance/funding-instructions). #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct FundingInstructions { pub bank_transfer: stripe_shared::FundingInstructionsBankTransfer, /// Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. @@ -120,7 +120,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for FundingInstructions { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -169,7 +169,7 @@ impl std::fmt::Debug for FundingInstructionsFundingType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for FundingInstructionsFundingType { fn serialize(&self, serializer: S) -> Result where @@ -193,7 +193,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(FundingInstructionsFundingType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for FundingInstructionsFundingType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/funding_instructions_bank_transfer.rs b/generated/stripe_shared/src/funding_instructions_bank_transfer.rs index e9e44661a..1dddb8b78 100644 --- a/generated/stripe_shared/src/funding_instructions_bank_transfer.rs +++ b/generated/stripe_shared/src/funding_instructions_bank_transfer.rs @@ -1,13 +1,13 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct FundingInstructionsBankTransfer { /// The country of the bank account to fund pub country: String, /// A list of financial addresses that can be used to fund a particular balance pub financial_addresses: Vec, /// The bank_transfer type - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: FundingInstructionsBankTransferType, } #[doc(hidden)] @@ -151,7 +151,7 @@ impl std::fmt::Debug for FundingInstructionsBankTransferType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for FundingInstructionsBankTransferType { fn serialize(&self, serializer: S) -> Result where @@ -176,7 +176,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for FundingInstructionsBankTransferType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/funding_instructions_bank_transfer_aba_record.rs b/generated/stripe_shared/src/funding_instructions_bank_transfer_aba_record.rs index e879e04a8..7902785f2 100644 --- a/generated/stripe_shared/src/funding_instructions_bank_transfer_aba_record.rs +++ b/generated/stripe_shared/src/funding_instructions_bank_transfer_aba_record.rs @@ -1,7 +1,7 @@ /// ABA Records contain U.S. bank account details per the ABA format. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct FundingInstructionsBankTransferAbaRecord { /// The ABA account number pub account_number: String, diff --git a/generated/stripe_shared/src/funding_instructions_bank_transfer_financial_address.rs b/generated/stripe_shared/src/funding_instructions_bank_transfer_financial_address.rs index c4041fab5..7f37fc6f4 100644 --- a/generated/stripe_shared/src/funding_instructions_bank_transfer_financial_address.rs +++ b/generated/stripe_shared/src/funding_instructions_bank_transfer_financial_address.rs @@ -1,7 +1,7 @@ /// FinancialAddresses contain identifying information that resolves to a FinancialAccount. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct FundingInstructionsBankTransferFinancialAddress { pub aba: Option, pub iban: Option, @@ -12,7 +12,7 @@ pub struct FundingInstructionsBankTransferFinancialAddress { Option>, pub swift: Option, /// The type of financial address - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: FundingInstructionsBankTransferFinancialAddressType, pub zengin: Option, } @@ -200,7 +200,7 @@ impl std::fmt::Debug for FundingInstructionsBankTransferFinancialAddressSupporte f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for FundingInstructionsBankTransferFinancialAddressSupportedNetworks { fn serialize(&self, serializer: S) -> Result where @@ -231,7 +231,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( FundingInstructionsBankTransferFinancialAddressSupportedNetworks ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for FundingInstructionsBankTransferFinancialAddressSupportedNetworks { @@ -291,7 +291,7 @@ impl std::fmt::Debug for FundingInstructionsBankTransferFinancialAddressType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for FundingInstructionsBankTransferFinancialAddressType { fn serialize(&self, serializer: S) -> Result where @@ -318,7 +318,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for FundingInstructionsBankTransferFinancialAddressType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/funding_instructions_bank_transfer_iban_record.rs b/generated/stripe_shared/src/funding_instructions_bank_transfer_iban_record.rs index b9deea383..192bb5c8c 100644 --- a/generated/stripe_shared/src/funding_instructions_bank_transfer_iban_record.rs +++ b/generated/stripe_shared/src/funding_instructions_bank_transfer_iban_record.rs @@ -1,7 +1,7 @@ /// Iban Records contain E.U. bank account details per the SEPA format. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct FundingInstructionsBankTransferIbanRecord { /// The name of the person or business that owns the bank account pub account_holder_name: String, diff --git a/generated/stripe_shared/src/funding_instructions_bank_transfer_sort_code_record.rs b/generated/stripe_shared/src/funding_instructions_bank_transfer_sort_code_record.rs index 19a4a068c..4185f8eb1 100644 --- a/generated/stripe_shared/src/funding_instructions_bank_transfer_sort_code_record.rs +++ b/generated/stripe_shared/src/funding_instructions_bank_transfer_sort_code_record.rs @@ -1,7 +1,7 @@ /// Sort Code Records contain U.K. bank account details per the sort code format. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct FundingInstructionsBankTransferSortCodeRecord { /// The name of the person or business that owns the bank account pub account_holder_name: String, diff --git a/generated/stripe_shared/src/funding_instructions_bank_transfer_spei_record.rs b/generated/stripe_shared/src/funding_instructions_bank_transfer_spei_record.rs index b2645ef36..a14f1dcd2 100644 --- a/generated/stripe_shared/src/funding_instructions_bank_transfer_spei_record.rs +++ b/generated/stripe_shared/src/funding_instructions_bank_transfer_spei_record.rs @@ -1,7 +1,7 @@ /// SPEI Records contain Mexico bank account details per the SPEI format. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct FundingInstructionsBankTransferSpeiRecord { /// The three-digit bank code pub bank_code: String, diff --git a/generated/stripe_shared/src/funding_instructions_bank_transfer_swift_record.rs b/generated/stripe_shared/src/funding_instructions_bank_transfer_swift_record.rs index bee556d13..76b2f048e 100644 --- a/generated/stripe_shared/src/funding_instructions_bank_transfer_swift_record.rs +++ b/generated/stripe_shared/src/funding_instructions_bank_transfer_swift_record.rs @@ -1,7 +1,7 @@ /// SWIFT Records contain U.S. bank account details per the SWIFT format. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct FundingInstructionsBankTransferSwiftRecord { /// The account number pub account_number: String, diff --git a/generated/stripe_shared/src/funding_instructions_bank_transfer_zengin_record.rs b/generated/stripe_shared/src/funding_instructions_bank_transfer_zengin_record.rs index c9c70bde2..d2c198965 100644 --- a/generated/stripe_shared/src/funding_instructions_bank_transfer_zengin_record.rs +++ b/generated/stripe_shared/src/funding_instructions_bank_transfer_zengin_record.rs @@ -1,7 +1,7 @@ /// Zengin Records contain Japan bank account details per the Zengin format. #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct FundingInstructionsBankTransferZenginRecord { /// The account holder name pub account_holder_name: Option, diff --git a/generated/stripe_shared/src/invoice.rs b/generated/stripe_shared/src/invoice.rs index e446e1b85..b4f357646 100644 --- a/generated/stripe_shared/src/invoice.rs +++ b/generated/stripe_shared/src/invoice.rs @@ -33,7 +33,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Invoice { /// The country of the business associated with this invoice, most often the business creating the invoice. pub account_country: Option, @@ -797,7 +797,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Invoice { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -963,7 +963,7 @@ impl std::fmt::Debug for InvoiceBillingReason { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for InvoiceBillingReason { fn serialize(&self, serializer: S) -> Result where @@ -987,7 +987,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(InvoiceBillingReason); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for InvoiceBillingReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1039,7 +1039,7 @@ impl std::fmt::Debug for InvoiceCustomerTaxExempt { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for InvoiceCustomerTaxExempt { fn serialize(&self, serializer: S) -> Result where @@ -1063,7 +1063,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(InvoiceCustomerTaxExempt); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for InvoiceCustomerTaxExempt { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1139,7 +1139,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(InvoiceCollectionMethod); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for InvoiceCollectionMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1217,7 +1217,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(InvoiceStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for InvoiceStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/invoice_installments_card.rs b/generated/stripe_shared/src/invoice_installments_card.rs index 55b99a231..e8826c9e7 100644 --- a/generated/stripe_shared/src/invoice_installments_card.rs +++ b/generated/stripe_shared/src/invoice_installments_card.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoiceInstallmentsCard { /// Whether Installments are enabled for this Invoice. pub enabled: Option, diff --git a/generated/stripe_shared/src/invoice_item.rs b/generated/stripe_shared/src/invoice_item.rs index b2f02fd11..710afca87 100644 --- a/generated/stripe_shared/src/invoice_item.rs +++ b/generated/stripe_shared/src/invoice_item.rs @@ -16,7 +16,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoiceItem { /// Amount (in the `currency` specified) of the invoice item. /// This should always be equal to `unit_amount * quantity`. @@ -266,7 +266,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for InvoiceItem { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/invoice_item_threshold_reason.rs b/generated/stripe_shared/src/invoice_item_threshold_reason.rs index 8eaf04ada..343b491fe 100644 --- a/generated/stripe_shared/src/invoice_item_threshold_reason.rs +++ b/generated/stripe_shared/src/invoice_item_threshold_reason.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoiceItemThresholdReason { /// The IDs of the line items that triggered the threshold invoice. pub line_item_ids: Vec, diff --git a/generated/stripe_shared/src/invoice_line_item.rs b/generated/stripe_shared/src/invoice_line_item.rs index c9808a61e..a4dface2c 100644 --- a/generated/stripe_shared/src/invoice_line_item.rs +++ b/generated/stripe_shared/src/invoice_line_item.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoiceLineItem { /// The amount, in cents (or local equivalent). pub amount: i64, @@ -49,7 +49,7 @@ pub struct InvoiceLineItem { /// The tax rates which apply to the line item. pub tax_rates: Option>, /// A string identifying the type of the source of this line item, either an `invoiceitem` or a `subscription`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: InvoiceLineItemType, /// The amount in cents (or local equivalent) representing the unit amount for this line item, excluding all tax and discounts. pub unit_amount_excluding_tax: Option, @@ -260,7 +260,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for InvoiceLineItem { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -331,7 +331,7 @@ impl std::fmt::Debug for InvoiceLineItemType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for InvoiceLineItemType { fn serialize(&self, serializer: S) -> Result where @@ -355,7 +355,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(InvoiceLineItemType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for InvoiceLineItemType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/invoice_line_item_period.rs b/generated/stripe_shared/src/invoice_line_item_period.rs index ebba62f37..0f49c80db 100644 --- a/generated/stripe_shared/src/invoice_line_item_period.rs +++ b/generated/stripe_shared/src/invoice_line_item_period.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoiceLineItemPeriod { /// The end of the period, which must be greater than or equal to the start. This value is inclusive. pub end: stripe_types::Timestamp, diff --git a/generated/stripe_shared/src/invoice_mandate_options_card.rs b/generated/stripe_shared/src/invoice_mandate_options_card.rs index 9eb9c7b35..9bffad298 100644 --- a/generated/stripe_shared/src/invoice_mandate_options_card.rs +++ b/generated/stripe_shared/src/invoice_mandate_options_card.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoiceMandateOptionsCard { /// Amount to be charged for future payments. pub amount: Option, @@ -151,7 +151,7 @@ impl std::fmt::Debug for InvoiceMandateOptionsCardAmountType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for InvoiceMandateOptionsCardAmountType { fn serialize(&self, serializer: S) -> Result where @@ -176,7 +176,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for InvoiceMandateOptionsCardAmountType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/invoice_payment_method_options_acss_debit.rs b/generated/stripe_shared/src/invoice_payment_method_options_acss_debit.rs index acf5f7860..8be2e3f2f 100644 --- a/generated/stripe_shared/src/invoice_payment_method_options_acss_debit.rs +++ b/generated/stripe_shared/src/invoice_payment_method_options_acss_debit.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoicePaymentMethodOptionsAcssDebit { pub mandate_options: Option, /// Bank account verification method. @@ -145,7 +145,7 @@ impl std::fmt::Debug for InvoicePaymentMethodOptionsAcssDebitVerificationMethod f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for InvoicePaymentMethodOptionsAcssDebitVerificationMethod { fn serialize(&self, serializer: S) -> Result where @@ -174,7 +174,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(InvoicePaymentMethodOptionsAcssDebitVerificationMethod); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for InvoicePaymentMethodOptionsAcssDebitVerificationMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/invoice_payment_method_options_acss_debit_mandate_options.rs b/generated/stripe_shared/src/invoice_payment_method_options_acss_debit_mandate_options.rs index ced7c1d98..7f74f1859 100644 --- a/generated/stripe_shared/src/invoice_payment_method_options_acss_debit_mandate_options.rs +++ b/generated/stripe_shared/src/invoice_payment_method_options_acss_debit_mandate_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoicePaymentMethodOptionsAcssDebitMandateOptions { /// Transaction type of the mandate. pub transaction_type: Option, @@ -130,7 +130,7 @@ impl std::fmt::Debug for InvoicePaymentMethodOptionsAcssDebitMandateOptionsTrans f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for InvoicePaymentMethodOptionsAcssDebitMandateOptionsTransactionType { fn serialize(&self, serializer: S) -> Result where @@ -161,7 +161,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( InvoicePaymentMethodOptionsAcssDebitMandateOptionsTransactionType ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for InvoicePaymentMethodOptionsAcssDebitMandateOptionsTransactionType { diff --git a/generated/stripe_shared/src/invoice_payment_method_options_bancontact.rs b/generated/stripe_shared/src/invoice_payment_method_options_bancontact.rs index abcdd5f13..a6712b5f8 100644 --- a/generated/stripe_shared/src/invoice_payment_method_options_bancontact.rs +++ b/generated/stripe_shared/src/invoice_payment_method_options_bancontact.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoicePaymentMethodOptionsBancontact { /// Preferred language of the Bancontact authorization page that the customer is redirected to. pub preferred_language: InvoicePaymentMethodOptionsBancontactPreferredLanguage, @@ -137,7 +137,7 @@ impl std::fmt::Debug for InvoicePaymentMethodOptionsBancontactPreferredLanguage f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for InvoicePaymentMethodOptionsBancontactPreferredLanguage { fn serialize(&self, serializer: S) -> Result where @@ -166,7 +166,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(InvoicePaymentMethodOptionsBancontactPreferredLanguage); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for InvoicePaymentMethodOptionsBancontactPreferredLanguage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/invoice_payment_method_options_card.rs b/generated/stripe_shared/src/invoice_payment_method_options_card.rs index 0c2d04295..849b86907 100644 --- a/generated/stripe_shared/src/invoice_payment_method_options_card.rs +++ b/generated/stripe_shared/src/invoice_payment_method_options_card.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoicePaymentMethodOptionsCard { pub installments: Option, /// We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). @@ -148,7 +148,7 @@ impl std::fmt::Debug for InvoicePaymentMethodOptionsCardRequestThreeDSecure { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for InvoicePaymentMethodOptionsCardRequestThreeDSecure { fn serialize(&self, serializer: S) -> Result where @@ -175,7 +175,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for InvoicePaymentMethodOptionsCardRequestThreeDSecure { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/invoice_payment_method_options_customer_balance.rs b/generated/stripe_shared/src/invoice_payment_method_options_customer_balance.rs index 7b9ddbfad..1b5dd1ea4 100644 --- a/generated/stripe_shared/src/invoice_payment_method_options_customer_balance.rs +++ b/generated/stripe_shared/src/invoice_payment_method_options_customer_balance.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoicePaymentMethodOptionsCustomerBalance { pub bank_transfer: Option, @@ -137,7 +137,7 @@ impl std::fmt::Debug for InvoicePaymentMethodOptionsCustomerBalanceFundingType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for InvoicePaymentMethodOptionsCustomerBalanceFundingType { fn serialize(&self, serializer: S) -> Result where @@ -166,7 +166,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(InvoicePaymentMethodOptionsCustomerBalanceFundingType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for InvoicePaymentMethodOptionsCustomerBalanceFundingType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/invoice_payment_method_options_customer_balance_bank_transfer.rs b/generated/stripe_shared/src/invoice_payment_method_options_customer_balance_bank_transfer.rs index 0f1290080..901d0bce2 100644 --- a/generated/stripe_shared/src/invoice_payment_method_options_customer_balance_bank_transfer.rs +++ b/generated/stripe_shared/src/invoice_payment_method_options_customer_balance_bank_transfer.rs @@ -1,12 +1,12 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoicePaymentMethodOptionsCustomerBalanceBankTransfer { pub eu_bank_transfer: Option, /// The bank transfer type that can be used for funding. /// Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: Option, } #[doc(hidden)] diff --git a/generated/stripe_shared/src/invoice_payment_method_options_customer_balance_bank_transfer_eu_bank_transfer.rs b/generated/stripe_shared/src/invoice_payment_method_options_customer_balance_bank_transfer_eu_bank_transfer.rs index b8563f694..3e803cdae 100644 --- a/generated/stripe_shared/src/invoice_payment_method_options_customer_balance_bank_transfer_eu_bank_transfer.rs +++ b/generated/stripe_shared/src/invoice_payment_method_options_customer_balance_bank_transfer_eu_bank_transfer.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoicePaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer { /// The desired country code of the bank account information. /// Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. @@ -149,7 +149,7 @@ impl std::fmt::Debug f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for InvoicePaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferCountry { @@ -186,7 +186,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( InvoicePaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferCountry ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for InvoicePaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferCountry { diff --git a/generated/stripe_shared/src/invoice_payment_method_options_konbini.rs b/generated/stripe_shared/src/invoice_payment_method_options_konbini.rs index b904b12fb..636e7e265 100644 --- a/generated/stripe_shared/src/invoice_payment_method_options_konbini.rs +++ b/generated/stripe_shared/src/invoice_payment_method_options_konbini.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoicePaymentMethodOptionsKonbini {} #[doc(hidden)] pub struct InvoicePaymentMethodOptionsKonbiniBuilder {} diff --git a/generated/stripe_shared/src/invoice_payment_method_options_us_bank_account.rs b/generated/stripe_shared/src/invoice_payment_method_options_us_bank_account.rs index a1d2d4bd7..ab5f039c5 100644 --- a/generated/stripe_shared/src/invoice_payment_method_options_us_bank_account.rs +++ b/generated/stripe_shared/src/invoice_payment_method_options_us_bank_account.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoicePaymentMethodOptionsUsBankAccount { pub financial_connections: Option, @@ -148,7 +148,7 @@ impl std::fmt::Debug for InvoicePaymentMethodOptionsUsBankAccountVerificationMet f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for InvoicePaymentMethodOptionsUsBankAccountVerificationMethod { fn serialize(&self, serializer: S) -> Result where @@ -179,7 +179,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( InvoicePaymentMethodOptionsUsBankAccountVerificationMethod ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for InvoicePaymentMethodOptionsUsBankAccountVerificationMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/invoice_payment_method_options_us_bank_account_linked_account_options.rs b/generated/stripe_shared/src/invoice_payment_method_options_us_bank_account_linked_account_options.rs index 973d1ecef..37d07736d 100644 --- a/generated/stripe_shared/src/invoice_payment_method_options_us_bank_account_linked_account_options.rs +++ b/generated/stripe_shared/src/invoice_payment_method_options_us_bank_account_linked_account_options.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptions { /// The list of permissions to request. The `payment_method` permission must be included. pub permissions: @@ -146,7 +146,7 @@ impl std::fmt::Debug for InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOp f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsPermissions { fn serialize(&self, serializer: S) -> Result where @@ -179,7 +179,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsPermissions ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsPermissions { @@ -227,7 +227,7 @@ impl std::fmt::Debug for InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOp f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsPrefetch { fn serialize(&self, serializer: S) -> Result where @@ -260,7 +260,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsPrefetch ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsPrefetch { diff --git a/generated/stripe_shared/src/invoice_rendering_pdf.rs b/generated/stripe_shared/src/invoice_rendering_pdf.rs index d2cd3db7e..ea706d9e2 100644 --- a/generated/stripe_shared/src/invoice_rendering_pdf.rs +++ b/generated/stripe_shared/src/invoice_rendering_pdf.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoiceRenderingPdf { /// Page size of invoice pdf. /// Options include a4, letter, and auto. @@ -136,7 +136,7 @@ impl std::fmt::Debug for InvoiceRenderingPdfPageSize { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for InvoiceRenderingPdfPageSize { fn serialize(&self, serializer: S) -> Result where @@ -160,7 +160,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(InvoiceRenderingPdfPageSize); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for InvoiceRenderingPdfPageSize { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/invoice_setting_custom_field.rs b/generated/stripe_shared/src/invoice_setting_custom_field.rs index 79bb643b1..c4358c534 100644 --- a/generated/stripe_shared/src/invoice_setting_custom_field.rs +++ b/generated/stripe_shared/src/invoice_setting_custom_field.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoiceSettingCustomField { /// The name of the custom field. pub name: String, diff --git a/generated/stripe_shared/src/invoice_setting_customer_setting.rs b/generated/stripe_shared/src/invoice_setting_customer_setting.rs index aaa83d490..c23118414 100644 --- a/generated/stripe_shared/src/invoice_setting_customer_setting.rs +++ b/generated/stripe_shared/src/invoice_setting_customer_setting.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoiceSettingCustomerSetting { /// Default custom fields to be displayed on invoices for this customer. pub custom_fields: Option>, diff --git a/generated/stripe_shared/src/invoice_setting_quote_setting.rs b/generated/stripe_shared/src/invoice_setting_quote_setting.rs index 43b929a1c..1d8b244cc 100644 --- a/generated/stripe_shared/src/invoice_setting_quote_setting.rs +++ b/generated/stripe_shared/src/invoice_setting_quote_setting.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoiceSettingQuoteSetting { /// Number of days within which a customer must pay invoices generated by this quote. /// This value will be `null` for quotes where `collection_method=charge_automatically`. diff --git a/generated/stripe_shared/src/invoice_setting_rendering_options.rs b/generated/stripe_shared/src/invoice_setting_rendering_options.rs index 506015c63..2fa3430d2 100644 --- a/generated/stripe_shared/src/invoice_setting_rendering_options.rs +++ b/generated/stripe_shared/src/invoice_setting_rendering_options.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoiceSettingRenderingOptions { /// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. pub amount_tax_display: Option, diff --git a/generated/stripe_shared/src/invoice_setting_subscription_schedule_phase_setting.rs b/generated/stripe_shared/src/invoice_setting_subscription_schedule_phase_setting.rs index 7938c86bc..ac5142c36 100644 --- a/generated/stripe_shared/src/invoice_setting_subscription_schedule_phase_setting.rs +++ b/generated/stripe_shared/src/invoice_setting_subscription_schedule_phase_setting.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoiceSettingSubscriptionSchedulePhaseSetting { /// The account tax IDs associated with this phase of the subscription schedule. /// Will be set on invoices generated by this phase of the subscription schedule. diff --git a/generated/stripe_shared/src/invoice_setting_subscription_schedule_setting.rs b/generated/stripe_shared/src/invoice_setting_subscription_schedule_setting.rs index ed709f75f..835a29460 100644 --- a/generated/stripe_shared/src/invoice_setting_subscription_schedule_setting.rs +++ b/generated/stripe_shared/src/invoice_setting_subscription_schedule_setting.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoiceSettingSubscriptionScheduleSetting { /// The account tax IDs associated with the subscription schedule. /// Will be set on invoices generated by the subscription schedule. diff --git a/generated/stripe_shared/src/invoice_tax_amount.rs b/generated/stripe_shared/src/invoice_tax_amount.rs index d5be5c554..a90559889 100644 --- a/generated/stripe_shared/src/invoice_tax_amount.rs +++ b/generated/stripe_shared/src/invoice_tax_amount.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoiceTaxAmount { /// The amount, in cents (or local equivalent), of the tax. pub amount: i64, @@ -206,7 +206,7 @@ impl std::fmt::Debug for InvoiceTaxAmountTaxabilityReason { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for InvoiceTaxAmountTaxabilityReason { fn serialize(&self, serializer: S) -> Result where @@ -233,7 +233,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(InvoiceTaxAmountTaxabilityReason); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for InvoiceTaxAmountTaxabilityReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/invoice_threshold_reason.rs b/generated/stripe_shared/src/invoice_threshold_reason.rs index d9e74da42..1ddcb65a8 100644 --- a/generated/stripe_shared/src/invoice_threshold_reason.rs +++ b/generated/stripe_shared/src/invoice_threshold_reason.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoiceThresholdReason { /// The total invoice amount threshold boundary if it triggered the threshold invoice. pub amount_gte: Option, diff --git a/generated/stripe_shared/src/invoice_transfer_data.rs b/generated/stripe_shared/src/invoice_transfer_data.rs index 3ece8d04c..c7525459f 100644 --- a/generated/stripe_shared/src/invoice_transfer_data.rs +++ b/generated/stripe_shared/src/invoice_transfer_data.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoiceTransferData { /// The amount in cents (or local equivalent) that will be transferred to the destination account when the invoice is paid. /// By default, the entire amount is transferred to the destination. diff --git a/generated/stripe_shared/src/invoices_from_invoice.rs b/generated/stripe_shared/src/invoices_from_invoice.rs index 8403304c8..e025654a0 100644 --- a/generated/stripe_shared/src/invoices_from_invoice.rs +++ b/generated/stripe_shared/src/invoices_from_invoice.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoicesFromInvoice { /// The relation between this invoice and the cloned invoice pub action: String, diff --git a/generated/stripe_shared/src/invoices_invoice_rendering.rs b/generated/stripe_shared/src/invoices_invoice_rendering.rs index 8e3300c26..4bd0d8002 100644 --- a/generated/stripe_shared/src/invoices_invoice_rendering.rs +++ b/generated/stripe_shared/src/invoices_invoice_rendering.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoicesInvoiceRendering { /// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. pub amount_tax_display: Option, diff --git a/generated/stripe_shared/src/invoices_payment_method_options.rs b/generated/stripe_shared/src/invoices_payment_method_options.rs index abbe24747..745e08505 100644 --- a/generated/stripe_shared/src/invoices_payment_method_options.rs +++ b/generated/stripe_shared/src/invoices_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoicesPaymentMethodOptions { /// If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent. pub acss_debit: Option, diff --git a/generated/stripe_shared/src/invoices_payment_settings.rs b/generated/stripe_shared/src/invoices_payment_settings.rs index 3f8a668eb..6ba626a62 100644 --- a/generated/stripe_shared/src/invoices_payment_settings.rs +++ b/generated/stripe_shared/src/invoices_payment_settings.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoicesPaymentSettings { /// ID of the mandate to be used for this invoice. /// It must correspond to the payment method used to pay the invoice, including the invoice's default_payment_method or default_source, if set. @@ -232,7 +232,7 @@ impl std::fmt::Debug for InvoicesPaymentSettingsPaymentMethodTypes { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for InvoicesPaymentSettingsPaymentMethodTypes { fn serialize(&self, serializer: S) -> Result where @@ -259,7 +259,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for InvoicesPaymentSettingsPaymentMethodTypes { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/invoices_resource_invoice_tax_id.rs b/generated/stripe_shared/src/invoices_resource_invoice_tax_id.rs index c9ae9f6ed..40fa5dd65 100644 --- a/generated/stripe_shared/src/invoices_resource_invoice_tax_id.rs +++ b/generated/stripe_shared/src/invoices_resource_invoice_tax_id.rs @@ -1,9 +1,9 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoicesResourceInvoiceTaxId { /// The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: InvoicesResourceInvoiceTaxIdType, /// The value of the tax ID. pub value: Option, @@ -330,7 +330,7 @@ impl std::fmt::Debug for InvoicesResourceInvoiceTaxIdType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for InvoicesResourceInvoiceTaxIdType { fn serialize(&self, serializer: S) -> Result where @@ -355,7 +355,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(InvoicesResourceInvoiceTaxIdType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for InvoicesResourceInvoiceTaxIdType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/invoices_resource_line_items_credited_items.rs b/generated/stripe_shared/src/invoices_resource_line_items_credited_items.rs index 12bc3bedf..1e0f73011 100644 --- a/generated/stripe_shared/src/invoices_resource_line_items_credited_items.rs +++ b/generated/stripe_shared/src/invoices_resource_line_items_credited_items.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoicesResourceLineItemsCreditedItems { /// Invoice containing the credited invoice line items pub invoice: String, diff --git a/generated/stripe_shared/src/invoices_resource_line_items_proration_details.rs b/generated/stripe_shared/src/invoices_resource_line_items_proration_details.rs index cfe85fe60..38f7f1e05 100644 --- a/generated/stripe_shared/src/invoices_resource_line_items_proration_details.rs +++ b/generated/stripe_shared/src/invoices_resource_line_items_proration_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoicesResourceLineItemsProrationDetails { /// For a credit proration `line_item`, the original debit line_items to which the credit proration applies. pub credited_items: Option, diff --git a/generated/stripe_shared/src/invoices_shipping_cost.rs b/generated/stripe_shared/src/invoices_shipping_cost.rs index 64230f0c8..f022869b0 100644 --- a/generated/stripe_shared/src/invoices_shipping_cost.rs +++ b/generated/stripe_shared/src/invoices_shipping_cost.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoicesShippingCost { /// Total shipping cost before any taxes are applied. pub amount_subtotal: i64, diff --git a/generated/stripe_shared/src/invoices_status_transitions.rs b/generated/stripe_shared/src/invoices_status_transitions.rs index fad6b2ca6..0c0ae77fd 100644 --- a/generated/stripe_shared/src/invoices_status_transitions.rs +++ b/generated/stripe_shared/src/invoices_status_transitions.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InvoicesStatusTransitions { /// The time that the invoice draft was finalized. pub finalized_at: Option, diff --git a/generated/stripe_shared/src/issuing_authorization.rs b/generated/stripe_shared/src/issuing_authorization.rs index 8d4a0a40a..8b7305bc1 100644 --- a/generated/stripe_shared/src/issuing_authorization.rs +++ b/generated/stripe_shared/src/issuing_authorization.rs @@ -7,7 +7,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingAuthorization { /// The total amount that was authorized or rejected. /// This amount is in `currency` and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). @@ -283,7 +283,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingAuthorization { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -395,7 +395,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for IssuingAuthorizationAuthorizationMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -468,7 +468,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(IssuingAuthorizationStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingAuthorizationStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_authorization_amount_details.rs b/generated/stripe_shared/src/issuing_authorization_amount_details.rs index 0f6e901cb..70a782c66 100644 --- a/generated/stripe_shared/src/issuing_authorization_amount_details.rs +++ b/generated/stripe_shared/src/issuing_authorization_amount_details.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingAuthorizationAmountDetails { /// The fee charged by the ATM for the cash withdrawal. pub atm_fee: Option, diff --git a/generated/stripe_shared/src/issuing_authorization_authentication_exemption.rs b/generated/stripe_shared/src/issuing_authorization_authentication_exemption.rs index db54f7f25..3ee790fbb 100644 --- a/generated/stripe_shared/src/issuing_authorization_authentication_exemption.rs +++ b/generated/stripe_shared/src/issuing_authorization_authentication_exemption.rs @@ -1,11 +1,11 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingAuthorizationAuthenticationExemption { /// The entity that requested the exemption, either the acquiring merchant or the Issuing user. pub claimed_by: IssuingAuthorizationAuthenticationExemptionClaimedBy, /// The specific exemption claimed for this authorization. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: IssuingAuthorizationAuthenticationExemptionType, } #[doc(hidden)] @@ -135,7 +135,7 @@ impl std::fmt::Debug for IssuingAuthorizationAuthenticationExemptionClaimedBy { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingAuthorizationAuthenticationExemptionClaimedBy { fn serialize(&self, serializer: S) -> Result where @@ -162,7 +162,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for IssuingAuthorizationAuthenticationExemptionClaimedBy { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -215,7 +215,7 @@ impl std::fmt::Debug for IssuingAuthorizationAuthenticationExemptionType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingAuthorizationAuthenticationExemptionType { fn serialize(&self, serializer: S) -> Result where @@ -242,7 +242,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for IssuingAuthorizationAuthenticationExemptionType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_authorization_merchant_data.rs b/generated/stripe_shared/src/issuing_authorization_merchant_data.rs index a99809000..bf8d1e8d3 100644 --- a/generated/stripe_shared/src/issuing_authorization_merchant_data.rs +++ b/generated/stripe_shared/src/issuing_authorization_merchant_data.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingAuthorizationMerchantData { /// 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. diff --git a/generated/stripe_shared/src/issuing_authorization_network_data.rs b/generated/stripe_shared/src/issuing_authorization_network_data.rs index b6e02d266..9eb494ebe 100644 --- a/generated/stripe_shared/src/issuing_authorization_network_data.rs +++ b/generated/stripe_shared/src/issuing_authorization_network_data.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingAuthorizationNetworkData { /// Identifier assigned to the acquirer by the card network. /// Sometimes this value is not provided by the network; in this case, the value will be `null`. diff --git a/generated/stripe_shared/src/issuing_authorization_pending_request.rs b/generated/stripe_shared/src/issuing_authorization_pending_request.rs index f15a6aeb3..35790aa70 100644 --- a/generated/stripe_shared/src/issuing_authorization_pending_request.rs +++ b/generated/stripe_shared/src/issuing_authorization_pending_request.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingAuthorizationPendingRequest { /// The additional amount Stripe will hold if the authorization is approved, in the card's [currency](https://stripe.com/docs/api#issuing_authorization_object-pending-request-currency) and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). pub amount: i64, diff --git a/generated/stripe_shared/src/issuing_authorization_request.rs b/generated/stripe_shared/src/issuing_authorization_request.rs index d646a046f..038c99acb 100644 --- a/generated/stripe_shared/src/issuing_authorization_request.rs +++ b/generated/stripe_shared/src/issuing_authorization_request.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingAuthorizationRequest { /// The `pending_request.amount` at the time of the request, presented in your card's currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). /// Stripe held this amount from your account to fund the authorization if the request was approved. @@ -265,7 +265,7 @@ impl std::fmt::Debug for IssuingAuthorizationRequestReason { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingAuthorizationRequestReason { fn serialize(&self, serializer: S) -> Result where @@ -292,7 +292,7 @@ impl miniserde::de::Visitor for crate::Place } stripe_types::impl_from_val_with_from_str!(IssuingAuthorizationRequestReason); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingAuthorizationRequestReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_authorization_three_d_secure.rs b/generated/stripe_shared/src/issuing_authorization_three_d_secure.rs index 7f9c1ba0f..4bd20e5ad 100644 --- a/generated/stripe_shared/src/issuing_authorization_three_d_secure.rs +++ b/generated/stripe_shared/src/issuing_authorization_three_d_secure.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingAuthorizationThreeDSecure { /// The outcome of the 3D Secure authentication request. pub result: IssuingAuthorizationThreeDSecureResult, @@ -135,7 +135,7 @@ impl std::fmt::Debug for IssuingAuthorizationThreeDSecureResult { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingAuthorizationThreeDSecureResult { fn serialize(&self, serializer: S) -> Result where @@ -161,7 +161,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for IssuingAuthorizationThreeDSecureResult { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_authorization_treasury.rs b/generated/stripe_shared/src/issuing_authorization_treasury.rs index ada8f0cd7..7396d3a06 100644 --- a/generated/stripe_shared/src/issuing_authorization_treasury.rs +++ b/generated/stripe_shared/src/issuing_authorization_treasury.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingAuthorizationTreasury { /// The array of [ReceivedCredits](https://stripe.com/docs/api/treasury/received_credits) associated with this authorization. pub received_credits: Vec, diff --git a/generated/stripe_shared/src/issuing_authorization_verification_data.rs b/generated/stripe_shared/src/issuing_authorization_verification_data.rs index e83b05e8c..9aca55593 100644 --- a/generated/stripe_shared/src/issuing_authorization_verification_data.rs +++ b/generated/stripe_shared/src/issuing_authorization_verification_data.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingAuthorizationVerificationData { /// Whether the cardholder provided an address first line and if it matched the cardholder’s `billing.address.line1`. pub address_line1_check: IssuingAuthorizationVerificationDataAddressLine1Check, @@ -190,7 +190,7 @@ impl std::fmt::Debug for IssuingAuthorizationVerificationDataAddressLine1Check { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingAuthorizationVerificationDataAddressLine1Check { fn serialize(&self, serializer: S) -> Result where @@ -219,7 +219,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(IssuingAuthorizationVerificationDataAddressLine1Check); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingAuthorizationVerificationDataAddressLine1Check { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -272,7 +272,7 @@ impl std::fmt::Debug for IssuingAuthorizationVerificationDataAddressPostalCodeCh f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingAuthorizationVerificationDataAddressPostalCodeCheck { fn serialize(&self, serializer: S) -> Result where @@ -303,7 +303,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( IssuingAuthorizationVerificationDataAddressPostalCodeCheck ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingAuthorizationVerificationDataAddressPostalCodeCheck { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -356,7 +356,7 @@ impl std::fmt::Debug for IssuingAuthorizationVerificationDataCvcCheck { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingAuthorizationVerificationDataCvcCheck { fn serialize(&self, serializer: S) -> Result where @@ -383,7 +383,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for IssuingAuthorizationVerificationDataCvcCheck { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -436,7 +436,7 @@ impl std::fmt::Debug for IssuingAuthorizationVerificationDataExpiryCheck { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingAuthorizationVerificationDataExpiryCheck { fn serialize(&self, serializer: S) -> Result where @@ -463,7 +463,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for IssuingAuthorizationVerificationDataExpiryCheck { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_card.rs b/generated/stripe_shared/src/issuing_card.rs index e4fbf848c..e7e7aa7a3 100644 --- a/generated/stripe_shared/src/issuing_card.rs +++ b/generated/stripe_shared/src/issuing_card.rs @@ -2,7 +2,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingCard { /// The brand of the card. pub brand: String, @@ -51,7 +51,7 @@ pub struct IssuingCard { /// Defaults to `inactive`. pub status: stripe_shared::IssuingCardStatus, /// The type of the card. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: stripe_shared::IssuingCardType, /// Information relating to digital wallets (like Apple Pay and Google Pay). pub wallets: Option, @@ -255,7 +255,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingCard { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -328,7 +328,7 @@ impl std::fmt::Debug for IssuingCardCancellationReason { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingCardCancellationReason { fn serialize(&self, serializer: S) -> Result where @@ -352,7 +352,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(IssuingCardCancellationReason); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingCardCancellationReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -435,7 +435,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(IssuingCardReplacementReason); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingCardReplacementReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -507,7 +507,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(IssuingCardStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingCardStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -576,7 +576,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(IssuingCardType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingCardType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_card_apple_pay.rs b/generated/stripe_shared/src/issuing_card_apple_pay.rs index 1ae42718f..df91e4c63 100644 --- a/generated/stripe_shared/src/issuing_card_apple_pay.rs +++ b/generated/stripe_shared/src/issuing_card_apple_pay.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingCardApplePay { /// Apple Pay Eligibility pub eligible: bool, @@ -137,7 +137,7 @@ impl std::fmt::Debug for IssuingCardApplePayIneligibleReason { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingCardApplePayIneligibleReason { fn serialize(&self, serializer: S) -> Result where @@ -162,7 +162,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for IssuingCardApplePayIneligibleReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_card_authorization_controls.rs b/generated/stripe_shared/src/issuing_card_authorization_controls.rs index 145fd137b..1f1d9d946 100644 --- a/generated/stripe_shared/src/issuing_card_authorization_controls.rs +++ b/generated/stripe_shared/src/issuing_card_authorization_controls.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingCardAuthorizationControls { /// Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. /// All other categories will be blocked. @@ -1143,7 +1143,7 @@ impl std::fmt::Debug for IssuingCardAuthorizationControlsAllowedCategories { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingCardAuthorizationControlsAllowedCategories { fn serialize(&self, serializer: S) -> Result where @@ -1170,7 +1170,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for IssuingCardAuthorizationControlsAllowedCategories { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2193,7 +2193,7 @@ impl std::fmt::Debug for IssuingCardAuthorizationControlsBlockedCategories { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingCardAuthorizationControlsBlockedCategories { fn serialize(&self, serializer: S) -> Result where @@ -2220,7 +2220,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for IssuingCardAuthorizationControlsBlockedCategories { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_card_google_pay.rs b/generated/stripe_shared/src/issuing_card_google_pay.rs index f62159447..73a64f5ee 100644 --- a/generated/stripe_shared/src/issuing_card_google_pay.rs +++ b/generated/stripe_shared/src/issuing_card_google_pay.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingCardGooglePay { /// Google Pay Eligibility pub eligible: bool, @@ -137,7 +137,7 @@ impl std::fmt::Debug for IssuingCardGooglePayIneligibleReason { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingCardGooglePayIneligibleReason { fn serialize(&self, serializer: S) -> Result where @@ -162,7 +162,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for IssuingCardGooglePayIneligibleReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_card_shipping.rs b/generated/stripe_shared/src/issuing_card_shipping.rs index da737ce35..cf8246ac0 100644 --- a/generated/stripe_shared/src/issuing_card_shipping.rs +++ b/generated/stripe_shared/src/issuing_card_shipping.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingCardShipping { pub address: stripe_shared::Address, /// The delivery company that shipped a card. @@ -29,7 +29,7 @@ pub struct IssuingCardShipping { /// A link to the shipping carrier's site where you can view detailed information about a card shipment. pub tracking_url: Option, /// Packaging options. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: IssuingCardShippingType, } #[doc(hidden)] @@ -221,7 +221,7 @@ impl std::fmt::Debug for IssuingCardShippingCarrier { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingCardShippingCarrier { fn serialize(&self, serializer: S) -> Result where @@ -245,7 +245,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(IssuingCardShippingCarrier); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingCardShippingCarrier { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -295,7 +295,7 @@ impl std::fmt::Debug for IssuingCardShippingService { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingCardShippingService { fn serialize(&self, serializer: S) -> Result where @@ -319,7 +319,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(IssuingCardShippingService); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingCardShippingService { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -378,7 +378,7 @@ impl std::fmt::Debug for IssuingCardShippingStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingCardShippingStatus { fn serialize(&self, serializer: S) -> Result where @@ -402,7 +402,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(IssuingCardShippingStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingCardShippingStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -449,7 +449,7 @@ impl std::fmt::Debug for IssuingCardShippingType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingCardShippingType { fn serialize(&self, serializer: S) -> Result where @@ -473,7 +473,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(IssuingCardShippingType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingCardShippingType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_card_shipping_customs.rs b/generated/stripe_shared/src/issuing_card_shipping_customs.rs index 1bb20a0b2..a6e0f6719 100644 --- a/generated/stripe_shared/src/issuing_card_shipping_customs.rs +++ b/generated/stripe_shared/src/issuing_card_shipping_customs.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingCardShippingCustoms { /// A registration number used for customs in Europe. /// See [](https://www.gov.uk/eori) for the UK and [](https://ec.europa.eu/taxation_customs/business/customs-procedures-import-and-export/customs-procedures/economic-operators-registration-and-identification-number-eori_en) for the EU. diff --git a/generated/stripe_shared/src/issuing_card_spending_limit.rs b/generated/stripe_shared/src/issuing_card_spending_limit.rs index 59b5518dc..e8e1f3895 100644 --- a/generated/stripe_shared/src/issuing_card_spending_limit.rs +++ b/generated/stripe_shared/src/issuing_card_spending_limit.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingCardSpendingLimit { /// Maximum amount allowed to spend per interval. /// This amount is in the card's currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). @@ -1125,7 +1125,7 @@ impl std::fmt::Debug for IssuingCardSpendingLimitCategories { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingCardSpendingLimitCategories { fn serialize(&self, serializer: S) -> Result where @@ -1152,7 +1152,7 @@ impl miniserde::de::Visitor for crate::Place } stripe_types::impl_from_val_with_from_str!(IssuingCardSpendingLimitCategories); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingCardSpendingLimitCategories { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1210,7 +1210,7 @@ impl std::fmt::Debug for IssuingCardSpendingLimitInterval { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingCardSpendingLimitInterval { fn serialize(&self, serializer: S) -> Result where @@ -1235,7 +1235,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(IssuingCardSpendingLimitInterval); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingCardSpendingLimitInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_card_wallets.rs b/generated/stripe_shared/src/issuing_card_wallets.rs index 307d282bb..226ee6a2a 100644 --- a/generated/stripe_shared/src/issuing_card_wallets.rs +++ b/generated/stripe_shared/src/issuing_card_wallets.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingCardWallets { pub apple_pay: stripe_shared::IssuingCardApplePay, pub google_pay: stripe_shared::IssuingCardGooglePay, diff --git a/generated/stripe_shared/src/issuing_cardholder.rs b/generated/stripe_shared/src/issuing_cardholder.rs index 24450864c..38e34f4e7 100644 --- a/generated/stripe_shared/src/issuing_cardholder.rs +++ b/generated/stripe_shared/src/issuing_cardholder.rs @@ -4,7 +4,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingCardholder { pub billing: stripe_shared::IssuingCardholderAddress, /// Additional information about a `company` cardholder. @@ -40,7 +40,7 @@ pub struct IssuingCardholder { pub status: stripe_shared::IssuingCardholderStatus, /// One of `individual` or `company`. /// See [Choose a cardholder type](https://stripe.com/docs/issuing/other/choose-cardholder) for more details. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: stripe_shared::IssuingCardholderType, } #[doc(hidden)] @@ -203,7 +203,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingCardholder { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -305,7 +305,7 @@ impl miniserde::de::Visitor for crate::Place } stripe_types::impl_from_val_with_from_str!(IssuingCardholderPreferredLocales); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingCardholderPreferredLocales { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -378,7 +378,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(IssuingCardholderStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingCardholderStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -447,7 +447,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(IssuingCardholderType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingCardholderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_cardholder_address.rs b/generated/stripe_shared/src/issuing_cardholder_address.rs index d6fb4cc92..aebe93c4f 100644 --- a/generated/stripe_shared/src/issuing_cardholder_address.rs +++ b/generated/stripe_shared/src/issuing_cardholder_address.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingCardholderAddress { pub address: stripe_shared::Address, } diff --git a/generated/stripe_shared/src/issuing_cardholder_authorization_controls.rs b/generated/stripe_shared/src/issuing_cardholder_authorization_controls.rs index 5c37d6123..28603d2f6 100644 --- a/generated/stripe_shared/src/issuing_cardholder_authorization_controls.rs +++ b/generated/stripe_shared/src/issuing_cardholder_authorization_controls.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingCardholderAuthorizationControls { /// Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. /// All other categories will be blocked. @@ -1145,7 +1145,7 @@ impl std::fmt::Debug for IssuingCardholderAuthorizationControlsAllowedCategories f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingCardholderAuthorizationControlsAllowedCategories { fn serialize(&self, serializer: S) -> Result where @@ -1174,7 +1174,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(IssuingCardholderAuthorizationControlsAllowedCategories); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingCardholderAuthorizationControlsAllowedCategories { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -2197,7 +2197,7 @@ impl std::fmt::Debug for IssuingCardholderAuthorizationControlsBlockedCategories f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingCardholderAuthorizationControlsBlockedCategories { fn serialize(&self, serializer: S) -> Result where @@ -2226,7 +2226,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(IssuingCardholderAuthorizationControlsBlockedCategories); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingCardholderAuthorizationControlsBlockedCategories { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_cardholder_card_issuing.rs b/generated/stripe_shared/src/issuing_cardholder_card_issuing.rs index 80d797664..643cc86ef 100644 --- a/generated/stripe_shared/src/issuing_cardholder_card_issuing.rs +++ b/generated/stripe_shared/src/issuing_cardholder_card_issuing.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingCardholderCardIssuing { /// Information about cardholder acceptance of Celtic [Authorized User Terms](https://stripe.com/docs/issuing/cards#accept-authorized-user-terms). /// Required for cards backed by a Celtic program. diff --git a/generated/stripe_shared/src/issuing_cardholder_company.rs b/generated/stripe_shared/src/issuing_cardholder_company.rs index e6117a9dd..0c34e687c 100644 --- a/generated/stripe_shared/src/issuing_cardholder_company.rs +++ b/generated/stripe_shared/src/issuing_cardholder_company.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingCardholderCompany { /// Whether the company's business ID number was provided. pub tax_id_provided: bool, diff --git a/generated/stripe_shared/src/issuing_cardholder_id_document.rs b/generated/stripe_shared/src/issuing_cardholder_id_document.rs index 1704d6d27..29346b1e6 100644 --- a/generated/stripe_shared/src/issuing_cardholder_id_document.rs +++ b/generated/stripe_shared/src/issuing_cardholder_id_document.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingCardholderIdDocument { /// The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. pub back: Option>, diff --git a/generated/stripe_shared/src/issuing_cardholder_individual.rs b/generated/stripe_shared/src/issuing_cardholder_individual.rs index 26c54e692..03bc90b0e 100644 --- a/generated/stripe_shared/src/issuing_cardholder_individual.rs +++ b/generated/stripe_shared/src/issuing_cardholder_individual.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingCardholderIndividual { /// Information related to the card_issuing program for this cardholder. pub card_issuing: Option, diff --git a/generated/stripe_shared/src/issuing_cardholder_individual_dob.rs b/generated/stripe_shared/src/issuing_cardholder_individual_dob.rs index cd5e61fe8..59d9b5cc3 100644 --- a/generated/stripe_shared/src/issuing_cardholder_individual_dob.rs +++ b/generated/stripe_shared/src/issuing_cardholder_individual_dob.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingCardholderIndividualDob { /// The day of birth, between 1 and 31. pub day: Option, diff --git a/generated/stripe_shared/src/issuing_cardholder_requirements.rs b/generated/stripe_shared/src/issuing_cardholder_requirements.rs index 536912568..104c41bf1 100644 --- a/generated/stripe_shared/src/issuing_cardholder_requirements.rs +++ b/generated/stripe_shared/src/issuing_cardholder_requirements.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingCardholderRequirements { /// If `disabled_reason` is present, all cards will decline authorizations with `cardholder_verification_required` reason. pub disabled_reason: Option, @@ -143,7 +143,7 @@ impl std::fmt::Debug for IssuingCardholderRequirementsDisabledReason { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingCardholderRequirementsDisabledReason { fn serialize(&self, serializer: S) -> Result where @@ -170,7 +170,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for IssuingCardholderRequirementsDisabledReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -249,7 +249,7 @@ impl std::fmt::Debug for IssuingCardholderRequirementsPastDue { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingCardholderRequirementsPastDue { fn serialize(&self, serializer: S) -> Result where @@ -274,7 +274,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for IssuingCardholderRequirementsPastDue { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_cardholder_spending_limit.rs b/generated/stripe_shared/src/issuing_cardholder_spending_limit.rs index c26e0f40b..e4b3d331b 100644 --- a/generated/stripe_shared/src/issuing_cardholder_spending_limit.rs +++ b/generated/stripe_shared/src/issuing_cardholder_spending_limit.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingCardholderSpendingLimit { /// Maximum amount allowed to spend per interval. /// This amount is in the card's currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). @@ -1125,7 +1125,7 @@ impl std::fmt::Debug for IssuingCardholderSpendingLimitCategories { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingCardholderSpendingLimitCategories { fn serialize(&self, serializer: S) -> Result where @@ -1152,7 +1152,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for IssuingCardholderSpendingLimitCategories { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -1210,7 +1210,7 @@ impl std::fmt::Debug for IssuingCardholderSpendingLimitInterval { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingCardholderSpendingLimitInterval { fn serialize(&self, serializer: S) -> Result where @@ -1236,7 +1236,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for IssuingCardholderSpendingLimitInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_cardholder_user_terms_acceptance.rs b/generated/stripe_shared/src/issuing_cardholder_user_terms_acceptance.rs index 01f607adb..7584d2458 100644 --- a/generated/stripe_shared/src/issuing_cardholder_user_terms_acceptance.rs +++ b/generated/stripe_shared/src/issuing_cardholder_user_terms_acceptance.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingCardholderUserTermsAcceptance { /// The Unix timestamp marking when the cardholder accepted the Authorized User Terms. pub date: Option, diff --git a/generated/stripe_shared/src/issuing_cardholder_verification.rs b/generated/stripe_shared/src/issuing_cardholder_verification.rs index 1fbfa2188..682bf7dd9 100644 --- a/generated/stripe_shared/src/issuing_cardholder_verification.rs +++ b/generated/stripe_shared/src/issuing_cardholder_verification.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingCardholderVerification { /// An identifying document, either a passport or local ID card. pub document: Option, diff --git a/generated/stripe_shared/src/issuing_dispute.rs b/generated/stripe_shared/src/issuing_dispute.rs index 85ff00523..1e491a728 100644 --- a/generated/stripe_shared/src/issuing_dispute.rs +++ b/generated/stripe_shared/src/issuing_dispute.rs @@ -4,7 +4,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingDispute { /// Disputed amount in the card's currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). /// Usually the amount of the `transaction`, but can differ (usually because of currency fluctuation). @@ -172,7 +172,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingDispute { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -269,7 +269,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(IssuingDisputeStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingDisputeStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_dispute_canceled_evidence.rs b/generated/stripe_shared/src/issuing_dispute_canceled_evidence.rs index d3b8bf7fb..8b2641d4b 100644 --- a/generated/stripe_shared/src/issuing_dispute_canceled_evidence.rs +++ b/generated/stripe_shared/src/issuing_dispute_canceled_evidence.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingDisputeCanceledEvidence { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. pub additional_documentation: Option>, @@ -208,7 +208,7 @@ impl std::fmt::Debug for IssuingDisputeCanceledEvidenceProductType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingDisputeCanceledEvidenceProductType { fn serialize(&self, serializer: S) -> Result where @@ -234,7 +234,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for IssuingDisputeCanceledEvidenceProductType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -282,7 +282,7 @@ impl std::fmt::Debug for IssuingDisputeCanceledEvidenceReturnStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingDisputeCanceledEvidenceReturnStatus { fn serialize(&self, serializer: S) -> Result where @@ -309,7 +309,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for IssuingDisputeCanceledEvidenceReturnStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_dispute_duplicate_evidence.rs b/generated/stripe_shared/src/issuing_dispute_duplicate_evidence.rs index 68473c801..7fb4acf68 100644 --- a/generated/stripe_shared/src/issuing_dispute_duplicate_evidence.rs +++ b/generated/stripe_shared/src/issuing_dispute_duplicate_evidence.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingDisputeDuplicateEvidence { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. pub additional_documentation: Option>, diff --git a/generated/stripe_shared/src/issuing_dispute_evidence.rs b/generated/stripe_shared/src/issuing_dispute_evidence.rs index 0b72a076e..0f92421c3 100644 --- a/generated/stripe_shared/src/issuing_dispute_evidence.rs +++ b/generated/stripe_shared/src/issuing_dispute_evidence.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingDisputeEvidence { pub canceled: Option, pub duplicate: Option, @@ -202,7 +202,7 @@ impl std::fmt::Debug for IssuingDisputeEvidenceReason { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingDisputeEvidenceReason { fn serialize(&self, serializer: S) -> Result where @@ -226,7 +226,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(IssuingDisputeEvidenceReason); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingDisputeEvidenceReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_dispute_fraudulent_evidence.rs b/generated/stripe_shared/src/issuing_dispute_fraudulent_evidence.rs index ff3da5a37..1648a8c7b 100644 --- a/generated/stripe_shared/src/issuing_dispute_fraudulent_evidence.rs +++ b/generated/stripe_shared/src/issuing_dispute_fraudulent_evidence.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingDisputeFraudulentEvidence { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. pub additional_documentation: Option>, diff --git a/generated/stripe_shared/src/issuing_dispute_merchandise_not_as_described_evidence.rs b/generated/stripe_shared/src/issuing_dispute_merchandise_not_as_described_evidence.rs index 1e3ea340f..a8eadef67 100644 --- a/generated/stripe_shared/src/issuing_dispute_merchandise_not_as_described_evidence.rs +++ b/generated/stripe_shared/src/issuing_dispute_merchandise_not_as_described_evidence.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingDisputeMerchandiseNotAsDescribedEvidence { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. pub additional_documentation: Option>, @@ -174,7 +174,7 @@ impl std::fmt::Debug for IssuingDisputeMerchandiseNotAsDescribedEvidenceReturnSt f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingDisputeMerchandiseNotAsDescribedEvidenceReturnStatus { fn serialize(&self, serializer: S) -> Result where @@ -205,7 +205,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( IssuingDisputeMerchandiseNotAsDescribedEvidenceReturnStatus ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingDisputeMerchandiseNotAsDescribedEvidenceReturnStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_dispute_not_received_evidence.rs b/generated/stripe_shared/src/issuing_dispute_not_received_evidence.rs index fed478136..0af4f513d 100644 --- a/generated/stripe_shared/src/issuing_dispute_not_received_evidence.rs +++ b/generated/stripe_shared/src/issuing_dispute_not_received_evidence.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingDisputeNotReceivedEvidence { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. pub additional_documentation: Option>, @@ -167,7 +167,7 @@ impl std::fmt::Debug for IssuingDisputeNotReceivedEvidenceProductType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingDisputeNotReceivedEvidenceProductType { fn serialize(&self, serializer: S) -> Result where @@ -194,7 +194,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for IssuingDisputeNotReceivedEvidenceProductType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_dispute_other_evidence.rs b/generated/stripe_shared/src/issuing_dispute_other_evidence.rs index f9dbc1242..d40023119 100644 --- a/generated/stripe_shared/src/issuing_dispute_other_evidence.rs +++ b/generated/stripe_shared/src/issuing_dispute_other_evidence.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingDisputeOtherEvidence { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. pub additional_documentation: Option>, @@ -160,7 +160,7 @@ impl std::fmt::Debug for IssuingDisputeOtherEvidenceProductType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingDisputeOtherEvidenceProductType { fn serialize(&self, serializer: S) -> Result where @@ -186,7 +186,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for IssuingDisputeOtherEvidenceProductType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_dispute_service_not_as_described_evidence.rs b/generated/stripe_shared/src/issuing_dispute_service_not_as_described_evidence.rs index 006eedd16..7e686889f 100644 --- a/generated/stripe_shared/src/issuing_dispute_service_not_as_described_evidence.rs +++ b/generated/stripe_shared/src/issuing_dispute_service_not_as_described_evidence.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingDisputeServiceNotAsDescribedEvidence { /// (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. pub additional_documentation: Option>, diff --git a/generated/stripe_shared/src/issuing_dispute_treasury.rs b/generated/stripe_shared/src/issuing_dispute_treasury.rs index f89d0063f..df33f064a 100644 --- a/generated/stripe_shared/src/issuing_dispute_treasury.rs +++ b/generated/stripe_shared/src/issuing_dispute_treasury.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingDisputeTreasury { /// The Treasury [DebitReversal](https://stripe.com/docs/api/treasury/debit_reversals) representing this Issuing dispute. pub debit_reversal: Option, diff --git a/generated/stripe_shared/src/issuing_network_token_address.rs b/generated/stripe_shared/src/issuing_network_token_address.rs index 0d2dc22a0..c99afc0ce 100644 --- a/generated/stripe_shared/src/issuing_network_token_address.rs +++ b/generated/stripe_shared/src/issuing_network_token_address.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingNetworkTokenAddress { /// The street address of the cardholder tokenizing the card. pub line1: String, diff --git a/generated/stripe_shared/src/issuing_network_token_device.rs b/generated/stripe_shared/src/issuing_network_token_device.rs index 2d629a6cc..05d557f2e 100644 --- a/generated/stripe_shared/src/issuing_network_token_device.rs +++ b/generated/stripe_shared/src/issuing_network_token_device.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingNetworkTokenDevice { /// An obfuscated ID derived from the device ID. pub device_fingerprint: Option, @@ -14,7 +14,7 @@ pub struct IssuingNetworkTokenDevice { /// The phone number of the device used for tokenization. pub phone_number: Option, /// The type of device used for tokenization. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: Option, } #[doc(hidden)] @@ -175,7 +175,7 @@ impl std::fmt::Debug for IssuingNetworkTokenDeviceType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingNetworkTokenDeviceType { fn serialize(&self, serializer: S) -> Result where @@ -199,7 +199,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(IssuingNetworkTokenDeviceType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingNetworkTokenDeviceType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_network_token_mastercard.rs b/generated/stripe_shared/src/issuing_network_token_mastercard.rs index 95e0f6e3a..2c3aca35d 100644 --- a/generated/stripe_shared/src/issuing_network_token_mastercard.rs +++ b/generated/stripe_shared/src/issuing_network_token_mastercard.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingNetworkTokenMastercard { /// A unique reference ID from MasterCard to represent the card account number. pub card_reference_id: Option, diff --git a/generated/stripe_shared/src/issuing_network_token_network_data.rs b/generated/stripe_shared/src/issuing_network_token_network_data.rs index 944f18e43..5d3fe0807 100644 --- a/generated/stripe_shared/src/issuing_network_token_network_data.rs +++ b/generated/stripe_shared/src/issuing_network_token_network_data.rs @@ -1,12 +1,12 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingNetworkTokenNetworkData { pub device: Option, pub mastercard: Option, /// The network that the token is associated with. /// An additional hash is included with a name matching this value, containing tokenization data specific to the card network. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: IssuingNetworkTokenNetworkDataType, pub visa: Option, pub wallet_provider: Option, @@ -160,7 +160,7 @@ impl std::fmt::Debug for IssuingNetworkTokenNetworkDataType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingNetworkTokenNetworkDataType { fn serialize(&self, serializer: S) -> Result where @@ -185,7 +185,7 @@ impl miniserde::de::Visitor for crate::Place } stripe_types::impl_from_val_with_from_str!(IssuingNetworkTokenNetworkDataType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingNetworkTokenNetworkDataType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_network_token_visa.rs b/generated/stripe_shared/src/issuing_network_token_visa.rs index 36f93f0cb..36335deff 100644 --- a/generated/stripe_shared/src/issuing_network_token_visa.rs +++ b/generated/stripe_shared/src/issuing_network_token_visa.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingNetworkTokenVisa { /// A unique reference ID from Visa to represent the card account number. pub card_reference_id: String, diff --git a/generated/stripe_shared/src/issuing_network_token_wallet_provider.rs b/generated/stripe_shared/src/issuing_network_token_wallet_provider.rs index 1a30fddbc..d0b035a16 100644 --- a/generated/stripe_shared/src/issuing_network_token_wallet_provider.rs +++ b/generated/stripe_shared/src/issuing_network_token_wallet_provider.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingNetworkTokenWalletProvider { /// The wallet provider-given account ID of the digital wallet the token belongs to. pub account_id: Option, @@ -220,7 +220,7 @@ impl std::fmt::Debug for IssuingNetworkTokenWalletProviderCardNumberSource { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingNetworkTokenWalletProviderCardNumberSource { fn serialize(&self, serializer: S) -> Result where @@ -247,7 +247,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for IssuingNetworkTokenWalletProviderCardNumberSource { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -387,7 +387,7 @@ impl std::fmt::Debug for IssuingNetworkTokenWalletProviderReasonCodes { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingNetworkTokenWalletProviderReasonCodes { fn serialize(&self, serializer: S) -> Result where @@ -414,7 +414,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for IssuingNetworkTokenWalletProviderReasonCodes { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -463,7 +463,7 @@ impl std::fmt::Debug for IssuingNetworkTokenWalletProviderSuggestedDecision { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingNetworkTokenWalletProviderSuggestedDecision { fn serialize(&self, serializer: S) -> Result where @@ -490,7 +490,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for IssuingNetworkTokenWalletProviderSuggestedDecision { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_token.rs b/generated/stripe_shared/src/issuing_token.rs index bfd4d9e1a..f201a9632 100644 --- a/generated/stripe_shared/src/issuing_token.rs +++ b/generated/stripe_shared/src/issuing_token.rs @@ -3,7 +3,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingToken { /// Card associated with this token. pub card: stripe_types::Expandable, @@ -172,7 +172,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingToken { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -231,7 +231,7 @@ impl std::fmt::Debug for IssuingTokenNetwork { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingTokenNetwork { fn serialize(&self, serializer: S) -> Result where @@ -255,7 +255,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(IssuingTokenNetwork); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingTokenNetwork { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -305,7 +305,7 @@ impl std::fmt::Debug for IssuingTokenWalletProvider { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingTokenWalletProvider { fn serialize(&self, serializer: S) -> Result where @@ -329,7 +329,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(IssuingTokenWalletProvider); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingTokenWalletProvider { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -411,7 +411,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(IssuingTokenStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingTokenStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_transaction.rs b/generated/stripe_shared/src/issuing_transaction.rs index 4fa0466b9..ddbfbfd5b 100644 --- a/generated/stripe_shared/src/issuing_transaction.rs +++ b/generated/stripe_shared/src/issuing_transaction.rs @@ -6,7 +6,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingTransaction { /// The transaction amount, which will be reflected in your balance. /// This amount is in your currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). @@ -52,7 +52,7 @@ pub struct IssuingTransaction { /// [Treasury](https://stripe.com/docs/api/treasury) details related to this transaction if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts. pub treasury: Option, /// The nature of the transaction. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: stripe_shared::IssuingTransactionType, /// The digital wallet used for this transaction. One of `apple_pay`, `google_pay`, or `samsung_pay`. pub wallet: Option, @@ -250,7 +250,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingTransaction { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -322,7 +322,7 @@ impl std::fmt::Debug for IssuingTransactionWallet { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for IssuingTransactionWallet { fn serialize(&self, serializer: S) -> Result where @@ -346,7 +346,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(IssuingTransactionWallet); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingTransactionWallet { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -422,7 +422,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(IssuingTransactionType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for IssuingTransactionType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/issuing_transaction_amount_details.rs b/generated/stripe_shared/src/issuing_transaction_amount_details.rs index a79a6b325..9f1782fe1 100644 --- a/generated/stripe_shared/src/issuing_transaction_amount_details.rs +++ b/generated/stripe_shared/src/issuing_transaction_amount_details.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingTransactionAmountDetails { /// The fee charged by the ATM for the cash withdrawal. pub atm_fee: Option, diff --git a/generated/stripe_shared/src/issuing_transaction_flight_data.rs b/generated/stripe_shared/src/issuing_transaction_flight_data.rs index ae532d8e2..fe27e2fb2 100644 --- a/generated/stripe_shared/src/issuing_transaction_flight_data.rs +++ b/generated/stripe_shared/src/issuing_transaction_flight_data.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingTransactionFlightData { /// The time that the flight departed. pub departure_at: Option, diff --git a/generated/stripe_shared/src/issuing_transaction_flight_data_leg.rs b/generated/stripe_shared/src/issuing_transaction_flight_data_leg.rs index b89bc66d3..7928a0239 100644 --- a/generated/stripe_shared/src/issuing_transaction_flight_data_leg.rs +++ b/generated/stripe_shared/src/issuing_transaction_flight_data_leg.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingTransactionFlightDataLeg { /// The three-letter IATA airport code of the flight's destination. pub arrival_airport_code: Option, diff --git a/generated/stripe_shared/src/issuing_transaction_fuel_data.rs b/generated/stripe_shared/src/issuing_transaction_fuel_data.rs index 3a2eb0d80..8a6e11414 100644 --- a/generated/stripe_shared/src/issuing_transaction_fuel_data.rs +++ b/generated/stripe_shared/src/issuing_transaction_fuel_data.rs @@ -1,10 +1,10 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingTransactionFuelData { /// The type of fuel that was purchased. /// One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: String, /// The units for `volume_decimal`. One of `us_gallon` or `liter`. pub unit: String, diff --git a/generated/stripe_shared/src/issuing_transaction_lodging_data.rs b/generated/stripe_shared/src/issuing_transaction_lodging_data.rs index c1a56cc3e..e7ce87409 100644 --- a/generated/stripe_shared/src/issuing_transaction_lodging_data.rs +++ b/generated/stripe_shared/src/issuing_transaction_lodging_data.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingTransactionLodgingData { /// The time of checking into the lodging. pub check_in_at: Option, diff --git a/generated/stripe_shared/src/issuing_transaction_network_data.rs b/generated/stripe_shared/src/issuing_transaction_network_data.rs index 535dc0f4d..7a28b6f26 100644 --- a/generated/stripe_shared/src/issuing_transaction_network_data.rs +++ b/generated/stripe_shared/src/issuing_transaction_network_data.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingTransactionNetworkData { /// A code created by Stripe which is shared with the merchant to validate the authorization. /// This field will be populated if the authorization message was approved. diff --git a/generated/stripe_shared/src/issuing_transaction_purchase_details.rs b/generated/stripe_shared/src/issuing_transaction_purchase_details.rs index 74cc2eaec..539f4a0ab 100644 --- a/generated/stripe_shared/src/issuing_transaction_purchase_details.rs +++ b/generated/stripe_shared/src/issuing_transaction_purchase_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingTransactionPurchaseDetails { /// Information about the flight that was purchased with this transaction. pub flight: Option, diff --git a/generated/stripe_shared/src/issuing_transaction_receipt_data.rs b/generated/stripe_shared/src/issuing_transaction_receipt_data.rs index c7aa830a7..adc50403b 100644 --- a/generated/stripe_shared/src/issuing_transaction_receipt_data.rs +++ b/generated/stripe_shared/src/issuing_transaction_receipt_data.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingTransactionReceiptData { /// The description of the item. The maximum length of this field is 26 characters. pub description: Option, diff --git a/generated/stripe_shared/src/issuing_transaction_treasury.rs b/generated/stripe_shared/src/issuing_transaction_treasury.rs index d9844d096..6ddeabed4 100644 --- a/generated/stripe_shared/src/issuing_transaction_treasury.rs +++ b/generated/stripe_shared/src/issuing_transaction_treasury.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct IssuingTransactionTreasury { /// The Treasury [ReceivedCredit](https://stripe.com/docs/api/treasury/received_credits) representing this Issuing transaction if it is a refund. pub received_credit: Option, diff --git a/generated/stripe_shared/src/legal_entity_company.rs b/generated/stripe_shared/src/legal_entity_company.rs index 93f689276..85ece3595 100644 --- a/generated/stripe_shared/src/legal_entity_company.rs +++ b/generated/stripe_shared/src/legal_entity_company.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct LegalEntityCompany { pub address: Option, /// The Kana variation of the company's primary address (Japan only). @@ -332,7 +332,7 @@ impl std::fmt::Debug for LegalEntityCompanyStructure { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for LegalEntityCompanyStructure { fn serialize(&self, serializer: S) -> Result where @@ -359,7 +359,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(LegalEntityCompanyStructure); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for LegalEntityCompanyStructure { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/legal_entity_company_verification.rs b/generated/stripe_shared/src/legal_entity_company_verification.rs index 2c34adff8..8f03cfa99 100644 --- a/generated/stripe_shared/src/legal_entity_company_verification.rs +++ b/generated/stripe_shared/src/legal_entity_company_verification.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct LegalEntityCompanyVerification { pub document: stripe_shared::LegalEntityCompanyVerificationDocument, } diff --git a/generated/stripe_shared/src/legal_entity_company_verification_document.rs b/generated/stripe_shared/src/legal_entity_company_verification_document.rs index 469911699..ffba4b0f1 100644 --- a/generated/stripe_shared/src/legal_entity_company_verification_document.rs +++ b/generated/stripe_shared/src/legal_entity_company_verification_document.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct LegalEntityCompanyVerificationDocument { /// The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. pub back: Option>, diff --git a/generated/stripe_shared/src/legal_entity_dob.rs b/generated/stripe_shared/src/legal_entity_dob.rs index 96138920c..7c6152085 100644 --- a/generated/stripe_shared/src/legal_entity_dob.rs +++ b/generated/stripe_shared/src/legal_entity_dob.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct LegalEntityDob { /// The day of birth, between 1 and 31. pub day: Option, diff --git a/generated/stripe_shared/src/legal_entity_japan_address.rs b/generated/stripe_shared/src/legal_entity_japan_address.rs index 02254d597..e053ffcb5 100644 --- a/generated/stripe_shared/src/legal_entity_japan_address.rs +++ b/generated/stripe_shared/src/legal_entity_japan_address.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct LegalEntityJapanAddress { /// City/Ward. pub city: Option, diff --git a/generated/stripe_shared/src/legal_entity_person_verification.rs b/generated/stripe_shared/src/legal_entity_person_verification.rs index ee26be93f..93b3dad90 100644 --- a/generated/stripe_shared/src/legal_entity_person_verification.rs +++ b/generated/stripe_shared/src/legal_entity_person_verification.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct LegalEntityPersonVerification { /// A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. pub additional_document: Option, diff --git a/generated/stripe_shared/src/legal_entity_person_verification_document.rs b/generated/stripe_shared/src/legal_entity_person_verification_document.rs index f87705e86..f9d084e23 100644 --- a/generated/stripe_shared/src/legal_entity_person_verification_document.rs +++ b/generated/stripe_shared/src/legal_entity_person_verification_document.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct LegalEntityPersonVerificationDocument { /// The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. pub back: Option>, diff --git a/generated/stripe_shared/src/legal_entity_ubo_declaration.rs b/generated/stripe_shared/src/legal_entity_ubo_declaration.rs index 8daeb8a63..56319bedd 100644 --- a/generated/stripe_shared/src/legal_entity_ubo_declaration.rs +++ b/generated/stripe_shared/src/legal_entity_ubo_declaration.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct LegalEntityUboDeclaration { /// The Unix timestamp marking when the beneficial owner attestation was made. pub date: Option, diff --git a/generated/stripe_shared/src/level3.rs b/generated/stripe_shared/src/level3.rs index b7d553645..8b1a82014 100644 --- a/generated/stripe_shared/src/level3.rs +++ b/generated/stripe_shared/src/level3.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Level3 { pub customer_reference: Option, pub line_items: Vec, diff --git a/generated/stripe_shared/src/level3_line_items.rs b/generated/stripe_shared/src/level3_line_items.rs index ddfbde27a..364e7c8b4 100644 --- a/generated/stripe_shared/src/level3_line_items.rs +++ b/generated/stripe_shared/src/level3_line_items.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Level3LineItems { pub discount_amount: Option, pub product_code: String, diff --git a/generated/stripe_shared/src/line_items_discount_amount.rs b/generated/stripe_shared/src/line_items_discount_amount.rs index 015852922..ce57b2f3f 100644 --- a/generated/stripe_shared/src/line_items_discount_amount.rs +++ b/generated/stripe_shared/src/line_items_discount_amount.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct LineItemsDiscountAmount { /// The amount discounted. pub amount: i64, diff --git a/generated/stripe_shared/src/line_items_tax_amount.rs b/generated/stripe_shared/src/line_items_tax_amount.rs index 32a868cb8..b05a55f54 100644 --- a/generated/stripe_shared/src/line_items_tax_amount.rs +++ b/generated/stripe_shared/src/line_items_tax_amount.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct LineItemsTaxAmount { /// Amount of tax applied for this rate. pub amount: i64, @@ -198,7 +198,7 @@ impl std::fmt::Debug for LineItemsTaxAmountTaxabilityReason { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for LineItemsTaxAmountTaxabilityReason { fn serialize(&self, serializer: S) -> Result where @@ -225,7 +225,7 @@ impl miniserde::de::Visitor for crate::Place } stripe_types::impl_from_val_with_from_str!(LineItemsTaxAmountTaxabilityReason); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for LineItemsTaxAmountTaxabilityReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/linked_account_options_us_bank_account.rs b/generated/stripe_shared/src/linked_account_options_us_bank_account.rs index 7bac9d588..837de0967 100644 --- a/generated/stripe_shared/src/linked_account_options_us_bank_account.rs +++ b/generated/stripe_shared/src/linked_account_options_us_bank_account.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct LinkedAccountOptionsUsBankAccount { /// The list of permissions to request. The `payment_method` permission must be included. pub permissions: Option>, @@ -154,7 +154,7 @@ impl std::fmt::Debug for LinkedAccountOptionsUsBankAccountPermissions { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for LinkedAccountOptionsUsBankAccountPermissions { fn serialize(&self, serializer: S) -> Result where @@ -181,7 +181,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for LinkedAccountOptionsUsBankAccountPermissions { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -231,7 +231,7 @@ impl std::fmt::Debug for LinkedAccountOptionsUsBankAccountPrefetch { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for LinkedAccountOptionsUsBankAccountPrefetch { fn serialize(&self, serializer: S) -> Result where @@ -257,7 +257,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for LinkedAccountOptionsUsBankAccountPrefetch { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/mandate.rs b/generated/stripe_shared/src/mandate.rs index d36c4d373..47d0c3dac 100644 --- a/generated/stripe_shared/src/mandate.rs +++ b/generated/stripe_shared/src/mandate.rs @@ -2,7 +2,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Mandate { pub customer_acceptance: stripe_shared::CustomerAcceptance, /// Unique identifier for the object. @@ -19,7 +19,7 @@ pub struct Mandate { /// The mandate status indicates whether or not you can use it to initiate a payment. pub status: MandateStatus, /// The type of the mandate. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: MandateType, } #[doc(hidden)] @@ -158,7 +158,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Mandate { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -219,7 +219,7 @@ impl std::fmt::Debug for MandateStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for MandateStatus { fn serialize(&self, serializer: S) -> Result where @@ -243,7 +243,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(MandateStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for MandateStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -289,7 +289,7 @@ impl std::fmt::Debug for MandateType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for MandateType { fn serialize(&self, serializer: S) -> Result where @@ -313,7 +313,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(MandateType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for MandateType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/mandate_acss_debit.rs b/generated/stripe_shared/src/mandate_acss_debit.rs index 4a4b14aea..8c5c525e6 100644 --- a/generated/stripe_shared/src/mandate_acss_debit.rs +++ b/generated/stripe_shared/src/mandate_acss_debit.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct MandateAcssDebit { /// List of Stripe products where this mandate can be selected automatically. pub default_for: Option>, @@ -157,7 +157,7 @@ impl std::fmt::Debug for MandateAcssDebitDefaultFor { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for MandateAcssDebitDefaultFor { fn serialize(&self, serializer: S) -> Result where @@ -181,7 +181,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(MandateAcssDebitDefaultFor); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for MandateAcssDebitDefaultFor { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -231,7 +231,7 @@ impl std::fmt::Debug for MandateAcssDebitPaymentSchedule { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for MandateAcssDebitPaymentSchedule { fn serialize(&self, serializer: S) -> Result where @@ -256,7 +256,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(MandateAcssDebitPaymentSchedule); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for MandateAcssDebitPaymentSchedule { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -304,7 +304,7 @@ impl std::fmt::Debug for MandateAcssDebitTransactionType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for MandateAcssDebitTransactionType { fn serialize(&self, serializer: S) -> Result where @@ -329,7 +329,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(MandateAcssDebitTransactionType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for MandateAcssDebitTransactionType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/mandate_au_becs_debit.rs b/generated/stripe_shared/src/mandate_au_becs_debit.rs index b1c9b47cc..6c0449b8e 100644 --- a/generated/stripe_shared/src/mandate_au_becs_debit.rs +++ b/generated/stripe_shared/src/mandate_au_becs_debit.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct MandateAuBecsDebit { /// The URL of the mandate. /// This URL generally contains sensitive information about the customer and should be shared with them exclusively. diff --git a/generated/stripe_shared/src/mandate_bacs_debit.rs b/generated/stripe_shared/src/mandate_bacs_debit.rs index dba090726..78d4950f2 100644 --- a/generated/stripe_shared/src/mandate_bacs_debit.rs +++ b/generated/stripe_shared/src/mandate_bacs_debit.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct MandateBacsDebit { /// The status of the mandate on the Bacs network. /// Can be one of `pending`, `revoked`, `refused`, or `accepted`. @@ -162,7 +162,7 @@ impl std::fmt::Debug for MandateBacsDebitNetworkStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for MandateBacsDebitNetworkStatus { fn serialize(&self, serializer: S) -> Result where @@ -186,7 +186,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(MandateBacsDebitNetworkStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for MandateBacsDebitNetworkStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -243,7 +243,7 @@ impl std::fmt::Debug for MandateBacsDebitRevocationReason { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for MandateBacsDebitRevocationReason { fn serialize(&self, serializer: S) -> Result where @@ -268,7 +268,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(MandateBacsDebitRevocationReason); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for MandateBacsDebitRevocationReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/mandate_cashapp.rs b/generated/stripe_shared/src/mandate_cashapp.rs index 4327a91c8..527054de1 100644 --- a/generated/stripe_shared/src/mandate_cashapp.rs +++ b/generated/stripe_shared/src/mandate_cashapp.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct MandateCashapp {} #[doc(hidden)] pub struct MandateCashappBuilder {} diff --git a/generated/stripe_shared/src/mandate_link.rs b/generated/stripe_shared/src/mandate_link.rs index 685474c20..003a0b021 100644 --- a/generated/stripe_shared/src/mandate_link.rs +++ b/generated/stripe_shared/src/mandate_link.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct MandateLink {} #[doc(hidden)] pub struct MandateLinkBuilder {} diff --git a/generated/stripe_shared/src/mandate_multi_use.rs b/generated/stripe_shared/src/mandate_multi_use.rs index 89b3df299..1250b4282 100644 --- a/generated/stripe_shared/src/mandate_multi_use.rs +++ b/generated/stripe_shared/src/mandate_multi_use.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct MandateMultiUse {} #[doc(hidden)] pub struct MandateMultiUseBuilder {} diff --git a/generated/stripe_shared/src/mandate_payment_method_details.rs b/generated/stripe_shared/src/mandate_payment_method_details.rs index 905883462..d4f744c6e 100644 --- a/generated/stripe_shared/src/mandate_payment_method_details.rs +++ b/generated/stripe_shared/src/mandate_payment_method_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct MandatePaymentMethodDetails { pub acss_debit: Option, pub au_becs_debit: Option, @@ -12,7 +12,7 @@ pub struct MandatePaymentMethodDetails { pub sepa_debit: Option, /// This mandate corresponds with a specific payment method type. /// The `payment_method_details` includes an additional hash with the same name and contains mandate information that's specific to that payment method. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: String, pub us_bank_account: Option, } diff --git a/generated/stripe_shared/src/mandate_paypal.rs b/generated/stripe_shared/src/mandate_paypal.rs index 6efd6b41f..17662e36e 100644 --- a/generated/stripe_shared/src/mandate_paypal.rs +++ b/generated/stripe_shared/src/mandate_paypal.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct MandatePaypal { /// The PayPal Billing Agreement ID (BAID). /// This is an ID generated by PayPal which represents the mandate between the merchant and the customer. diff --git a/generated/stripe_shared/src/mandate_sepa_debit.rs b/generated/stripe_shared/src/mandate_sepa_debit.rs index d76cbc624..035f852fc 100644 --- a/generated/stripe_shared/src/mandate_sepa_debit.rs +++ b/generated/stripe_shared/src/mandate_sepa_debit.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct MandateSepaDebit { /// The unique reference of the mandate. pub reference: String, diff --git a/generated/stripe_shared/src/mandate_single_use.rs b/generated/stripe_shared/src/mandate_single_use.rs index 821abe89d..631956731 100644 --- a/generated/stripe_shared/src/mandate_single_use.rs +++ b/generated/stripe_shared/src/mandate_single_use.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct MandateSingleUse { /// The amount of the payment on a single use mandate. pub amount: i64, diff --git a/generated/stripe_shared/src/mandate_us_bank_account.rs b/generated/stripe_shared/src/mandate_us_bank_account.rs index b49b91fa4..3f89f11c9 100644 --- a/generated/stripe_shared/src/mandate_us_bank_account.rs +++ b/generated/stripe_shared/src/mandate_us_bank_account.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct MandateUsBankAccount { /// Mandate collection method pub collection_method: Option, @@ -126,7 +126,7 @@ impl std::fmt::Debug for MandateUsBankAccountCollectionMethod { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for MandateUsBankAccountCollectionMethod { fn serialize(&self, serializer: S) -> Result where @@ -151,7 +151,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for MandateUsBankAccountCollectionMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/networks.rs b/generated/stripe_shared/src/networks.rs index f786790d5..9a49911df 100644 --- a/generated/stripe_shared/src/networks.rs +++ b/generated/stripe_shared/src/networks.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Networks { /// All available networks for the card. pub available: Vec, diff --git a/generated/stripe_shared/src/notification_event_data.rs b/generated/stripe_shared/src/notification_event_data.rs index 88adcbd86..4eae60bb3 100644 --- a/generated/stripe_shared/src/notification_event_data.rs +++ b/generated/stripe_shared/src/notification_event_data.rs @@ -1,15 +1,21 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct NotificationEventData { /// Object containing the API resource relevant to the event. /// For example, an `invoice.created` event will have a full [invoice object](https://stripe.com/docs/api#invoice_object) as the value of the object key. - #[cfg_attr(feature = "serde", serde(with = "stripe_types::with_serde_json"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(with = "stripe_types::with_serde_json") + )] pub object: miniserde::json::Value, /// Object containing the names of the updated attributes and their values prior to the event (only included in events of type `*.updated`). /// If an array attribute has any updated elements, this object contains the entire array. /// In Stripe API versions 2017-04-06 or earlier, an updated array attribute in this object includes only the updated array elements. - #[cfg_attr(feature = "serde", serde(with = "stripe_types::with_serde_json_opt"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(with = "stripe_types::with_serde_json_opt") + )] pub previous_attributes: Option, } #[doc(hidden)] diff --git a/generated/stripe_shared/src/notification_event_request.rs b/generated/stripe_shared/src/notification_event_request.rs index a8c57c1b3..ab9daf141 100644 --- a/generated/stripe_shared/src/notification_event_request.rs +++ b/generated/stripe_shared/src/notification_event_request.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct NotificationEventRequest { /// ID of the API request that caused the event. /// If null, the event was automatic (e.g., Stripe's automatic subscription handling). diff --git a/generated/stripe_shared/src/offline_acceptance.rs b/generated/stripe_shared/src/offline_acceptance.rs index ca4cd1abb..29c45ee8e 100644 --- a/generated/stripe_shared/src/offline_acceptance.rs +++ b/generated/stripe_shared/src/offline_acceptance.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct OfflineAcceptance {} #[doc(hidden)] pub struct OfflineAcceptanceBuilder {} diff --git a/generated/stripe_shared/src/online_acceptance.rs b/generated/stripe_shared/src/online_acceptance.rs index 0bae6fe53..73fc92531 100644 --- a/generated/stripe_shared/src/online_acceptance.rs +++ b/generated/stripe_shared/src/online_acceptance.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct OnlineAcceptance { /// The customer accepts the mandate from this IP address. pub ip_address: Option, diff --git a/generated/stripe_shared/src/package_dimensions.rs b/generated/stripe_shared/src/package_dimensions.rs index a081a1f58..c2e9167e0 100644 --- a/generated/stripe_shared/src/package_dimensions.rs +++ b/generated/stripe_shared/src/package_dimensions.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PackageDimensions { /// Height, in inches. pub height: f64, diff --git a/generated/stripe_shared/src/payment_flows_amount_details.rs b/generated/stripe_shared/src/payment_flows_amount_details.rs index 6bce732af..57dec2ecb 100644 --- a/generated/stripe_shared/src/payment_flows_amount_details.rs +++ b/generated/stripe_shared/src/payment_flows_amount_details.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentFlowsAmountDetails { pub tip: Option, } diff --git a/generated/stripe_shared/src/payment_flows_amount_details_resource_tip.rs b/generated/stripe_shared/src/payment_flows_amount_details_resource_tip.rs index 2a33c24b5..d9f0b94c5 100644 --- a/generated/stripe_shared/src/payment_flows_amount_details_resource_tip.rs +++ b/generated/stripe_shared/src/payment_flows_amount_details_resource_tip.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentFlowsAmountDetailsResourceTip { /// Portion of the amount that corresponds to a tip. pub amount: Option, diff --git a/generated/stripe_shared/src/payment_flows_automatic_payment_methods_payment_intent.rs b/generated/stripe_shared/src/payment_flows_automatic_payment_methods_payment_intent.rs index 8dcc549a7..ccde1bc69 100644 --- a/generated/stripe_shared/src/payment_flows_automatic_payment_methods_payment_intent.rs +++ b/generated/stripe_shared/src/payment_flows_automatic_payment_methods_payment_intent.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentFlowsAutomaticPaymentMethodsPaymentIntent { /// Controls whether this PaymentIntent will accept redirect-based payment methods. /// @@ -140,7 +140,7 @@ impl std::fmt::Debug for PaymentFlowsAutomaticPaymentMethodsPaymentIntentAllowRe f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentFlowsAutomaticPaymentMethodsPaymentIntentAllowRedirects { fn serialize(&self, serializer: S) -> Result where @@ -171,7 +171,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( PaymentFlowsAutomaticPaymentMethodsPaymentIntentAllowRedirects ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentFlowsAutomaticPaymentMethodsPaymentIntentAllowRedirects { diff --git a/generated/stripe_shared/src/payment_flows_automatic_payment_methods_setup_intent.rs b/generated/stripe_shared/src/payment_flows_automatic_payment_methods_setup_intent.rs index 669e6f997..374fed4e1 100644 --- a/generated/stripe_shared/src/payment_flows_automatic_payment_methods_setup_intent.rs +++ b/generated/stripe_shared/src/payment_flows_automatic_payment_methods_setup_intent.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentFlowsAutomaticPaymentMethodsSetupIntent { /// Controls whether this SetupIntent will accept redirect-based payment methods. /// @@ -140,7 +140,7 @@ impl std::fmt::Debug for PaymentFlowsAutomaticPaymentMethodsSetupIntentAllowRedi f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentFlowsAutomaticPaymentMethodsSetupIntentAllowRedirects { fn serialize(&self, serializer: S) -> Result where @@ -171,7 +171,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( PaymentFlowsAutomaticPaymentMethodsSetupIntentAllowRedirects ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentFlowsAutomaticPaymentMethodsSetupIntentAllowRedirects { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_flows_private_payment_methods_alipay.rs b/generated/stripe_shared/src/payment_flows_private_payment_methods_alipay.rs index f16cbc5cb..a22e6584d 100644 --- a/generated/stripe_shared/src/payment_flows_private_payment_methods_alipay.rs +++ b/generated/stripe_shared/src/payment_flows_private_payment_methods_alipay.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentFlowsPrivatePaymentMethodsAlipay {} #[doc(hidden)] pub struct PaymentFlowsPrivatePaymentMethodsAlipayBuilder {} diff --git a/generated/stripe_shared/src/payment_flows_private_payment_methods_alipay_details.rs b/generated/stripe_shared/src/payment_flows_private_payment_methods_alipay_details.rs index fb761783c..9d4d38c47 100644 --- a/generated/stripe_shared/src/payment_flows_private_payment_methods_alipay_details.rs +++ b/generated/stripe_shared/src/payment_flows_private_payment_methods_alipay_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentFlowsPrivatePaymentMethodsAlipayDetails { /// Uniquely identifies this particular Alipay account. /// You can use this attribute to check whether two Alipay accounts are the same. diff --git a/generated/stripe_shared/src/payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_extended_authorization_extended_authorization.rs b/generated/stripe_shared/src/payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_extended_authorization_extended_authorization.rs index e43dad425..fb536c816 100644 --- a/generated/stripe_shared/src/payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_extended_authorization_extended_authorization.rs +++ b/generated/stripe_shared/src/payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_extended_authorization_extended_authorization.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesExtendedAuthorizationExtendedAuthorization { /// Indicates whether or not the capture window is extended beyond the standard authorization. pub status: PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesExtendedAuthorizationExtendedAuthorizationStatus, @@ -138,7 +138,7 @@ impl std::fmt::Debug for PaymentFlowsPrivatePaymentMethodsCardDetailsApiResource f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesExtendedAuthorizationExtendedAuthorizationStatus { fn serialize(&self, serializer: S) -> Result where S: serde::Serializer { serializer.serialize_str(self.as_str()) @@ -159,7 +159,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesExtendedAuthorizationExtendedAuthorizationStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_incremental_authorization_incremental_authorization.rs b/generated/stripe_shared/src/payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_incremental_authorization_incremental_authorization.rs index 12f77c089..f1eb5a795 100644 --- a/generated/stripe_shared/src/payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_incremental_authorization_incremental_authorization.rs +++ b/generated/stripe_shared/src/payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_incremental_authorization_incremental_authorization.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesIncrementalAuthorizationIncrementalAuthorization { /// Indicates whether or not the incremental authorization feature is supported. pub status: PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesIncrementalAuthorizationIncrementalAuthorizationStatus, @@ -138,7 +138,7 @@ impl std::fmt::Debug for PaymentFlowsPrivatePaymentMethodsCardDetailsApiResource f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesIncrementalAuthorizationIncrementalAuthorizationStatus { fn serialize(&self, serializer: S) -> Result where S: serde::Serializer { serializer.serialize_str(self.as_str()) @@ -159,7 +159,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesIncrementalAuthorizationIncrementalAuthorizationStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_overcapture_overcapture.rs b/generated/stripe_shared/src/payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_overcapture_overcapture.rs index 6e8525dca..42ee87be9 100644 --- a/generated/stripe_shared/src/payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_overcapture_overcapture.rs +++ b/generated/stripe_shared/src/payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_overcapture_overcapture.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesOvercaptureOvercapture { /// The maximum amount that can be captured. pub maximum_amount_capturable: i64, @@ -145,7 +145,7 @@ impl std::fmt::Debug for PaymentFlowsPrivatePaymentMethodsCardDetailsApiResource f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesOvercaptureOvercaptureStatus { fn serialize(&self, serializer: S) -> Result where S: serde::Serializer { serializer.serialize_str(self.as_str()) @@ -166,7 +166,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesOvercaptureOvercaptureStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_flows_private_payment_methods_card_details_api_resource_multicapture.rs b/generated/stripe_shared/src/payment_flows_private_payment_methods_card_details_api_resource_multicapture.rs index ef4677cb3..f04634fd6 100644 --- a/generated/stripe_shared/src/payment_flows_private_payment_methods_card_details_api_resource_multicapture.rs +++ b/generated/stripe_shared/src/payment_flows_private_payment_methods_card_details_api_resource_multicapture.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceMulticapture { /// Indicates whether or not multiple captures are supported. pub status: PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceMulticaptureStatus, @@ -133,7 +133,7 @@ impl std::fmt::Debug for PaymentFlowsPrivatePaymentMethodsCardDetailsApiResource f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceMulticaptureStatus { @@ -168,7 +168,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceMulticaptureStatus ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceMulticaptureStatus { diff --git a/generated/stripe_shared/src/payment_flows_private_payment_methods_klarna_dob.rs b/generated/stripe_shared/src/payment_flows_private_payment_methods_klarna_dob.rs index c24b2fdbd..633ec175f 100644 --- a/generated/stripe_shared/src/payment_flows_private_payment_methods_klarna_dob.rs +++ b/generated/stripe_shared/src/payment_flows_private_payment_methods_klarna_dob.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentFlowsPrivatePaymentMethodsKlarnaDob { /// The day of birth, between 1 and 31. pub day: Option, diff --git a/generated/stripe_shared/src/payment_intent.rs b/generated/stripe_shared/src/payment_intent.rs index 8cf23b420..b46e717ea 100644 --- a/generated/stripe_shared/src/payment_intent.rs +++ b/generated/stripe_shared/src/payment_intent.rs @@ -12,7 +12,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntent { /// Amount intended to be collected by this PaymentIntent. /// A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). @@ -441,7 +441,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntent { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -546,7 +546,7 @@ impl std::fmt::Debug for PaymentIntentCancellationReason { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentCancellationReason { fn serialize(&self, serializer: S) -> Result where @@ -571,7 +571,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PaymentIntentCancellationReason); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentCancellationReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -635,7 +635,7 @@ impl std::fmt::Debug for PaymentIntentStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentStatus { fn serialize(&self, serializer: S) -> Result where @@ -659,7 +659,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PaymentIntentStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -738,7 +738,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PaymentIntentCaptureMethod); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -808,7 +808,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PaymentIntentConfirmationMethod); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentConfirmationMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -878,7 +878,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PaymentIntentSetupFutureUsage); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_intent_card_processing.rs b/generated/stripe_shared/src/payment_intent_card_processing.rs index 3d0730ea1..8ae00f01c 100644 --- a/generated/stripe_shared/src/payment_intent_card_processing.rs +++ b/generated/stripe_shared/src/payment_intent_card_processing.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentCardProcessing { pub customer_notification: Option, } diff --git a/generated/stripe_shared/src/payment_intent_next_action.rs b/generated/stripe_shared/src/payment_intent_next_action.rs index 78e9244d3..c3c966e72 100644 --- a/generated/stripe_shared/src/payment_intent_next_action.rs +++ b/generated/stripe_shared/src/payment_intent_next_action.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentNextAction { pub alipay_handle_redirect: Option, pub boleto_display_details: Option, @@ -20,11 +20,14 @@ pub struct PaymentIntentNextAction { pub swish_handle_redirect_or_display_qr_code: Option, /// Type of the next action to perform, one of `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, `oxxo_display_details`, or `verify_with_microdeposits`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: String, /// When confirming a PaymentIntent with Stripe.js, Stripe.js depends on the contents of this dictionary to invoke authentication flows. /// The shape of the contents is subject to change and is only intended to be used by Stripe.js. - #[cfg_attr(feature = "serde", serde(with = "stripe_types::with_serde_json_opt"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(with = "stripe_types::with_serde_json_opt") + )] pub use_stripe_sdk: Option, pub verify_with_microdeposits: Option, diff --git a/generated/stripe_shared/src/payment_intent_next_action_alipay_handle_redirect.rs b/generated/stripe_shared/src/payment_intent_next_action_alipay_handle_redirect.rs index d36082535..f3b2e99bc 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_alipay_handle_redirect.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_alipay_handle_redirect.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentNextActionAlipayHandleRedirect { /// The native data to be used with Alipay SDK you must redirect your customer to in order to authenticate the payment in an Android App. pub native_data: Option, diff --git a/generated/stripe_shared/src/payment_intent_next_action_boleto.rs b/generated/stripe_shared/src/payment_intent_next_action_boleto.rs index 314101e4a..0622c07f7 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_boleto.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_boleto.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentNextActionBoleto { /// The timestamp after which the boleto expires. pub expires_at: Option, diff --git a/generated/stripe_shared/src/payment_intent_next_action_card_await_notification.rs b/generated/stripe_shared/src/payment_intent_next_action_card_await_notification.rs index 92033d691..fbc88507d 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_card_await_notification.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_card_await_notification.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentNextActionCardAwaitNotification { /// The time that payment will be attempted. /// If customer approval is required, they need to provide approval before this time. diff --git a/generated/stripe_shared/src/payment_intent_next_action_cashapp_handle_redirect_or_display_qr_code.rs b/generated/stripe_shared/src/payment_intent_next_action_cashapp_handle_redirect_or_display_qr_code.rs index b7c96e237..55995543e 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_cashapp_handle_redirect_or_display_qr_code.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_cashapp_handle_redirect_or_display_qr_code.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCode { /// The URL to the hosted Cash App Pay instructions page, which allows customers to view the QR code, and supports QR code refreshing on expiration. pub hosted_instructions_url: String, diff --git a/generated/stripe_shared/src/payment_intent_next_action_cashapp_qr_code.rs b/generated/stripe_shared/src/payment_intent_next_action_cashapp_qr_code.rs index ded2c6195..4252855e7 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_cashapp_qr_code.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_cashapp_qr_code.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentNextActionCashappQrCode { /// The date (unix timestamp) when the QR code expires. pub expires_at: stripe_types::Timestamp, diff --git a/generated/stripe_shared/src/payment_intent_next_action_display_bank_transfer_instructions.rs b/generated/stripe_shared/src/payment_intent_next_action_display_bank_transfer_instructions.rs index 99224bcfe..ce2132418 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_display_bank_transfer_instructions.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_display_bank_transfer_instructions.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentNextActionDisplayBankTransferInstructions { /// The remaining amount that needs to be transferred to complete the payment. pub amount_remaining: Option, @@ -16,7 +16,7 @@ pub struct PaymentIntentNextActionDisplayBankTransferInstructions { /// Instruct your customer to include this code in the reference or memo field of their bank transfer. pub reference: Option, /// Type of bank transfer - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: PaymentIntentNextActionDisplayBankTransferInstructionsType, } #[doc(hidden)] @@ -188,7 +188,7 @@ impl std::fmt::Debug for PaymentIntentNextActionDisplayBankTransferInstructionsT f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentNextActionDisplayBankTransferInstructionsType { fn serialize(&self, serializer: S) -> Result where @@ -219,7 +219,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( PaymentIntentNextActionDisplayBankTransferInstructionsType ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentNextActionDisplayBankTransferInstructionsType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_intent_next_action_display_oxxo_details.rs b/generated/stripe_shared/src/payment_intent_next_action_display_oxxo_details.rs index af24b8e5d..b1fcc5ef7 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_display_oxxo_details.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_display_oxxo_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentNextActionDisplayOxxoDetails { /// The timestamp after which the OXXO voucher expires. pub expires_after: Option, diff --git a/generated/stripe_shared/src/payment_intent_next_action_konbini.rs b/generated/stripe_shared/src/payment_intent_next_action_konbini.rs index 37f7fe0c9..5109038e7 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_konbini.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_konbini.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentNextActionKonbini { /// The timestamp at which the pending Konbini payment expires. pub expires_at: stripe_types::Timestamp, diff --git a/generated/stripe_shared/src/payment_intent_next_action_konbini_familymart.rs b/generated/stripe_shared/src/payment_intent_next_action_konbini_familymart.rs index bdc815cdb..d4f904927 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_konbini_familymart.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_konbini_familymart.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentNextActionKonbiniFamilymart { /// The confirmation number. pub confirmation_number: Option, diff --git a/generated/stripe_shared/src/payment_intent_next_action_konbini_lawson.rs b/generated/stripe_shared/src/payment_intent_next_action_konbini_lawson.rs index d65ced784..b1b277d92 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_konbini_lawson.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_konbini_lawson.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentNextActionKonbiniLawson { /// The confirmation number. pub confirmation_number: Option, diff --git a/generated/stripe_shared/src/payment_intent_next_action_konbini_ministop.rs b/generated/stripe_shared/src/payment_intent_next_action_konbini_ministop.rs index ffbecd125..c1d6e1bf8 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_konbini_ministop.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_konbini_ministop.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentNextActionKonbiniMinistop { /// The confirmation number. pub confirmation_number: Option, diff --git a/generated/stripe_shared/src/payment_intent_next_action_konbini_seicomart.rs b/generated/stripe_shared/src/payment_intent_next_action_konbini_seicomart.rs index 5a36d3059..8a0f5d1f4 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_konbini_seicomart.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_konbini_seicomart.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentNextActionKonbiniSeicomart { /// The confirmation number. pub confirmation_number: Option, diff --git a/generated/stripe_shared/src/payment_intent_next_action_konbini_stores.rs b/generated/stripe_shared/src/payment_intent_next_action_konbini_stores.rs index 5182b7988..ce7f65a80 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_konbini_stores.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_konbini_stores.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentNextActionKonbiniStores { /// FamilyMart instruction details. pub familymart: Option, diff --git a/generated/stripe_shared/src/payment_intent_next_action_paynow_display_qr_code.rs b/generated/stripe_shared/src/payment_intent_next_action_paynow_display_qr_code.rs index d00bbb357..2d29359a4 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_paynow_display_qr_code.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_paynow_display_qr_code.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentNextActionPaynowDisplayQrCode { /// The raw data string used to generate QR code, it should be used together with QR code library. pub data: String, diff --git a/generated/stripe_shared/src/payment_intent_next_action_pix_display_qr_code.rs b/generated/stripe_shared/src/payment_intent_next_action_pix_display_qr_code.rs index ecb59c4fd..c37241817 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_pix_display_qr_code.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_pix_display_qr_code.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentNextActionPixDisplayQrCode { /// The raw data string used to generate QR code, it should be used together with QR code library. pub data: Option, diff --git a/generated/stripe_shared/src/payment_intent_next_action_promptpay_display_qr_code.rs b/generated/stripe_shared/src/payment_intent_next_action_promptpay_display_qr_code.rs index 0333a9f8e..2c02e53e4 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_promptpay_display_qr_code.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_promptpay_display_qr_code.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentNextActionPromptpayDisplayQrCode { /// The raw data string used to generate QR code, it should be used together with QR code library. pub data: String, diff --git a/generated/stripe_shared/src/payment_intent_next_action_redirect_to_url.rs b/generated/stripe_shared/src/payment_intent_next_action_redirect_to_url.rs index 6a5277f1c..cc58e05b0 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_redirect_to_url.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_redirect_to_url.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentNextActionRedirectToUrl { /// If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion. pub return_url: Option, diff --git a/generated/stripe_shared/src/payment_intent_next_action_swish_handle_redirect_or_display_qr_code.rs b/generated/stripe_shared/src/payment_intent_next_action_swish_handle_redirect_or_display_qr_code.rs index 3984499fb..b3cced53b 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_swish_handle_redirect_or_display_qr_code.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_swish_handle_redirect_or_display_qr_code.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentNextActionSwishHandleRedirectOrDisplayQrCode { /// The URL to the hosted Swish instructions page, which allows customers to view the QR code. pub hosted_instructions_url: Option, diff --git a/generated/stripe_shared/src/payment_intent_next_action_swish_qr_code.rs b/generated/stripe_shared/src/payment_intent_next_action_swish_qr_code.rs index 42d520a5d..659540350 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_swish_qr_code.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_swish_qr_code.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentNextActionSwishQrCode { /// The raw data string used to generate QR code, it should be used together with QR code library. pub data: Option, diff --git a/generated/stripe_shared/src/payment_intent_next_action_verify_with_microdeposits.rs b/generated/stripe_shared/src/payment_intent_next_action_verify_with_microdeposits.rs index 860b6cbfc..52466d703 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_verify_with_microdeposits.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_verify_with_microdeposits.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentNextActionVerifyWithMicrodeposits { /// The timestamp when the microdeposits are expected to land. pub arrival_date: stripe_types::Timestamp, @@ -152,7 +152,7 @@ impl std::fmt::Debug for PaymentIntentNextActionVerifyWithMicrodepositsMicrodepo f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentNextActionVerifyWithMicrodepositsMicrodepositType { fn serialize(&self, serializer: S) -> Result where @@ -183,7 +183,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( PaymentIntentNextActionVerifyWithMicrodepositsMicrodepositType ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentNextActionVerifyWithMicrodepositsMicrodepositType { diff --git a/generated/stripe_shared/src/payment_intent_next_action_wechat_pay_display_qr_code.rs b/generated/stripe_shared/src/payment_intent_next_action_wechat_pay_display_qr_code.rs index 805e9f221..a55aa1534 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_wechat_pay_display_qr_code.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_wechat_pay_display_qr_code.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentNextActionWechatPayDisplayQrCode { /// The data being used to generate QR code pub data: String, diff --git a/generated/stripe_shared/src/payment_intent_next_action_wechat_pay_redirect_to_android_app.rs b/generated/stripe_shared/src/payment_intent_next_action_wechat_pay_redirect_to_android_app.rs index 47fa592d1..97822f2b2 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_wechat_pay_redirect_to_android_app.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_wechat_pay_redirect_to_android_app.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentNextActionWechatPayRedirectToAndroidApp { /// app_id is the APP ID registered on WeChat open platform pub app_id: String, diff --git a/generated/stripe_shared/src/payment_intent_next_action_wechat_pay_redirect_to_ios_app.rs b/generated/stripe_shared/src/payment_intent_next_action_wechat_pay_redirect_to_ios_app.rs index 74c356024..41c3575fe 100644 --- a/generated/stripe_shared/src/payment_intent_next_action_wechat_pay_redirect_to_ios_app.rs +++ b/generated/stripe_shared/src/payment_intent_next_action_wechat_pay_redirect_to_ios_app.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentNextActionWechatPayRedirectToIosApp { /// An universal link that redirect to WeChat Pay app pub native_url: String, diff --git a/generated/stripe_shared/src/payment_intent_payment_method_options.rs b/generated/stripe_shared/src/payment_intent_payment_method_options.rs index d9b35177c..1cceca274 100644 --- a/generated/stripe_shared/src/payment_intent_payment_method_options.rs +++ b/generated/stripe_shared/src/payment_intent_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentPaymentMethodOptions { pub acss_debit: Option, pub affirm: Option, diff --git a/generated/stripe_shared/src/payment_intent_payment_method_options_acss_debit.rs b/generated/stripe_shared/src/payment_intent_payment_method_options_acss_debit.rs index c56f868b0..44699b17b 100644 --- a/generated/stripe_shared/src/payment_intent_payment_method_options_acss_debit.rs +++ b/generated/stripe_shared/src/payment_intent_payment_method_options_acss_debit.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentPaymentMethodOptionsAcssDebit { pub mandate_options: Option, @@ -166,7 +166,7 @@ impl std::fmt::Debug for PaymentIntentPaymentMethodOptionsAcssDebitSetupFutureUs f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentPaymentMethodOptionsAcssDebitSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -197,7 +197,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( PaymentIntentPaymentMethodOptionsAcssDebitSetupFutureUsage ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentPaymentMethodOptionsAcssDebitSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -250,7 +250,7 @@ impl std::fmt::Debug for PaymentIntentPaymentMethodOptionsAcssDebitVerificationM f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentPaymentMethodOptionsAcssDebitVerificationMethod { fn serialize(&self, serializer: S) -> Result where @@ -281,7 +281,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( PaymentIntentPaymentMethodOptionsAcssDebitVerificationMethod ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentPaymentMethodOptionsAcssDebitVerificationMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_intent_payment_method_options_au_becs_debit.rs b/generated/stripe_shared/src/payment_intent_payment_method_options_au_becs_debit.rs index 10dec9cdb..e028d6636 100644 --- a/generated/stripe_shared/src/payment_intent_payment_method_options_au_becs_debit.rs +++ b/generated/stripe_shared/src/payment_intent_payment_method_options_au_becs_debit.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentPaymentMethodOptionsAuBecsDebit { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -145,7 +145,7 @@ impl std::fmt::Debug for PaymentIntentPaymentMethodOptionsAuBecsDebitSetupFuture f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentPaymentMethodOptionsAuBecsDebitSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -176,7 +176,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( PaymentIntentPaymentMethodOptionsAuBecsDebitSetupFutureUsage ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentPaymentMethodOptionsAuBecsDebitSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_intent_payment_method_options_blik.rs b/generated/stripe_shared/src/payment_intent_payment_method_options_blik.rs index 79f95ff03..3b0b82d5b 100644 --- a/generated/stripe_shared/src/payment_intent_payment_method_options_blik.rs +++ b/generated/stripe_shared/src/payment_intent_payment_method_options_blik.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentPaymentMethodOptionsBlik { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -138,7 +138,7 @@ impl std::fmt::Debug for PaymentIntentPaymentMethodOptionsBlikSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentPaymentMethodOptionsBlikSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -167,7 +167,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(PaymentIntentPaymentMethodOptionsBlikSetupFutureUsage); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentPaymentMethodOptionsBlikSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_intent_payment_method_options_card.rs b/generated/stripe_shared/src/payment_intent_payment_method_options_card.rs index 3235aa74f..58b276973 100644 --- a/generated/stripe_shared/src/payment_intent_payment_method_options_card.rs +++ b/generated/stripe_shared/src/payment_intent_payment_method_options_card.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentPaymentMethodOptionsCard { /// Controls when the funds will be captured from the customer's account. pub capture_method: Option, @@ -266,7 +266,7 @@ impl std::fmt::Debug for PaymentIntentPaymentMethodOptionsCardCaptureMethod { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentPaymentMethodOptionsCardCaptureMethod { fn serialize(&self, serializer: S) -> Result where @@ -293,7 +293,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentIntentPaymentMethodOptionsCardCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -372,7 +372,7 @@ impl std::fmt::Debug for PaymentIntentPaymentMethodOptionsCardNetwork { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentPaymentMethodOptionsCardNetwork { fn serialize(&self, serializer: S) -> Result where @@ -399,7 +399,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentIntentPaymentMethodOptionsCardNetwork { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -449,7 +449,7 @@ impl std::fmt::Debug for PaymentIntentPaymentMethodOptionsCardRequestExtendedAut f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentPaymentMethodOptionsCardRequestExtendedAuthorization { fn serialize(&self, serializer: S) -> Result where @@ -480,7 +480,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( PaymentIntentPaymentMethodOptionsCardRequestExtendedAuthorization ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentPaymentMethodOptionsCardRequestExtendedAuthorization { @@ -528,7 +528,7 @@ impl std::fmt::Debug for PaymentIntentPaymentMethodOptionsCardRequestIncremental f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentPaymentMethodOptionsCardRequestIncrementalAuthorization { fn serialize(&self, serializer: S) -> Result where @@ -561,7 +561,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( PaymentIntentPaymentMethodOptionsCardRequestIncrementalAuthorization ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentPaymentMethodOptionsCardRequestIncrementalAuthorization { @@ -609,7 +609,7 @@ impl std::fmt::Debug for PaymentIntentPaymentMethodOptionsCardRequestMulticaptur f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentPaymentMethodOptionsCardRequestMulticapture { fn serialize(&self, serializer: S) -> Result where @@ -640,7 +640,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( PaymentIntentPaymentMethodOptionsCardRequestMulticapture ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentPaymentMethodOptionsCardRequestMulticapture { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -690,7 +690,7 @@ impl std::fmt::Debug for PaymentIntentPaymentMethodOptionsCardRequestOvercapture f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentPaymentMethodOptionsCardRequestOvercapture { fn serialize(&self, serializer: S) -> Result where @@ -719,7 +719,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(PaymentIntentPaymentMethodOptionsCardRequestOvercapture); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentPaymentMethodOptionsCardRequestOvercapture { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -775,7 +775,7 @@ impl std::fmt::Debug for PaymentIntentPaymentMethodOptionsCardRequestThreeDSecur f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentPaymentMethodOptionsCardRequestThreeDSecure { fn serialize(&self, serializer: S) -> Result where @@ -806,7 +806,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( PaymentIntentPaymentMethodOptionsCardRequestThreeDSecure ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentPaymentMethodOptionsCardRequestThreeDSecure { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -864,7 +864,7 @@ impl std::fmt::Debug for PaymentIntentPaymentMethodOptionsCardSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentPaymentMethodOptionsCardSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -893,7 +893,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(PaymentIntentPaymentMethodOptionsCardSetupFutureUsage); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentPaymentMethodOptionsCardSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_intent_payment_method_options_eps.rs b/generated/stripe_shared/src/payment_intent_payment_method_options_eps.rs index 0d2140e4e..d8a5cc212 100644 --- a/generated/stripe_shared/src/payment_intent_payment_method_options_eps.rs +++ b/generated/stripe_shared/src/payment_intent_payment_method_options_eps.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentPaymentMethodOptionsEps { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -138,7 +138,7 @@ impl std::fmt::Debug for PaymentIntentPaymentMethodOptionsEpsSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentPaymentMethodOptionsEpsSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -165,7 +165,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentIntentPaymentMethodOptionsEpsSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_intent_payment_method_options_link.rs b/generated/stripe_shared/src/payment_intent_payment_method_options_link.rs index f7c284ec9..d45c8523f 100644 --- a/generated/stripe_shared/src/payment_intent_payment_method_options_link.rs +++ b/generated/stripe_shared/src/payment_intent_payment_method_options_link.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentPaymentMethodOptionsLink { /// Controls when the funds will be captured from the customer's account. pub capture_method: Option, @@ -151,7 +151,7 @@ impl std::fmt::Debug for PaymentIntentPaymentMethodOptionsLinkCaptureMethod { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentPaymentMethodOptionsLinkCaptureMethod { fn serialize(&self, serializer: S) -> Result where @@ -178,7 +178,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentIntentPaymentMethodOptionsLinkCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -233,7 +233,7 @@ impl std::fmt::Debug for PaymentIntentPaymentMethodOptionsLinkSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentPaymentMethodOptionsLinkSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -262,7 +262,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(PaymentIntentPaymentMethodOptionsLinkSetupFutureUsage); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentPaymentMethodOptionsLinkSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_intent_payment_method_options_mandate_options_acss_debit.rs b/generated/stripe_shared/src/payment_intent_payment_method_options_mandate_options_acss_debit.rs index 4215eee5c..3b7756096 100644 --- a/generated/stripe_shared/src/payment_intent_payment_method_options_mandate_options_acss_debit.rs +++ b/generated/stripe_shared/src/payment_intent_payment_method_options_mandate_options_acss_debit.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit { /// A URL for custom mandate text pub custom_mandate_url: Option, @@ -168,7 +168,7 @@ impl std::fmt::Debug for PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebi f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule { fn serialize(&self, serializer: S) -> Result where @@ -201,7 +201,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule { @@ -249,7 +249,7 @@ impl std::fmt::Debug for PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebi f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType { fn serialize(&self, serializer: S) -> Result where @@ -282,7 +282,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType { diff --git a/generated/stripe_shared/src/payment_intent_payment_method_options_mandate_options_sepa_debit.rs b/generated/stripe_shared/src/payment_intent_payment_method_options_mandate_options_sepa_debit.rs index db2cdef41..11d1286ad 100644 --- a/generated/stripe_shared/src/payment_intent_payment_method_options_mandate_options_sepa_debit.rs +++ b/generated/stripe_shared/src/payment_intent_payment_method_options_mandate_options_sepa_debit.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentPaymentMethodOptionsMandateOptionsSepaDebit {} #[doc(hidden)] pub struct PaymentIntentPaymentMethodOptionsMandateOptionsSepaDebitBuilder {} diff --git a/generated/stripe_shared/src/payment_intent_payment_method_options_sepa_debit.rs b/generated/stripe_shared/src/payment_intent_payment_method_options_sepa_debit.rs index d2cbebaaf..d41f62aab 100644 --- a/generated/stripe_shared/src/payment_intent_payment_method_options_sepa_debit.rs +++ b/generated/stripe_shared/src/payment_intent_payment_method_options_sepa_debit.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentPaymentMethodOptionsSepaDebit { pub mandate_options: Option, @@ -156,7 +156,7 @@ impl std::fmt::Debug for PaymentIntentPaymentMethodOptionsSepaDebitSetupFutureUs f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentPaymentMethodOptionsSepaDebitSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -187,7 +187,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( PaymentIntentPaymentMethodOptionsSepaDebitSetupFutureUsage ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentPaymentMethodOptionsSepaDebitSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_intent_payment_method_options_swish.rs b/generated/stripe_shared/src/payment_intent_payment_method_options_swish.rs index ca7df093a..6ebd0708d 100644 --- a/generated/stripe_shared/src/payment_intent_payment_method_options_swish.rs +++ b/generated/stripe_shared/src/payment_intent_payment_method_options_swish.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentPaymentMethodOptionsSwish { /// The order ID displayed in the Swish app after the payment is authorized. pub reference: Option, @@ -146,7 +146,7 @@ impl std::fmt::Debug for PaymentIntentPaymentMethodOptionsSwishSetupFutureUsage f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentPaymentMethodOptionsSwishSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -175,7 +175,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(PaymentIntentPaymentMethodOptionsSwishSetupFutureUsage); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentPaymentMethodOptionsSwishSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_intent_payment_method_options_us_bank_account.rs b/generated/stripe_shared/src/payment_intent_payment_method_options_us_bank_account.rs index 3a57f4842..ecf2ea8dc 100644 --- a/generated/stripe_shared/src/payment_intent_payment_method_options_us_bank_account.rs +++ b/generated/stripe_shared/src/payment_intent_payment_method_options_us_bank_account.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentPaymentMethodOptionsUsBankAccount { pub financial_connections: Option, pub mandate_options: Option, @@ -179,7 +179,7 @@ impl std::fmt::Debug for PaymentIntentPaymentMethodOptionsUsBankAccountPreferred f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentPaymentMethodOptionsUsBankAccountPreferredSettlementSpeed { fn serialize(&self, serializer: S) -> Result where @@ -212,7 +212,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( PaymentIntentPaymentMethodOptionsUsBankAccountPreferredSettlementSpeed ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentPaymentMethodOptionsUsBankAccountPreferredSettlementSpeed { @@ -268,7 +268,7 @@ impl std::fmt::Debug for PaymentIntentPaymentMethodOptionsUsBankAccountSetupFutu f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentPaymentMethodOptionsUsBankAccountSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -299,7 +299,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( PaymentIntentPaymentMethodOptionsUsBankAccountSetupFutureUsage ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentPaymentMethodOptionsUsBankAccountSetupFutureUsage { @@ -354,7 +354,7 @@ impl std::fmt::Debug for PaymentIntentPaymentMethodOptionsUsBankAccountVerificat f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentPaymentMethodOptionsUsBankAccountVerificationMethod { fn serialize(&self, serializer: S) -> Result where @@ -385,7 +385,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( PaymentIntentPaymentMethodOptionsUsBankAccountVerificationMethod ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentPaymentMethodOptionsUsBankAccountVerificationMethod { diff --git a/generated/stripe_shared/src/payment_intent_processing.rs b/generated/stripe_shared/src/payment_intent_processing.rs index 44e9d73e4..bbbafcab9 100644 --- a/generated/stripe_shared/src/payment_intent_processing.rs +++ b/generated/stripe_shared/src/payment_intent_processing.rs @@ -1,10 +1,10 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentProcessing { pub card: Option, /// Type of the payment method for which payment is in `processing` state, one of `card`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: PaymentIntentProcessingType, } #[doc(hidden)] @@ -131,7 +131,7 @@ impl std::fmt::Debug for PaymentIntentProcessingType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentIntentProcessingType { fn serialize(&self, serializer: S) -> Result where @@ -155,7 +155,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PaymentIntentProcessingType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentIntentProcessingType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_intent_processing_customer_notification.rs b/generated/stripe_shared/src/payment_intent_processing_customer_notification.rs index 5761cb061..2800c52e5 100644 --- a/generated/stripe_shared/src/payment_intent_processing_customer_notification.rs +++ b/generated/stripe_shared/src/payment_intent_processing_customer_notification.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentIntentProcessingCustomerNotification { /// Whether customer approval has been requested for this payment. /// For payments greater than INR 15000 or mandate amount, the customer must provide explicit approval of the payment with their bank. diff --git a/generated/stripe_shared/src/payment_link.rs b/generated/stripe_shared/src/payment_link.rs index 52724ba06..e66124ed9 100644 --- a/generated/stripe_shared/src/payment_link.rs +++ b/generated/stripe_shared/src/payment_link.rs @@ -8,7 +8,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLink { /// Whether the payment link's `url` is active. /// If `false`, customers visiting the URL will be shown a page saying that the link has been deactivated. @@ -350,7 +350,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentLink { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -430,7 +430,7 @@ impl std::fmt::Debug for PaymentLinkCustomerCreation { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentLinkCustomerCreation { fn serialize(&self, serializer: S) -> Result where @@ -454,7 +454,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PaymentLinkCustomerCreation); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentLinkCustomerCreation { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -501,7 +501,7 @@ impl std::fmt::Debug for PaymentLinkPaymentMethodCollection { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentLinkPaymentMethodCollection { fn serialize(&self, serializer: S) -> Result where @@ -526,7 +526,7 @@ impl miniserde::de::Visitor for crate::Place } stripe_types::impl_from_val_with_from_str!(PaymentLinkPaymentMethodCollection); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentLinkPaymentMethodCollection { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -604,7 +604,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentLinkBillingAddressCollection { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -762,7 +762,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PaymentLinkPaymentMethodTypes); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentLinkPaymentMethodTypes { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -836,7 +836,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PaymentLinkSubmitType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentLinkSubmitType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_links_resource_after_completion.rs b/generated/stripe_shared/src/payment_links_resource_after_completion.rs index 0610c6ca4..2488a40e3 100644 --- a/generated/stripe_shared/src/payment_links_resource_after_completion.rs +++ b/generated/stripe_shared/src/payment_links_resource_after_completion.rs @@ -1,12 +1,12 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourceAfterCompletion { pub hosted_confirmation: Option, pub redirect: Option, /// The specified behavior after the purchase is complete. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: PaymentLinksResourceAfterCompletionType, } #[doc(hidden)] @@ -150,7 +150,7 @@ impl std::fmt::Debug for PaymentLinksResourceAfterCompletionType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentLinksResourceAfterCompletionType { fn serialize(&self, serializer: S) -> Result where @@ -176,7 +176,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentLinksResourceAfterCompletionType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_links_resource_automatic_tax.rs b/generated/stripe_shared/src/payment_links_resource_automatic_tax.rs index 8634531c4..007b12401 100644 --- a/generated/stripe_shared/src/payment_links_resource_automatic_tax.rs +++ b/generated/stripe_shared/src/payment_links_resource_automatic_tax.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourceAutomaticTax { /// If `true`, tax will be calculated automatically using the customer's location. pub enabled: bool, diff --git a/generated/stripe_shared/src/payment_links_resource_completed_sessions.rs b/generated/stripe_shared/src/payment_links_resource_completed_sessions.rs index e93608285..3a3e2237e 100644 --- a/generated/stripe_shared/src/payment_links_resource_completed_sessions.rs +++ b/generated/stripe_shared/src/payment_links_resource_completed_sessions.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourceCompletedSessions { /// The current number of checkout sessions that have been completed on the payment link which count towards the `completed_sessions` restriction to be met. pub count: u64, diff --git a/generated/stripe_shared/src/payment_links_resource_completion_behavior_confirmation_page.rs b/generated/stripe_shared/src/payment_links_resource_completion_behavior_confirmation_page.rs index 36d8a2638..f98cbb6d7 100644 --- a/generated/stripe_shared/src/payment_links_resource_completion_behavior_confirmation_page.rs +++ b/generated/stripe_shared/src/payment_links_resource_completion_behavior_confirmation_page.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourceCompletionBehaviorConfirmationPage { /// The custom message that is displayed to the customer after the purchase is complete. pub custom_message: Option, diff --git a/generated/stripe_shared/src/payment_links_resource_completion_behavior_redirect.rs b/generated/stripe_shared/src/payment_links_resource_completion_behavior_redirect.rs index 36d6d5c01..80ad6f37a 100644 --- a/generated/stripe_shared/src/payment_links_resource_completion_behavior_redirect.rs +++ b/generated/stripe_shared/src/payment_links_resource_completion_behavior_redirect.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourceCompletionBehaviorRedirect { /// The URL the customer will be redirected to after the purchase is complete. pub url: String, diff --git a/generated/stripe_shared/src/payment_links_resource_consent_collection.rs b/generated/stripe_shared/src/payment_links_resource_consent_collection.rs index ee5429c81..ad42bc7c6 100644 --- a/generated/stripe_shared/src/payment_links_resource_consent_collection.rs +++ b/generated/stripe_shared/src/payment_links_resource_consent_collection.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourceConsentCollection { /// Settings related to the payment method reuse text shown in the Checkout UI. pub payment_method_reuse_agreement: @@ -154,7 +154,7 @@ impl std::fmt::Debug for PaymentLinksResourceConsentCollectionPromotions { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentLinksResourceConsentCollectionPromotions { fn serialize(&self, serializer: S) -> Result where @@ -181,7 +181,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentLinksResourceConsentCollectionPromotions { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -232,7 +232,7 @@ impl std::fmt::Debug for PaymentLinksResourceConsentCollectionTermsOfService { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentLinksResourceConsentCollectionTermsOfService { fn serialize(&self, serializer: S) -> Result where @@ -259,7 +259,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentLinksResourceConsentCollectionTermsOfService { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_links_resource_custom_fields.rs b/generated/stripe_shared/src/payment_links_resource_custom_fields.rs index 4f4041d0c..6ed02771e 100644 --- a/generated/stripe_shared/src/payment_links_resource_custom_fields.rs +++ b/generated/stripe_shared/src/payment_links_resource_custom_fields.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourceCustomFields { pub dropdown: Option, /// String of your choice that your integration can use to reconcile this field. @@ -13,7 +13,7 @@ pub struct PaymentLinksResourceCustomFields { pub optional: bool, pub text: Option, /// The type of the field. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: PaymentLinksResourceCustomFieldsType, } #[doc(hidden)] @@ -177,7 +177,7 @@ impl std::fmt::Debug for PaymentLinksResourceCustomFieldsType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentLinksResourceCustomFieldsType { fn serialize(&self, serializer: S) -> Result where @@ -202,7 +202,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentLinksResourceCustomFieldsType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_links_resource_custom_fields_dropdown.rs b/generated/stripe_shared/src/payment_links_resource_custom_fields_dropdown.rs index 48c83914c..4a7636c56 100644 --- a/generated/stripe_shared/src/payment_links_resource_custom_fields_dropdown.rs +++ b/generated/stripe_shared/src/payment_links_resource_custom_fields_dropdown.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourceCustomFieldsDropdown { /// The options available for the customer to select. Up to 200 options allowed. pub options: Vec, diff --git a/generated/stripe_shared/src/payment_links_resource_custom_fields_dropdown_option.rs b/generated/stripe_shared/src/payment_links_resource_custom_fields_dropdown_option.rs index 063aee7d0..80a5228ed 100644 --- a/generated/stripe_shared/src/payment_links_resource_custom_fields_dropdown_option.rs +++ b/generated/stripe_shared/src/payment_links_resource_custom_fields_dropdown_option.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourceCustomFieldsDropdownOption { /// The label for the option, displayed to the customer. Up to 100 characters. pub label: String, diff --git a/generated/stripe_shared/src/payment_links_resource_custom_fields_label.rs b/generated/stripe_shared/src/payment_links_resource_custom_fields_label.rs index 2137db581..d8cf0dd6a 100644 --- a/generated/stripe_shared/src/payment_links_resource_custom_fields_label.rs +++ b/generated/stripe_shared/src/payment_links_resource_custom_fields_label.rs @@ -1,11 +1,11 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourceCustomFieldsLabel { /// Custom text for the label, displayed to the customer. Up to 50 characters. pub custom: Option, /// The type of the label. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: PaymentLinksResourceCustomFieldsLabelType, } #[doc(hidden)] @@ -132,7 +132,7 @@ impl std::fmt::Debug for PaymentLinksResourceCustomFieldsLabelType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentLinksResourceCustomFieldsLabelType { fn serialize(&self, serializer: S) -> Result where @@ -158,7 +158,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentLinksResourceCustomFieldsLabelType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_links_resource_custom_fields_numeric.rs b/generated/stripe_shared/src/payment_links_resource_custom_fields_numeric.rs index bd1f05303..d010e2dad 100644 --- a/generated/stripe_shared/src/payment_links_resource_custom_fields_numeric.rs +++ b/generated/stripe_shared/src/payment_links_resource_custom_fields_numeric.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourceCustomFieldsNumeric { /// The maximum character length constraint for the customer's input. pub maximum_length: Option, diff --git a/generated/stripe_shared/src/payment_links_resource_custom_fields_text.rs b/generated/stripe_shared/src/payment_links_resource_custom_fields_text.rs index a95ba40bd..052ea5cd3 100644 --- a/generated/stripe_shared/src/payment_links_resource_custom_fields_text.rs +++ b/generated/stripe_shared/src/payment_links_resource_custom_fields_text.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourceCustomFieldsText { /// The maximum character length constraint for the customer's input. pub maximum_length: Option, diff --git a/generated/stripe_shared/src/payment_links_resource_custom_text.rs b/generated/stripe_shared/src/payment_links_resource_custom_text.rs index ae92f8781..38d084596 100644 --- a/generated/stripe_shared/src/payment_links_resource_custom_text.rs +++ b/generated/stripe_shared/src/payment_links_resource_custom_text.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourceCustomText { /// Custom text that should be displayed after the payment confirmation button. pub after_submit: Option, diff --git a/generated/stripe_shared/src/payment_links_resource_custom_text_position.rs b/generated/stripe_shared/src/payment_links_resource_custom_text_position.rs index 7becc51bd..3217a11e3 100644 --- a/generated/stripe_shared/src/payment_links_resource_custom_text_position.rs +++ b/generated/stripe_shared/src/payment_links_resource_custom_text_position.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourceCustomTextPosition { /// Text may be up to 1200 characters in length. pub message: String, diff --git a/generated/stripe_shared/src/payment_links_resource_invoice_creation.rs b/generated/stripe_shared/src/payment_links_resource_invoice_creation.rs index 0a803a30b..87653854d 100644 --- a/generated/stripe_shared/src/payment_links_resource_invoice_creation.rs +++ b/generated/stripe_shared/src/payment_links_resource_invoice_creation.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourceInvoiceCreation { /// Enable creating an invoice on successful payment. pub enabled: bool, diff --git a/generated/stripe_shared/src/payment_links_resource_invoice_settings.rs b/generated/stripe_shared/src/payment_links_resource_invoice_settings.rs index 1a9d86804..ee0602ec1 100644 --- a/generated/stripe_shared/src/payment_links_resource_invoice_settings.rs +++ b/generated/stripe_shared/src/payment_links_resource_invoice_settings.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourceInvoiceSettings { /// The account tax IDs associated with the invoice. pub account_tax_ids: Option>>, diff --git a/generated/stripe_shared/src/payment_links_resource_payment_intent_data.rs b/generated/stripe_shared/src/payment_links_resource_payment_intent_data.rs index f5575a9f8..bb16f84ec 100644 --- a/generated/stripe_shared/src/payment_links_resource_payment_intent_data.rs +++ b/generated/stripe_shared/src/payment_links_resource_payment_intent_data.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourcePaymentIntentData { /// Indicates when the funds will be captured from the customer's account. pub capture_method: Option, @@ -190,7 +190,7 @@ impl std::fmt::Debug for PaymentLinksResourcePaymentIntentDataCaptureMethod { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentLinksResourcePaymentIntentDataCaptureMethod { fn serialize(&self, serializer: S) -> Result where @@ -217,7 +217,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentLinksResourcePaymentIntentDataCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -267,7 +267,7 @@ impl std::fmt::Debug for PaymentLinksResourcePaymentIntentDataSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentLinksResourcePaymentIntentDataSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -296,7 +296,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(PaymentLinksResourcePaymentIntentDataSetupFutureUsage); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentLinksResourcePaymentIntentDataSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_links_resource_payment_method_reuse_agreement.rs b/generated/stripe_shared/src/payment_links_resource_payment_method_reuse_agreement.rs index 1b69548a6..4b936a017 100644 --- a/generated/stripe_shared/src/payment_links_resource_payment_method_reuse_agreement.rs +++ b/generated/stripe_shared/src/payment_links_resource_payment_method_reuse_agreement.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourcePaymentMethodReuseAgreement { /// Determines the position and visibility of the payment method reuse agreement in the UI. /// When set to `auto`, Stripe's defaults will be used. @@ -135,7 +135,7 @@ impl std::fmt::Debug for PaymentLinksResourcePaymentMethodReuseAgreementPosition f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentLinksResourcePaymentMethodReuseAgreementPosition { fn serialize(&self, serializer: S) -> Result where @@ -164,7 +164,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(PaymentLinksResourcePaymentMethodReuseAgreementPosition); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentLinksResourcePaymentMethodReuseAgreementPosition { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_links_resource_phone_number_collection.rs b/generated/stripe_shared/src/payment_links_resource_phone_number_collection.rs index 3c2f9893a..f34be70d6 100644 --- a/generated/stripe_shared/src/payment_links_resource_phone_number_collection.rs +++ b/generated/stripe_shared/src/payment_links_resource_phone_number_collection.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourcePhoneNumberCollection { /// If `true`, a phone number will be collected during checkout. pub enabled: bool, diff --git a/generated/stripe_shared/src/payment_links_resource_restrictions.rs b/generated/stripe_shared/src/payment_links_resource_restrictions.rs index 0bf589fe0..a8d615732 100644 --- a/generated/stripe_shared/src/payment_links_resource_restrictions.rs +++ b/generated/stripe_shared/src/payment_links_resource_restrictions.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourceRestrictions { pub completed_sessions: stripe_shared::PaymentLinksResourceCompletedSessions, } diff --git a/generated/stripe_shared/src/payment_links_resource_shipping_address_collection.rs b/generated/stripe_shared/src/payment_links_resource_shipping_address_collection.rs index 3e47f5b29..676aadc66 100644 --- a/generated/stripe_shared/src/payment_links_resource_shipping_address_collection.rs +++ b/generated/stripe_shared/src/payment_links_resource_shipping_address_collection.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourceShippingAddressCollection { /// An array of two-letter ISO country codes representing which countries Checkout should provide as options for shipping locations. /// Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI`. @@ -840,7 +840,7 @@ impl std::fmt::Debug for PaymentLinksResourceShippingAddressCollectionAllowedCou f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentLinksResourceShippingAddressCollectionAllowedCountries { fn serialize(&self, serializer: S) -> Result where @@ -871,7 +871,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( PaymentLinksResourceShippingAddressCollectionAllowedCountries ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentLinksResourceShippingAddressCollectionAllowedCountries { diff --git a/generated/stripe_shared/src/payment_links_resource_shipping_option.rs b/generated/stripe_shared/src/payment_links_resource_shipping_option.rs index 066eb8a9c..1494b62c6 100644 --- a/generated/stripe_shared/src/payment_links_resource_shipping_option.rs +++ b/generated/stripe_shared/src/payment_links_resource_shipping_option.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourceShippingOption { /// A non-negative integer in cents representing how much to charge. pub shipping_amount: i64, diff --git a/generated/stripe_shared/src/payment_links_resource_subscription_data.rs b/generated/stripe_shared/src/payment_links_resource_subscription_data.rs index a7ebe08c6..7a4d138b9 100644 --- a/generated/stripe_shared/src/payment_links_resource_subscription_data.rs +++ b/generated/stripe_shared/src/payment_links_resource_subscription_data.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourceSubscriptionData { /// The subscription's description, meant to be displayable to the customer. /// Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. diff --git a/generated/stripe_shared/src/payment_links_resource_subscription_data_invoice_settings.rs b/generated/stripe_shared/src/payment_links_resource_subscription_data_invoice_settings.rs index aa4b5c56c..9aada4393 100644 --- a/generated/stripe_shared/src/payment_links_resource_subscription_data_invoice_settings.rs +++ b/generated/stripe_shared/src/payment_links_resource_subscription_data_invoice_settings.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourceSubscriptionDataInvoiceSettings { pub issuer: stripe_shared::ConnectAccountReference, } diff --git a/generated/stripe_shared/src/payment_links_resource_tax_id_collection.rs b/generated/stripe_shared/src/payment_links_resource_tax_id_collection.rs index 242642c1f..c3d9489c2 100644 --- a/generated/stripe_shared/src/payment_links_resource_tax_id_collection.rs +++ b/generated/stripe_shared/src/payment_links_resource_tax_id_collection.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourceTaxIdCollection { /// Indicates whether tax ID collection is enabled for the session. pub enabled: bool, diff --git a/generated/stripe_shared/src/payment_links_resource_transfer_data.rs b/generated/stripe_shared/src/payment_links_resource_transfer_data.rs index f2b6be555..7694f4ed4 100644 --- a/generated/stripe_shared/src/payment_links_resource_transfer_data.rs +++ b/generated/stripe_shared/src/payment_links_resource_transfer_data.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentLinksResourceTransferData { /// The amount in cents (or local equivalent) that will be transferred to the destination account. /// By default, the entire amount is transferred to the destination. diff --git a/generated/stripe_shared/src/payment_method.rs b/generated/stripe_shared/src/payment_method.rs index d9ae50eae..4bdff29ea 100644 --- a/generated/stripe_shared/src/payment_method.rs +++ b/generated/stripe_shared/src/payment_method.rs @@ -6,7 +6,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethod { pub acss_debit: Option, pub affirm: Option, @@ -57,7 +57,7 @@ pub struct PaymentMethod { /// The type of the PaymentMethod. /// An additional hash is included on the PaymentMethod with a name matching this value. /// It contains additional information specific to the PaymentMethod type. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: PaymentMethodType, pub us_bank_account: Option, pub wechat_pay: Option, @@ -363,7 +363,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethod { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -559,7 +559,7 @@ impl std::fmt::Debug for PaymentMethodType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodType { fn serialize(&self, serializer: S) -> Result where @@ -583,7 +583,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PaymentMethodType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentMethodType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_acss_debit.rs b/generated/stripe_shared/src/payment_method_acss_debit.rs index 63f069ffa..81425d158 100644 --- a/generated/stripe_shared/src/payment_method_acss_debit.rs +++ b/generated/stripe_shared/src/payment_method_acss_debit.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodAcssDebit { /// Name of the bank associated with the bank account. pub bank_name: Option, diff --git a/generated/stripe_shared/src/payment_method_affirm.rs b/generated/stripe_shared/src/payment_method_affirm.rs index 12635823d..346953121 100644 --- a/generated/stripe_shared/src/payment_method_affirm.rs +++ b/generated/stripe_shared/src/payment_method_affirm.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodAffirm {} #[doc(hidden)] pub struct PaymentMethodAffirmBuilder {} diff --git a/generated/stripe_shared/src/payment_method_afterpay_clearpay.rs b/generated/stripe_shared/src/payment_method_afterpay_clearpay.rs index 436200545..459a49fcd 100644 --- a/generated/stripe_shared/src/payment_method_afterpay_clearpay.rs +++ b/generated/stripe_shared/src/payment_method_afterpay_clearpay.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodAfterpayClearpay {} #[doc(hidden)] pub struct PaymentMethodAfterpayClearpayBuilder {} diff --git a/generated/stripe_shared/src/payment_method_au_becs_debit.rs b/generated/stripe_shared/src/payment_method_au_becs_debit.rs index 819b498fb..155142290 100644 --- a/generated/stripe_shared/src/payment_method_au_becs_debit.rs +++ b/generated/stripe_shared/src/payment_method_au_becs_debit.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodAuBecsDebit { /// Six-digit number identifying bank and branch associated with this bank account. pub bsb_number: Option, diff --git a/generated/stripe_shared/src/payment_method_bacs_debit.rs b/generated/stripe_shared/src/payment_method_bacs_debit.rs index 698d1ce83..60d40bb69 100644 --- a/generated/stripe_shared/src/payment_method_bacs_debit.rs +++ b/generated/stripe_shared/src/payment_method_bacs_debit.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodBacsDebit { /// Uniquely identifies this particular bank account. /// You can use this attribute to check whether two bank accounts are the same. diff --git a/generated/stripe_shared/src/payment_method_bancontact.rs b/generated/stripe_shared/src/payment_method_bancontact.rs index 8e1e8b644..57237f2d4 100644 --- a/generated/stripe_shared/src/payment_method_bancontact.rs +++ b/generated/stripe_shared/src/payment_method_bancontact.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodBancontact {} #[doc(hidden)] pub struct PaymentMethodBancontactBuilder {} diff --git a/generated/stripe_shared/src/payment_method_blik.rs b/generated/stripe_shared/src/payment_method_blik.rs index 69383b9e0..94c400c33 100644 --- a/generated/stripe_shared/src/payment_method_blik.rs +++ b/generated/stripe_shared/src/payment_method_blik.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodBlik {} #[doc(hidden)] pub struct PaymentMethodBlikBuilder {} diff --git a/generated/stripe_shared/src/payment_method_boleto.rs b/generated/stripe_shared/src/payment_method_boleto.rs index 2994e1f91..92f5838ce 100644 --- a/generated/stripe_shared/src/payment_method_boleto.rs +++ b/generated/stripe_shared/src/payment_method_boleto.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodBoleto { /// Uniquely identifies the customer tax id (CNPJ or CPF) pub tax_id: String, diff --git a/generated/stripe_shared/src/payment_method_card.rs b/generated/stripe_shared/src/payment_method_card.rs index 329a6d63f..2cb739c77 100644 --- a/generated/stripe_shared/src/payment_method_card.rs +++ b/generated/stripe_shared/src/payment_method_card.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodCard { /// Card brand. /// Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. diff --git a/generated/stripe_shared/src/payment_method_card_checks.rs b/generated/stripe_shared/src/payment_method_card_checks.rs index 10a8d254b..c68371a48 100644 --- a/generated/stripe_shared/src/payment_method_card_checks.rs +++ b/generated/stripe_shared/src/payment_method_card_checks.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodCardChecks { /// If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. pub address_line1_check: Option, diff --git a/generated/stripe_shared/src/payment_method_card_present.rs b/generated/stripe_shared/src/payment_method_card_present.rs index 2a91681a8..e991593ab 100644 --- a/generated/stripe_shared/src/payment_method_card_present.rs +++ b/generated/stripe_shared/src/payment_method_card_present.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodCardPresent { /// Card brand. /// Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. @@ -238,7 +238,7 @@ impl std::fmt::Debug for PaymentMethodCardPresentReadMethod { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodCardPresentReadMethod { fn serialize(&self, serializer: S) -> Result where @@ -263,7 +263,7 @@ impl miniserde::de::Visitor for crate::Place } stripe_types::impl_from_val_with_from_str!(PaymentMethodCardPresentReadMethod); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentMethodCardPresentReadMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_card_present_networks.rs b/generated/stripe_shared/src/payment_method_card_present_networks.rs index 5d921f369..6806f7133 100644 --- a/generated/stripe_shared/src/payment_method_card_present_networks.rs +++ b/generated/stripe_shared/src/payment_method_card_present_networks.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodCardPresentNetworks { /// All available networks for the card. pub available: Vec, diff --git a/generated/stripe_shared/src/payment_method_card_wallet.rs b/generated/stripe_shared/src/payment_method_card_wallet.rs index d3d2b5e23..c20f0e865 100644 --- a/generated/stripe_shared/src/payment_method_card_wallet.rs +++ b/generated/stripe_shared/src/payment_method_card_wallet.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodCardWallet { pub amex_express_checkout: Option, pub apple_pay: Option, @@ -13,7 +13,7 @@ pub struct PaymentMethodCardWallet { /// The type of the card wallet, one of `amex_express_checkout`, `apple_pay`, `google_pay`, `masterpass`, `samsung_pay`, `visa_checkout`, or `link`. /// An additional hash is included on the Wallet subhash with a name matching this value. /// It contains additional information specific to the card wallet type. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: PaymentMethodCardWalletType, pub visa_checkout: Option, } @@ -205,7 +205,7 @@ impl std::fmt::Debug for PaymentMethodCardWalletType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodCardWalletType { fn serialize(&self, serializer: S) -> Result where @@ -229,7 +229,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PaymentMethodCardWalletType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentMethodCardWalletType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_card_wallet_amex_express_checkout.rs b/generated/stripe_shared/src/payment_method_card_wallet_amex_express_checkout.rs index 947c12ed1..7850761a9 100644 --- a/generated/stripe_shared/src/payment_method_card_wallet_amex_express_checkout.rs +++ b/generated/stripe_shared/src/payment_method_card_wallet_amex_express_checkout.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodCardWalletAmexExpressCheckout {} #[doc(hidden)] pub struct PaymentMethodCardWalletAmexExpressCheckoutBuilder {} diff --git a/generated/stripe_shared/src/payment_method_card_wallet_apple_pay.rs b/generated/stripe_shared/src/payment_method_card_wallet_apple_pay.rs index fa0445970..6233914d8 100644 --- a/generated/stripe_shared/src/payment_method_card_wallet_apple_pay.rs +++ b/generated/stripe_shared/src/payment_method_card_wallet_apple_pay.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodCardWalletApplePay {} #[doc(hidden)] pub struct PaymentMethodCardWalletApplePayBuilder {} diff --git a/generated/stripe_shared/src/payment_method_card_wallet_google_pay.rs b/generated/stripe_shared/src/payment_method_card_wallet_google_pay.rs index e38addbf9..3476ff951 100644 --- a/generated/stripe_shared/src/payment_method_card_wallet_google_pay.rs +++ b/generated/stripe_shared/src/payment_method_card_wallet_google_pay.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodCardWalletGooglePay {} #[doc(hidden)] pub struct PaymentMethodCardWalletGooglePayBuilder {} diff --git a/generated/stripe_shared/src/payment_method_card_wallet_link.rs b/generated/stripe_shared/src/payment_method_card_wallet_link.rs index 88e96bd2b..92b5d7d8d 100644 --- a/generated/stripe_shared/src/payment_method_card_wallet_link.rs +++ b/generated/stripe_shared/src/payment_method_card_wallet_link.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodCardWalletLink {} #[doc(hidden)] pub struct PaymentMethodCardWalletLinkBuilder {} diff --git a/generated/stripe_shared/src/payment_method_card_wallet_masterpass.rs b/generated/stripe_shared/src/payment_method_card_wallet_masterpass.rs index fea303fda..994a5d128 100644 --- a/generated/stripe_shared/src/payment_method_card_wallet_masterpass.rs +++ b/generated/stripe_shared/src/payment_method_card_wallet_masterpass.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodCardWalletMasterpass { /// Owner's verified billing address. /// Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. diff --git a/generated/stripe_shared/src/payment_method_card_wallet_samsung_pay.rs b/generated/stripe_shared/src/payment_method_card_wallet_samsung_pay.rs index 482fa3863..3cbb6960b 100644 --- a/generated/stripe_shared/src/payment_method_card_wallet_samsung_pay.rs +++ b/generated/stripe_shared/src/payment_method_card_wallet_samsung_pay.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodCardWalletSamsungPay {} #[doc(hidden)] pub struct PaymentMethodCardWalletSamsungPayBuilder {} diff --git a/generated/stripe_shared/src/payment_method_card_wallet_visa_checkout.rs b/generated/stripe_shared/src/payment_method_card_wallet_visa_checkout.rs index f147b1ceb..ab300f222 100644 --- a/generated/stripe_shared/src/payment_method_card_wallet_visa_checkout.rs +++ b/generated/stripe_shared/src/payment_method_card_wallet_visa_checkout.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodCardWalletVisaCheckout { /// Owner's verified billing address. /// Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. diff --git a/generated/stripe_shared/src/payment_method_cashapp.rs b/generated/stripe_shared/src/payment_method_cashapp.rs index af8b35a8d..76ca898dd 100644 --- a/generated/stripe_shared/src/payment_method_cashapp.rs +++ b/generated/stripe_shared/src/payment_method_cashapp.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodCashapp { /// A unique and immutable identifier assigned by Cash App to every buyer. pub buyer_id: Option, diff --git a/generated/stripe_shared/src/payment_method_config_biz_payment_method_configuration_details.rs b/generated/stripe_shared/src/payment_method_config_biz_payment_method_configuration_details.rs index 9361a5690..4a6e3292e 100644 --- a/generated/stripe_shared/src/payment_method_config_biz_payment_method_configuration_details.rs +++ b/generated/stripe_shared/src/payment_method_config_biz_payment_method_configuration_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodConfigBizPaymentMethodConfigurationDetails { /// ID of the payment method configuration used. pub id: String, diff --git a/generated/stripe_shared/src/payment_method_customer_balance.rs b/generated/stripe_shared/src/payment_method_customer_balance.rs index 323c1b4b9..f323befb8 100644 --- a/generated/stripe_shared/src/payment_method_customer_balance.rs +++ b/generated/stripe_shared/src/payment_method_customer_balance.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodCustomerBalance {} #[doc(hidden)] pub struct PaymentMethodCustomerBalanceBuilder {} diff --git a/generated/stripe_shared/src/payment_method_details.rs b/generated/stripe_shared/src/payment_method_details.rs index 7ee8bc90f..19566e719 100644 --- a/generated/stripe_shared/src/payment_method_details.rs +++ b/generated/stripe_shared/src/payment_method_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetails { pub ach_credit_transfer: Option, pub ach_debit: Option, @@ -42,7 +42,7 @@ pub struct PaymentMethodDetails { /// The type of transaction-specific details of the payment method used in the payment, one of `ach_credit_transfer`, `ach_debit`, `acss_debit`, `alipay`, `au_becs_debit`, `bancontact`, `card`, `card_present`, `eps`, `giropay`, `ideal`, `klarna`, `multibanco`, `p24`, `sepa_debit`, `sofort`, `stripe_account`, or `wechat`. /// An additional hash is included on `payment_method_details` with a name matching this value. /// It contains information specific to the payment method. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: String, pub us_bank_account: Option, pub wechat: Option, diff --git a/generated/stripe_shared/src/payment_method_details_ach_credit_transfer.rs b/generated/stripe_shared/src/payment_method_details_ach_credit_transfer.rs index e792feb4d..532b3695d 100644 --- a/generated/stripe_shared/src/payment_method_details_ach_credit_transfer.rs +++ b/generated/stripe_shared/src/payment_method_details_ach_credit_transfer.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsAchCreditTransfer { /// Account number to transfer funds to. pub account_number: Option, diff --git a/generated/stripe_shared/src/payment_method_details_ach_debit.rs b/generated/stripe_shared/src/payment_method_details_ach_debit.rs index cca8a604f..023f9b4b5 100644 --- a/generated/stripe_shared/src/payment_method_details_ach_debit.rs +++ b/generated/stripe_shared/src/payment_method_details_ach_debit.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsAchDebit { /// Type of entity that holds the account. This can be either `individual` or `company`. pub account_holder_type: Option, @@ -171,7 +171,7 @@ impl std::fmt::Debug for PaymentMethodDetailsAchDebitAccountHolderType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodDetailsAchDebitAccountHolderType { fn serialize(&self, serializer: S) -> Result where @@ -198,7 +198,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodDetailsAchDebitAccountHolderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_details_acss_debit.rs b/generated/stripe_shared/src/payment_method_details_acss_debit.rs index 4ce848556..257f3d56f 100644 --- a/generated/stripe_shared/src/payment_method_details_acss_debit.rs +++ b/generated/stripe_shared/src/payment_method_details_acss_debit.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsAcssDebit { /// Name of the bank associated with the bank account. pub bank_name: Option, diff --git a/generated/stripe_shared/src/payment_method_details_affirm.rs b/generated/stripe_shared/src/payment_method_details_affirm.rs index 144ad66c8..d54795b6e 100644 --- a/generated/stripe_shared/src/payment_method_details_affirm.rs +++ b/generated/stripe_shared/src/payment_method_details_affirm.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsAffirm {} #[doc(hidden)] pub struct PaymentMethodDetailsAffirmBuilder {} diff --git a/generated/stripe_shared/src/payment_method_details_afterpay_clearpay.rs b/generated/stripe_shared/src/payment_method_details_afterpay_clearpay.rs index 476f2adf3..21660736b 100644 --- a/generated/stripe_shared/src/payment_method_details_afterpay_clearpay.rs +++ b/generated/stripe_shared/src/payment_method_details_afterpay_clearpay.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsAfterpayClearpay { /// The Afterpay order ID associated with this payment intent. pub order_id: Option, diff --git a/generated/stripe_shared/src/payment_method_details_au_becs_debit.rs b/generated/stripe_shared/src/payment_method_details_au_becs_debit.rs index 509c28cd4..54e15aac9 100644 --- a/generated/stripe_shared/src/payment_method_details_au_becs_debit.rs +++ b/generated/stripe_shared/src/payment_method_details_au_becs_debit.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsAuBecsDebit { /// Bank-State-Branch number of the bank account. pub bsb_number: Option, diff --git a/generated/stripe_shared/src/payment_method_details_bacs_debit.rs b/generated/stripe_shared/src/payment_method_details_bacs_debit.rs index ac622feaf..f3bbd17ee 100644 --- a/generated/stripe_shared/src/payment_method_details_bacs_debit.rs +++ b/generated/stripe_shared/src/payment_method_details_bacs_debit.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsBacsDebit { /// Uniquely identifies this particular bank account. /// You can use this attribute to check whether two bank accounts are the same. diff --git a/generated/stripe_shared/src/payment_method_details_bancontact.rs b/generated/stripe_shared/src/payment_method_details_bancontact.rs index 85277fb51..97f560926 100644 --- a/generated/stripe_shared/src/payment_method_details_bancontact.rs +++ b/generated/stripe_shared/src/payment_method_details_bancontact.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsBancontact { /// Bank code of bank associated with the bank account. pub bank_code: Option, @@ -199,7 +199,7 @@ impl std::fmt::Debug for PaymentMethodDetailsBancontactPreferredLanguage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodDetailsBancontactPreferredLanguage { fn serialize(&self, serializer: S) -> Result where @@ -226,7 +226,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodDetailsBancontactPreferredLanguage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_details_blik.rs b/generated/stripe_shared/src/payment_method_details_blik.rs index 4447a1525..735eec1af 100644 --- a/generated/stripe_shared/src/payment_method_details_blik.rs +++ b/generated/stripe_shared/src/payment_method_details_blik.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsBlik {} #[doc(hidden)] pub struct PaymentMethodDetailsBlikBuilder {} diff --git a/generated/stripe_shared/src/payment_method_details_boleto.rs b/generated/stripe_shared/src/payment_method_details_boleto.rs index aa17f8b69..94e6cca6a 100644 --- a/generated/stripe_shared/src/payment_method_details_boleto.rs +++ b/generated/stripe_shared/src/payment_method_details_boleto.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsBoleto { /// The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses consumers) pub tax_id: String, diff --git a/generated/stripe_shared/src/payment_method_details_card.rs b/generated/stripe_shared/src/payment_method_details_card.rs index ed6df5274..d544c1777 100644 --- a/generated/stripe_shared/src/payment_method_details_card.rs +++ b/generated/stripe_shared/src/payment_method_details_card.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsCard { /// The authorized amount. pub amount_authorized: Option, diff --git a/generated/stripe_shared/src/payment_method_details_card_checks.rs b/generated/stripe_shared/src/payment_method_details_card_checks.rs index 0083300c8..b0fffd8e7 100644 --- a/generated/stripe_shared/src/payment_method_details_card_checks.rs +++ b/generated/stripe_shared/src/payment_method_details_card_checks.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsCardChecks { /// If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. pub address_line1_check: Option, diff --git a/generated/stripe_shared/src/payment_method_details_card_installments.rs b/generated/stripe_shared/src/payment_method_details_card_installments.rs index 55eb00a42..24ed7f384 100644 --- a/generated/stripe_shared/src/payment_method_details_card_installments.rs +++ b/generated/stripe_shared/src/payment_method_details_card_installments.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsCardInstallments { /// Installment plan selected for the payment. pub plan: Option, diff --git a/generated/stripe_shared/src/payment_method_details_card_installments_plan.rs b/generated/stripe_shared/src/payment_method_details_card_installments_plan.rs index 0db1d59b0..3cc420b6e 100644 --- a/generated/stripe_shared/src/payment_method_details_card_installments_plan.rs +++ b/generated/stripe_shared/src/payment_method_details_card_installments_plan.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsCardInstallmentsPlan { /// For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card. pub count: Option, @@ -8,7 +8,7 @@ pub struct PaymentMethodDetailsCardInstallmentsPlan { /// One of `month`. pub interval: Option, /// Type of installment plan, one of `fixed_count`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: PaymentMethodDetailsCardInstallmentsPlanType, } #[doc(hidden)] @@ -143,7 +143,7 @@ impl std::fmt::Debug for PaymentMethodDetailsCardInstallmentsPlanInterval { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodDetailsCardInstallmentsPlanInterval { fn serialize(&self, serializer: S) -> Result where @@ -170,7 +170,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodDetailsCardInstallmentsPlanInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -217,7 +217,7 @@ impl std::fmt::Debug for PaymentMethodDetailsCardInstallmentsPlanType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodDetailsCardInstallmentsPlanType { fn serialize(&self, serializer: S) -> Result where @@ -244,7 +244,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodDetailsCardInstallmentsPlanType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_details_card_network_token.rs b/generated/stripe_shared/src/payment_method_details_card_network_token.rs index 08a8b81be..882c7cc49 100644 --- a/generated/stripe_shared/src/payment_method_details_card_network_token.rs +++ b/generated/stripe_shared/src/payment_method_details_card_network_token.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsCardNetworkToken { /// Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction. pub used: bool, diff --git a/generated/stripe_shared/src/payment_method_details_card_present.rs b/generated/stripe_shared/src/payment_method_details_card_present.rs index c7db75e1a..4ea49afc8 100644 --- a/generated/stripe_shared/src/payment_method_details_card_present.rs +++ b/generated/stripe_shared/src/payment_method_details_card_present.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsCardPresent { /// The authorized amount pub amount_authorized: Option, @@ -303,7 +303,7 @@ impl std::fmt::Debug for PaymentMethodDetailsCardPresentReadMethod { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodDetailsCardPresentReadMethod { fn serialize(&self, serializer: S) -> Result where @@ -329,7 +329,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodDetailsCardPresentReadMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_details_card_present_offline.rs b/generated/stripe_shared/src/payment_method_details_card_present_offline.rs index 082452d09..4e4d4d531 100644 --- a/generated/stripe_shared/src/payment_method_details_card_present_offline.rs +++ b/generated/stripe_shared/src/payment_method_details_card_present_offline.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsCardPresentOffline { /// Time at which the payment was collected while offline pub stored_at: Option, diff --git a/generated/stripe_shared/src/payment_method_details_card_present_receipt.rs b/generated/stripe_shared/src/payment_method_details_card_present_receipt.rs index 54697a1c4..f359d9e1f 100644 --- a/generated/stripe_shared/src/payment_method_details_card_present_receipt.rs +++ b/generated/stripe_shared/src/payment_method_details_card_present_receipt.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsCardPresentReceipt { /// The type of account being debited or credited pub account_type: Option, @@ -221,7 +221,7 @@ impl std::fmt::Debug for PaymentMethodDetailsCardPresentReceiptAccountType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodDetailsCardPresentReceiptAccountType { fn serialize(&self, serializer: S) -> Result where @@ -248,7 +248,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodDetailsCardPresentReceiptAccountType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_details_card_wallet.rs b/generated/stripe_shared/src/payment_method_details_card_wallet.rs index ef6fceb0a..b14ea555b 100644 --- a/generated/stripe_shared/src/payment_method_details_card_wallet.rs +++ b/generated/stripe_shared/src/payment_method_details_card_wallet.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsCardWallet { pub amex_express_checkout: Option, @@ -14,7 +14,7 @@ pub struct PaymentMethodDetailsCardWallet { /// The type of the card wallet, one of `amex_express_checkout`, `apple_pay`, `google_pay`, `masterpass`, `samsung_pay`, `visa_checkout`, or `link`. /// An additional hash is included on the Wallet subhash with a name matching this value. /// It contains additional information specific to the card wallet type. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: PaymentMethodDetailsCardWalletType, pub visa_checkout: Option, } @@ -206,7 +206,7 @@ impl std::fmt::Debug for PaymentMethodDetailsCardWalletType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodDetailsCardWalletType { fn serialize(&self, serializer: S) -> Result where @@ -231,7 +231,7 @@ impl miniserde::de::Visitor for crate::Place } stripe_types::impl_from_val_with_from_str!(PaymentMethodDetailsCardWalletType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentMethodDetailsCardWalletType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_details_card_wallet_amex_express_checkout.rs b/generated/stripe_shared/src/payment_method_details_card_wallet_amex_express_checkout.rs index 18343e5d6..59d433c7c 100644 --- a/generated/stripe_shared/src/payment_method_details_card_wallet_amex_express_checkout.rs +++ b/generated/stripe_shared/src/payment_method_details_card_wallet_amex_express_checkout.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsCardWalletAmexExpressCheckout {} #[doc(hidden)] pub struct PaymentMethodDetailsCardWalletAmexExpressCheckoutBuilder {} diff --git a/generated/stripe_shared/src/payment_method_details_card_wallet_apple_pay.rs b/generated/stripe_shared/src/payment_method_details_card_wallet_apple_pay.rs index 2c7c0664a..7e10bc7b4 100644 --- a/generated/stripe_shared/src/payment_method_details_card_wallet_apple_pay.rs +++ b/generated/stripe_shared/src/payment_method_details_card_wallet_apple_pay.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsCardWalletApplePay {} #[doc(hidden)] pub struct PaymentMethodDetailsCardWalletApplePayBuilder {} diff --git a/generated/stripe_shared/src/payment_method_details_card_wallet_google_pay.rs b/generated/stripe_shared/src/payment_method_details_card_wallet_google_pay.rs index 85dbaccec..b9a024a55 100644 --- a/generated/stripe_shared/src/payment_method_details_card_wallet_google_pay.rs +++ b/generated/stripe_shared/src/payment_method_details_card_wallet_google_pay.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsCardWalletGooglePay {} #[doc(hidden)] pub struct PaymentMethodDetailsCardWalletGooglePayBuilder {} diff --git a/generated/stripe_shared/src/payment_method_details_card_wallet_link.rs b/generated/stripe_shared/src/payment_method_details_card_wallet_link.rs index 8f4105e6c..3f6746bd4 100644 --- a/generated/stripe_shared/src/payment_method_details_card_wallet_link.rs +++ b/generated/stripe_shared/src/payment_method_details_card_wallet_link.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsCardWalletLink {} #[doc(hidden)] pub struct PaymentMethodDetailsCardWalletLinkBuilder {} diff --git a/generated/stripe_shared/src/payment_method_details_card_wallet_masterpass.rs b/generated/stripe_shared/src/payment_method_details_card_wallet_masterpass.rs index e95d2ff0a..722c0c3a7 100644 --- a/generated/stripe_shared/src/payment_method_details_card_wallet_masterpass.rs +++ b/generated/stripe_shared/src/payment_method_details_card_wallet_masterpass.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsCardWalletMasterpass { /// Owner's verified billing address. /// Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. diff --git a/generated/stripe_shared/src/payment_method_details_card_wallet_samsung_pay.rs b/generated/stripe_shared/src/payment_method_details_card_wallet_samsung_pay.rs index 29311ca26..a2a8d87a1 100644 --- a/generated/stripe_shared/src/payment_method_details_card_wallet_samsung_pay.rs +++ b/generated/stripe_shared/src/payment_method_details_card_wallet_samsung_pay.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsCardWalletSamsungPay {} #[doc(hidden)] pub struct PaymentMethodDetailsCardWalletSamsungPayBuilder {} diff --git a/generated/stripe_shared/src/payment_method_details_card_wallet_visa_checkout.rs b/generated/stripe_shared/src/payment_method_details_card_wallet_visa_checkout.rs index 3ea837a63..11b6285fb 100644 --- a/generated/stripe_shared/src/payment_method_details_card_wallet_visa_checkout.rs +++ b/generated/stripe_shared/src/payment_method_details_card_wallet_visa_checkout.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsCardWalletVisaCheckout { /// Owner's verified billing address. /// Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. diff --git a/generated/stripe_shared/src/payment_method_details_cashapp.rs b/generated/stripe_shared/src/payment_method_details_cashapp.rs index 7621d59c3..586a4f386 100644 --- a/generated/stripe_shared/src/payment_method_details_cashapp.rs +++ b/generated/stripe_shared/src/payment_method_details_cashapp.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsCashapp { /// A unique and immutable identifier assigned by Cash App to every buyer. pub buyer_id: Option, diff --git a/generated/stripe_shared/src/payment_method_details_customer_balance.rs b/generated/stripe_shared/src/payment_method_details_customer_balance.rs index 263b05760..fd8161a54 100644 --- a/generated/stripe_shared/src/payment_method_details_customer_balance.rs +++ b/generated/stripe_shared/src/payment_method_details_customer_balance.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsCustomerBalance {} #[doc(hidden)] pub struct PaymentMethodDetailsCustomerBalanceBuilder {} diff --git a/generated/stripe_shared/src/payment_method_details_eps.rs b/generated/stripe_shared/src/payment_method_details_eps.rs index f50449c22..ae500cd6a 100644 --- a/generated/stripe_shared/src/payment_method_details_eps.rs +++ b/generated/stripe_shared/src/payment_method_details_eps.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsEps { /// The customer's bank. /// Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. @@ -220,7 +220,7 @@ impl std::fmt::Debug for PaymentMethodDetailsEpsBank { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodDetailsEpsBank { fn serialize(&self, serializer: S) -> Result where @@ -247,7 +247,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PaymentMethodDetailsEpsBank); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentMethodDetailsEpsBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_details_fpx.rs b/generated/stripe_shared/src/payment_method_details_fpx.rs index 88dfbe579..2b587f896 100644 --- a/generated/stripe_shared/src/payment_method_details_fpx.rs +++ b/generated/stripe_shared/src/payment_method_details_fpx.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsFpx { /// Account holder type, if provided. Can be one of `individual` or `company`. pub account_holder_type: Option, @@ -150,7 +150,7 @@ impl std::fmt::Debug for PaymentMethodDetailsFpxAccountHolderType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodDetailsFpxAccountHolderType { fn serialize(&self, serializer: S) -> Result where @@ -176,7 +176,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodDetailsFpxAccountHolderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -289,7 +289,7 @@ impl std::fmt::Debug for PaymentMethodDetailsFpxBank { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodDetailsFpxBank { fn serialize(&self, serializer: S) -> Result where @@ -316,7 +316,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PaymentMethodDetailsFpxBank); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentMethodDetailsFpxBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_details_giropay.rs b/generated/stripe_shared/src/payment_method_details_giropay.rs index b831db7f2..8d16a63f2 100644 --- a/generated/stripe_shared/src/payment_method_details_giropay.rs +++ b/generated/stripe_shared/src/payment_method_details_giropay.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsGiropay { /// Bank code of bank associated with the bank account. pub bank_code: Option, diff --git a/generated/stripe_shared/src/payment_method_details_grabpay.rs b/generated/stripe_shared/src/payment_method_details_grabpay.rs index a337f752f..5252b20da 100644 --- a/generated/stripe_shared/src/payment_method_details_grabpay.rs +++ b/generated/stripe_shared/src/payment_method_details_grabpay.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsGrabpay { /// Unique transaction id generated by GrabPay pub transaction_id: Option, diff --git a/generated/stripe_shared/src/payment_method_details_ideal.rs b/generated/stripe_shared/src/payment_method_details_ideal.rs index 161bf2f83..9104186fc 100644 --- a/generated/stripe_shared/src/payment_method_details_ideal.rs +++ b/generated/stripe_shared/src/payment_method_details_ideal.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsIdeal { /// The customer's bank. /// Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. @@ -223,7 +223,7 @@ impl std::fmt::Debug for PaymentMethodDetailsIdealBank { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodDetailsIdealBank { fn serialize(&self, serializer: S) -> Result where @@ -250,7 +250,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PaymentMethodDetailsIdealBank); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentMethodDetailsIdealBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -345,7 +345,7 @@ impl std::fmt::Debug for PaymentMethodDetailsIdealBic { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodDetailsIdealBic { fn serialize(&self, serializer: S) -> Result where @@ -372,7 +372,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PaymentMethodDetailsIdealBic); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentMethodDetailsIdealBic { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_details_interac_present.rs b/generated/stripe_shared/src/payment_method_details_interac_present.rs index 1cd221b21..581ff6642 100644 --- a/generated/stripe_shared/src/payment_method_details_interac_present.rs +++ b/generated/stripe_shared/src/payment_method_details_interac_present.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsInteracPresent { /// Card brand. Can be `interac`, `mastercard` or `visa`. pub brand: Option, @@ -267,7 +267,7 @@ impl std::fmt::Debug for PaymentMethodDetailsInteracPresentReadMethod { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodDetailsInteracPresentReadMethod { fn serialize(&self, serializer: S) -> Result where @@ -294,7 +294,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodDetailsInteracPresentReadMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_details_interac_present_receipt.rs b/generated/stripe_shared/src/payment_method_details_interac_present_receipt.rs index 79d4298f4..9f77d637d 100644 --- a/generated/stripe_shared/src/payment_method_details_interac_present_receipt.rs +++ b/generated/stripe_shared/src/payment_method_details_interac_present_receipt.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsInteracPresentReceipt { /// The type of account being debited or credited pub account_type: Option, @@ -218,7 +218,7 @@ impl std::fmt::Debug for PaymentMethodDetailsInteracPresentReceiptAccountType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodDetailsInteracPresentReceiptAccountType { fn serialize(&self, serializer: S) -> Result where @@ -245,7 +245,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodDetailsInteracPresentReceiptAccountType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_details_klarna.rs b/generated/stripe_shared/src/payment_method_details_klarna.rs index 13c7a2ff5..f67f44508 100644 --- a/generated/stripe_shared/src/payment_method_details_klarna.rs +++ b/generated/stripe_shared/src/payment_method_details_klarna.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsKlarna { /// The Klarna payment method used for this transaction. /// Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` diff --git a/generated/stripe_shared/src/payment_method_details_konbini.rs b/generated/stripe_shared/src/payment_method_details_konbini.rs index 505699df5..c3e24d6a4 100644 --- a/generated/stripe_shared/src/payment_method_details_konbini.rs +++ b/generated/stripe_shared/src/payment_method_details_konbini.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsKonbini { /// If the payment succeeded, this contains the details of the convenience store where the payment was completed. pub store: Option, diff --git a/generated/stripe_shared/src/payment_method_details_konbini_store.rs b/generated/stripe_shared/src/payment_method_details_konbini_store.rs index d9eca77a2..bee1dbf1b 100644 --- a/generated/stripe_shared/src/payment_method_details_konbini_store.rs +++ b/generated/stripe_shared/src/payment_method_details_konbini_store.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsKonbiniStore { /// The name of the convenience store chain where the payment was completed. pub chain: Option, @@ -135,7 +135,7 @@ impl std::fmt::Debug for PaymentMethodDetailsKonbiniStoreChain { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodDetailsKonbiniStoreChain { fn serialize(&self, serializer: S) -> Result where @@ -160,7 +160,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodDetailsKonbiniStoreChain { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_details_link.rs b/generated/stripe_shared/src/payment_method_details_link.rs index 21ec02c43..0169b895b 100644 --- a/generated/stripe_shared/src/payment_method_details_link.rs +++ b/generated/stripe_shared/src/payment_method_details_link.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsLink { /// Two-letter ISO code representing the funding source country beneath the Link payment. /// You could use this attribute to get a sense of international fees. diff --git a/generated/stripe_shared/src/payment_method_details_multibanco.rs b/generated/stripe_shared/src/payment_method_details_multibanco.rs index d5a9e82b5..6749eefb5 100644 --- a/generated/stripe_shared/src/payment_method_details_multibanco.rs +++ b/generated/stripe_shared/src/payment_method_details_multibanco.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsMultibanco { /// Entity number associated with this Multibanco payment. pub entity: Option, diff --git a/generated/stripe_shared/src/payment_method_details_oxxo.rs b/generated/stripe_shared/src/payment_method_details_oxxo.rs index 187cf217c..ffc968a3f 100644 --- a/generated/stripe_shared/src/payment_method_details_oxxo.rs +++ b/generated/stripe_shared/src/payment_method_details_oxxo.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsOxxo { /// OXXO reference number pub number: Option, diff --git a/generated/stripe_shared/src/payment_method_details_p24.rs b/generated/stripe_shared/src/payment_method_details_p24.rs index 08439339e..0d2d77e4e 100644 --- a/generated/stripe_shared/src/payment_method_details_p24.rs +++ b/generated/stripe_shared/src/payment_method_details_p24.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsP24 { /// The customer's bank. /// Can be one of `ing`, `citi_handlowy`, `tmobile_usbugi_bankowe`, `plus_bank`, `etransfer_pocztowy24`, `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `velobank`, `blik`, `noble_pay`, `ideabank`, `envelobank`, `santander_przelew24`, `nest_przelew`, `mbank_mtransfer`, `inteligo`, `pbac_z_ipko`, `bnp_paribas`, `credit_agricole`, `toyota_bank`, `bank_pekao_sa`, `volkswagen_bank`, `bank_millennium`, `alior_bank`, or `boz`. @@ -227,7 +227,7 @@ impl std::fmt::Debug for PaymentMethodDetailsP24Bank { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodDetailsP24Bank { fn serialize(&self, serializer: S) -> Result where @@ -254,7 +254,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PaymentMethodDetailsP24Bank); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentMethodDetailsP24Bank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_details_paynow.rs b/generated/stripe_shared/src/payment_method_details_paynow.rs index 41900863e..11ff4fe02 100644 --- a/generated/stripe_shared/src/payment_method_details_paynow.rs +++ b/generated/stripe_shared/src/payment_method_details_paynow.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsPaynow { /// Reference number associated with this PayNow payment pub reference: Option, diff --git a/generated/stripe_shared/src/payment_method_details_paypal.rs b/generated/stripe_shared/src/payment_method_details_paypal.rs index c000fc3ee..7929ba13e 100644 --- a/generated/stripe_shared/src/payment_method_details_paypal.rs +++ b/generated/stripe_shared/src/payment_method_details_paypal.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsPaypal { /// Owner's email. Values are provided by PayPal directly /// (if supported) at the time of authorization or settlement. They cannot be set or mutated. diff --git a/generated/stripe_shared/src/payment_method_details_pix.rs b/generated/stripe_shared/src/payment_method_details_pix.rs index 464526184..991f2a781 100644 --- a/generated/stripe_shared/src/payment_method_details_pix.rs +++ b/generated/stripe_shared/src/payment_method_details_pix.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsPix { /// Unique transaction id generated by BCB pub bank_transaction_id: Option, diff --git a/generated/stripe_shared/src/payment_method_details_promptpay.rs b/generated/stripe_shared/src/payment_method_details_promptpay.rs index 26c849d81..fa7e73981 100644 --- a/generated/stripe_shared/src/payment_method_details_promptpay.rs +++ b/generated/stripe_shared/src/payment_method_details_promptpay.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsPromptpay { /// Bill reference generated by PromptPay pub reference: Option, diff --git a/generated/stripe_shared/src/payment_method_details_revolut_pay.rs b/generated/stripe_shared/src/payment_method_details_revolut_pay.rs index 8fd2054c5..0a38cf923 100644 --- a/generated/stripe_shared/src/payment_method_details_revolut_pay.rs +++ b/generated/stripe_shared/src/payment_method_details_revolut_pay.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsRevolutPay {} #[doc(hidden)] pub struct PaymentMethodDetailsRevolutPayBuilder {} diff --git a/generated/stripe_shared/src/payment_method_details_sepa_credit_transfer.rs b/generated/stripe_shared/src/payment_method_details_sepa_credit_transfer.rs index e0c883880..0e6fa5b03 100644 --- a/generated/stripe_shared/src/payment_method_details_sepa_credit_transfer.rs +++ b/generated/stripe_shared/src/payment_method_details_sepa_credit_transfer.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsSepaCreditTransfer { /// Name of the bank associated with the bank account. pub bank_name: Option, diff --git a/generated/stripe_shared/src/payment_method_details_sepa_debit.rs b/generated/stripe_shared/src/payment_method_details_sepa_debit.rs index 95da90c32..d0c42ded1 100644 --- a/generated/stripe_shared/src/payment_method_details_sepa_debit.rs +++ b/generated/stripe_shared/src/payment_method_details_sepa_debit.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsSepaDebit { /// Bank code of bank associated with the bank account. pub bank_code: Option, diff --git a/generated/stripe_shared/src/payment_method_details_sofort.rs b/generated/stripe_shared/src/payment_method_details_sofort.rs index 9c89b22a5..96f604fb1 100644 --- a/generated/stripe_shared/src/payment_method_details_sofort.rs +++ b/generated/stripe_shared/src/payment_method_details_sofort.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsSofort { /// Bank code of bank associated with the bank account. pub bank_code: Option, @@ -215,7 +215,7 @@ impl std::fmt::Debug for PaymentMethodDetailsSofortPreferredLanguage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodDetailsSofortPreferredLanguage { fn serialize(&self, serializer: S) -> Result where @@ -242,7 +242,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodDetailsSofortPreferredLanguage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_details_stripe_account.rs b/generated/stripe_shared/src/payment_method_details_stripe_account.rs index b09fd08f5..e04a6af41 100644 --- a/generated/stripe_shared/src/payment_method_details_stripe_account.rs +++ b/generated/stripe_shared/src/payment_method_details_stripe_account.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsStripeAccount {} #[doc(hidden)] pub struct PaymentMethodDetailsStripeAccountBuilder {} diff --git a/generated/stripe_shared/src/payment_method_details_swish.rs b/generated/stripe_shared/src/payment_method_details_swish.rs index 64d08b05b..78d633eec 100644 --- a/generated/stripe_shared/src/payment_method_details_swish.rs +++ b/generated/stripe_shared/src/payment_method_details_swish.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsSwish { /// Uniquely identifies the payer's Swish account. /// You can use this attribute to check whether two Swish transactions were paid for by the same payer. diff --git a/generated/stripe_shared/src/payment_method_details_us_bank_account.rs b/generated/stripe_shared/src/payment_method_details_us_bank_account.rs index b0c2134fe..79e374a47 100644 --- a/generated/stripe_shared/src/payment_method_details_us_bank_account.rs +++ b/generated/stripe_shared/src/payment_method_details_us_bank_account.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsUsBankAccount { /// Account holder type: individual or company. pub account_holder_type: Option, @@ -171,7 +171,7 @@ impl std::fmt::Debug for PaymentMethodDetailsUsBankAccountAccountHolderType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodDetailsUsBankAccountAccountHolderType { fn serialize(&self, serializer: S) -> Result where @@ -198,7 +198,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodDetailsUsBankAccountAccountHolderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -248,7 +248,7 @@ impl std::fmt::Debug for PaymentMethodDetailsUsBankAccountAccountType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodDetailsUsBankAccountAccountType { fn serialize(&self, serializer: S) -> Result where @@ -275,7 +275,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodDetailsUsBankAccountAccountType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_details_wechat.rs b/generated/stripe_shared/src/payment_method_details_wechat.rs index 8864fe310..f1feb0e96 100644 --- a/generated/stripe_shared/src/payment_method_details_wechat.rs +++ b/generated/stripe_shared/src/payment_method_details_wechat.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsWechat {} #[doc(hidden)] pub struct PaymentMethodDetailsWechatBuilder {} diff --git a/generated/stripe_shared/src/payment_method_details_wechat_pay.rs b/generated/stripe_shared/src/payment_method_details_wechat_pay.rs index 055e90065..14f3a49b1 100644 --- a/generated/stripe_shared/src/payment_method_details_wechat_pay.rs +++ b/generated/stripe_shared/src/payment_method_details_wechat_pay.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsWechatPay { /// Uniquely identifies this particular WeChat Pay account. /// You can use this attribute to check whether two WeChat accounts are the same. diff --git a/generated/stripe_shared/src/payment_method_details_zip.rs b/generated/stripe_shared/src/payment_method_details_zip.rs index c1c8778f1..18258f462 100644 --- a/generated/stripe_shared/src/payment_method_details_zip.rs +++ b/generated/stripe_shared/src/payment_method_details_zip.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodDetailsZip {} #[doc(hidden)] pub struct PaymentMethodDetailsZipBuilder {} diff --git a/generated/stripe_shared/src/payment_method_eps.rs b/generated/stripe_shared/src/payment_method_eps.rs index 9a830e25e..61fede8a5 100644 --- a/generated/stripe_shared/src/payment_method_eps.rs +++ b/generated/stripe_shared/src/payment_method_eps.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodEps { /// The customer's bank. /// Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. @@ -213,7 +213,7 @@ impl std::fmt::Debug for PaymentMethodEpsBank { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodEpsBank { fn serialize(&self, serializer: S) -> Result where @@ -237,7 +237,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PaymentMethodEpsBank); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentMethodEpsBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_fpx.rs b/generated/stripe_shared/src/payment_method_fpx.rs index e7441ad51..3870c1632 100644 --- a/generated/stripe_shared/src/payment_method_fpx.rs +++ b/generated/stripe_shared/src/payment_method_fpx.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodFpx { /// Account holder type, if provided. Can be one of `individual` or `company`. pub account_holder_type: Option, @@ -137,7 +137,7 @@ impl std::fmt::Debug for PaymentMethodFpxAccountHolderType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodFpxAccountHolderType { fn serialize(&self, serializer: S) -> Result where @@ -162,7 +162,7 @@ impl miniserde::de::Visitor for crate::Place } stripe_types::impl_from_val_with_from_str!(PaymentMethodFpxAccountHolderType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentMethodFpxAccountHolderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -275,7 +275,7 @@ impl std::fmt::Debug for PaymentMethodFpxBank { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodFpxBank { fn serialize(&self, serializer: S) -> Result where @@ -299,7 +299,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PaymentMethodFpxBank); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentMethodFpxBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_giropay.rs b/generated/stripe_shared/src/payment_method_giropay.rs index a3a9d6b4b..515d1d937 100644 --- a/generated/stripe_shared/src/payment_method_giropay.rs +++ b/generated/stripe_shared/src/payment_method_giropay.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodGiropay {} #[doc(hidden)] pub struct PaymentMethodGiropayBuilder {} diff --git a/generated/stripe_shared/src/payment_method_grabpay.rs b/generated/stripe_shared/src/payment_method_grabpay.rs index 988968099..6783754d7 100644 --- a/generated/stripe_shared/src/payment_method_grabpay.rs +++ b/generated/stripe_shared/src/payment_method_grabpay.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodGrabpay {} #[doc(hidden)] pub struct PaymentMethodGrabpayBuilder {} diff --git a/generated/stripe_shared/src/payment_method_ideal.rs b/generated/stripe_shared/src/payment_method_ideal.rs index 8dc456b80..e80606318 100644 --- a/generated/stripe_shared/src/payment_method_ideal.rs +++ b/generated/stripe_shared/src/payment_method_ideal.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodIdeal { /// The customer's bank, if provided. /// Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. @@ -182,7 +182,7 @@ impl std::fmt::Debug for PaymentMethodIdealBank { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodIdealBank { fn serialize(&self, serializer: S) -> Result where @@ -207,7 +207,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PaymentMethodIdealBank); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentMethodIdealBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -302,7 +302,7 @@ impl std::fmt::Debug for PaymentMethodIdealBic { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodIdealBic { fn serialize(&self, serializer: S) -> Result where @@ -327,7 +327,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PaymentMethodIdealBic); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentMethodIdealBic { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_interac_present.rs b/generated/stripe_shared/src/payment_method_interac_present.rs index a941031fa..44a15314d 100644 --- a/generated/stripe_shared/src/payment_method_interac_present.rs +++ b/generated/stripe_shared/src/payment_method_interac_present.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodInteracPresent { /// Card brand. Can be `interac`, `mastercard` or `visa`. pub brand: Option, @@ -244,7 +244,7 @@ impl std::fmt::Debug for PaymentMethodInteracPresentReadMethod { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodInteracPresentReadMethod { fn serialize(&self, serializer: S) -> Result where @@ -269,7 +269,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodInteracPresentReadMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_klarna.rs b/generated/stripe_shared/src/payment_method_klarna.rs index 98df592e2..3bebbd72a 100644 --- a/generated/stripe_shared/src/payment_method_klarna.rs +++ b/generated/stripe_shared/src/payment_method_klarna.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodKlarna { /// The customer's date of birth, if provided. pub dob: Option, diff --git a/generated/stripe_shared/src/payment_method_konbini.rs b/generated/stripe_shared/src/payment_method_konbini.rs index 27459cf5b..059b40234 100644 --- a/generated/stripe_shared/src/payment_method_konbini.rs +++ b/generated/stripe_shared/src/payment_method_konbini.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodKonbini {} #[doc(hidden)] pub struct PaymentMethodKonbiniBuilder {} diff --git a/generated/stripe_shared/src/payment_method_link.rs b/generated/stripe_shared/src/payment_method_link.rs index 2514a874c..c2a8344d6 100644 --- a/generated/stripe_shared/src/payment_method_link.rs +++ b/generated/stripe_shared/src/payment_method_link.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodLink { /// Account owner's email address. pub email: Option, diff --git a/generated/stripe_shared/src/payment_method_options_affirm.rs b/generated/stripe_shared/src/payment_method_options_affirm.rs index ce8d43b19..e779d8822 100644 --- a/generated/stripe_shared/src/payment_method_options_affirm.rs +++ b/generated/stripe_shared/src/payment_method_options_affirm.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsAffirm { /// Controls when the funds will be captured from the customer's account. pub capture_method: Option, @@ -151,7 +151,7 @@ impl std::fmt::Debug for PaymentMethodOptionsAffirmCaptureMethod { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsAffirmCaptureMethod { fn serialize(&self, serializer: S) -> Result where @@ -177,7 +177,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsAffirmCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -227,7 +227,7 @@ impl std::fmt::Debug for PaymentMethodOptionsAffirmSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsAffirmSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -254,7 +254,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsAffirmSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_afterpay_clearpay.rs b/generated/stripe_shared/src/payment_method_options_afterpay_clearpay.rs index 6cc14e64e..f146145fc 100644 --- a/generated/stripe_shared/src/payment_method_options_afterpay_clearpay.rs +++ b/generated/stripe_shared/src/payment_method_options_afterpay_clearpay.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsAfterpayClearpay { /// Controls when the funds will be captured from the customer's account. pub capture_method: Option, @@ -153,7 +153,7 @@ impl std::fmt::Debug for PaymentMethodOptionsAfterpayClearpayCaptureMethod { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsAfterpayClearpayCaptureMethod { fn serialize(&self, serializer: S) -> Result where @@ -180,7 +180,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsAfterpayClearpayCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -232,7 +232,7 @@ impl std::fmt::Debug for PaymentMethodOptionsAfterpayClearpaySetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsAfterpayClearpaySetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -259,7 +259,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsAfterpayClearpaySetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_alipay.rs b/generated/stripe_shared/src/payment_method_options_alipay.rs index 3e1b468ac..9480a21ff 100644 --- a/generated/stripe_shared/src/payment_method_options_alipay.rs +++ b/generated/stripe_shared/src/payment_method_options_alipay.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsAlipay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -141,7 +141,7 @@ impl std::fmt::Debug for PaymentMethodOptionsAlipaySetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsAlipaySetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -168,7 +168,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsAlipaySetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_bacs_debit.rs b/generated/stripe_shared/src/payment_method_options_bacs_debit.rs index ef7de2f39..45a162e0c 100644 --- a/generated/stripe_shared/src/payment_method_options_bacs_debit.rs +++ b/generated/stripe_shared/src/payment_method_options_bacs_debit.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsBacsDebit { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -144,7 +144,7 @@ impl std::fmt::Debug for PaymentMethodOptionsBacsDebitSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsBacsDebitSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -171,7 +171,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsBacsDebitSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_bancontact.rs b/generated/stripe_shared/src/payment_method_options_bancontact.rs index 40bf6ca1e..32b461f48 100644 --- a/generated/stripe_shared/src/payment_method_options_bancontact.rs +++ b/generated/stripe_shared/src/payment_method_options_bancontact.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsBancontact { /// Preferred language of the Bancontact authorization page that the customer is redirected to. pub preferred_language: PaymentMethodOptionsBancontactPreferredLanguage, @@ -155,7 +155,7 @@ impl std::fmt::Debug for PaymentMethodOptionsBancontactPreferredLanguage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsBancontactPreferredLanguage { fn serialize(&self, serializer: S) -> Result where @@ -182,7 +182,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsBancontactPreferredLanguage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -237,7 +237,7 @@ impl std::fmt::Debug for PaymentMethodOptionsBancontactSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsBancontactSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -264,7 +264,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsBancontactSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_boleto.rs b/generated/stripe_shared/src/payment_method_options_boleto.rs index 65764726c..34b49bd09 100644 --- a/generated/stripe_shared/src/payment_method_options_boleto.rs +++ b/generated/stripe_shared/src/payment_method_options_boleto.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsBoleto { /// The number of calendar days before a Boleto voucher expires. /// For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto voucher will expire on Wednesday at 23:59 America/Sao_Paulo time. @@ -158,7 +158,7 @@ impl std::fmt::Debug for PaymentMethodOptionsBoletoSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsBoletoSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -185,7 +185,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsBoletoSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_card_installments.rs b/generated/stripe_shared/src/payment_method_options_card_installments.rs index 42a2cbad6..05d3d358a 100644 --- a/generated/stripe_shared/src/payment_method_options_card_installments.rs +++ b/generated/stripe_shared/src/payment_method_options_card_installments.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsCardInstallments { /// Installment plans that may be selected for this PaymentIntent. pub available_plans: Option>, diff --git a/generated/stripe_shared/src/payment_method_options_card_mandate_options.rs b/generated/stripe_shared/src/payment_method_options_card_mandate_options.rs index 397373b28..24abe0350 100644 --- a/generated/stripe_shared/src/payment_method_options_card_mandate_options.rs +++ b/generated/stripe_shared/src/payment_method_options_card_mandate_options.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsCardMandateOptions { /// Amount to be charged for future payments. pub amount: i64, @@ -198,7 +198,7 @@ impl std::fmt::Debug for PaymentMethodOptionsCardMandateOptionsAmountType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsCardMandateOptionsAmountType { fn serialize(&self, serializer: S) -> Result where @@ -225,7 +225,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsCardMandateOptionsAmountType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -284,7 +284,7 @@ impl std::fmt::Debug for PaymentMethodOptionsCardMandateOptionsInterval { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsCardMandateOptionsInterval { fn serialize(&self, serializer: S) -> Result where @@ -311,7 +311,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsCardMandateOptionsInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -358,7 +358,7 @@ impl std::fmt::Debug for PaymentMethodOptionsCardMandateOptionsSupportedTypes { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsCardMandateOptionsSupportedTypes { fn serialize(&self, serializer: S) -> Result where @@ -385,7 +385,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsCardMandateOptionsSupportedTypes { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_card_present.rs b/generated/stripe_shared/src/payment_method_options_card_present.rs index 85f073ee9..2e2516f92 100644 --- a/generated/stripe_shared/src/payment_method_options_card_present.rs +++ b/generated/stripe_shared/src/payment_method_options_card_present.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsCardPresent { /// Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity). pub request_extended_authorization: Option, diff --git a/generated/stripe_shared/src/payment_method_options_cashapp.rs b/generated/stripe_shared/src/payment_method_options_cashapp.rs index 9f3b0efbf..56e9e2fba 100644 --- a/generated/stripe_shared/src/payment_method_options_cashapp.rs +++ b/generated/stripe_shared/src/payment_method_options_cashapp.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsCashapp { /// Controls when the funds will be captured from the customer's account. pub capture_method: Option, @@ -144,7 +144,7 @@ impl std::fmt::Debug for PaymentMethodOptionsCashappCaptureMethod { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsCashappCaptureMethod { fn serialize(&self, serializer: S) -> Result where @@ -170,7 +170,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsCashappCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -226,7 +226,7 @@ impl std::fmt::Debug for PaymentMethodOptionsCashappSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsCashappSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -253,7 +253,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsCashappSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_customer_balance.rs b/generated/stripe_shared/src/payment_method_options_customer_balance.rs index 7081b8ac3..06746cd41 100644 --- a/generated/stripe_shared/src/payment_method_options_customer_balance.rs +++ b/generated/stripe_shared/src/payment_method_options_customer_balance.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsCustomerBalance { pub bank_transfer: Option, /// The funding method type to be used when there are not enough funds in the customer balance. @@ -152,7 +152,7 @@ impl std::fmt::Debug for PaymentMethodOptionsCustomerBalanceFundingType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsCustomerBalanceFundingType { fn serialize(&self, serializer: S) -> Result where @@ -179,7 +179,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsCustomerBalanceFundingType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -231,7 +231,7 @@ impl std::fmt::Debug for PaymentMethodOptionsCustomerBalanceSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsCustomerBalanceSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -258,7 +258,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsCustomerBalanceSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_customer_balance_bank_transfer.rs b/generated/stripe_shared/src/payment_method_options_customer_balance_bank_transfer.rs index d1d3c98e3..79d6453fe 100644 --- a/generated/stripe_shared/src/payment_method_options_customer_balance_bank_transfer.rs +++ b/generated/stripe_shared/src/payment_method_options_customer_balance_bank_transfer.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsCustomerBalanceBankTransfer { pub eu_bank_transfer: Option, /// List of address types that should be returned in the financial_addresses response. @@ -10,7 +10,7 @@ pub struct PaymentMethodOptionsCustomerBalanceBankTransfer { pub requested_address_types: Option>, /// The bank transfer type that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: Option, } #[doc(hidden)] @@ -173,7 +173,7 @@ impl std::fmt::Debug for PaymentMethodOptionsCustomerBalanceBankTransferRequeste f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsCustomerBalanceBankTransferRequestedAddressTypes { fn serialize(&self, serializer: S) -> Result where @@ -206,7 +206,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( PaymentMethodOptionsCustomerBalanceBankTransferRequestedAddressTypes ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentMethodOptionsCustomerBalanceBankTransferRequestedAddressTypes { @@ -263,7 +263,7 @@ impl std::fmt::Debug for PaymentMethodOptionsCustomerBalanceBankTransferType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsCustomerBalanceBankTransferType { fn serialize(&self, serializer: S) -> Result where @@ -290,7 +290,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsCustomerBalanceBankTransferType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_customer_balance_eu_bank_account.rs b/generated/stripe_shared/src/payment_method_options_customer_balance_eu_bank_account.rs index 344079d76..29fe76487 100644 --- a/generated/stripe_shared/src/payment_method_options_customer_balance_eu_bank_account.rs +++ b/generated/stripe_shared/src/payment_method_options_customer_balance_eu_bank_account.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsCustomerBalanceEuBankAccount { /// The desired country code of the bank account information. /// Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. @@ -143,7 +143,7 @@ impl std::fmt::Debug for PaymentMethodOptionsCustomerBalanceEuBankAccountCountry f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsCustomerBalanceEuBankAccountCountry { fn serialize(&self, serializer: S) -> Result where @@ -172,7 +172,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(PaymentMethodOptionsCustomerBalanceEuBankAccountCountry); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentMethodOptionsCustomerBalanceEuBankAccountCountry { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_fpx.rs b/generated/stripe_shared/src/payment_method_options_fpx.rs index 07d7d10af..3e2b8c297 100644 --- a/generated/stripe_shared/src/payment_method_options_fpx.rs +++ b/generated/stripe_shared/src/payment_method_options_fpx.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsFpx { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -138,7 +138,7 @@ impl std::fmt::Debug for PaymentMethodOptionsFpxSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsFpxSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -164,7 +164,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsFpxSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_giropay.rs b/generated/stripe_shared/src/payment_method_options_giropay.rs index f08de757d..0a0359ff8 100644 --- a/generated/stripe_shared/src/payment_method_options_giropay.rs +++ b/generated/stripe_shared/src/payment_method_options_giropay.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsGiropay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -138,7 +138,7 @@ impl std::fmt::Debug for PaymentMethodOptionsGiropaySetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsGiropaySetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -165,7 +165,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsGiropaySetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_grabpay.rs b/generated/stripe_shared/src/payment_method_options_grabpay.rs index 90a310b88..b2c3886b6 100644 --- a/generated/stripe_shared/src/payment_method_options_grabpay.rs +++ b/generated/stripe_shared/src/payment_method_options_grabpay.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsGrabpay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -138,7 +138,7 @@ impl std::fmt::Debug for PaymentMethodOptionsGrabpaySetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsGrabpaySetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -165,7 +165,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsGrabpaySetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_ideal.rs b/generated/stripe_shared/src/payment_method_options_ideal.rs index 880575708..5e844617f 100644 --- a/generated/stripe_shared/src/payment_method_options_ideal.rs +++ b/generated/stripe_shared/src/payment_method_options_ideal.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsIdeal { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -141,7 +141,7 @@ impl std::fmt::Debug for PaymentMethodOptionsIdealSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsIdealSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -167,7 +167,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsIdealSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_interac_present.rs b/generated/stripe_shared/src/payment_method_options_interac_present.rs index d769fe2a3..0e93120ae 100644 --- a/generated/stripe_shared/src/payment_method_options_interac_present.rs +++ b/generated/stripe_shared/src/payment_method_options_interac_present.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsInteracPresent {} #[doc(hidden)] pub struct PaymentMethodOptionsInteracPresentBuilder {} diff --git a/generated/stripe_shared/src/payment_method_options_klarna.rs b/generated/stripe_shared/src/payment_method_options_klarna.rs index 61d873e3e..09b032abf 100644 --- a/generated/stripe_shared/src/payment_method_options_klarna.rs +++ b/generated/stripe_shared/src/payment_method_options_klarna.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsKlarna { /// Controls when the funds will be captured from the customer's account. pub capture_method: Option, @@ -151,7 +151,7 @@ impl std::fmt::Debug for PaymentMethodOptionsKlarnaCaptureMethod { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsKlarnaCaptureMethod { fn serialize(&self, serializer: S) -> Result where @@ -177,7 +177,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsKlarnaCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -227,7 +227,7 @@ impl std::fmt::Debug for PaymentMethodOptionsKlarnaSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsKlarnaSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -254,7 +254,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsKlarnaSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_konbini.rs b/generated/stripe_shared/src/payment_method_options_konbini.rs index 046239062..82fb3bd9b 100644 --- a/generated/stripe_shared/src/payment_method_options_konbini.rs +++ b/generated/stripe_shared/src/payment_method_options_konbini.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsKonbini { /// An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. pub confirmation_number: Option, @@ -178,7 +178,7 @@ impl std::fmt::Debug for PaymentMethodOptionsKonbiniSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsKonbiniSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -205,7 +205,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsKonbiniSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_oxxo.rs b/generated/stripe_shared/src/payment_method_options_oxxo.rs index b249dffda..41b0ef66c 100644 --- a/generated/stripe_shared/src/payment_method_options_oxxo.rs +++ b/generated/stripe_shared/src/payment_method_options_oxxo.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsOxxo { /// The number of calendar days before an OXXO invoice expires. /// For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. @@ -152,7 +152,7 @@ impl std::fmt::Debug for PaymentMethodOptionsOxxoSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsOxxoSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -178,7 +178,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsOxxoSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_p24.rs b/generated/stripe_shared/src/payment_method_options_p24.rs index cd32353f4..5d4d82452 100644 --- a/generated/stripe_shared/src/payment_method_options_p24.rs +++ b/generated/stripe_shared/src/payment_method_options_p24.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsP24 { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -138,7 +138,7 @@ impl std::fmt::Debug for PaymentMethodOptionsP24SetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsP24SetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -164,7 +164,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsP24SetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_paynow.rs b/generated/stripe_shared/src/payment_method_options_paynow.rs index 37767db18..3eb9b8ef2 100644 --- a/generated/stripe_shared/src/payment_method_options_paynow.rs +++ b/generated/stripe_shared/src/payment_method_options_paynow.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsPaynow { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -138,7 +138,7 @@ impl std::fmt::Debug for PaymentMethodOptionsPaynowSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsPaynowSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -165,7 +165,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsPaynowSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_paypal.rs b/generated/stripe_shared/src/payment_method_options_paypal.rs index c82047182..d3e37eade 100644 --- a/generated/stripe_shared/src/payment_method_options_paypal.rs +++ b/generated/stripe_shared/src/payment_method_options_paypal.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsPaypal { /// Controls when the funds will be captured from the customer's account. pub capture_method: Option, @@ -159,7 +159,7 @@ impl std::fmt::Debug for PaymentMethodOptionsPaypalCaptureMethod { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsPaypalCaptureMethod { fn serialize(&self, serializer: S) -> Result where @@ -185,7 +185,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsPaypalCaptureMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -238,7 +238,7 @@ impl std::fmt::Debug for PaymentMethodOptionsPaypalSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsPaypalSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -265,7 +265,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsPaypalSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_pix.rs b/generated/stripe_shared/src/payment_method_options_pix.rs index 833ae89e0..8f2178604 100644 --- a/generated/stripe_shared/src/payment_method_options_pix.rs +++ b/generated/stripe_shared/src/payment_method_options_pix.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsPix { /// The number of seconds (between 10 and 1209600) after which Pix payment will expire. pub expires_after_seconds: Option, @@ -158,7 +158,7 @@ impl std::fmt::Debug for PaymentMethodOptionsPixSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsPixSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -184,7 +184,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsPixSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_promptpay.rs b/generated/stripe_shared/src/payment_method_options_promptpay.rs index 3e95bed38..3bd6237d1 100644 --- a/generated/stripe_shared/src/payment_method_options_promptpay.rs +++ b/generated/stripe_shared/src/payment_method_options_promptpay.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsPromptpay { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -138,7 +138,7 @@ impl std::fmt::Debug for PaymentMethodOptionsPromptpaySetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsPromptpaySetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -165,7 +165,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsPromptpaySetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_revolut_pay.rs b/generated/stripe_shared/src/payment_method_options_revolut_pay.rs index 85d35efaa..b1c8e4c26 100644 --- a/generated/stripe_shared/src/payment_method_options_revolut_pay.rs +++ b/generated/stripe_shared/src/payment_method_options_revolut_pay.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsRevolutPay {} #[doc(hidden)] pub struct PaymentMethodOptionsRevolutPayBuilder {} diff --git a/generated/stripe_shared/src/payment_method_options_sofort.rs b/generated/stripe_shared/src/payment_method_options_sofort.rs index 21e68fcf9..8f849a9ec 100644 --- a/generated/stripe_shared/src/payment_method_options_sofort.rs +++ b/generated/stripe_shared/src/payment_method_options_sofort.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsSofort { /// Preferred language of the SOFORT authorization page that the customer is redirected to. pub preferred_language: Option, @@ -164,7 +164,7 @@ impl std::fmt::Debug for PaymentMethodOptionsSofortPreferredLanguage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsSofortPreferredLanguage { fn serialize(&self, serializer: S) -> Result where @@ -191,7 +191,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsSofortPreferredLanguage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -246,7 +246,7 @@ impl std::fmt::Debug for PaymentMethodOptionsSofortSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsSofortSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -273,7 +273,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsSofortSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_us_bank_account_mandate_options.rs b/generated/stripe_shared/src/payment_method_options_us_bank_account_mandate_options.rs index bac1e77eb..e931bd8e2 100644 --- a/generated/stripe_shared/src/payment_method_options_us_bank_account_mandate_options.rs +++ b/generated/stripe_shared/src/payment_method_options_us_bank_account_mandate_options.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsUsBankAccountMandateOptions { /// Mandate collection method pub collection_method: Option, @@ -127,7 +127,7 @@ impl std::fmt::Debug for PaymentMethodOptionsUsBankAccountMandateOptionsCollecti f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsUsBankAccountMandateOptionsCollectionMethod { fn serialize(&self, serializer: S) -> Result where @@ -158,7 +158,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( PaymentMethodOptionsUsBankAccountMandateOptionsCollectionMethod ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentMethodOptionsUsBankAccountMandateOptionsCollectionMethod { diff --git a/generated/stripe_shared/src/payment_method_options_wechat_pay.rs b/generated/stripe_shared/src/payment_method_options_wechat_pay.rs index b3dd7e962..3588fb1b0 100644 --- a/generated/stripe_shared/src/payment_method_options_wechat_pay.rs +++ b/generated/stripe_shared/src/payment_method_options_wechat_pay.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsWechatPay { /// The app ID registered with WeChat Pay. Only required when client is ios or android. pub app_id: Option, @@ -157,7 +157,7 @@ impl std::fmt::Debug for PaymentMethodOptionsWechatPayClient { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsWechatPayClient { fn serialize(&self, serializer: S) -> Result where @@ -182,7 +182,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsWechatPayClient { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -232,7 +232,7 @@ impl std::fmt::Debug for PaymentMethodOptionsWechatPaySetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsWechatPaySetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -259,7 +259,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsWechatPaySetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_options_zip.rs b/generated/stripe_shared/src/payment_method_options_zip.rs index e2c95c30b..d86e88776 100644 --- a/generated/stripe_shared/src/payment_method_options_zip.rs +++ b/generated/stripe_shared/src/payment_method_options_zip.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOptionsZip { /// Indicates that you intend to make future payments with this PaymentIntent's payment method. /// @@ -138,7 +138,7 @@ impl std::fmt::Debug for PaymentMethodOptionsZipSetupFutureUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodOptionsZipSetupFutureUsage { fn serialize(&self, serializer: S) -> Result where @@ -164,7 +164,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodOptionsZipSetupFutureUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_oxxo.rs b/generated/stripe_shared/src/payment_method_oxxo.rs index d4c083d81..c908f811a 100644 --- a/generated/stripe_shared/src/payment_method_oxxo.rs +++ b/generated/stripe_shared/src/payment_method_oxxo.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodOxxo {} #[doc(hidden)] pub struct PaymentMethodOxxoBuilder {} diff --git a/generated/stripe_shared/src/payment_method_p24.rs b/generated/stripe_shared/src/payment_method_p24.rs index fbad19d50..5e473ae60 100644 --- a/generated/stripe_shared/src/payment_method_p24.rs +++ b/generated/stripe_shared/src/payment_method_p24.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodP24 { /// The customer's bank, if provided. pub bank: Option, @@ -205,7 +205,7 @@ impl std::fmt::Debug for PaymentMethodP24Bank { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodP24Bank { fn serialize(&self, serializer: S) -> Result where @@ -229,7 +229,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PaymentMethodP24Bank); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaymentMethodP24Bank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_paynow.rs b/generated/stripe_shared/src/payment_method_paynow.rs index 405ced84a..c283bc3b1 100644 --- a/generated/stripe_shared/src/payment_method_paynow.rs +++ b/generated/stripe_shared/src/payment_method_paynow.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodPaynow {} #[doc(hidden)] pub struct PaymentMethodPaynowBuilder {} diff --git a/generated/stripe_shared/src/payment_method_paypal.rs b/generated/stripe_shared/src/payment_method_paypal.rs index f3a243d1e..226c14f3d 100644 --- a/generated/stripe_shared/src/payment_method_paypal.rs +++ b/generated/stripe_shared/src/payment_method_paypal.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodPaypal { /// Owner's email. Values are provided by PayPal directly /// (if supported) at the time of authorization or settlement. They cannot be set or mutated. diff --git a/generated/stripe_shared/src/payment_method_pix.rs b/generated/stripe_shared/src/payment_method_pix.rs index d73658288..9b70710c2 100644 --- a/generated/stripe_shared/src/payment_method_pix.rs +++ b/generated/stripe_shared/src/payment_method_pix.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodPix {} #[doc(hidden)] pub struct PaymentMethodPixBuilder {} diff --git a/generated/stripe_shared/src/payment_method_promptpay.rs b/generated/stripe_shared/src/payment_method_promptpay.rs index e872f6f3d..5357041de 100644 --- a/generated/stripe_shared/src/payment_method_promptpay.rs +++ b/generated/stripe_shared/src/payment_method_promptpay.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodPromptpay {} #[doc(hidden)] pub struct PaymentMethodPromptpayBuilder {} diff --git a/generated/stripe_shared/src/payment_method_revolut_pay.rs b/generated/stripe_shared/src/payment_method_revolut_pay.rs index 25d8e66ec..b9f6f6dc9 100644 --- a/generated/stripe_shared/src/payment_method_revolut_pay.rs +++ b/generated/stripe_shared/src/payment_method_revolut_pay.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodRevolutPay {} #[doc(hidden)] pub struct PaymentMethodRevolutPayBuilder {} diff --git a/generated/stripe_shared/src/payment_method_sepa_debit.rs b/generated/stripe_shared/src/payment_method_sepa_debit.rs index 0e95888fc..2a5384cc1 100644 --- a/generated/stripe_shared/src/payment_method_sepa_debit.rs +++ b/generated/stripe_shared/src/payment_method_sepa_debit.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodSepaDebit { /// Bank code of bank associated with the bank account. pub bank_code: Option, diff --git a/generated/stripe_shared/src/payment_method_sofort.rs b/generated/stripe_shared/src/payment_method_sofort.rs index 3f8c222e3..72ef44c1b 100644 --- a/generated/stripe_shared/src/payment_method_sofort.rs +++ b/generated/stripe_shared/src/payment_method_sofort.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodSofort { /// Two-letter ISO code representing the country the bank account is located in. pub country: Option, diff --git a/generated/stripe_shared/src/payment_method_swish.rs b/generated/stripe_shared/src/payment_method_swish.rs index b6a0f65b1..5180912c5 100644 --- a/generated/stripe_shared/src/payment_method_swish.rs +++ b/generated/stripe_shared/src/payment_method_swish.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodSwish {} #[doc(hidden)] pub struct PaymentMethodSwishBuilder {} diff --git a/generated/stripe_shared/src/payment_method_us_bank_account.rs b/generated/stripe_shared/src/payment_method_us_bank_account.rs index b38a699ac..3edf26b5c 100644 --- a/generated/stripe_shared/src/payment_method_us_bank_account.rs +++ b/generated/stripe_shared/src/payment_method_us_bank_account.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodUsBankAccount { /// Account holder type: individual or company. pub account_holder_type: Option, @@ -196,7 +196,7 @@ impl std::fmt::Debug for PaymentMethodUsBankAccountAccountHolderType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodUsBankAccountAccountHolderType { fn serialize(&self, serializer: S) -> Result where @@ -223,7 +223,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodUsBankAccountAccountHolderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -273,7 +273,7 @@ impl std::fmt::Debug for PaymentMethodUsBankAccountAccountType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodUsBankAccountAccountType { fn serialize(&self, serializer: S) -> Result where @@ -298,7 +298,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodUsBankAccountAccountType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_us_bank_account_blocked.rs b/generated/stripe_shared/src/payment_method_us_bank_account_blocked.rs index 4b44f7772..635e48e72 100644 --- a/generated/stripe_shared/src/payment_method_us_bank_account_blocked.rs +++ b/generated/stripe_shared/src/payment_method_us_bank_account_blocked.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodUsBankAccountBlocked { /// The ACH network code that resulted in this block. pub network_code: Option, @@ -164,7 +164,7 @@ impl std::fmt::Debug for PaymentMethodUsBankAccountBlockedNetworkCode { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodUsBankAccountBlockedNetworkCode { fn serialize(&self, serializer: S) -> Result where @@ -191,7 +191,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodUsBankAccountBlockedNetworkCode { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -253,7 +253,7 @@ impl std::fmt::Debug for PaymentMethodUsBankAccountBlockedReason { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaymentMethodUsBankAccountBlockedReason { fn serialize(&self, serializer: S) -> Result where @@ -279,7 +279,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaymentMethodUsBankAccountBlockedReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/payment_method_us_bank_account_status_details.rs b/generated/stripe_shared/src/payment_method_us_bank_account_status_details.rs index 8404fa7db..49b8876e6 100644 --- a/generated/stripe_shared/src/payment_method_us_bank_account_status_details.rs +++ b/generated/stripe_shared/src/payment_method_us_bank_account_status_details.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodUsBankAccountStatusDetails { pub blocked: Option, } diff --git a/generated/stripe_shared/src/payment_method_wechat_pay.rs b/generated/stripe_shared/src/payment_method_wechat_pay.rs index e186e3505..0f92386a0 100644 --- a/generated/stripe_shared/src/payment_method_wechat_pay.rs +++ b/generated/stripe_shared/src/payment_method_wechat_pay.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodWechatPay {} #[doc(hidden)] pub struct PaymentMethodWechatPayBuilder {} diff --git a/generated/stripe_shared/src/payment_method_zip.rs b/generated/stripe_shared/src/payment_method_zip.rs index cab6a4103..c559cdacf 100644 --- a/generated/stripe_shared/src/payment_method_zip.rs +++ b/generated/stripe_shared/src/payment_method_zip.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaymentMethodZip {} #[doc(hidden)] pub struct PaymentMethodZipBuilder {} diff --git a/generated/stripe_shared/src/payment_source.rs b/generated/stripe_shared/src/payment_source.rs index 6d0a441a0..6a9b6a0b2 100644 --- a/generated/stripe_shared/src/payment_source.rs +++ b/generated/stripe_shared/src/payment_source.rs @@ -1,16 +1,19 @@ /// The resource representing a Stripe Polymorphic #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", serde(tag = "object"))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(tag = "object"))] pub enum PaymentSource { - #[cfg_attr(feature = "serde", serde(rename = "account"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "account"))] Account(stripe_shared::Account), - #[cfg_attr(feature = "serde", serde(rename = "bank_account"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(rename = "bank_account") + )] BankAccount(stripe_shared::BankAccount), - #[cfg_attr(feature = "serde", serde(rename = "card"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "card"))] Card(stripe_shared::Card), - #[cfg_attr(feature = "serde", serde(rename = "source"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "source"))] Source(stripe_shared::Source), } diff --git a/generated/stripe_shared/src/payout.rs b/generated/stripe_shared/src/payout.rs index 558f49bf7..3fdedcf4d 100644 --- a/generated/stripe_shared/src/payout.rs +++ b/generated/stripe_shared/src/payout.rs @@ -9,7 +9,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Payout { /// The amount (in cents (or local equivalent)) that transfers to your bank account or debit card. pub amount: i64, @@ -64,7 +64,7 @@ pub struct Payout { /// Some payouts that fail might initially show as `paid`, then change to `failed`. pub status: String, /// Can be `bank_account` or `card`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: PayoutType, } #[doc(hidden)] @@ -271,7 +271,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Payout { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -344,7 +344,7 @@ impl std::fmt::Debug for PayoutReconciliationStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PayoutReconciliationStatus { fn serialize(&self, serializer: S) -> Result where @@ -368,7 +368,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PayoutReconciliationStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PayoutReconciliationStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -415,7 +415,7 @@ impl std::fmt::Debug for PayoutType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PayoutType { fn serialize(&self, serializer: S) -> Result where @@ -439,7 +439,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PayoutType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PayoutType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/paypal_seller_protection.rs b/generated/stripe_shared/src/paypal_seller_protection.rs index b35398ab3..76e05d61a 100644 --- a/generated/stripe_shared/src/paypal_seller_protection.rs +++ b/generated/stripe_shared/src/paypal_seller_protection.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PaypalSellerProtection { /// An array of conditions that are covered for the transaction, if applicable. pub dispute_categories: Option>, @@ -139,7 +139,7 @@ impl std::fmt::Debug for PaypalSellerProtectionDisputeCategories { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaypalSellerProtectionDisputeCategories { fn serialize(&self, serializer: S) -> Result where @@ -165,7 +165,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for PaypalSellerProtectionDisputeCategories { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -216,7 +216,7 @@ impl std::fmt::Debug for PaypalSellerProtectionStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PaypalSellerProtectionStatus { fn serialize(&self, serializer: S) -> Result where @@ -240,7 +240,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PaypalSellerProtectionStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PaypalSellerProtectionStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/period.rs b/generated/stripe_shared/src/period.rs index b39e16f6e..5aa5c60e8 100644 --- a/generated/stripe_shared/src/period.rs +++ b/generated/stripe_shared/src/period.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Period { /// The end date of this usage period. All usage up to and including this point in time is included. pub end: Option, diff --git a/generated/stripe_shared/src/person.rs b/generated/stripe_shared/src/person.rs index b0949917e..5a810d577 100644 --- a/generated/stripe_shared/src/person.rs +++ b/generated/stripe_shared/src/person.rs @@ -7,7 +7,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Person { /// The account the person is associated with. pub account: Option, @@ -317,7 +317,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Person { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -395,7 +395,7 @@ impl std::fmt::Debug for PersonPoliticalExposure { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PersonPoliticalExposure { fn serialize(&self, serializer: S) -> Result where @@ -419,7 +419,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PersonPoliticalExposure); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PersonPoliticalExposure { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/person_additional_tos_acceptance.rs b/generated/stripe_shared/src/person_additional_tos_acceptance.rs index 795a31852..93625fc6d 100644 --- a/generated/stripe_shared/src/person_additional_tos_acceptance.rs +++ b/generated/stripe_shared/src/person_additional_tos_acceptance.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PersonAdditionalTosAcceptance { /// The Unix timestamp marking when the legal guardian accepted the service agreement. pub date: Option, diff --git a/generated/stripe_shared/src/person_additional_tos_acceptances.rs b/generated/stripe_shared/src/person_additional_tos_acceptances.rs index fd58ca32a..742c65c5d 100644 --- a/generated/stripe_shared/src/person_additional_tos_acceptances.rs +++ b/generated/stripe_shared/src/person_additional_tos_acceptances.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PersonAdditionalTosAcceptances { pub account: stripe_shared::PersonAdditionalTosAcceptance, } diff --git a/generated/stripe_shared/src/person_future_requirements.rs b/generated/stripe_shared/src/person_future_requirements.rs index 0984af9f9..72029a67b 100644 --- a/generated/stripe_shared/src/person_future_requirements.rs +++ b/generated/stripe_shared/src/person_future_requirements.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PersonFutureRequirements { /// Fields that are due and can be satisfied by providing the corresponding alternative fields instead. pub alternatives: Option>, diff --git a/generated/stripe_shared/src/person_relationship.rs b/generated/stripe_shared/src/person_relationship.rs index 3b0c8fa63..a0268fb64 100644 --- a/generated/stripe_shared/src/person_relationship.rs +++ b/generated/stripe_shared/src/person_relationship.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PersonRelationship { /// Whether the person is a director of the account's legal entity. /// Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. diff --git a/generated/stripe_shared/src/person_requirements.rs b/generated/stripe_shared/src/person_requirements.rs index a80bf077d..20cf6af7e 100644 --- a/generated/stripe_shared/src/person_requirements.rs +++ b/generated/stripe_shared/src/person_requirements.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PersonRequirements { /// Fields that are due and can be satisfied by providing the corresponding alternative fields instead. pub alternatives: Option>, diff --git a/generated/stripe_shared/src/plan.rs b/generated/stripe_shared/src/plan.rs index aa9970924..62291d502 100644 --- a/generated/stripe_shared/src/plan.rs +++ b/generated/stripe_shared/src/plan.rs @@ -12,7 +12,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Plan { /// Whether the plan can be used for new purchases. pub active: bool, @@ -249,7 +249,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Plan { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -351,7 +351,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PlanAggregateUsage); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PlanAggregateUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -420,7 +420,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PlanBillingScheme); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PlanBillingScheme { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -495,7 +495,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PlanInterval); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PlanInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -563,7 +563,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PlanTiersMode); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PlanTiersMode { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -631,7 +631,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PlanUsageType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PlanUsageType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/plan_tier.rs b/generated/stripe_shared/src/plan_tier.rs index a495f10d6..921b47f1c 100644 --- a/generated/stripe_shared/src/plan_tier.rs +++ b/generated/stripe_shared/src/plan_tier.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PlanTier { /// Price for the entire tier. pub flat_amount: Option, diff --git a/generated/stripe_shared/src/platform_tax_fee.rs b/generated/stripe_shared/src/platform_tax_fee.rs index 08fc28b8b..3fa7ec649 100644 --- a/generated/stripe_shared/src/platform_tax_fee.rs +++ b/generated/stripe_shared/src/platform_tax_fee.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PlatformTaxFee { /// The Connected account that incurred this charge. pub account: String, @@ -8,7 +8,7 @@ pub struct PlatformTaxFee { /// The payment object that caused this tax to be inflicted. pub source_transaction: String, /// The type of tax (VAT). - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: String, } #[doc(hidden)] @@ -118,7 +118,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PlatformTaxFee { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/price.rs b/generated/stripe_shared/src/price.rs index a44f2ec68..7384d8f03 100644 --- a/generated/stripe_shared/src/price.rs +++ b/generated/stripe_shared/src/price.rs @@ -9,7 +9,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Price { /// Whether the price can be used for new purchases. pub active: bool, @@ -62,7 +62,7 @@ pub struct Price { /// Cannot be combined with `tiers`. pub transform_quantity: Option, /// One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: stripe_shared::PriceType, /// The unit amount in cents (or local equivalent) to be charged, represented as a whole integer if possible. /// Only set if `billing_scheme=per_unit`. @@ -261,7 +261,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Price { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -358,7 +358,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PriceBillingScheme); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PriceBillingScheme { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -430,7 +430,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PriceTaxBehavior); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PriceTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -499,7 +499,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PriceTiersMode); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PriceTiersMode { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -567,7 +567,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(PriceType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PriceType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/price_tier.rs b/generated/stripe_shared/src/price_tier.rs index 1ff68fd25..91179e8d3 100644 --- a/generated/stripe_shared/src/price_tier.rs +++ b/generated/stripe_shared/src/price_tier.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PriceTier { /// Price for the entire tier. pub flat_amount: Option, diff --git a/generated/stripe_shared/src/product.rs b/generated/stripe_shared/src/product.rs index 0e1ea1360..f59bd42bb 100644 --- a/generated/stripe_shared/src/product.rs +++ b/generated/stripe_shared/src/product.rs @@ -9,7 +9,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Product { /// Whether the product is currently available for purchase. pub active: bool, @@ -45,7 +45,7 @@ pub struct Product { pub tax_code: Option>, /// The type of the product. /// The product is either of type `good`, which is eligible for use with Orders and SKUs, or `service`, which is eligible for use with Subscriptions and Plans. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: stripe_shared::ProductType, /// A label that represents units of this product. /// When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. @@ -231,7 +231,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Product { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -326,7 +326,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(ProductType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ProductType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/product_feature.rs b/generated/stripe_shared/src/product_feature.rs index c50a5cb57..ec6dca51f 100644 --- a/generated/stripe_shared/src/product_feature.rs +++ b/generated/stripe_shared/src/product_feature.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ProductFeature { /// The feature's name. Up to 80 characters long. pub name: Option, diff --git a/generated/stripe_shared/src/promotion_code.rs b/generated/stripe_shared/src/promotion_code.rs index 88c2dd925..e1413143c 100644 --- a/generated/stripe_shared/src/promotion_code.rs +++ b/generated/stripe_shared/src/promotion_code.rs @@ -4,7 +4,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PromotionCode { /// Whether the promotion code is currently active. /// A promotion code is only active if the coupon is also valid. @@ -177,7 +177,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for PromotionCode { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/promotion_code_currency_option.rs b/generated/stripe_shared/src/promotion_code_currency_option.rs index 1bc115730..e17ae64a9 100644 --- a/generated/stripe_shared/src/promotion_code_currency_option.rs +++ b/generated/stripe_shared/src/promotion_code_currency_option.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PromotionCodeCurrencyOption { /// Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work). pub minimum_amount: i64, diff --git a/generated/stripe_shared/src/promotion_codes_resource_restrictions.rs b/generated/stripe_shared/src/promotion_codes_resource_restrictions.rs index faef0b140..7f024a9b9 100644 --- a/generated/stripe_shared/src/promotion_codes_resource_restrictions.rs +++ b/generated/stripe_shared/src/promotion_codes_resource_restrictions.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct PromotionCodesResourceRestrictions { /// Promotion code restrictions defined in each available currency option. /// Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies). diff --git a/generated/stripe_shared/src/quote.rs b/generated/stripe_shared/src/quote.rs index 806ef850c..d1246fd3c 100644 --- a/generated/stripe_shared/src/quote.rs +++ b/generated/stripe_shared/src/quote.rs @@ -3,7 +3,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Quote { /// Total before any discounts or taxes are applied. pub amount_subtotal: i64, @@ -344,7 +344,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Quote { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -455,7 +455,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(QuoteCollectionMethod); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for QuoteCollectionMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -530,7 +530,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(QuoteStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for QuoteStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/quotes_resource_automatic_tax.rs b/generated/stripe_shared/src/quotes_resource_automatic_tax.rs index e1bb0ef91..67328c21d 100644 --- a/generated/stripe_shared/src/quotes_resource_automatic_tax.rs +++ b/generated/stripe_shared/src/quotes_resource_automatic_tax.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct QuotesResourceAutomaticTax { /// Automatically calculate taxes pub enabled: bool, @@ -152,7 +152,7 @@ impl std::fmt::Debug for QuotesResourceAutomaticTaxStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for QuotesResourceAutomaticTaxStatus { fn serialize(&self, serializer: S) -> Result where @@ -177,7 +177,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(QuotesResourceAutomaticTaxStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for QuotesResourceAutomaticTaxStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/quotes_resource_computed.rs b/generated/stripe_shared/src/quotes_resource_computed.rs index b2bdfbbea..ad2754024 100644 --- a/generated/stripe_shared/src/quotes_resource_computed.rs +++ b/generated/stripe_shared/src/quotes_resource_computed.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct QuotesResourceComputed { /// The definitive totals and line items the customer will be charged on a recurring basis. /// Takes into account the line items with recurring prices and discounts with `duration=forever` coupons only. diff --git a/generated/stripe_shared/src/quotes_resource_from_quote.rs b/generated/stripe_shared/src/quotes_resource_from_quote.rs index b3eda24c2..39a425787 100644 --- a/generated/stripe_shared/src/quotes_resource_from_quote.rs +++ b/generated/stripe_shared/src/quotes_resource_from_quote.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct QuotesResourceFromQuote { /// Whether this quote is a revision of a different quote. pub is_revision: bool, diff --git a/generated/stripe_shared/src/quotes_resource_recurring.rs b/generated/stripe_shared/src/quotes_resource_recurring.rs index f9db7cc08..01c9ae8de 100644 --- a/generated/stripe_shared/src/quotes_resource_recurring.rs +++ b/generated/stripe_shared/src/quotes_resource_recurring.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct QuotesResourceRecurring { /// Total before any discounts or taxes are applied. pub amount_subtotal: i64, @@ -167,7 +167,7 @@ impl std::fmt::Debug for QuotesResourceRecurringInterval { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for QuotesResourceRecurringInterval { fn serialize(&self, serializer: S) -> Result where @@ -192,7 +192,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(QuotesResourceRecurringInterval); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for QuotesResourceRecurringInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/quotes_resource_status_transitions.rs b/generated/stripe_shared/src/quotes_resource_status_transitions.rs index e408461dd..640c718a4 100644 --- a/generated/stripe_shared/src/quotes_resource_status_transitions.rs +++ b/generated/stripe_shared/src/quotes_resource_status_transitions.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct QuotesResourceStatusTransitions { /// The time that the quote was accepted. Measured in seconds since Unix epoch. pub accepted_at: Option, diff --git a/generated/stripe_shared/src/quotes_resource_subscription_data_subscription_data.rs b/generated/stripe_shared/src/quotes_resource_subscription_data_subscription_data.rs index 427da17fd..343acaf3a 100644 --- a/generated/stripe_shared/src/quotes_resource_subscription_data_subscription_data.rs +++ b/generated/stripe_shared/src/quotes_resource_subscription_data_subscription_data.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct QuotesResourceSubscriptionDataSubscriptionData { /// The subscription's description, meant to be displayable to the customer. /// Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. diff --git a/generated/stripe_shared/src/quotes_resource_total_details.rs b/generated/stripe_shared/src/quotes_resource_total_details.rs index 216686a9c..ea974f2b4 100644 --- a/generated/stripe_shared/src/quotes_resource_total_details.rs +++ b/generated/stripe_shared/src/quotes_resource_total_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct QuotesResourceTotalDetails { /// This is the sum of all the discounts. pub amount_discount: i64, diff --git a/generated/stripe_shared/src/quotes_resource_total_details_resource_breakdown.rs b/generated/stripe_shared/src/quotes_resource_total_details_resource_breakdown.rs index de7838deb..c7d0c145a 100644 --- a/generated/stripe_shared/src/quotes_resource_total_details_resource_breakdown.rs +++ b/generated/stripe_shared/src/quotes_resource_total_details_resource_breakdown.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct QuotesResourceTotalDetailsResourceBreakdown { /// The aggregated discounts. pub discounts: Vec, diff --git a/generated/stripe_shared/src/quotes_resource_transfer_data.rs b/generated/stripe_shared/src/quotes_resource_transfer_data.rs index 54932bf8f..7a119ad96 100644 --- a/generated/stripe_shared/src/quotes_resource_transfer_data.rs +++ b/generated/stripe_shared/src/quotes_resource_transfer_data.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct QuotesResourceTransferData { /// The amount in cents (or local equivalent) that will be transferred to the destination account when the invoice is paid. /// By default, the entire amount is transferred to the destination. diff --git a/generated/stripe_shared/src/quotes_resource_upfront.rs b/generated/stripe_shared/src/quotes_resource_upfront.rs index 4b171e784..a14244c24 100644 --- a/generated/stripe_shared/src/quotes_resource_upfront.rs +++ b/generated/stripe_shared/src/quotes_resource_upfront.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct QuotesResourceUpfront { /// Total before any discounts or taxes are applied. pub amount_subtotal: i64, diff --git a/generated/stripe_shared/src/radar_radar_options.rs b/generated/stripe_shared/src/radar_radar_options.rs index 5ec8dc6d9..95c4b50f4 100644 --- a/generated/stripe_shared/src/radar_radar_options.rs +++ b/generated/stripe_shared/src/radar_radar_options.rs @@ -1,8 +1,8 @@ /// Options to configure Radar. /// See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct RadarRadarOptions { /// A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. pub session: Option, diff --git a/generated/stripe_shared/src/radar_review_resource_location.rs b/generated/stripe_shared/src/radar_review_resource_location.rs index 765379b93..568f85260 100644 --- a/generated/stripe_shared/src/radar_review_resource_location.rs +++ b/generated/stripe_shared/src/radar_review_resource_location.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct RadarReviewResourceLocation { /// The city where the payment originated. pub city: Option, diff --git a/generated/stripe_shared/src/radar_review_resource_session.rs b/generated/stripe_shared/src/radar_review_resource_session.rs index 7a1ceceb2..a3003cffa 100644 --- a/generated/stripe_shared/src/radar_review_resource_session.rs +++ b/generated/stripe_shared/src/radar_review_resource_session.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct RadarReviewResourceSession { /// The browser used in this browser session (e.g., `Chrome`). pub browser: Option, diff --git a/generated/stripe_shared/src/recurring.rs b/generated/stripe_shared/src/recurring.rs index ae6a4e2ef..593efbae2 100644 --- a/generated/stripe_shared/src/recurring.rs +++ b/generated/stripe_shared/src/recurring.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Recurring { /// Specifies a usage aggregation strategy for prices of `usage_type=metered`. Defaults to `sum`. pub aggregate_usage: Option, @@ -169,7 +169,7 @@ impl std::fmt::Debug for RecurringAggregateUsage { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for RecurringAggregateUsage { fn serialize(&self, serializer: S) -> Result where @@ -193,7 +193,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(RecurringAggregateUsage); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for RecurringAggregateUsage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -246,7 +246,7 @@ impl std::fmt::Debug for RecurringInterval { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for RecurringInterval { fn serialize(&self, serializer: S) -> Result where @@ -270,7 +270,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(RecurringInterval); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for RecurringInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -321,7 +321,7 @@ impl std::fmt::Debug for RecurringUsageType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for RecurringUsageType { fn serialize(&self, serializer: S) -> Result where @@ -345,7 +345,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(RecurringUsageType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for RecurringUsageType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/refund.rs b/generated/stripe_shared/src/refund.rs index c44d1fcd8..86a210114 100644 --- a/generated/stripe_shared/src/refund.rs +++ b/generated/stripe_shared/src/refund.rs @@ -6,7 +6,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Refund { /// Amount, in cents (or local equivalent). pub amount: i64, @@ -248,7 +248,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Refund { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -321,7 +321,7 @@ impl std::fmt::Debug for RefundReason { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for RefundReason { fn serialize(&self, serializer: S) -> Result where @@ -345,7 +345,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(RefundReason); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for RefundReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/refund_destination_details.rs b/generated/stripe_shared/src/refund_destination_details.rs index 37b5c1436..55bd5672f 100644 --- a/generated/stripe_shared/src/refund_destination_details.rs +++ b/generated/stripe_shared/src/refund_destination_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct RefundDestinationDetails { pub affirm: Option, pub afterpay_clearpay: Option, @@ -30,7 +30,7 @@ pub struct RefundDestinationDetails { /// The type of transaction-specific details of the payment method used in the refund (e.g., `card`). /// An additional hash is included on `destination_details` with a name matching this value. /// It contains information specific to the refund transaction. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: String, pub us_bank_transfer: Option, pub wechat_pay: Option, diff --git a/generated/stripe_shared/src/refund_destination_details_card.rs b/generated/stripe_shared/src/refund_destination_details_card.rs index 7f3c69d04..5f5bee285 100644 --- a/generated/stripe_shared/src/refund_destination_details_card.rs +++ b/generated/stripe_shared/src/refund_destination_details_card.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct RefundDestinationDetailsCard { /// Value of the reference number assigned to the refund. pub reference: Option, @@ -9,7 +9,7 @@ pub struct RefundDestinationDetailsCard { /// Type of the reference number assigned to the refund. pub reference_type: Option, /// The type of refund. This can be `refund`, `reversal`, or `pending`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: RefundDestinationDetailsCardType, } #[doc(hidden)] @@ -158,7 +158,7 @@ impl std::fmt::Debug for RefundDestinationDetailsCardType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for RefundDestinationDetailsCardType { fn serialize(&self, serializer: S) -> Result where @@ -183,7 +183,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(RefundDestinationDetailsCardType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for RefundDestinationDetailsCardType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/refund_destination_details_generic.rs b/generated/stripe_shared/src/refund_destination_details_generic.rs index 15140a4d5..38b0f4c3f 100644 --- a/generated/stripe_shared/src/refund_destination_details_generic.rs +++ b/generated/stripe_shared/src/refund_destination_details_generic.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct RefundDestinationDetailsGeneric { /// The reference assigned to the refund. pub reference: Option, diff --git a/generated/stripe_shared/src/refund_next_action.rs b/generated/stripe_shared/src/refund_next_action.rs index e47361c9d..10a4156a7 100644 --- a/generated/stripe_shared/src/refund_next_action.rs +++ b/generated/stripe_shared/src/refund_next_action.rs @@ -1,11 +1,11 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct RefundNextAction { /// Contains the refund details. pub display_details: Option, /// Type of the next action to perform. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: String, } #[doc(hidden)] diff --git a/generated/stripe_shared/src/refund_next_action_display_details.rs b/generated/stripe_shared/src/refund_next_action_display_details.rs index 9a8f815c1..b20a75198 100644 --- a/generated/stripe_shared/src/refund_next_action_display_details.rs +++ b/generated/stripe_shared/src/refund_next_action_display_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct RefundNextActionDisplayDetails { pub email_sent: stripe_shared::EmailSent, /// The expiry timestamp. diff --git a/generated/stripe_shared/src/reserve_transaction.rs b/generated/stripe_shared/src/reserve_transaction.rs index fe7bf2908..79708c66b 100644 --- a/generated/stripe_shared/src/reserve_transaction.rs +++ b/generated/stripe_shared/src/reserve_transaction.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ReserveTransaction { pub amount: i64, /// Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. @@ -115,7 +115,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ReserveTransaction { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/review.rs b/generated/stripe_shared/src/review.rs index 6811d6ce5..5e2e95a3a 100644 --- a/generated/stripe_shared/src/review.rs +++ b/generated/stripe_shared/src/review.rs @@ -5,7 +5,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Review { /// The ZIP or postal code of the card used, if applicable. pub billing_zip: Option, @@ -186,7 +186,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Review { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -257,7 +257,7 @@ impl std::fmt::Debug for ReviewClosedReason { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ReviewClosedReason { fn serialize(&self, serializer: S) -> Result where @@ -281,7 +281,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(ReviewClosedReason); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ReviewClosedReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -328,7 +328,7 @@ impl std::fmt::Debug for ReviewOpenedReason { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ReviewOpenedReason { fn serialize(&self, serializer: S) -> Result where @@ -352,7 +352,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(ReviewOpenedReason); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ReviewOpenedReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/rule.rs b/generated/stripe_shared/src/rule.rs index 0dd89c8b9..31c11c5d4 100644 --- a/generated/stripe_shared/src/rule.rs +++ b/generated/stripe_shared/src/rule.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Rule { /// The action taken on the payment. pub action: String, diff --git a/generated/stripe_shared/src/schedules_phase_automatic_tax.rs b/generated/stripe_shared/src/schedules_phase_automatic_tax.rs index 10e6ef43d..922249b68 100644 --- a/generated/stripe_shared/src/schedules_phase_automatic_tax.rs +++ b/generated/stripe_shared/src/schedules_phase_automatic_tax.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SchedulesPhaseAutomaticTax { /// Whether Stripe automatically computes tax on invoices created during this phase. pub enabled: bool, diff --git a/generated/stripe_shared/src/sepa_debit_generated_from.rs b/generated/stripe_shared/src/sepa_debit_generated_from.rs index 36d1a05a4..d0ac42419 100644 --- a/generated/stripe_shared/src/sepa_debit_generated_from.rs +++ b/generated/stripe_shared/src/sepa_debit_generated_from.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SepaDebitGeneratedFrom { /// The ID of the Charge that generated this PaymentMethod, if any. pub charge: Option>, diff --git a/generated/stripe_shared/src/setup_attempt.rs b/generated/stripe_shared/src/setup_attempt.rs index 67e90d17e..115b52802 100644 --- a/generated/stripe_shared/src/setup_attempt.rs +++ b/generated/stripe_shared/src/setup_attempt.rs @@ -5,7 +5,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupAttempt { /// The value of [application](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-application) on the SetupIntent at the time of this confirmation. pub application: Option>, @@ -199,7 +199,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SetupAttempt { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -265,7 +265,7 @@ impl std::fmt::Debug for SetupAttemptFlowDirections { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SetupAttemptFlowDirections { fn serialize(&self, serializer: S) -> Result where @@ -289,7 +289,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(SetupAttemptFlowDirections); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SetupAttemptFlowDirections { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details.rs index 8b4cdb2f7..7d8a2c8df 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupAttemptPaymentMethodDetails { pub acss_debit: Option, pub au_becs_debit: Option, @@ -19,7 +19,7 @@ pub struct SetupAttemptPaymentMethodDetails { /// The type of the payment method used in the SetupIntent (e.g., `card`). /// An additional hash is included on `payment_method_details` with a name matching this value. /// It contains confirmation-specific information for the payment method. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: String, pub us_bank_account: Option, } diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_acss_debit.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_acss_debit.rs index 8a1f29d9c..cad4e8e8f 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_acss_debit.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_acss_debit.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupAttemptPaymentMethodDetailsAcssDebit {} #[doc(hidden)] pub struct SetupAttemptPaymentMethodDetailsAcssDebitBuilder {} diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_au_becs_debit.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_au_becs_debit.rs index c80068150..924d3a0d1 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_au_becs_debit.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_au_becs_debit.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupAttemptPaymentMethodDetailsAuBecsDebit {} #[doc(hidden)] pub struct SetupAttemptPaymentMethodDetailsAuBecsDebitBuilder {} diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_bacs_debit.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_bacs_debit.rs index 3b60b74b9..97b878af8 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_bacs_debit.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_bacs_debit.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupAttemptPaymentMethodDetailsBacsDebit {} #[doc(hidden)] pub struct SetupAttemptPaymentMethodDetailsBacsDebitBuilder {} diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_bancontact.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_bancontact.rs index 36c98ecd8..a5e5b8d2f 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_bancontact.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_bancontact.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupAttemptPaymentMethodDetailsBancontact { /// Bank code of bank associated with the bank account. pub bank_code: Option, @@ -199,7 +199,7 @@ impl std::fmt::Debug for SetupAttemptPaymentMethodDetailsBancontactPreferredLang f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SetupAttemptPaymentMethodDetailsBancontactPreferredLanguage { fn serialize(&self, serializer: S) -> Result where @@ -230,7 +230,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( SetupAttemptPaymentMethodDetailsBancontactPreferredLanguage ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SetupAttemptPaymentMethodDetailsBancontactPreferredLanguage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_boleto.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_boleto.rs index 99b809fb5..2cbe3149c 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_boleto.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_boleto.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupAttemptPaymentMethodDetailsBoleto {} #[doc(hidden)] pub struct SetupAttemptPaymentMethodDetailsBoletoBuilder {} diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_card.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_card.rs index c9b1a2cf2..d0c98dab5 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_card.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_card.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupAttemptPaymentMethodDetailsCard { /// Card brand. /// Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_card_checks.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_card_checks.rs index 85d50a547..961a74e5c 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_card_checks.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_card_checks.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupAttemptPaymentMethodDetailsCardChecks { /// If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. pub address_line1_check: Option, diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_card_present.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_card_present.rs index dd170f0f2..c5825c22a 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_card_present.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_card_present.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupAttemptPaymentMethodDetailsCardPresent { /// The ID of the Card PaymentMethod which was generated by this SetupAttempt. pub generated_card: Option>, diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_card_wallet.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_card_wallet.rs index f4083afcd..c0b9b8c1c 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_card_wallet.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_card_wallet.rs @@ -1,13 +1,13 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupAttemptPaymentMethodDetailsCardWallet { pub apple_pay: Option, pub google_pay: Option, /// The type of the card wallet, one of `apple_pay`, `google_pay`, or `link`. /// An additional hash is included on the Wallet subhash with a name matching this value. /// It contains additional information specific to the card wallet type. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: SetupAttemptPaymentMethodDetailsCardWalletType, } #[doc(hidden)] @@ -153,7 +153,7 @@ impl std::fmt::Debug for SetupAttemptPaymentMethodDetailsCardWalletType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SetupAttemptPaymentMethodDetailsCardWalletType { fn serialize(&self, serializer: S) -> Result where @@ -180,7 +180,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for SetupAttemptPaymentMethodDetailsCardWalletType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_cashapp.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_cashapp.rs index 746827aa6..7e7a0eb5e 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_cashapp.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_cashapp.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupAttemptPaymentMethodDetailsCashapp {} #[doc(hidden)] pub struct SetupAttemptPaymentMethodDetailsCashappBuilder {} diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_ideal.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_ideal.rs index 851912770..410685471 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_ideal.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_ideal.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupAttemptPaymentMethodDetailsIdeal { /// The customer's bank. /// Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. @@ -223,7 +223,7 @@ impl std::fmt::Debug for SetupAttemptPaymentMethodDetailsIdealBank { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SetupAttemptPaymentMethodDetailsIdealBank { fn serialize(&self, serializer: S) -> Result where @@ -250,7 +250,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for SetupAttemptPaymentMethodDetailsIdealBank { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -345,7 +345,7 @@ impl std::fmt::Debug for SetupAttemptPaymentMethodDetailsIdealBic { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SetupAttemptPaymentMethodDetailsIdealBic { fn serialize(&self, serializer: S) -> Result where @@ -372,7 +372,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for SetupAttemptPaymentMethodDetailsIdealBic { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_klarna.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_klarna.rs index 3d7cc867b..121f13073 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_klarna.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_klarna.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupAttemptPaymentMethodDetailsKlarna {} #[doc(hidden)] pub struct SetupAttemptPaymentMethodDetailsKlarnaBuilder {} diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_link.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_link.rs index ae15a04d9..67641c2d4 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_link.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_link.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupAttemptPaymentMethodDetailsLink {} #[doc(hidden)] pub struct SetupAttemptPaymentMethodDetailsLinkBuilder {} diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_paypal.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_paypal.rs index 2b72d6500..9d2e92cb7 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_paypal.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_paypal.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupAttemptPaymentMethodDetailsPaypal {} #[doc(hidden)] pub struct SetupAttemptPaymentMethodDetailsPaypalBuilder {} diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_sepa_debit.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_sepa_debit.rs index bc2fbed12..fc242c4c8 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_sepa_debit.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_sepa_debit.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupAttemptPaymentMethodDetailsSepaDebit {} #[doc(hidden)] pub struct SetupAttemptPaymentMethodDetailsSepaDebitBuilder {} diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_sofort.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_sofort.rs index d3648ad7c..0d3329432 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_sofort.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_sofort.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupAttemptPaymentMethodDetailsSofort { /// Bank code of bank associated with the bank account. pub bank_code: Option, @@ -199,7 +199,7 @@ impl std::fmt::Debug for SetupAttemptPaymentMethodDetailsSofortPreferredLanguage f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SetupAttemptPaymentMethodDetailsSofortPreferredLanguage { fn serialize(&self, serializer: S) -> Result where @@ -228,7 +228,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(SetupAttemptPaymentMethodDetailsSofortPreferredLanguage); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SetupAttemptPaymentMethodDetailsSofortPreferredLanguage { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/setup_attempt_payment_method_details_us_bank_account.rs b/generated/stripe_shared/src/setup_attempt_payment_method_details_us_bank_account.rs index 2aad0d953..56a2eb091 100644 --- a/generated/stripe_shared/src/setup_attempt_payment_method_details_us_bank_account.rs +++ b/generated/stripe_shared/src/setup_attempt_payment_method_details_us_bank_account.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupAttemptPaymentMethodDetailsUsBankAccount {} #[doc(hidden)] pub struct SetupAttemptPaymentMethodDetailsUsBankAccountBuilder {} diff --git a/generated/stripe_shared/src/setup_intent.rs b/generated/stripe_shared/src/setup_intent.rs index e4c116823..41686878e 100644 --- a/generated/stripe_shared/src/setup_intent.rs +++ b/generated/stripe_shared/src/setup_intent.rs @@ -22,7 +22,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupIntent { /// ID of the Connect application that created the SetupIntent. pub application: Option>, @@ -319,7 +319,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SetupIntent { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -406,7 +406,7 @@ impl std::fmt::Debug for SetupIntentStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SetupIntentStatus { fn serialize(&self, serializer: S) -> Result where @@ -430,7 +430,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(SetupIntentStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SetupIntentStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -509,7 +509,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(SetupIntentCancellationReason); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SetupIntentCancellationReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -579,7 +579,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(SetupIntentFlowDirections); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SetupIntentFlowDirections { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/setup_intent_next_action.rs b/generated/stripe_shared/src/setup_intent_next_action.rs index 7ea6105cf..cbce8bf3d 100644 --- a/generated/stripe_shared/src/setup_intent_next_action.rs +++ b/generated/stripe_shared/src/setup_intent_next_action.rs @@ -1,16 +1,19 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupIntentNextAction { pub cashapp_handle_redirect_or_display_qr_code: Option, pub redirect_to_url: Option, /// Type of the next action to perform, one of `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, `oxxo_display_details`, or `verify_with_microdeposits`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: String, /// When confirming a SetupIntent with Stripe.js, Stripe.js depends on the contents of this dictionary to invoke authentication flows. /// The shape of the contents is subject to change and is only intended to be used by Stripe.js. - #[cfg_attr(feature = "serde", serde(with = "stripe_types::with_serde_json_opt"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(with = "stripe_types::with_serde_json_opt") + )] pub use_stripe_sdk: Option, pub verify_with_microdeposits: Option, diff --git a/generated/stripe_shared/src/setup_intent_next_action_redirect_to_url.rs b/generated/stripe_shared/src/setup_intent_next_action_redirect_to_url.rs index 0411e0c8c..5cbb1d6c9 100644 --- a/generated/stripe_shared/src/setup_intent_next_action_redirect_to_url.rs +++ b/generated/stripe_shared/src/setup_intent_next_action_redirect_to_url.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupIntentNextActionRedirectToUrl { /// If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion. pub return_url: Option, diff --git a/generated/stripe_shared/src/setup_intent_next_action_verify_with_microdeposits.rs b/generated/stripe_shared/src/setup_intent_next_action_verify_with_microdeposits.rs index f6a2f8d7b..1f55172f3 100644 --- a/generated/stripe_shared/src/setup_intent_next_action_verify_with_microdeposits.rs +++ b/generated/stripe_shared/src/setup_intent_next_action_verify_with_microdeposits.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupIntentNextActionVerifyWithMicrodeposits { /// The timestamp when the microdeposits are expected to land. pub arrival_date: stripe_types::Timestamp, @@ -151,7 +151,7 @@ impl std::fmt::Debug for SetupIntentNextActionVerifyWithMicrodepositsMicrodeposi f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SetupIntentNextActionVerifyWithMicrodepositsMicrodepositType { fn serialize(&self, serializer: S) -> Result where @@ -182,7 +182,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( SetupIntentNextActionVerifyWithMicrodepositsMicrodepositType ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SetupIntentNextActionVerifyWithMicrodepositsMicrodepositType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/setup_intent_payment_method_options.rs b/generated/stripe_shared/src/setup_intent_payment_method_options.rs index b571d7820..c64d28b5a 100644 --- a/generated/stripe_shared/src/setup_intent_payment_method_options.rs +++ b/generated/stripe_shared/src/setup_intent_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupIntentPaymentMethodOptions { pub acss_debit: Option, pub card: Option, diff --git a/generated/stripe_shared/src/setup_intent_payment_method_options_acss_debit.rs b/generated/stripe_shared/src/setup_intent_payment_method_options_acss_debit.rs index a350f07c4..8305ce320 100644 --- a/generated/stripe_shared/src/setup_intent_payment_method_options_acss_debit.rs +++ b/generated/stripe_shared/src/setup_intent_payment_method_options_acss_debit.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupIntentPaymentMethodOptionsAcssDebit { /// Currency supported by the bank account pub currency: Option, @@ -150,7 +150,7 @@ impl std::fmt::Debug for SetupIntentPaymentMethodOptionsAcssDebitCurrency { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SetupIntentPaymentMethodOptionsAcssDebitCurrency { fn serialize(&self, serializer: S) -> Result where @@ -177,7 +177,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for SetupIntentPaymentMethodOptionsAcssDebitCurrency { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -230,7 +230,7 @@ impl std::fmt::Debug for SetupIntentPaymentMethodOptionsAcssDebitVerificationMet f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SetupIntentPaymentMethodOptionsAcssDebitVerificationMethod { fn serialize(&self, serializer: S) -> Result where @@ -261,7 +261,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( SetupIntentPaymentMethodOptionsAcssDebitVerificationMethod ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SetupIntentPaymentMethodOptionsAcssDebitVerificationMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/setup_intent_payment_method_options_card.rs b/generated/stripe_shared/src/setup_intent_payment_method_options_card.rs index 1c82b0b77..f1a83ef36 100644 --- a/generated/stripe_shared/src/setup_intent_payment_method_options_card.rs +++ b/generated/stripe_shared/src/setup_intent_payment_method_options_card.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupIntentPaymentMethodOptionsCard { /// Configuration options for setting up an eMandate for cards issued in India. pub mandate_options: Option, @@ -184,7 +184,7 @@ impl std::fmt::Debug for SetupIntentPaymentMethodOptionsCardNetwork { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SetupIntentPaymentMethodOptionsCardNetwork { fn serialize(&self, serializer: S) -> Result where @@ -211,7 +211,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for SetupIntentPaymentMethodOptionsCardNetwork { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -265,7 +265,7 @@ impl std::fmt::Debug for SetupIntentPaymentMethodOptionsCardRequestThreeDSecure f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SetupIntentPaymentMethodOptionsCardRequestThreeDSecure { fn serialize(&self, serializer: S) -> Result where @@ -294,7 +294,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(SetupIntentPaymentMethodOptionsCardRequestThreeDSecure); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SetupIntentPaymentMethodOptionsCardRequestThreeDSecure { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/setup_intent_payment_method_options_card_mandate_options.rs b/generated/stripe_shared/src/setup_intent_payment_method_options_card_mandate_options.rs index 59d27f616..a65f80df9 100644 --- a/generated/stripe_shared/src/setup_intent_payment_method_options_card_mandate_options.rs +++ b/generated/stripe_shared/src/setup_intent_payment_method_options_card_mandate_options.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupIntentPaymentMethodOptionsCardMandateOptions { /// Amount to be charged for future payments. pub amount: i64, @@ -208,7 +208,7 @@ impl std::fmt::Debug for SetupIntentPaymentMethodOptionsCardMandateOptionsAmount f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SetupIntentPaymentMethodOptionsCardMandateOptionsAmountType { fn serialize(&self, serializer: S) -> Result where @@ -239,7 +239,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( SetupIntentPaymentMethodOptionsCardMandateOptionsAmountType ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SetupIntentPaymentMethodOptionsCardMandateOptionsAmountType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -298,7 +298,7 @@ impl std::fmt::Debug for SetupIntentPaymentMethodOptionsCardMandateOptionsInterv f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SetupIntentPaymentMethodOptionsCardMandateOptionsInterval { fn serialize(&self, serializer: S) -> Result where @@ -329,7 +329,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( SetupIntentPaymentMethodOptionsCardMandateOptionsInterval ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SetupIntentPaymentMethodOptionsCardMandateOptionsInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -376,7 +376,7 @@ impl std::fmt::Debug for SetupIntentPaymentMethodOptionsCardMandateOptionsSuppor f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SetupIntentPaymentMethodOptionsCardMandateOptionsSupportedTypes { fn serialize(&self, serializer: S) -> Result where @@ -407,7 +407,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( SetupIntentPaymentMethodOptionsCardMandateOptionsSupportedTypes ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SetupIntentPaymentMethodOptionsCardMandateOptionsSupportedTypes { diff --git a/generated/stripe_shared/src/setup_intent_payment_method_options_link.rs b/generated/stripe_shared/src/setup_intent_payment_method_options_link.rs index c69e58702..ebdcc1181 100644 --- a/generated/stripe_shared/src/setup_intent_payment_method_options_link.rs +++ b/generated/stripe_shared/src/setup_intent_payment_method_options_link.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupIntentPaymentMethodOptionsLink { /// \[Deprecated\] This is a legacy parameter that no longer has any function. pub persistent_token: Option, diff --git a/generated/stripe_shared/src/setup_intent_payment_method_options_mandate_options_acss_debit.rs b/generated/stripe_shared/src/setup_intent_payment_method_options_mandate_options_acss_debit.rs index 8ee52eafb..7516ce3bc 100644 --- a/generated/stripe_shared/src/setup_intent_payment_method_options_mandate_options_acss_debit.rs +++ b/generated/stripe_shared/src/setup_intent_payment_method_options_mandate_options_acss_debit.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupIntentPaymentMethodOptionsMandateOptionsAcssDebit { /// A URL for custom mandate text pub custom_mandate_url: Option, @@ -173,7 +173,7 @@ impl std::fmt::Debug for SetupIntentPaymentMethodOptionsMandateOptionsAcssDebitD f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SetupIntentPaymentMethodOptionsMandateOptionsAcssDebitDefaultFor { fn serialize(&self, serializer: S) -> Result where @@ -204,7 +204,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( SetupIntentPaymentMethodOptionsMandateOptionsAcssDebitDefaultFor ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SetupIntentPaymentMethodOptionsMandateOptionsAcssDebitDefaultFor { @@ -255,7 +255,7 @@ impl std::fmt::Debug for SetupIntentPaymentMethodOptionsMandateOptionsAcssDebitP f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SetupIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule { fn serialize(&self, serializer: S) -> Result where @@ -288,7 +288,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( SetupIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SetupIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule { @@ -336,7 +336,7 @@ impl std::fmt::Debug for SetupIntentPaymentMethodOptionsMandateOptionsAcssDebitT f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SetupIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType { fn serialize(&self, serializer: S) -> Result where @@ -369,7 +369,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( SetupIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SetupIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType { diff --git a/generated/stripe_shared/src/setup_intent_payment_method_options_mandate_options_sepa_debit.rs b/generated/stripe_shared/src/setup_intent_payment_method_options_mandate_options_sepa_debit.rs index 979af23de..4a20852e2 100644 --- a/generated/stripe_shared/src/setup_intent_payment_method_options_mandate_options_sepa_debit.rs +++ b/generated/stripe_shared/src/setup_intent_payment_method_options_mandate_options_sepa_debit.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupIntentPaymentMethodOptionsMandateOptionsSepaDebit {} #[doc(hidden)] pub struct SetupIntentPaymentMethodOptionsMandateOptionsSepaDebitBuilder {} diff --git a/generated/stripe_shared/src/setup_intent_payment_method_options_paypal.rs b/generated/stripe_shared/src/setup_intent_payment_method_options_paypal.rs index 85363a482..bc453f327 100644 --- a/generated/stripe_shared/src/setup_intent_payment_method_options_paypal.rs +++ b/generated/stripe_shared/src/setup_intent_payment_method_options_paypal.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupIntentPaymentMethodOptionsPaypal { /// The PayPal Billing Agreement ID (BAID). /// This is an ID generated by PayPal which represents the mandate between the merchant and the customer. diff --git a/generated/stripe_shared/src/setup_intent_payment_method_options_sepa_debit.rs b/generated/stripe_shared/src/setup_intent_payment_method_options_sepa_debit.rs index c33a2d9b0..945460734 100644 --- a/generated/stripe_shared/src/setup_intent_payment_method_options_sepa_debit.rs +++ b/generated/stripe_shared/src/setup_intent_payment_method_options_sepa_debit.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupIntentPaymentMethodOptionsSepaDebit { pub mandate_options: Option, diff --git a/generated/stripe_shared/src/setup_intent_payment_method_options_us_bank_account.rs b/generated/stripe_shared/src/setup_intent_payment_method_options_us_bank_account.rs index 8b7ea62a4..28ae8a982 100644 --- a/generated/stripe_shared/src/setup_intent_payment_method_options_us_bank_account.rs +++ b/generated/stripe_shared/src/setup_intent_payment_method_options_us_bank_account.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SetupIntentPaymentMethodOptionsUsBankAccount { pub financial_connections: Option, pub mandate_options: Option, @@ -153,7 +153,7 @@ impl std::fmt::Debug for SetupIntentPaymentMethodOptionsUsBankAccountVerificatio f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SetupIntentPaymentMethodOptionsUsBankAccountVerificationMethod { fn serialize(&self, serializer: S) -> Result where @@ -184,7 +184,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( SetupIntentPaymentMethodOptionsUsBankAccountVerificationMethod ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SetupIntentPaymentMethodOptionsUsBankAccountVerificationMethod { diff --git a/generated/stripe_shared/src/shipping.rs b/generated/stripe_shared/src/shipping.rs index 8bc1eac22..bc52d3008 100644 --- a/generated/stripe_shared/src/shipping.rs +++ b/generated/stripe_shared/src/shipping.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Shipping { pub address: Option, /// The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc. diff --git a/generated/stripe_shared/src/shipping_rate.rs b/generated/stripe_shared/src/shipping_rate.rs index 107cbe6a9..f49ac9573 100644 --- a/generated/stripe_shared/src/shipping_rate.rs +++ b/generated/stripe_shared/src/shipping_rate.rs @@ -4,7 +4,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ShippingRate { /// Whether the shipping rate can be used for new purchases. Defaults to `true`. pub active: bool, @@ -31,7 +31,7 @@ pub struct ShippingRate { /// The Shipping tax code is `txcd_92010001`. pub tax_code: Option>, /// The type of calculation to use on the shipping rate. Can only be `fixed_amount` for now. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: stripe_shared::ShippingRateType, } #[doc(hidden)] @@ -174,7 +174,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ShippingRate { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -265,7 +265,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(ShippingRateTaxBehavior); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ShippingRateTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -331,7 +331,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(ShippingRateType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ShippingRateType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/shipping_rate_currency_option.rs b/generated/stripe_shared/src/shipping_rate_currency_option.rs index 23aa359ab..f1534e8db 100644 --- a/generated/stripe_shared/src/shipping_rate_currency_option.rs +++ b/generated/stripe_shared/src/shipping_rate_currency_option.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ShippingRateCurrencyOption { /// A non-negative integer in cents representing how much to charge. pub amount: i64, @@ -139,7 +139,7 @@ impl std::fmt::Debug for ShippingRateCurrencyOptionTaxBehavior { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ShippingRateCurrencyOptionTaxBehavior { fn serialize(&self, serializer: S) -> Result where @@ -164,7 +164,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for ShippingRateCurrencyOptionTaxBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/shipping_rate_delivery_estimate.rs b/generated/stripe_shared/src/shipping_rate_delivery_estimate.rs index 0c1f4fc54..9d4764b9c 100644 --- a/generated/stripe_shared/src/shipping_rate_delivery_estimate.rs +++ b/generated/stripe_shared/src/shipping_rate_delivery_estimate.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ShippingRateDeliveryEstimate { /// The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite. pub maximum: Option, diff --git a/generated/stripe_shared/src/shipping_rate_delivery_estimate_bound.rs b/generated/stripe_shared/src/shipping_rate_delivery_estimate_bound.rs index a28e8e75d..320928233 100644 --- a/generated/stripe_shared/src/shipping_rate_delivery_estimate_bound.rs +++ b/generated/stripe_shared/src/shipping_rate_delivery_estimate_bound.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ShippingRateDeliveryEstimateBound { /// A unit of time. pub unit: ShippingRateDeliveryEstimateBoundUnit, @@ -143,7 +143,7 @@ impl std::fmt::Debug for ShippingRateDeliveryEstimateBoundUnit { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ShippingRateDeliveryEstimateBoundUnit { fn serialize(&self, serializer: S) -> Result where @@ -168,7 +168,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for ShippingRateDeliveryEstimateBoundUnit { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/shipping_rate_fixed_amount.rs b/generated/stripe_shared/src/shipping_rate_fixed_amount.rs index 93c72c4db..aaef6e785 100644 --- a/generated/stripe_shared/src/shipping_rate_fixed_amount.rs +++ b/generated/stripe_shared/src/shipping_rate_fixed_amount.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ShippingRateFixedAmount { /// A non-negative integer in cents representing how much to charge. pub amount: i64, diff --git a/generated/stripe_shared/src/source.rs b/generated/stripe_shared/src/source.rs index 52c4ca816..fde308430 100644 --- a/generated/stripe_shared/src/source.rs +++ b/generated/stripe_shared/src/source.rs @@ -11,7 +11,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Source { pub ach_credit_transfer: Option, pub ach_debit: Option, @@ -72,7 +72,7 @@ pub struct Source { /// The `type` is a payment method, one of `ach_credit_transfer`, `ach_debit`, `alipay`, `bancontact`, `card`, `card_present`, `eps`, `giropay`, `ideal`, `multibanco`, `klarna`, `p24`, `sepa_debit`, `sofort`, `three_d_secure`, or `wechat`. /// An additional hash is included on the source with a name matching this value. /// It contains additional information specific to the [payment method](https://stripe.com/docs/sources) used. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: SourceType, /// Either `reusable` or `single_use`. /// Whether this source should be reusable or not. @@ -354,7 +354,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Source { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -497,7 +497,7 @@ impl std::fmt::Debug for SourceType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SourceType { fn serialize(&self, serializer: S) -> Result where @@ -521,7 +521,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(SourceType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SourceType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/source_code_verification_flow.rs b/generated/stripe_shared/src/source_code_verification_flow.rs index d80e7faf3..fd89e3077 100644 --- a/generated/stripe_shared/src/source_code_verification_flow.rs +++ b/generated/stripe_shared/src/source_code_verification_flow.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceCodeVerificationFlow { /// The number of attempts remaining to authenticate the source object with a verification code. pub attempts_remaining: i64, diff --git a/generated/stripe_shared/src/source_order.rs b/generated/stripe_shared/src/source_order.rs index 389677756..b252f56b7 100644 --- a/generated/stripe_shared/src/source_order.rs +++ b/generated/stripe_shared/src/source_order.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceOrder { /// A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the order. pub amount: i64, diff --git a/generated/stripe_shared/src/source_order_item.rs b/generated/stripe_shared/src/source_order_item.rs index e8ffce7d4..e7ffa7107 100644 --- a/generated/stripe_shared/src/source_order_item.rs +++ b/generated/stripe_shared/src/source_order_item.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceOrderItem { /// The amount (price) for this order item. pub amount: Option, @@ -15,7 +15,7 @@ pub struct SourceOrderItem { /// When type is `sku`, this is the number of instances of the SKU to be ordered. pub quantity: Option, /// The type of this order item. Must be `sku`, `tax`, or `shipping`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: Option, } #[doc(hidden)] diff --git a/generated/stripe_shared/src/source_owner.rs b/generated/stripe_shared/src/source_owner.rs index 0bc3f2ded..946595290 100644 --- a/generated/stripe_shared/src/source_owner.rs +++ b/generated/stripe_shared/src/source_owner.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceOwner { /// Owner's address. pub address: Option, diff --git a/generated/stripe_shared/src/source_receiver_flow.rs b/generated/stripe_shared/src/source_receiver_flow.rs index 73280d056..442b4eef7 100644 --- a/generated/stripe_shared/src/source_receiver_flow.rs +++ b/generated/stripe_shared/src/source_receiver_flow.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceReceiverFlow { /// The address of the receiver source. /// This is the value that should be communicated to the customer to send their funds to. diff --git a/generated/stripe_shared/src/source_redirect_flow.rs b/generated/stripe_shared/src/source_redirect_flow.rs index 013902f34..42365b040 100644 --- a/generated/stripe_shared/src/source_redirect_flow.rs +++ b/generated/stripe_shared/src/source_redirect_flow.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceRedirectFlow { /// The failure reason for the redirect, either `user_abort` (the customer aborted or dropped out of the redirect flow), `declined` (the authentication failed or the transaction was declined), or `processing_error` (the redirect failed due to a technical error). /// Present only if the redirect status is `failed`. diff --git a/generated/stripe_shared/src/source_transaction.rs b/generated/stripe_shared/src/source_transaction.rs index f4219f69c..a0481efe0 100644 --- a/generated/stripe_shared/src/source_transaction.rs +++ b/generated/stripe_shared/src/source_transaction.rs @@ -3,7 +3,7 @@ /// multiple transactions. As such, sources can have multiple associated /// transactions. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTransaction { pub ach_credit_transfer: Option, /// A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the amount your customer has pushed to the receiver. @@ -26,7 +26,7 @@ pub struct SourceTransaction { /// The status of the transaction, one of `succeeded`, `pending`, or `failed`. pub status: String, /// The type of source this transaction is attached to. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: SourceTransactionType, } #[doc(hidden)] @@ -187,7 +187,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SourceTransaction { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -294,7 +294,7 @@ impl std::fmt::Debug for SourceTransactionType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SourceTransactionType { fn serialize(&self, serializer: S) -> Result where @@ -319,7 +319,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(SourceTransactionType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SourceTransactionType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/source_transaction_ach_credit_transfer_data.rs b/generated/stripe_shared/src/source_transaction_ach_credit_transfer_data.rs index 7ecc8c9e8..0e347efee 100644 --- a/generated/stripe_shared/src/source_transaction_ach_credit_transfer_data.rs +++ b/generated/stripe_shared/src/source_transaction_ach_credit_transfer_data.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTransactionAchCreditTransferData { /// Customer data associated with the transfer. pub customer_data: Option, diff --git a/generated/stripe_shared/src/source_transaction_chf_credit_transfer_data.rs b/generated/stripe_shared/src/source_transaction_chf_credit_transfer_data.rs index 73510e991..416703bb2 100644 --- a/generated/stripe_shared/src/source_transaction_chf_credit_transfer_data.rs +++ b/generated/stripe_shared/src/source_transaction_chf_credit_transfer_data.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTransactionChfCreditTransferData { /// Reference associated with the transfer. pub reference: Option, diff --git a/generated/stripe_shared/src/source_transaction_gbp_credit_transfer_data.rs b/generated/stripe_shared/src/source_transaction_gbp_credit_transfer_data.rs index 9e833704c..0b9d53cea 100644 --- a/generated/stripe_shared/src/source_transaction_gbp_credit_transfer_data.rs +++ b/generated/stripe_shared/src/source_transaction_gbp_credit_transfer_data.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTransactionGbpCreditTransferData { /// Bank account fingerprint associated with the Stripe owned bank account receiving the transfer. pub fingerprint: Option, diff --git a/generated/stripe_shared/src/source_transaction_paper_check_data.rs b/generated/stripe_shared/src/source_transaction_paper_check_data.rs index 53f629a60..5d27974d6 100644 --- a/generated/stripe_shared/src/source_transaction_paper_check_data.rs +++ b/generated/stripe_shared/src/source_transaction_paper_check_data.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTransactionPaperCheckData { /// Time at which the deposited funds will be available for use. /// Measured in seconds since the Unix epoch. diff --git a/generated/stripe_shared/src/source_transaction_sepa_credit_transfer_data.rs b/generated/stripe_shared/src/source_transaction_sepa_credit_transfer_data.rs index 30a79104f..5e0f90fc8 100644 --- a/generated/stripe_shared/src/source_transaction_sepa_credit_transfer_data.rs +++ b/generated/stripe_shared/src/source_transaction_sepa_credit_transfer_data.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTransactionSepaCreditTransferData { /// Reference associated with the transfer. pub reference: Option, diff --git a/generated/stripe_shared/src/source_type_ach_credit_transfer.rs b/generated/stripe_shared/src/source_type_ach_credit_transfer.rs index b9cb42389..f06fbb65d 100644 --- a/generated/stripe_shared/src/source_type_ach_credit_transfer.rs +++ b/generated/stripe_shared/src/source_type_ach_credit_transfer.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTypeAchCreditTransfer { pub account_number: Option, pub bank_name: Option, diff --git a/generated/stripe_shared/src/source_type_ach_debit.rs b/generated/stripe_shared/src/source_type_ach_debit.rs index 5abf839ca..2da507677 100644 --- a/generated/stripe_shared/src/source_type_ach_debit.rs +++ b/generated/stripe_shared/src/source_type_ach_debit.rs @@ -1,13 +1,13 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTypeAchDebit { pub bank_name: Option, pub country: Option, pub fingerprint: Option, pub last4: Option, pub routing_number: Option, - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: Option, } #[doc(hidden)] diff --git a/generated/stripe_shared/src/source_type_acss_debit.rs b/generated/stripe_shared/src/source_type_acss_debit.rs index 213616380..751e7fa60 100644 --- a/generated/stripe_shared/src/source_type_acss_debit.rs +++ b/generated/stripe_shared/src/source_type_acss_debit.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTypeAcssDebit { pub bank_address_city: Option, pub bank_address_line_1: Option, diff --git a/generated/stripe_shared/src/source_type_alipay.rs b/generated/stripe_shared/src/source_type_alipay.rs index 5a25c0029..fe927da2b 100644 --- a/generated/stripe_shared/src/source_type_alipay.rs +++ b/generated/stripe_shared/src/source_type_alipay.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTypeAlipay { pub data_string: Option, pub native_url: Option, diff --git a/generated/stripe_shared/src/source_type_au_becs_debit.rs b/generated/stripe_shared/src/source_type_au_becs_debit.rs index 443233c12..11b9a1b21 100644 --- a/generated/stripe_shared/src/source_type_au_becs_debit.rs +++ b/generated/stripe_shared/src/source_type_au_becs_debit.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTypeAuBecsDebit { pub bsb_number: Option, pub fingerprint: Option, diff --git a/generated/stripe_shared/src/source_type_bancontact.rs b/generated/stripe_shared/src/source_type_bancontact.rs index 9fc164daf..d621a9084 100644 --- a/generated/stripe_shared/src/source_type_bancontact.rs +++ b/generated/stripe_shared/src/source_type_bancontact.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTypeBancontact { pub bank_code: Option, pub bank_name: Option, diff --git a/generated/stripe_shared/src/source_type_card.rs b/generated/stripe_shared/src/source_type_card.rs index 78a38a3fa..b37966539 100644 --- a/generated/stripe_shared/src/source_type_card.rs +++ b/generated/stripe_shared/src/source_type_card.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTypeCard { pub address_line1_check: Option, pub address_zip_check: Option, diff --git a/generated/stripe_shared/src/source_type_card_present.rs b/generated/stripe_shared/src/source_type_card_present.rs index d47e4d199..7ce56a520 100644 --- a/generated/stripe_shared/src/source_type_card_present.rs +++ b/generated/stripe_shared/src/source_type_card_present.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTypeCardPresent { pub application_cryptogram: Option, pub application_preferred_name: Option, diff --git a/generated/stripe_shared/src/source_type_eps.rs b/generated/stripe_shared/src/source_type_eps.rs index 124f646cd..e179844a4 100644 --- a/generated/stripe_shared/src/source_type_eps.rs +++ b/generated/stripe_shared/src/source_type_eps.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTypeEps { pub reference: Option, pub statement_descriptor: Option, diff --git a/generated/stripe_shared/src/source_type_giropay.rs b/generated/stripe_shared/src/source_type_giropay.rs index 6c0d1d695..114e96c72 100644 --- a/generated/stripe_shared/src/source_type_giropay.rs +++ b/generated/stripe_shared/src/source_type_giropay.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTypeGiropay { pub bank_code: Option, pub bank_name: Option, diff --git a/generated/stripe_shared/src/source_type_ideal.rs b/generated/stripe_shared/src/source_type_ideal.rs index ff6e288b7..5ac2eac77 100644 --- a/generated/stripe_shared/src/source_type_ideal.rs +++ b/generated/stripe_shared/src/source_type_ideal.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTypeIdeal { pub bank: Option, pub bic: Option, diff --git a/generated/stripe_shared/src/source_type_klarna.rs b/generated/stripe_shared/src/source_type_klarna.rs index e15d89744..8b9cdfec7 100644 --- a/generated/stripe_shared/src/source_type_klarna.rs +++ b/generated/stripe_shared/src/source_type_klarna.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTypeKlarna { pub background_image_url: Option, pub client_token: Option, diff --git a/generated/stripe_shared/src/source_type_multibanco.rs b/generated/stripe_shared/src/source_type_multibanco.rs index cf23d5721..50487f634 100644 --- a/generated/stripe_shared/src/source_type_multibanco.rs +++ b/generated/stripe_shared/src/source_type_multibanco.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTypeMultibanco { pub entity: Option, pub reference: Option, diff --git a/generated/stripe_shared/src/source_type_p24.rs b/generated/stripe_shared/src/source_type_p24.rs index 2cd0a7a16..687c2f3a6 100644 --- a/generated/stripe_shared/src/source_type_p24.rs +++ b/generated/stripe_shared/src/source_type_p24.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTypeP24 { pub reference: Option, } diff --git a/generated/stripe_shared/src/source_type_sepa_credit_transfer.rs b/generated/stripe_shared/src/source_type_sepa_credit_transfer.rs index 9e44f88ee..86fe486d5 100644 --- a/generated/stripe_shared/src/source_type_sepa_credit_transfer.rs +++ b/generated/stripe_shared/src/source_type_sepa_credit_transfer.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTypeSepaCreditTransfer { pub bank_name: Option, pub bic: Option, diff --git a/generated/stripe_shared/src/source_type_sepa_debit.rs b/generated/stripe_shared/src/source_type_sepa_debit.rs index bc0505e48..c6f4b1539 100644 --- a/generated/stripe_shared/src/source_type_sepa_debit.rs +++ b/generated/stripe_shared/src/source_type_sepa_debit.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTypeSepaDebit { pub bank_code: Option, pub branch_code: Option, diff --git a/generated/stripe_shared/src/source_type_sofort.rs b/generated/stripe_shared/src/source_type_sofort.rs index b0b6a7b4b..e8658d936 100644 --- a/generated/stripe_shared/src/source_type_sofort.rs +++ b/generated/stripe_shared/src/source_type_sofort.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTypeSofort { pub bank_code: Option, pub bank_name: Option, diff --git a/generated/stripe_shared/src/source_type_three_d_secure.rs b/generated/stripe_shared/src/source_type_three_d_secure.rs index 0b7d5a1b3..a57befda6 100644 --- a/generated/stripe_shared/src/source_type_three_d_secure.rs +++ b/generated/stripe_shared/src/source_type_three_d_secure.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTypeThreeDSecure { pub address_line1_check: Option, pub address_zip_check: Option, diff --git a/generated/stripe_shared/src/source_type_wechat.rs b/generated/stripe_shared/src/source_type_wechat.rs index c2aa4aab0..c5d7003e2 100644 --- a/generated/stripe_shared/src/source_type_wechat.rs +++ b/generated/stripe_shared/src/source_type_wechat.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SourceTypeWechat { pub prepay_id: Option, pub qr_code_url: Option, diff --git a/generated/stripe_shared/src/subscription.rs b/generated/stripe_shared/src/subscription.rs index 1141c0cae..ea39c3513 100644 --- a/generated/stripe_shared/src/subscription.rs +++ b/generated/stripe_shared/src/subscription.rs @@ -4,7 +4,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Subscription { /// ID of the Connect Application that created the subscription. pub application: Option>, @@ -469,7 +469,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Subscription { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -600,7 +600,7 @@ impl std::fmt::Debug for SubscriptionStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SubscriptionStatus { fn serialize(&self, serializer: S) -> Result where @@ -624,7 +624,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(SubscriptionStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SubscriptionStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -700,7 +700,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(SubscriptionCollectionMethod); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SubscriptionCollectionMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/subscription_automatic_tax.rs b/generated/stripe_shared/src/subscription_automatic_tax.rs index 48eebff1e..91d93ae3d 100644 --- a/generated/stripe_shared/src/subscription_automatic_tax.rs +++ b/generated/stripe_shared/src/subscription_automatic_tax.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SubscriptionAutomaticTax { /// Whether Stripe automatically computes tax on this subscription. pub enabled: bool, diff --git a/generated/stripe_shared/src/subscription_billing_thresholds.rs b/generated/stripe_shared/src/subscription_billing_thresholds.rs index 52d7347f2..c348d370e 100644 --- a/generated/stripe_shared/src/subscription_billing_thresholds.rs +++ b/generated/stripe_shared/src/subscription_billing_thresholds.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SubscriptionBillingThresholds { /// Monetary threshold that triggers the subscription to create an invoice pub amount_gte: Option, diff --git a/generated/stripe_shared/src/subscription_details_data.rs b/generated/stripe_shared/src/subscription_details_data.rs index ec323187b..1fcf26d3f 100644 --- a/generated/stripe_shared/src/subscription_details_data.rs +++ b/generated/stripe_shared/src/subscription_details_data.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SubscriptionDetailsData { /// Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will reflect the metadata of the subscription at the time of invoice creation. /// *Note: This attribute is populated only for invoices created on or after June 29, 2023.*. diff --git a/generated/stripe_shared/src/subscription_item.rs b/generated/stripe_shared/src/subscription_item.rs index c297a39aa..fa603fe60 100644 --- a/generated/stripe_shared/src/subscription_item.rs +++ b/generated/stripe_shared/src/subscription_item.rs @@ -3,7 +3,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SubscriptionItem { /// Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period. pub billing_thresholds: Option, @@ -156,7 +156,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SubscriptionItem { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/subscription_item_billing_thresholds.rs b/generated/stripe_shared/src/subscription_item_billing_thresholds.rs index e3db0015b..64cce098a 100644 --- a/generated/stripe_shared/src/subscription_item_billing_thresholds.rs +++ b/generated/stripe_shared/src/subscription_item_billing_thresholds.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SubscriptionItemBillingThresholds { /// Usage threshold that triggers the subscription to create an invoice pub usage_gte: Option, diff --git a/generated/stripe_shared/src/subscription_payment_method_options_card.rs b/generated/stripe_shared/src/subscription_payment_method_options_card.rs index b32eeb82f..90ebddfe4 100644 --- a/generated/stripe_shared/src/subscription_payment_method_options_card.rs +++ b/generated/stripe_shared/src/subscription_payment_method_options_card.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SubscriptionPaymentMethodOptionsCard { pub mandate_options: Option, /// Selected network to process this Subscription on. @@ -181,7 +181,7 @@ impl std::fmt::Debug for SubscriptionPaymentMethodOptionsCardNetwork { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SubscriptionPaymentMethodOptionsCardNetwork { fn serialize(&self, serializer: S) -> Result where @@ -208,7 +208,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for SubscriptionPaymentMethodOptionsCardNetwork { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -263,7 +263,7 @@ impl std::fmt::Debug for SubscriptionPaymentMethodOptionsCardRequestThreeDSecure f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SubscriptionPaymentMethodOptionsCardRequestThreeDSecure { fn serialize(&self, serializer: S) -> Result where @@ -292,7 +292,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(SubscriptionPaymentMethodOptionsCardRequestThreeDSecure); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SubscriptionPaymentMethodOptionsCardRequestThreeDSecure { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/subscription_pending_invoice_item_interval.rs b/generated/stripe_shared/src/subscription_pending_invoice_item_interval.rs index 653e27d81..946aa3aac 100644 --- a/generated/stripe_shared/src/subscription_pending_invoice_item_interval.rs +++ b/generated/stripe_shared/src/subscription_pending_invoice_item_interval.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SubscriptionPendingInvoiceItemInterval { /// Specifies invoicing frequency. Either `day`, `week`, `month` or `year`. pub interval: SubscriptionPendingInvoiceItemIntervalInterval, @@ -142,7 +142,7 @@ impl std::fmt::Debug for SubscriptionPendingInvoiceItemIntervalInterval { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SubscriptionPendingInvoiceItemIntervalInterval { fn serialize(&self, serializer: S) -> Result where @@ -169,7 +169,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for SubscriptionPendingInvoiceItemIntervalInterval { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/subscription_schedule.rs b/generated/stripe_shared/src/subscription_schedule.rs index 388e2e5e6..ca7589316 100644 --- a/generated/stripe_shared/src/subscription_schedule.rs +++ b/generated/stripe_shared/src/subscription_schedule.rs @@ -4,7 +4,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SubscriptionSchedule { /// ID of the Connect Application that created the schedule. pub application: Option>, @@ -218,7 +218,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SubscriptionSchedule { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -294,7 +294,7 @@ impl std::fmt::Debug for SubscriptionScheduleStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SubscriptionScheduleStatus { fn serialize(&self, serializer: S) -> Result where @@ -318,7 +318,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(SubscriptionScheduleStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SubscriptionScheduleStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -401,7 +401,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(SubscriptionScheduleEndBehavior); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SubscriptionScheduleEndBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/subscription_schedule_add_invoice_item.rs b/generated/stripe_shared/src/subscription_schedule_add_invoice_item.rs index d12fbbfc7..ccfab114f 100644 --- a/generated/stripe_shared/src/subscription_schedule_add_invoice_item.rs +++ b/generated/stripe_shared/src/subscription_schedule_add_invoice_item.rs @@ -1,7 +1,7 @@ /// An Add Invoice Item describes the prices and quantities that will be added as pending invoice items when entering a phase. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SubscriptionScheduleAddInvoiceItem { /// ID of the price used to generate the invoice item. pub price: stripe_types::Expandable, diff --git a/generated/stripe_shared/src/subscription_schedule_configuration_item.rs b/generated/stripe_shared/src/subscription_schedule_configuration_item.rs index 4a1d38221..6c5f46615 100644 --- a/generated/stripe_shared/src/subscription_schedule_configuration_item.rs +++ b/generated/stripe_shared/src/subscription_schedule_configuration_item.rs @@ -1,7 +1,7 @@ /// A phase item describes the price and quantity of a phase. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SubscriptionScheduleConfigurationItem { /// Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period. pub billing_thresholds: Option, diff --git a/generated/stripe_shared/src/subscription_schedule_current_phase.rs b/generated/stripe_shared/src/subscription_schedule_current_phase.rs index c3b3ab30b..9ef44e872 100644 --- a/generated/stripe_shared/src/subscription_schedule_current_phase.rs +++ b/generated/stripe_shared/src/subscription_schedule_current_phase.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SubscriptionScheduleCurrentPhase { /// The end of this phase of the subscription schedule. pub end_date: stripe_types::Timestamp, diff --git a/generated/stripe_shared/src/subscription_schedule_phase_configuration.rs b/generated/stripe_shared/src/subscription_schedule_phase_configuration.rs index bb9af8e2e..1e44d59c7 100644 --- a/generated/stripe_shared/src/subscription_schedule_phase_configuration.rs +++ b/generated/stripe_shared/src/subscription_schedule_phase_configuration.rs @@ -1,7 +1,7 @@ /// A phase describes the plans, coupon, and trialing status of a subscription for a predefined time period. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SubscriptionSchedulePhaseConfiguration { /// A list of prices and quantities that will generate invoice items appended to the next invoice for this phase. pub add_invoice_items: Vec, @@ -293,7 +293,7 @@ impl std::fmt::Debug for SubscriptionSchedulePhaseConfigurationBillingCycleAncho f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SubscriptionSchedulePhaseConfigurationBillingCycleAnchor { fn serialize(&self, serializer: S) -> Result where @@ -324,7 +324,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( SubscriptionSchedulePhaseConfigurationBillingCycleAnchor ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SubscriptionSchedulePhaseConfigurationBillingCycleAnchor { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -376,7 +376,7 @@ impl std::fmt::Debug for SubscriptionSchedulePhaseConfigurationCollectionMethod f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SubscriptionSchedulePhaseConfigurationCollectionMethod { fn serialize(&self, serializer: S) -> Result where @@ -405,7 +405,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(SubscriptionSchedulePhaseConfigurationCollectionMethod); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SubscriptionSchedulePhaseConfigurationCollectionMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -459,7 +459,7 @@ impl std::fmt::Debug for SubscriptionSchedulePhaseConfigurationProrationBehavior f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SubscriptionSchedulePhaseConfigurationProrationBehavior { fn serialize(&self, serializer: S) -> Result where @@ -488,7 +488,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(SubscriptionSchedulePhaseConfigurationProrationBehavior); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SubscriptionSchedulePhaseConfigurationProrationBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/subscription_schedules_resource_default_settings.rs b/generated/stripe_shared/src/subscription_schedules_resource_default_settings.rs index 36fb36fb5..6b334ca19 100644 --- a/generated/stripe_shared/src/subscription_schedules_resource_default_settings.rs +++ b/generated/stripe_shared/src/subscription_schedules_resource_default_settings.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SubscriptionSchedulesResourceDefaultSettings { /// A non-negative decimal between 0 and 100, with at most two decimal places. /// This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account during this phase of the schedule. @@ -216,7 +216,7 @@ impl std::fmt::Debug for SubscriptionSchedulesResourceDefaultSettingsBillingCycl f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SubscriptionSchedulesResourceDefaultSettingsBillingCycleAnchor { fn serialize(&self, serializer: S) -> Result where @@ -247,7 +247,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( SubscriptionSchedulesResourceDefaultSettingsBillingCycleAnchor ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SubscriptionSchedulesResourceDefaultSettingsBillingCycleAnchor { @@ -301,7 +301,7 @@ impl std::fmt::Debug for SubscriptionSchedulesResourceDefaultSettingsCollectionM f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SubscriptionSchedulesResourceDefaultSettingsCollectionMethod { fn serialize(&self, serializer: S) -> Result where @@ -332,7 +332,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( SubscriptionSchedulesResourceDefaultSettingsCollectionMethod ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SubscriptionSchedulesResourceDefaultSettingsCollectionMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/subscription_schedules_resource_default_settings_automatic_tax.rs b/generated/stripe_shared/src/subscription_schedules_resource_default_settings_automatic_tax.rs index 7778cb17b..1e103e6db 100644 --- a/generated/stripe_shared/src/subscription_schedules_resource_default_settings_automatic_tax.rs +++ b/generated/stripe_shared/src/subscription_schedules_resource_default_settings_automatic_tax.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SubscriptionSchedulesResourceDefaultSettingsAutomaticTax { /// Whether Stripe automatically computes tax on invoices created during this phase. pub enabled: bool, diff --git a/generated/stripe_shared/src/subscription_transfer_data.rs b/generated/stripe_shared/src/subscription_transfer_data.rs index ee20fec4a..afc2f7447 100644 --- a/generated/stripe_shared/src/subscription_transfer_data.rs +++ b/generated/stripe_shared/src/subscription_transfer_data.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SubscriptionTransferData { /// A non-negative decimal between 0 and 100, with at most two decimal places. /// This represents the percentage of the subscription invoice total that will be transferred to the destination account. diff --git a/generated/stripe_shared/src/subscriptions_resource_billing_cycle_anchor_config.rs b/generated/stripe_shared/src/subscriptions_resource_billing_cycle_anchor_config.rs index 1a241814a..1159036fb 100644 --- a/generated/stripe_shared/src/subscriptions_resource_billing_cycle_anchor_config.rs +++ b/generated/stripe_shared/src/subscriptions_resource_billing_cycle_anchor_config.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SubscriptionsResourceBillingCycleAnchorConfig { /// The day of the month of the billing_cycle_anchor. pub day_of_month: i64, diff --git a/generated/stripe_shared/src/subscriptions_resource_pause_collection.rs b/generated/stripe_shared/src/subscriptions_resource_pause_collection.rs index a1213c8d5..0c23ddaec 100644 --- a/generated/stripe_shared/src/subscriptions_resource_pause_collection.rs +++ b/generated/stripe_shared/src/subscriptions_resource_pause_collection.rs @@ -1,8 +1,8 @@ /// The Pause Collection settings determine how we will pause collection for this subscription and for how long the subscription. /// should be paused. #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SubscriptionsResourcePauseCollection { /// The payment collection behavior for this subscription while paused. /// One of `keep_as_draft`, `mark_uncollectible`, or `void`. @@ -141,7 +141,7 @@ impl std::fmt::Debug for SubscriptionsResourcePauseCollectionBehavior { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SubscriptionsResourcePauseCollectionBehavior { fn serialize(&self, serializer: S) -> Result where @@ -168,7 +168,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for SubscriptionsResourcePauseCollectionBehavior { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/subscriptions_resource_payment_method_options.rs b/generated/stripe_shared/src/subscriptions_resource_payment_method_options.rs index d91549d48..fcf609225 100644 --- a/generated/stripe_shared/src/subscriptions_resource_payment_method_options.rs +++ b/generated/stripe_shared/src/subscriptions_resource_payment_method_options.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SubscriptionsResourcePaymentMethodOptions { /// This sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to invoices created by the subscription. pub acss_debit: Option, diff --git a/generated/stripe_shared/src/subscriptions_resource_payment_settings.rs b/generated/stripe_shared/src/subscriptions_resource_payment_settings.rs index 754ae3d7f..4f8402ce5 100644 --- a/generated/stripe_shared/src/subscriptions_resource_payment_settings.rs +++ b/generated/stripe_shared/src/subscriptions_resource_payment_settings.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SubscriptionsResourcePaymentSettings { /// Payment-method-specific configuration to provide to invoices created by the subscription. pub payment_method_options: Option, @@ -238,7 +238,7 @@ impl std::fmt::Debug for SubscriptionsResourcePaymentSettingsPaymentMethodTypes f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SubscriptionsResourcePaymentSettingsPaymentMethodTypes { fn serialize(&self, serializer: S) -> Result where @@ -267,7 +267,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(SubscriptionsResourcePaymentSettingsPaymentMethodTypes); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SubscriptionsResourcePaymentSettingsPaymentMethodTypes { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -314,7 +314,7 @@ impl std::fmt::Debug for SubscriptionsResourcePaymentSettingsSaveDefaultPaymentM f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SubscriptionsResourcePaymentSettingsSaveDefaultPaymentMethod { fn serialize(&self, serializer: S) -> Result where @@ -345,7 +345,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( SubscriptionsResourcePaymentSettingsSaveDefaultPaymentMethod ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SubscriptionsResourcePaymentSettingsSaveDefaultPaymentMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/subscriptions_resource_pending_update.rs b/generated/stripe_shared/src/subscriptions_resource_pending_update.rs index a6bfd7521..c5f2e025d 100644 --- a/generated/stripe_shared/src/subscriptions_resource_pending_update.rs +++ b/generated/stripe_shared/src/subscriptions_resource_pending_update.rs @@ -1,8 +1,8 @@ /// Pending Updates store the changes pending from a previous update that will be applied /// to the Subscription upon successful payment. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SubscriptionsResourcePendingUpdate { /// If the update is applied, determines the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. /// The timestamp is in UTC format. diff --git a/generated/stripe_shared/src/subscriptions_trials_resource_end_behavior.rs b/generated/stripe_shared/src/subscriptions_trials_resource_end_behavior.rs index 3593250b9..a5a061aa3 100644 --- a/generated/stripe_shared/src/subscriptions_trials_resource_end_behavior.rs +++ b/generated/stripe_shared/src/subscriptions_trials_resource_end_behavior.rs @@ -1,7 +1,7 @@ /// Defines how a subscription behaves when a free trial ends. #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SubscriptionsTrialsResourceEndBehavior { /// Indicates how the subscription should change when the trial ends if the user did not provide a payment method. pub missing_payment_method: SubscriptionsTrialsResourceEndBehaviorMissingPaymentMethod, @@ -135,7 +135,7 @@ impl std::fmt::Debug for SubscriptionsTrialsResourceEndBehaviorMissingPaymentMet f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for SubscriptionsTrialsResourceEndBehaviorMissingPaymentMethod { fn serialize(&self, serializer: S) -> Result where @@ -166,7 +166,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( SubscriptionsTrialsResourceEndBehaviorMissingPaymentMethod ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SubscriptionsTrialsResourceEndBehaviorMissingPaymentMethod { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/subscriptions_trials_resource_trial_settings.rs b/generated/stripe_shared/src/subscriptions_trials_resource_trial_settings.rs index 7f17f096f..703f1a69d 100644 --- a/generated/stripe_shared/src/subscriptions_trials_resource_trial_settings.rs +++ b/generated/stripe_shared/src/subscriptions_trials_resource_trial_settings.rs @@ -1,7 +1,7 @@ /// Configures how this subscription behaves during the trial period. #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SubscriptionsTrialsResourceTrialSettings { pub end_behavior: stripe_shared::SubscriptionsTrialsResourceEndBehavior, } diff --git a/generated/stripe_shared/src/tax_code.rs b/generated/stripe_shared/src/tax_code.rs index c9c004349..739dae0d0 100644 --- a/generated/stripe_shared/src/tax_code.rs +++ b/generated/stripe_shared/src/tax_code.rs @@ -2,7 +2,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxCode { /// A detailed description of which types of products the tax code represents. pub description: String, @@ -108,7 +108,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxCode { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/tax_deducted_at_source.rs b/generated/stripe_shared/src/tax_deducted_at_source.rs index 5d0c4486c..07d2ae5ba 100644 --- a/generated/stripe_shared/src/tax_deducted_at_source.rs +++ b/generated/stripe_shared/src/tax_deducted_at_source.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxDeductedAtSource { /// Unique identifier for the object. pub id: stripe_shared::TaxDeductedAtSourceId, @@ -121,7 +121,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxDeductedAtSource { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/tax_i_ds_owner.rs b/generated/stripe_shared/src/tax_i_ds_owner.rs index 51c1f8572..d7a3a5186 100644 --- a/generated/stripe_shared/src/tax_i_ds_owner.rs +++ b/generated/stripe_shared/src/tax_i_ds_owner.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxIDsOwner { /// The account being referenced when `type` is `account`. pub account: Option>, @@ -9,7 +9,7 @@ pub struct TaxIDsOwner { /// The customer being referenced when `type` is `customer`. pub customer: Option>, /// Type of owner referenced. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: TaxIDsOwnerType, } #[doc(hidden)] @@ -161,7 +161,7 @@ impl std::fmt::Debug for TaxIDsOwnerType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxIDsOwnerType { fn serialize(&self, serializer: S) -> Result where @@ -185,7 +185,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TaxIDsOwnerType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TaxIDsOwnerType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/tax_id.rs b/generated/stripe_shared/src/tax_id.rs index cc058b6f1..0b92e1d5f 100644 --- a/generated/stripe_shared/src/tax_id.rs +++ b/generated/stripe_shared/src/tax_id.rs @@ -5,7 +5,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxId { /// Two-letter ISO code representing the country of the tax ID. pub country: Option, @@ -21,7 +21,7 @@ pub struct TaxId { pub owner: Option, /// Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`. /// Note that some legacy tax IDs have type `unknown`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: TaxIdType, /// Value of the tax ID. pub value: String, @@ -155,7 +155,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxId { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -408,7 +408,7 @@ impl std::fmt::Debug for TaxIdType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxIdType { fn serialize(&self, serializer: S) -> Result where @@ -432,7 +432,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TaxIdType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TaxIdType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/tax_id_verification.rs b/generated/stripe_shared/src/tax_id_verification.rs index 9b5d8f537..e6f605e15 100644 --- a/generated/stripe_shared/src/tax_id_verification.rs +++ b/generated/stripe_shared/src/tax_id_verification.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxIdVerification { /// Verification status, one of `pending`, `verified`, `unverified`, or `unavailable`. pub status: TaxIdVerificationStatus, @@ -153,7 +153,7 @@ impl std::fmt::Debug for TaxIdVerificationStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxIdVerificationStatus { fn serialize(&self, serializer: S) -> Result where @@ -177,7 +177,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TaxIdVerificationStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TaxIdVerificationStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/tax_rate.rs b/generated/stripe_shared/src/tax_rate.rs index 49757f948..b4e12f447 100644 --- a/generated/stripe_shared/src/tax_rate.rs +++ b/generated/stripe_shared/src/tax_rate.rs @@ -4,7 +4,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TaxRate { /// Defaults to `true`. /// When set to `false`, this tax rate cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set. @@ -209,7 +209,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxRate { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -285,7 +285,7 @@ impl std::fmt::Debug for TaxRateJurisdictionLevel { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TaxRateJurisdictionLevel { fn serialize(&self, serializer: S) -> Result where @@ -309,7 +309,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TaxRateJurisdictionLevel); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TaxRateJurisdictionLevel { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -422,7 +422,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TaxRateTaxType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TaxRateTaxType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/test_helpers_test_clock.rs b/generated/stripe_shared/src/test_helpers_test_clock.rs index 8c0682ac7..c7edf8ece 100644 --- a/generated/stripe_shared/src/test_helpers_test_clock.rs +++ b/generated/stripe_shared/src/test_helpers_test_clock.rs @@ -4,7 +4,7 @@ /// After the clock advances,. /// you can either validate the current state of your scenario (and test your assumptions), change the current state of your scenario (and test more complex scenarios), or keep advancing forward in time. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TestHelpersTestClock { /// Time at which the object was created. Measured in seconds since the Unix epoch. pub created: stripe_types::Timestamp, @@ -141,7 +141,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TestHelpersTestClock { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -199,7 +199,7 @@ impl std::fmt::Debug for TestHelpersTestClockStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TestHelpersTestClockStatus { fn serialize(&self, serializer: S) -> Result where @@ -223,7 +223,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TestHelpersTestClockStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TestHelpersTestClockStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/three_d_secure_details.rs b/generated/stripe_shared/src/three_d_secure_details.rs index f6a133f8e..e3551ff54 100644 --- a/generated/stripe_shared/src/three_d_secure_details.rs +++ b/generated/stripe_shared/src/three_d_secure_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ThreeDSecureDetails { /// For authenticated transactions: how the customer was authenticated by /// the issuing bank. @@ -179,7 +179,7 @@ impl std::fmt::Debug for ThreeDSecureDetailsAuthenticationFlow { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ThreeDSecureDetailsAuthenticationFlow { fn serialize(&self, serializer: S) -> Result where @@ -204,7 +204,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for ThreeDSecureDetailsAuthenticationFlow { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -262,7 +262,7 @@ impl std::fmt::Debug for ThreeDSecureDetailsElectronicCommerceIndicator { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ThreeDSecureDetailsElectronicCommerceIndicator { fn serialize(&self, serializer: S) -> Result where @@ -289,7 +289,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for ThreeDSecureDetailsElectronicCommerceIndicator { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -351,7 +351,7 @@ impl std::fmt::Debug for ThreeDSecureDetailsResult { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ThreeDSecureDetailsResult { fn serialize(&self, serializer: S) -> Result where @@ -375,7 +375,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(ThreeDSecureDetailsResult); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ThreeDSecureDetailsResult { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -438,7 +438,7 @@ impl std::fmt::Debug for ThreeDSecureDetailsResultReason { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ThreeDSecureDetailsResultReason { fn serialize(&self, serializer: S) -> Result where @@ -463,7 +463,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(ThreeDSecureDetailsResultReason); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ThreeDSecureDetailsResultReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -514,7 +514,7 @@ impl std::fmt::Debug for ThreeDSecureDetailsVersion { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ThreeDSecureDetailsVersion { fn serialize(&self, serializer: S) -> Result where @@ -538,7 +538,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(ThreeDSecureDetailsVersion); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ThreeDSecureDetailsVersion { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/three_d_secure_details_charge.rs b/generated/stripe_shared/src/three_d_secure_details_charge.rs index 18d8ee245..52a695ae2 100644 --- a/generated/stripe_shared/src/three_d_secure_details_charge.rs +++ b/generated/stripe_shared/src/three_d_secure_details_charge.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ThreeDSecureDetailsCharge { /// For authenticated transactions: how the customer was authenticated by /// the issuing bank. @@ -201,7 +201,7 @@ impl std::fmt::Debug for ThreeDSecureDetailsChargeAuthenticationFlow { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ThreeDSecureDetailsChargeAuthenticationFlow { fn serialize(&self, serializer: S) -> Result where @@ -228,7 +228,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for ThreeDSecureDetailsChargeAuthenticationFlow { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -288,7 +288,7 @@ impl std::fmt::Debug for ThreeDSecureDetailsChargeElectronicCommerceIndicator { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ThreeDSecureDetailsChargeElectronicCommerceIndicator { fn serialize(&self, serializer: S) -> Result where @@ -315,7 +315,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for ThreeDSecureDetailsChargeElectronicCommerceIndicator { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -365,7 +365,7 @@ impl std::fmt::Debug for ThreeDSecureDetailsChargeExemptionIndicator { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ThreeDSecureDetailsChargeExemptionIndicator { fn serialize(&self, serializer: S) -> Result where @@ -392,7 +392,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for ThreeDSecureDetailsChargeExemptionIndicator { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -454,7 +454,7 @@ impl std::fmt::Debug for ThreeDSecureDetailsChargeResult { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ThreeDSecureDetailsChargeResult { fn serialize(&self, serializer: S) -> Result where @@ -479,7 +479,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(ThreeDSecureDetailsChargeResult); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ThreeDSecureDetailsChargeResult { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -543,7 +543,7 @@ impl std::fmt::Debug for ThreeDSecureDetailsChargeResultReason { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ThreeDSecureDetailsChargeResultReason { fn serialize(&self, serializer: S) -> Result where @@ -568,7 +568,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for ThreeDSecureDetailsChargeResultReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -619,7 +619,7 @@ impl std::fmt::Debug for ThreeDSecureDetailsChargeVersion { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ThreeDSecureDetailsChargeVersion { fn serialize(&self, serializer: S) -> Result where @@ -644,7 +644,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(ThreeDSecureDetailsChargeVersion); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ThreeDSecureDetailsChargeVersion { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/three_d_secure_usage.rs b/generated/stripe_shared/src/three_d_secure_usage.rs index c42415ad4..d3497677c 100644 --- a/generated/stripe_shared/src/three_d_secure_usage.rs +++ b/generated/stripe_shared/src/three_d_secure_usage.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ThreeDSecureUsage { /// Whether 3D Secure is supported on this card. pub supported: bool, diff --git a/generated/stripe_shared/src/topup.rs b/generated/stripe_shared/src/topup.rs index ece7a6d5a..d0c5322ae 100644 --- a/generated/stripe_shared/src/topup.rs +++ b/generated/stripe_shared/src/topup.rs @@ -6,7 +6,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Topup { /// Amount transferred. pub amount: i64, @@ -212,7 +212,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Topup { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -284,7 +284,7 @@ impl std::fmt::Debug for TopupStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TopupStatus { fn serialize(&self, serializer: S) -> Result where @@ -308,7 +308,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TopupStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TopupStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/transfer.rs b/generated/stripe_shared/src/transfer.rs index 8e05e3f91..782bef42d 100644 --- a/generated/stripe_shared/src/transfer.rs +++ b/generated/stripe_shared/src/transfer.rs @@ -12,7 +12,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct Transfer { /// Amount in cents (or local equivalent) to be transferred. pub amount: i64, @@ -221,7 +221,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for Transfer { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/transfer_data.rs b/generated/stripe_shared/src/transfer_data.rs index 6326c7816..9bbc90d55 100644 --- a/generated/stripe_shared/src/transfer_data.rs +++ b/generated/stripe_shared/src/transfer_data.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TransferData { /// Amount intended to be collected by this PaymentIntent. /// A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). diff --git a/generated/stripe_shared/src/transfer_reversal.rs b/generated/stripe_shared/src/transfer_reversal.rs index ee9469bdf..ea4dec3a8 100644 --- a/generated/stripe_shared/src/transfer_reversal.rs +++ b/generated/stripe_shared/src/transfer_reversal.rs @@ -14,7 +14,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TransferReversal { /// Amount, in cents (or local equivalent). pub amount: i64, @@ -174,7 +174,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TransferReversal { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_shared/src/transfer_schedule.rs b/generated/stripe_shared/src/transfer_schedule.rs index 88fde2fae..74b4502fa 100644 --- a/generated/stripe_shared/src/transfer_schedule.rs +++ b/generated/stripe_shared/src/transfer_schedule.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TransferSchedule { /// The number of days charges for the account will be held before being paid out. pub delay_days: u32, diff --git a/generated/stripe_shared/src/transform_quantity.rs b/generated/stripe_shared/src/transform_quantity.rs index 147d62c6d..2b309438d 100644 --- a/generated/stripe_shared/src/transform_quantity.rs +++ b/generated/stripe_shared/src/transform_quantity.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TransformQuantity { /// Divide usage by this number. pub divide_by: i64, @@ -134,7 +134,7 @@ impl std::fmt::Debug for TransformQuantityRound { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TransformQuantityRound { fn serialize(&self, serializer: S) -> Result where @@ -158,7 +158,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TransformQuantityRound); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TransformQuantityRound { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/transform_usage.rs b/generated/stripe_shared/src/transform_usage.rs index ec92cdcce..4a794ecf1 100644 --- a/generated/stripe_shared/src/transform_usage.rs +++ b/generated/stripe_shared/src/transform_usage.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TransformUsage { /// Divide usage by this number. pub divide_by: i64, @@ -134,7 +134,7 @@ impl std::fmt::Debug for TransformUsageRound { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TransformUsageRound { fn serialize(&self, serializer: S) -> Result where @@ -158,7 +158,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TransformUsageRound); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TransformUsageRound { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/us_bank_account_networks.rs b/generated/stripe_shared/src/us_bank_account_networks.rs index 66979468d..1f8dc75c0 100644 --- a/generated/stripe_shared/src/us_bank_account_networks.rs +++ b/generated/stripe_shared/src/us_bank_account_networks.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct UsBankAccountNetworks { /// The preferred network. pub preferred: Option, @@ -134,7 +134,7 @@ impl std::fmt::Debug for UsBankAccountNetworksSupported { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for UsBankAccountNetworksSupported { fn serialize(&self, serializer: S) -> Result where @@ -158,7 +158,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(UsBankAccountNetworksSupported); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UsBankAccountNetworksSupported { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_shared/src/usage_record_summary.rs b/generated/stripe_shared/src/usage_record_summary.rs index 977de750f..2e886eb40 100644 --- a/generated/stripe_shared/src/usage_record_summary.rs +++ b/generated/stripe_shared/src/usage_record_summary.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct UsageRecordSummary { /// Unique identifier for the object. pub id: stripe_shared::UsageRecordSummaryId, @@ -128,7 +128,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for UsageRecordSummary { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_terminal/Cargo.toml b/generated/stripe_terminal/Cargo.toml index 313d54194..1c41309c5 100644 --- a/generated/stripe_terminal/Cargo.toml +++ b/generated/stripe_terminal/Cargo.toml @@ -29,7 +29,8 @@ stripe_shared = {path = "../../generated/stripe_shared"} [features] -serde = ["stripe_types/serde","stripe_shared/serde"] +serialize = ["stripe_types/serialize","stripe_shared/serialize"] +deserialize = ["stripe_types/deserialize","stripe_shared/deserialize"] runtime-tokio-hyper = ["async-stripe/runtime-tokio-hyper"] runtime-tokio-hyper-rustls = ["async-stripe/runtime-tokio-hyper-rustls"] runtime-tokio-hyper-rustls-webpki = ["async-stripe/runtime-tokio-hyper-rustls-webpki"] diff --git a/generated/stripe_terminal/src/deleted_terminal_configuration.rs b/generated/stripe_terminal/src/deleted_terminal_configuration.rs index 857133e35..d07e2b43f 100644 --- a/generated/stripe_terminal/src/deleted_terminal_configuration.rs +++ b/generated/stripe_terminal/src/deleted_terminal_configuration.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedTerminalConfiguration { /// Always true for a deleted object #[allow(dead_code)] @@ -96,7 +96,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for DeletedTerminalConfiguration { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_terminal/src/deleted_terminal_location.rs b/generated/stripe_terminal/src/deleted_terminal_location.rs index 1d93fde70..1c88791dd 100644 --- a/generated/stripe_terminal/src/deleted_terminal_location.rs +++ b/generated/stripe_terminal/src/deleted_terminal_location.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedTerminalLocation { /// Always true for a deleted object #[allow(dead_code)] @@ -96,7 +96,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for DeletedTerminalLocation { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_terminal/src/deleted_terminal_reader.rs b/generated/stripe_terminal/src/deleted_terminal_reader.rs index f4628d105..dbfdcbeae 100644 --- a/generated/stripe_terminal/src/deleted_terminal_reader.rs +++ b/generated/stripe_terminal/src/deleted_terminal_reader.rs @@ -1,5 +1,5 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct DeletedTerminalReader { /// Always true for a deleted object #[allow(dead_code)] @@ -96,7 +96,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for DeletedTerminalReader { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_terminal/src/terminal_configuration/requests.rs b/generated/stripe_terminal/src/terminal_configuration/requests.rs index c700d787d..e1cbabccc 100644 --- a/generated/stripe_terminal/src/terminal_configuration/requests.rs +++ b/generated/stripe_terminal/src/terminal_configuration/requests.rs @@ -83,9 +83,9 @@ impl<'a> RetrieveTerminalConfiguration<'a> { } } #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", serde(untagged))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(untagged))] pub enum RetrieveTerminalConfigurationReturned { TerminalConfiguration(stripe_terminal::TerminalConfiguration), DeletedTerminalConfiguration(stripe_terminal::DeletedTerminalConfiguration), @@ -282,9 +282,9 @@ impl<'a> UpdateTerminalConfiguration<'a> { } } #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", serde(untagged))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(untagged))] pub enum UpdateTerminalConfigurationReturned { TerminalConfiguration(stripe_terminal::TerminalConfiguration), DeletedTerminalConfiguration(stripe_terminal::DeletedTerminalConfiguration), diff --git a/generated/stripe_terminal/src/terminal_configuration/types.rs b/generated/stripe_terminal/src/terminal_configuration/types.rs index 45ff41241..cdd09c9e4 100644 --- a/generated/stripe_terminal/src/terminal_configuration/types.rs +++ b/generated/stripe_terminal/src/terminal_configuration/types.rs @@ -2,7 +2,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TerminalConfiguration { pub bbpos_wisepos_e: Option, @@ -144,7 +144,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TerminalConfiguration { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_terminal/src/terminal_configuration_configuration_resource_currency_specific_config.rs b/generated/stripe_terminal/src/terminal_configuration_configuration_resource_currency_specific_config.rs index d7ce783ac..9792cbda5 100644 --- a/generated/stripe_terminal/src/terminal_configuration_configuration_resource_currency_specific_config.rs +++ b/generated/stripe_terminal/src/terminal_configuration_configuration_resource_currency_specific_config.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TerminalConfigurationConfigurationResourceCurrencySpecificConfig { /// Fixed amounts displayed when collecting a tip pub fixed_amounts: Option>, diff --git a/generated/stripe_terminal/src/terminal_configuration_configuration_resource_device_type_specific_config.rs b/generated/stripe_terminal/src/terminal_configuration_configuration_resource_device_type_specific_config.rs index 1089ce791..0ba950399 100644 --- a/generated/stripe_terminal/src/terminal_configuration_configuration_resource_device_type_specific_config.rs +++ b/generated/stripe_terminal/src/terminal_configuration_configuration_resource_device_type_specific_config.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfig { /// A File ID representing an image you would like displayed on the reader. pub splashscreen: Option>, diff --git a/generated/stripe_terminal/src/terminal_configuration_configuration_resource_offline_config.rs b/generated/stripe_terminal/src/terminal_configuration_configuration_resource_offline_config.rs index 72b9a06f4..c7470466b 100644 --- a/generated/stripe_terminal/src/terminal_configuration_configuration_resource_offline_config.rs +++ b/generated/stripe_terminal/src/terminal_configuration_configuration_resource_offline_config.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TerminalConfigurationConfigurationResourceOfflineConfig { /// Determines whether to allow transactions to be collected while reader is offline. /// Defaults to false. diff --git a/generated/stripe_terminal/src/terminal_configuration_configuration_resource_tipping.rs b/generated/stripe_terminal/src/terminal_configuration_configuration_resource_tipping.rs index 60a8ec10f..04d91ea48 100644 --- a/generated/stripe_terminal/src/terminal_configuration_configuration_resource_tipping.rs +++ b/generated/stripe_terminal/src/terminal_configuration_configuration_resource_tipping.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TerminalConfigurationConfigurationResourceTipping { pub aud: Option, diff --git a/generated/stripe_terminal/src/terminal_connection_token/types.rs b/generated/stripe_terminal/src/terminal_connection_token/types.rs index 25a8eb613..d3c084a65 100644 --- a/generated/stripe_terminal/src/terminal_connection_token/types.rs +++ b/generated/stripe_terminal/src/terminal_connection_token/types.rs @@ -4,7 +4,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TerminalConnectionToken { /// The id of the location that this connection token is scoped to. /// Note that location scoping only applies to internet-connected readers. @@ -102,7 +102,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TerminalConnectionToken { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_terminal/src/terminal_location/requests.rs b/generated/stripe_terminal/src/terminal_location/requests.rs index b17f417af..9318dc9d6 100644 --- a/generated/stripe_terminal/src/terminal_location/requests.rs +++ b/generated/stripe_terminal/src/terminal_location/requests.rs @@ -80,9 +80,9 @@ impl<'a> RetrieveTerminalLocation<'a> { } } #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", serde(untagged))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(untagged))] pub enum RetrieveTerminalLocationReturned { TerminalLocation(stripe_terminal::TerminalLocation), DeletedTerminalLocation(stripe_terminal::DeletedTerminalLocation), @@ -286,9 +286,9 @@ impl<'a> UpdateTerminalLocation<'a> { } } #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", serde(untagged))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(untagged))] pub enum UpdateTerminalLocationReturned { TerminalLocation(stripe_terminal::TerminalLocation), DeletedTerminalLocation(stripe_terminal::DeletedTerminalLocation), diff --git a/generated/stripe_terminal/src/terminal_location/types.rs b/generated/stripe_terminal/src/terminal_location/types.rs index d0c7c2dde..69e90c1c3 100644 --- a/generated/stripe_terminal/src/terminal_location/types.rs +++ b/generated/stripe_terminal/src/terminal_location/types.rs @@ -4,7 +4,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TerminalLocation { pub address: stripe_shared::Address, /// The ID of a configuration that will be used to customize all readers in this location. @@ -136,7 +136,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TerminalLocation { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_terminal/src/terminal_reader/requests.rs b/generated/stripe_terminal/src/terminal_reader/requests.rs index 394efa89c..c2cb7dd80 100644 --- a/generated/stripe_terminal/src/terminal_reader/requests.rs +++ b/generated/stripe_terminal/src/terminal_reader/requests.rs @@ -88,9 +88,9 @@ impl<'a> RetrieveTerminalReader<'a> { } } #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", serde(untagged))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(untagged))] pub enum RetrieveTerminalReaderReturned { TerminalReader(stripe_terminal::TerminalReader), DeletedTerminalReader(stripe_terminal::DeletedTerminalReader), @@ -236,9 +236,9 @@ impl<'a> UpdateTerminalReader<'a> { } } #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", serde(untagged))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(untagged))] pub enum UpdateTerminalReaderReturned { TerminalReader(stripe_terminal::TerminalReader), DeletedTerminalReader(stripe_terminal::DeletedTerminalReader), @@ -582,7 +582,7 @@ impl serde::Serialize for SetReaderDisplayTerminalReaderType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for SetReaderDisplayTerminalReaderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -700,7 +700,7 @@ impl serde::Serialize for PresentPaymentMethodTerminalReaderType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for PresentPaymentMethodTerminalReaderType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_terminal/src/terminal_reader/types.rs b/generated/stripe_terminal/src/terminal_reader/types.rs index 8f089b87a..07469958b 100644 --- a/generated/stripe_terminal/src/terminal_reader/types.rs +++ b/generated/stripe_terminal/src/terminal_reader/types.rs @@ -4,7 +4,7 @@ /// /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TerminalReader { /// The most recent action performed by the reader. pub action: Option, @@ -170,7 +170,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TerminalReader { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -270,7 +270,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TerminalReaderDeviceType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TerminalReaderDeviceType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -339,7 +339,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TerminalReaderStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TerminalReaderStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_terminal/src/terminal_reader_reader_resource_cart.rs b/generated/stripe_terminal/src/terminal_reader_reader_resource_cart.rs index 8a23a0af6..43317394e 100644 --- a/generated/stripe_terminal/src/terminal_reader_reader_resource_cart.rs +++ b/generated/stripe_terminal/src/terminal_reader_reader_resource_cart.rs @@ -1,7 +1,7 @@ /// Represents a cart to be displayed on the reader #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TerminalReaderReaderResourceCart { /// 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). diff --git a/generated/stripe_terminal/src/terminal_reader_reader_resource_line_item.rs b/generated/stripe_terminal/src/terminal_reader_reader_resource_line_item.rs index 3db1cf91d..df42a0e12 100644 --- a/generated/stripe_terminal/src/terminal_reader_reader_resource_line_item.rs +++ b/generated/stripe_terminal/src/terminal_reader_reader_resource_line_item.rs @@ -1,7 +1,7 @@ /// Represents a line item to be displayed on the reader #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TerminalReaderReaderResourceLineItem { /// The amount of the line item. /// A positive integer in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). diff --git a/generated/stripe_terminal/src/terminal_reader_reader_resource_process_config.rs b/generated/stripe_terminal/src/terminal_reader_reader_resource_process_config.rs index f4e2fb984..775773fef 100644 --- a/generated/stripe_terminal/src/terminal_reader_reader_resource_process_config.rs +++ b/generated/stripe_terminal/src/terminal_reader_reader_resource_process_config.rs @@ -1,7 +1,7 @@ /// Represents a per-transaction override of a reader configuration #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TerminalReaderReaderResourceProcessConfig { /// Override showing a tipping selection screen on this transaction. pub skip_tipping: Option, diff --git a/generated/stripe_terminal/src/terminal_reader_reader_resource_process_payment_intent_action.rs b/generated/stripe_terminal/src/terminal_reader_reader_resource_process_payment_intent_action.rs index 487de68f1..276455ba1 100644 --- a/generated/stripe_terminal/src/terminal_reader_reader_resource_process_payment_intent_action.rs +++ b/generated/stripe_terminal/src/terminal_reader_reader_resource_process_payment_intent_action.rs @@ -1,7 +1,7 @@ /// Represents a reader action to process a payment intent #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TerminalReaderReaderResourceProcessPaymentIntentAction { /// Most recent PaymentIntent processed by the reader. pub payment_intent: stripe_types::Expandable, diff --git a/generated/stripe_terminal/src/terminal_reader_reader_resource_process_setup_config.rs b/generated/stripe_terminal/src/terminal_reader_reader_resource_process_setup_config.rs index 88e25eb22..dc741a808 100644 --- a/generated/stripe_terminal/src/terminal_reader_reader_resource_process_setup_config.rs +++ b/generated/stripe_terminal/src/terminal_reader_reader_resource_process_setup_config.rs @@ -1,7 +1,7 @@ /// Represents a per-setup override of a reader configuration #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TerminalReaderReaderResourceProcessSetupConfig {} #[doc(hidden)] pub struct TerminalReaderReaderResourceProcessSetupConfigBuilder {} diff --git a/generated/stripe_terminal/src/terminal_reader_reader_resource_process_setup_intent_action.rs b/generated/stripe_terminal/src/terminal_reader_reader_resource_process_setup_intent_action.rs index 6072ce8d8..4e01ae96c 100644 --- a/generated/stripe_terminal/src/terminal_reader_reader_resource_process_setup_intent_action.rs +++ b/generated/stripe_terminal/src/terminal_reader_reader_resource_process_setup_intent_action.rs @@ -1,7 +1,7 @@ /// Represents a reader action to process a setup intent #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TerminalReaderReaderResourceProcessSetupIntentAction { /// ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. /// Only present if it was possible to generate a card PaymentMethod. diff --git a/generated/stripe_terminal/src/terminal_reader_reader_resource_reader_action.rs b/generated/stripe_terminal/src/terminal_reader_reader_resource_reader_action.rs index d903653dd..4b6059a00 100644 --- a/generated/stripe_terminal/src/terminal_reader_reader_resource_reader_action.rs +++ b/generated/stripe_terminal/src/terminal_reader_reader_resource_reader_action.rs @@ -1,7 +1,7 @@ /// Represents an action performed by the reader #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TerminalReaderReaderResourceReaderAction { /// Failure code, only set if status is `failed`. pub failure_code: Option, @@ -17,7 +17,7 @@ pub struct TerminalReaderReaderResourceReaderAction { /// Status of the action performed by the reader. pub status: TerminalReaderReaderResourceReaderActionStatus, /// Type of action performed by the reader. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: TerminalReaderReaderResourceReaderActionType, } #[doc(hidden)] @@ -196,7 +196,7 @@ impl std::fmt::Debug for TerminalReaderReaderResourceReaderActionStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TerminalReaderReaderResourceReaderActionStatus { fn serialize(&self, serializer: S) -> Result where @@ -223,7 +223,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for TerminalReaderReaderResourceReaderActionStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -279,7 +279,7 @@ impl std::fmt::Debug for TerminalReaderReaderResourceReaderActionType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TerminalReaderReaderResourceReaderActionType { fn serialize(&self, serializer: S) -> Result where @@ -306,7 +306,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for TerminalReaderReaderResourceReaderActionType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_terminal/src/terminal_reader_reader_resource_refund_payment_action.rs b/generated/stripe_terminal/src/terminal_reader_reader_resource_refund_payment_action.rs index bd4b29a29..3fb33e97f 100644 --- a/generated/stripe_terminal/src/terminal_reader_reader_resource_refund_payment_action.rs +++ b/generated/stripe_terminal/src/terminal_reader_reader_resource_refund_payment_action.rs @@ -1,7 +1,7 @@ /// Represents a reader action to refund a payment #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TerminalReaderReaderResourceRefundPaymentAction { /// The amount being refunded. pub amount: Option, @@ -194,7 +194,7 @@ impl std::fmt::Debug for TerminalReaderReaderResourceRefundPaymentActionReason { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TerminalReaderReaderResourceRefundPaymentActionReason { fn serialize(&self, serializer: S) -> Result where @@ -223,7 +223,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(TerminalReaderReaderResourceRefundPaymentActionReason); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TerminalReaderReaderResourceRefundPaymentActionReason { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_terminal/src/terminal_reader_reader_resource_set_reader_display_action.rs b/generated/stripe_terminal/src/terminal_reader_reader_resource_set_reader_display_action.rs index f2841436c..f2b88f2ed 100644 --- a/generated/stripe_terminal/src/terminal_reader_reader_resource_set_reader_display_action.rs +++ b/generated/stripe_terminal/src/terminal_reader_reader_resource_set_reader_display_action.rs @@ -1,12 +1,12 @@ /// Represents a reader action to set the reader display #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TerminalReaderReaderResourceSetReaderDisplayAction { /// Cart object to be displayed by the reader. pub cart: Option, /// Type of information to be displayed by the reader. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: TerminalReaderReaderResourceSetReaderDisplayActionType, } #[doc(hidden)] @@ -133,7 +133,7 @@ impl std::fmt::Debug for TerminalReaderReaderResourceSetReaderDisplayActionType f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TerminalReaderReaderResourceSetReaderDisplayActionType { fn serialize(&self, serializer: S) -> Result where @@ -162,7 +162,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(TerminalReaderReaderResourceSetReaderDisplayActionType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TerminalReaderReaderResourceSetReaderDisplayActionType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_terminal/src/terminal_reader_reader_resource_tipping_config.rs b/generated/stripe_terminal/src/terminal_reader_reader_resource_tipping_config.rs index 4b800a885..a912be323 100644 --- a/generated/stripe_terminal/src/terminal_reader_reader_resource_tipping_config.rs +++ b/generated/stripe_terminal/src/terminal_reader_reader_resource_tipping_config.rs @@ -1,7 +1,7 @@ /// Represents a per-transaction tipping configuration #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TerminalReaderReaderResourceTippingConfig { /// Amount used to calculate tip suggestions on tipping selection screen for this transaction. /// Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency). diff --git a/generated/stripe_treasury/Cargo.toml b/generated/stripe_treasury/Cargo.toml index bde37e3c2..7984d9b6c 100644 --- a/generated/stripe_treasury/Cargo.toml +++ b/generated/stripe_treasury/Cargo.toml @@ -29,7 +29,8 @@ stripe_shared = {path = "../../generated/stripe_shared"} [features] -serde = ["stripe_types/serde","stripe_shared/serde"] +serialize = ["stripe_types/serialize","stripe_shared/serialize"] +deserialize = ["stripe_types/deserialize","stripe_shared/deserialize"] runtime-tokio-hyper = ["async-stripe/runtime-tokio-hyper"] runtime-tokio-hyper-rustls = ["async-stripe/runtime-tokio-hyper-rustls"] runtime-tokio-hyper-rustls-webpki = ["async-stripe/runtime-tokio-hyper-rustls-webpki"] diff --git a/generated/stripe_treasury/src/inbound_transfers.rs b/generated/stripe_treasury/src/inbound_transfers.rs index 38d0acef9..7874a37d0 100644 --- a/generated/stripe_treasury/src/inbound_transfers.rs +++ b/generated/stripe_treasury/src/inbound_transfers.rs @@ -1,11 +1,11 @@ /// For more details see <>. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InboundTransfers { pub billing_details: stripe_treasury::TreasurySharedResourceBillingDetails, /// The type of the payment method used in the InboundTransfer. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: InboundTransfersType, pub us_bank_account: Option, } @@ -145,7 +145,7 @@ impl std::fmt::Debug for InboundTransfersType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for InboundTransfersType { fn serialize(&self, serializer: S) -> Result where @@ -169,7 +169,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(InboundTransfersType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for InboundTransfersType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/inbound_transfers_payment_method_details_us_bank_account.rs b/generated/stripe_treasury/src/inbound_transfers_payment_method_details_us_bank_account.rs index 1407aa574..e8f61a957 100644 --- a/generated/stripe_treasury/src/inbound_transfers_payment_method_details_us_bank_account.rs +++ b/generated/stripe_treasury/src/inbound_transfers_payment_method_details_us_bank_account.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct InboundTransfersPaymentMethodDetailsUsBankAccount { /// Account holder type: individual or company. pub account_holder_type: @@ -180,7 +180,7 @@ impl std::fmt::Debug for InboundTransfersPaymentMethodDetailsUsBankAccountAccoun f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for InboundTransfersPaymentMethodDetailsUsBankAccountAccountHolderType { fn serialize(&self, serializer: S) -> Result where @@ -211,7 +211,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( InboundTransfersPaymentMethodDetailsUsBankAccountAccountHolderType ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for InboundTransfersPaymentMethodDetailsUsBankAccountAccountHolderType { @@ -259,7 +259,7 @@ impl std::fmt::Debug for InboundTransfersPaymentMethodDetailsUsBankAccountAccoun f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for InboundTransfersPaymentMethodDetailsUsBankAccountAccountType { fn serialize(&self, serializer: S) -> Result where @@ -290,7 +290,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( InboundTransfersPaymentMethodDetailsUsBankAccountAccountType ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for InboundTransfersPaymentMethodDetailsUsBankAccountAccountType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -337,7 +337,7 @@ impl std::fmt::Debug for InboundTransfersPaymentMethodDetailsUsBankAccountNetwor f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for InboundTransfersPaymentMethodDetailsUsBankAccountNetwork { fn serialize(&self, serializer: S) -> Result where @@ -368,7 +368,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( InboundTransfersPaymentMethodDetailsUsBankAccountNetwork ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for InboundTransfersPaymentMethodDetailsUsBankAccountNetwork { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/outbound_payments_payment_method_details.rs b/generated/stripe_treasury/src/outbound_payments_payment_method_details.rs index 4c94be7a3..da1f4ee9b 100644 --- a/generated/stripe_treasury/src/outbound_payments_payment_method_details.rs +++ b/generated/stripe_treasury/src/outbound_payments_payment_method_details.rs @@ -1,12 +1,12 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct OutboundPaymentsPaymentMethodDetails { pub billing_details: stripe_treasury::TreasurySharedResourceBillingDetails, pub financial_account: Option, /// The type of the payment method used in the OutboundPayment. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: OutboundPaymentsPaymentMethodDetailsType, pub us_bank_account: Option, } @@ -155,7 +155,7 @@ impl std::fmt::Debug for OutboundPaymentsPaymentMethodDetailsType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for OutboundPaymentsPaymentMethodDetailsType { fn serialize(&self, serializer: S) -> Result where @@ -181,7 +181,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for OutboundPaymentsPaymentMethodDetailsType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/outbound_payments_payment_method_details_financial_account.rs b/generated/stripe_treasury/src/outbound_payments_payment_method_details_financial_account.rs index 14f56ba02..187e81989 100644 --- a/generated/stripe_treasury/src/outbound_payments_payment_method_details_financial_account.rs +++ b/generated/stripe_treasury/src/outbound_payments_payment_method_details_financial_account.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct OutboundPaymentsPaymentMethodDetailsFinancialAccount { /// Token of the FinancialAccount. pub id: String, @@ -133,7 +133,7 @@ impl std::fmt::Debug for OutboundPaymentsPaymentMethodDetailsFinancialAccountNet f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for OutboundPaymentsPaymentMethodDetailsFinancialAccountNetwork { fn serialize(&self, serializer: S) -> Result where @@ -164,7 +164,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( OutboundPaymentsPaymentMethodDetailsFinancialAccountNetwork ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for OutboundPaymentsPaymentMethodDetailsFinancialAccountNetwork { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/outbound_payments_payment_method_details_us_bank_account.rs b/generated/stripe_treasury/src/outbound_payments_payment_method_details_us_bank_account.rs index a9b912530..af02d4075 100644 --- a/generated/stripe_treasury/src/outbound_payments_payment_method_details_us_bank_account.rs +++ b/generated/stripe_treasury/src/outbound_payments_payment_method_details_us_bank_account.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct OutboundPaymentsPaymentMethodDetailsUsBankAccount { /// Account holder type: individual or company. pub account_holder_type: @@ -180,7 +180,7 @@ impl std::fmt::Debug for OutboundPaymentsPaymentMethodDetailsUsBankAccountAccoun f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for OutboundPaymentsPaymentMethodDetailsUsBankAccountAccountHolderType { fn serialize(&self, serializer: S) -> Result where @@ -211,7 +211,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( OutboundPaymentsPaymentMethodDetailsUsBankAccountAccountHolderType ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for OutboundPaymentsPaymentMethodDetailsUsBankAccountAccountHolderType { @@ -259,7 +259,7 @@ impl std::fmt::Debug for OutboundPaymentsPaymentMethodDetailsUsBankAccountAccoun f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for OutboundPaymentsPaymentMethodDetailsUsBankAccountAccountType { fn serialize(&self, serializer: S) -> Result where @@ -290,7 +290,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( OutboundPaymentsPaymentMethodDetailsUsBankAccountAccountType ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for OutboundPaymentsPaymentMethodDetailsUsBankAccountAccountType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -340,7 +340,7 @@ impl std::fmt::Debug for OutboundPaymentsPaymentMethodDetailsUsBankAccountNetwor f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for OutboundPaymentsPaymentMethodDetailsUsBankAccountNetwork { fn serialize(&self, serializer: S) -> Result where @@ -371,7 +371,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( OutboundPaymentsPaymentMethodDetailsUsBankAccountNetwork ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for OutboundPaymentsPaymentMethodDetailsUsBankAccountNetwork { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/outbound_transfers_payment_method_details.rs b/generated/stripe_treasury/src/outbound_transfers_payment_method_details.rs index 15f1b3712..6e4524448 100644 --- a/generated/stripe_treasury/src/outbound_transfers_payment_method_details.rs +++ b/generated/stripe_treasury/src/outbound_transfers_payment_method_details.rs @@ -1,10 +1,10 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct OutboundTransfersPaymentMethodDetails { pub billing_details: stripe_treasury::TreasurySharedResourceBillingDetails, /// The type of the payment method used in the OutboundTransfer. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: OutboundTransfersPaymentMethodDetailsType, pub us_bank_account: Option, @@ -145,7 +145,7 @@ impl std::fmt::Debug for OutboundTransfersPaymentMethodDetailsType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for OutboundTransfersPaymentMethodDetailsType { fn serialize(&self, serializer: S) -> Result where @@ -171,7 +171,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for OutboundTransfersPaymentMethodDetailsType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/outbound_transfers_payment_method_details_us_bank_account.rs b/generated/stripe_treasury/src/outbound_transfers_payment_method_details_us_bank_account.rs index 09b4be78c..f74575fb1 100644 --- a/generated/stripe_treasury/src/outbound_transfers_payment_method_details_us_bank_account.rs +++ b/generated/stripe_treasury/src/outbound_transfers_payment_method_details_us_bank_account.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct OutboundTransfersPaymentMethodDetailsUsBankAccount { /// Account holder type: individual or company. pub account_holder_type: @@ -180,7 +180,7 @@ impl std::fmt::Debug for OutboundTransfersPaymentMethodDetailsUsBankAccountAccou f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for OutboundTransfersPaymentMethodDetailsUsBankAccountAccountHolderType { fn serialize(&self, serializer: S) -> Result where @@ -213,7 +213,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( OutboundTransfersPaymentMethodDetailsUsBankAccountAccountHolderType ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for OutboundTransfersPaymentMethodDetailsUsBankAccountAccountHolderType { @@ -261,7 +261,7 @@ impl std::fmt::Debug for OutboundTransfersPaymentMethodDetailsUsBankAccountAccou f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for OutboundTransfersPaymentMethodDetailsUsBankAccountAccountType { fn serialize(&self, serializer: S) -> Result where @@ -292,7 +292,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( OutboundTransfersPaymentMethodDetailsUsBankAccountAccountType ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for OutboundTransfersPaymentMethodDetailsUsBankAccountAccountType { @@ -344,7 +344,7 @@ impl std::fmt::Debug for OutboundTransfersPaymentMethodDetailsUsBankAccountNetwo f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for OutboundTransfersPaymentMethodDetailsUsBankAccountNetwork { fn serialize(&self, serializer: S) -> Result where @@ -375,7 +375,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( OutboundTransfersPaymentMethodDetailsUsBankAccountNetwork ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for OutboundTransfersPaymentMethodDetailsUsBankAccountNetwork { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/received_payment_method_details_financial_account.rs b/generated/stripe_treasury/src/received_payment_method_details_financial_account.rs index 2cf8a867b..da5014ef6 100644 --- a/generated/stripe_treasury/src/received_payment_method_details_financial_account.rs +++ b/generated/stripe_treasury/src/received_payment_method_details_financial_account.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct ReceivedPaymentMethodDetailsFinancialAccount { /// The FinancialAccount ID. pub id: String, @@ -131,7 +131,7 @@ impl std::fmt::Debug for ReceivedPaymentMethodDetailsFinancialAccountNetwork { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for ReceivedPaymentMethodDetailsFinancialAccountNetwork { fn serialize(&self, serializer: S) -> Result where @@ -158,7 +158,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for ReceivedPaymentMethodDetailsFinancialAccountNetwork { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_credit_reversal/types.rs b/generated/stripe_treasury/src/treasury_credit_reversal/types.rs index 376ed52b2..43406f521 100644 --- a/generated/stripe_treasury/src/treasury_credit_reversal/types.rs +++ b/generated/stripe_treasury/src/treasury_credit_reversal/types.rs @@ -1,7 +1,7 @@ /// You can reverse some [ReceivedCredits](https://stripe.com/docs/api#received_credits) depending on their network and source flow. /// Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryCreditReversal { /// Amount (in cents) transferred. pub amount: i64, @@ -187,7 +187,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryCreditReversal { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -248,7 +248,7 @@ impl std::fmt::Debug for TreasuryCreditReversalNetwork { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryCreditReversalNetwork { fn serialize(&self, serializer: S) -> Result where @@ -272,7 +272,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TreasuryCreditReversalNetwork); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryCreditReversalNetwork { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -352,7 +352,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TreasuryCreditReversalStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryCreditReversalStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_debit_reversal/requests.rs b/generated/stripe_treasury/src/treasury_debit_reversal/requests.rs index 707e13680..bf662abcd 100644 --- a/generated/stripe_treasury/src/treasury_debit_reversal/requests.rs +++ b/generated/stripe_treasury/src/treasury_debit_reversal/requests.rs @@ -89,7 +89,7 @@ impl serde::Serialize for ListTreasuryDebitReversalResolution { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ListTreasuryDebitReversalResolution { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -148,7 +148,7 @@ impl serde::Serialize for ListTreasuryDebitReversalStatus { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ListTreasuryDebitReversalStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_debit_reversal/types.rs b/generated/stripe_treasury/src/treasury_debit_reversal/types.rs index 402f59386..9e12c21f4 100644 --- a/generated/stripe_treasury/src/treasury_debit_reversal/types.rs +++ b/generated/stripe_treasury/src/treasury_debit_reversal/types.rs @@ -1,7 +1,7 @@ /// You can reverse some [ReceivedDebits](https://stripe.com/docs/api#received_debits) depending on their network and source flow. /// Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryDebitReversal { /// Amount (in cents) transferred. pub amount: i64, @@ -196,7 +196,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryDebitReversal { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -258,7 +258,7 @@ impl std::fmt::Debug for TreasuryDebitReversalNetwork { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryDebitReversalNetwork { fn serialize(&self, serializer: S) -> Result where @@ -282,7 +282,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TreasuryDebitReversalNetwork); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryDebitReversalNetwork { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -332,7 +332,7 @@ impl std::fmt::Debug for TreasuryDebitReversalStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryDebitReversalStatus { fn serialize(&self, serializer: S) -> Result where @@ -356,7 +356,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TreasuryDebitReversalStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryDebitReversalStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_financial_account/requests.rs b/generated/stripe_treasury/src/treasury_financial_account/requests.rs index 3a50329d7..673cb6fed 100644 --- a/generated/stripe_treasury/src/treasury_financial_account/requests.rs +++ b/generated/stripe_treasury/src/treasury_financial_account/requests.rs @@ -358,7 +358,7 @@ impl serde::Serialize for CreateTreasuryFinancialAccountPlatformRestrictionsInbo serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTreasuryFinancialAccountPlatformRestrictionsInboundFlows { @@ -418,7 +418,7 @@ impl serde::Serialize for CreateTreasuryFinancialAccountPlatformRestrictionsOutb serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTreasuryFinancialAccountPlatformRestrictionsOutboundFlows { @@ -714,7 +714,7 @@ impl serde::Serialize for UpdateTreasuryFinancialAccountPlatformRestrictionsInbo serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateTreasuryFinancialAccountPlatformRestrictionsInboundFlows { @@ -774,7 +774,7 @@ impl serde::Serialize for UpdateTreasuryFinancialAccountPlatformRestrictionsOutb serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for UpdateTreasuryFinancialAccountPlatformRestrictionsOutboundFlows { diff --git a/generated/stripe_treasury/src/treasury_financial_account/types.rs b/generated/stripe_treasury/src/treasury_financial_account/types.rs index 8b5d8ab01..74ec8c674 100644 --- a/generated/stripe_treasury/src/treasury_financial_account/types.rs +++ b/generated/stripe_treasury/src/treasury_financial_account/types.rs @@ -1,7 +1,7 @@ /// Stripe Treasury provides users with a container for money called a FinancialAccount that is separate from their Payments balance. /// FinancialAccounts serve as the source and destination of Treasury’s money movement APIs. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryFinancialAccount { /// The array of paths to active Features in the Features hash. pub active_features: Option>, @@ -205,7 +205,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryFinancialAccount { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -268,7 +268,7 @@ impl std::fmt::Debug for TreasuryFinancialAccountStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryFinancialAccountStatus { fn serialize(&self, serializer: S) -> Result where @@ -292,7 +292,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TreasuryFinancialAccountStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryFinancialAccountStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -370,7 +370,7 @@ impl std::fmt::Debug for TreasuryFinancialAccountArray { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryFinancialAccountArray { fn serialize(&self, serializer: S) -> Result where @@ -394,7 +394,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TreasuryFinancialAccountArray); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryFinancialAccountArray { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_financial_account_features.rs b/generated/stripe_treasury/src/treasury_financial_account_features.rs index 8f7e71ec3..bf41495d0 100644 --- a/generated/stripe_treasury/src/treasury_financial_account_features.rs +++ b/generated/stripe_treasury/src/treasury_financial_account_features.rs @@ -1,7 +1,7 @@ /// Encodes whether a FinancialAccount has access to a particular Feature, with a `status` enum and associated `status_details`. /// Stripe or the platform can control Features via the requested field. #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryFinancialAccountFeatures { pub card_issuing: Option, pub deposit_insurance: Option, @@ -149,7 +149,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryFinancialAccountFeatures { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; diff --git a/generated/stripe_treasury/src/treasury_financial_accounts_resource_aba_record.rs b/generated/stripe_treasury/src/treasury_financial_accounts_resource_aba_record.rs index 79c5c82d8..36e52e96a 100644 --- a/generated/stripe_treasury/src/treasury_financial_accounts_resource_aba_record.rs +++ b/generated/stripe_treasury/src/treasury_financial_accounts_resource_aba_record.rs @@ -1,7 +1,7 @@ /// ABA Records contain U.S. bank account details per the ABA format. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryFinancialAccountsResourceAbaRecord { /// The name of the person or business that owns the bank account. pub account_holder_name: String, diff --git a/generated/stripe_treasury/src/treasury_financial_accounts_resource_aba_toggle_settings.rs b/generated/stripe_treasury/src/treasury_financial_accounts_resource_aba_toggle_settings.rs index b797ca6af..df9f98818 100644 --- a/generated/stripe_treasury/src/treasury_financial_accounts_resource_aba_toggle_settings.rs +++ b/generated/stripe_treasury/src/treasury_financial_accounts_resource_aba_toggle_settings.rs @@ -1,7 +1,7 @@ /// Toggle settings for enabling/disabling the ABA address feature #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryFinancialAccountsResourceAbaToggleSettings { /// Whether the FinancialAccount should have the Feature. pub requested: bool, @@ -153,7 +153,7 @@ impl std::fmt::Debug for TreasuryFinancialAccountsResourceAbaToggleSettingsStatu f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryFinancialAccountsResourceAbaToggleSettingsStatus { fn serialize(&self, serializer: S) -> Result where @@ -184,7 +184,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( TreasuryFinancialAccountsResourceAbaToggleSettingsStatus ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryFinancialAccountsResourceAbaToggleSettingsStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_financial_accounts_resource_ach_toggle_settings.rs b/generated/stripe_treasury/src/treasury_financial_accounts_resource_ach_toggle_settings.rs index 4ab9fb1ce..17c0186cf 100644 --- a/generated/stripe_treasury/src/treasury_financial_accounts_resource_ach_toggle_settings.rs +++ b/generated/stripe_treasury/src/treasury_financial_accounts_resource_ach_toggle_settings.rs @@ -1,7 +1,7 @@ /// Toggle settings for enabling/disabling an ACH specific feature #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryFinancialAccountsResourceAchToggleSettings { /// Whether the FinancialAccount should have the Feature. pub requested: bool, @@ -153,7 +153,7 @@ impl std::fmt::Debug for TreasuryFinancialAccountsResourceAchToggleSettingsStatu f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryFinancialAccountsResourceAchToggleSettingsStatus { fn serialize(&self, serializer: S) -> Result where @@ -184,7 +184,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( TreasuryFinancialAccountsResourceAchToggleSettingsStatus ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryFinancialAccountsResourceAchToggleSettingsStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_financial_accounts_resource_balance.rs b/generated/stripe_treasury/src/treasury_financial_accounts_resource_balance.rs index bd40eccd1..6e68a8c00 100644 --- a/generated/stripe_treasury/src/treasury_financial_accounts_resource_balance.rs +++ b/generated/stripe_treasury/src/treasury_financial_accounts_resource_balance.rs @@ -1,7 +1,7 @@ /// Balance information for the FinancialAccount #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryFinancialAccountsResourceBalance { /// Funds the user can spend right now. pub cash: std::collections::HashMap, diff --git a/generated/stripe_treasury/src/treasury_financial_accounts_resource_closed_status_details.rs b/generated/stripe_treasury/src/treasury_financial_accounts_resource_closed_status_details.rs index 2850c53b7..72f31a791 100644 --- a/generated/stripe_treasury/src/treasury_financial_accounts_resource_closed_status_details.rs +++ b/generated/stripe_treasury/src/treasury_financial_accounts_resource_closed_status_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryFinancialAccountsResourceClosedStatusDetails { /// The array that contains reasons for a FinancialAccount closure. pub reasons: Vec, @@ -134,7 +134,7 @@ impl std::fmt::Debug for TreasuryFinancialAccountsResourceClosedStatusDetailsRea f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryFinancialAccountsResourceClosedStatusDetailsReasons { fn serialize(&self, serializer: S) -> Result where @@ -165,7 +165,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( TreasuryFinancialAccountsResourceClosedStatusDetailsReasons ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryFinancialAccountsResourceClosedStatusDetailsReasons { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_financial_accounts_resource_financial_address.rs b/generated/stripe_treasury/src/treasury_financial_accounts_resource_financial_address.rs index 66372a155..ca87e1286 100644 --- a/generated/stripe_treasury/src/treasury_financial_accounts_resource_financial_address.rs +++ b/generated/stripe_treasury/src/treasury_financial_accounts_resource_financial_address.rs @@ -1,14 +1,14 @@ /// FinancialAddresses contain identifying information that resolves to a FinancialAccount. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryFinancialAccountsResourceFinancialAddress { pub aba: Option, /// The list of networks that the address supports pub supported_networks: Option>, /// The type of financial address - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: TreasuryFinancialAccountsResourceFinancialAddressType, } #[doc(hidden)] @@ -152,7 +152,7 @@ impl std::fmt::Debug for TreasuryFinancialAccountsResourceFinancialAddressSuppor f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryFinancialAccountsResourceFinancialAddressSupportedNetworks { fn serialize(&self, serializer: S) -> Result where @@ -183,7 +183,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( TreasuryFinancialAccountsResourceFinancialAddressSupportedNetworks ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryFinancialAccountsResourceFinancialAddressSupportedNetworks { @@ -228,7 +228,7 @@ impl std::fmt::Debug for TreasuryFinancialAccountsResourceFinancialAddressType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryFinancialAccountsResourceFinancialAddressType { fn serialize(&self, serializer: S) -> Result where @@ -257,7 +257,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(TreasuryFinancialAccountsResourceFinancialAddressType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryFinancialAccountsResourceFinancialAddressType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_financial_accounts_resource_financial_addresses_features.rs b/generated/stripe_treasury/src/treasury_financial_accounts_resource_financial_addresses_features.rs index 179b90370..b949d31a9 100644 --- a/generated/stripe_treasury/src/treasury_financial_accounts_resource_financial_addresses_features.rs +++ b/generated/stripe_treasury/src/treasury_financial_accounts_resource_financial_addresses_features.rs @@ -1,7 +1,7 @@ /// Settings related to Financial Addresses features on a Financial Account #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryFinancialAccountsResourceFinancialAddressesFeatures { pub aba: Option, } diff --git a/generated/stripe_treasury/src/treasury_financial_accounts_resource_inbound_transfers.rs b/generated/stripe_treasury/src/treasury_financial_accounts_resource_inbound_transfers.rs index 9b89c5234..009113058 100644 --- a/generated/stripe_treasury/src/treasury_financial_accounts_resource_inbound_transfers.rs +++ b/generated/stripe_treasury/src/treasury_financial_accounts_resource_inbound_transfers.rs @@ -1,7 +1,7 @@ /// InboundTransfers contains inbound transfers features for a FinancialAccount. #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryFinancialAccountsResourceInboundTransfers { pub ach: Option, } diff --git a/generated/stripe_treasury/src/treasury_financial_accounts_resource_outbound_payments.rs b/generated/stripe_treasury/src/treasury_financial_accounts_resource_outbound_payments.rs index ee6be0f65..06cf5482b 100644 --- a/generated/stripe_treasury/src/treasury_financial_accounts_resource_outbound_payments.rs +++ b/generated/stripe_treasury/src/treasury_financial_accounts_resource_outbound_payments.rs @@ -1,7 +1,7 @@ /// Settings related to Outbound Payments features on a Financial Account #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryFinancialAccountsResourceOutboundPayments { pub ach: Option, pub us_domestic_wire: Option, diff --git a/generated/stripe_treasury/src/treasury_financial_accounts_resource_outbound_transfers.rs b/generated/stripe_treasury/src/treasury_financial_accounts_resource_outbound_transfers.rs index 02ebdb491..b23cdcedf 100644 --- a/generated/stripe_treasury/src/treasury_financial_accounts_resource_outbound_transfers.rs +++ b/generated/stripe_treasury/src/treasury_financial_accounts_resource_outbound_transfers.rs @@ -1,7 +1,7 @@ /// OutboundTransfers contains outbound transfers features for a FinancialAccount. #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryFinancialAccountsResourceOutboundTransfers { pub ach: Option, pub us_domestic_wire: Option, diff --git a/generated/stripe_treasury/src/treasury_financial_accounts_resource_platform_restrictions.rs b/generated/stripe_treasury/src/treasury_financial_accounts_resource_platform_restrictions.rs index 15d60a8e3..bb3e22dd5 100644 --- a/generated/stripe_treasury/src/treasury_financial_accounts_resource_platform_restrictions.rs +++ b/generated/stripe_treasury/src/treasury_financial_accounts_resource_platform_restrictions.rs @@ -1,7 +1,7 @@ /// Restrictions that a Connect Platform has placed on this FinancialAccount. #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryFinancialAccountsResourcePlatformRestrictions { /// Restricts all inbound money movement. pub inbound_flows: Option, @@ -142,7 +142,7 @@ impl std::fmt::Debug for TreasuryFinancialAccountsResourcePlatformRestrictionsIn f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryFinancialAccountsResourcePlatformRestrictionsInboundFlows { fn serialize(&self, serializer: S) -> Result where @@ -173,7 +173,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( TreasuryFinancialAccountsResourcePlatformRestrictionsInboundFlows ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryFinancialAccountsResourcePlatformRestrictionsInboundFlows { @@ -221,7 +221,7 @@ impl std::fmt::Debug for TreasuryFinancialAccountsResourcePlatformRestrictionsOu f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryFinancialAccountsResourcePlatformRestrictionsOutboundFlows { fn serialize(&self, serializer: S) -> Result where @@ -252,7 +252,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( TreasuryFinancialAccountsResourcePlatformRestrictionsOutboundFlows ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryFinancialAccountsResourcePlatformRestrictionsOutboundFlows { diff --git a/generated/stripe_treasury/src/treasury_financial_accounts_resource_status_details.rs b/generated/stripe_treasury/src/treasury_financial_accounts_resource_status_details.rs index 3d786441c..5b12548a4 100644 --- a/generated/stripe_treasury/src/treasury_financial_accounts_resource_status_details.rs +++ b/generated/stripe_treasury/src/treasury_financial_accounts_resource_status_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryFinancialAccountsResourceStatusDetails { /// Details related to the closure of this FinancialAccount pub closed: Option, diff --git a/generated/stripe_treasury/src/treasury_financial_accounts_resource_toggle_settings.rs b/generated/stripe_treasury/src/treasury_financial_accounts_resource_toggle_settings.rs index 5977b1e16..08a6c611b 100644 --- a/generated/stripe_treasury/src/treasury_financial_accounts_resource_toggle_settings.rs +++ b/generated/stripe_treasury/src/treasury_financial_accounts_resource_toggle_settings.rs @@ -1,7 +1,7 @@ /// Toggle settings for enabling/disabling a feature #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryFinancialAccountsResourceToggleSettings { /// Whether the FinancialAccount should have the Feature. pub requested: bool, @@ -153,7 +153,7 @@ impl std::fmt::Debug for TreasuryFinancialAccountsResourceToggleSettingsStatus { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryFinancialAccountsResourceToggleSettingsStatus { fn serialize(&self, serializer: S) -> Result where @@ -182,7 +182,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(TreasuryFinancialAccountsResourceToggleSettingsStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryFinancialAccountsResourceToggleSettingsStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_financial_accounts_resource_toggles_setting_status_details.rs b/generated/stripe_treasury/src/treasury_financial_accounts_resource_toggles_setting_status_details.rs index e20eebe3f..76e076e88 100644 --- a/generated/stripe_treasury/src/treasury_financial_accounts_resource_toggles_setting_status_details.rs +++ b/generated/stripe_treasury/src/treasury_financial_accounts_resource_toggles_setting_status_details.rs @@ -1,7 +1,7 @@ /// Additional details on the FinancialAccount Features information. #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryFinancialAccountsResourceTogglesSettingStatusDetails { /// Represents the reason why the status is `pending` or `restricted`. pub code: TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsCode, @@ -174,7 +174,7 @@ impl std::fmt::Debug for TreasuryFinancialAccountsResourceTogglesSettingStatusDe f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsCode { fn serialize(&self, serializer: S) -> Result where @@ -205,7 +205,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsCode ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsCode { @@ -256,7 +256,7 @@ impl std::fmt::Debug for TreasuryFinancialAccountsResourceTogglesSettingStatusDe f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsResolution { fn serialize(&self, serializer: S) -> Result where @@ -289,7 +289,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsResolution ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsResolution { @@ -337,7 +337,7 @@ impl std::fmt::Debug for TreasuryFinancialAccountsResourceTogglesSettingStatusDe f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsRestriction { fn serialize(&self, serializer: S) -> Result where @@ -370,7 +370,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsRestriction ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsRestriction { diff --git a/generated/stripe_treasury/src/treasury_inbound_transfer/requests.rs b/generated/stripe_treasury/src/treasury_inbound_transfer/requests.rs index b84e58b00..bc36ce121 100644 --- a/generated/stripe_treasury/src/treasury_inbound_transfer/requests.rs +++ b/generated/stripe_treasury/src/treasury_inbound_transfer/requests.rs @@ -179,7 +179,7 @@ impl serde::Serialize for FailTreasuryInboundTransferFailureDetailsCode { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for FailTreasuryInboundTransferFailureDetailsCode { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_inbound_transfer/types.rs b/generated/stripe_treasury/src/treasury_inbound_transfer/types.rs index f1581236b..5f34e32cd 100644 --- a/generated/stripe_treasury/src/treasury_inbound_transfer/types.rs +++ b/generated/stripe_treasury/src/treasury_inbound_transfer/types.rs @@ -1,7 +1,7 @@ /// Use [InboundTransfers](https://stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://stripe.com/docs/api#financial_accounts) via a PaymentMethod that is owned by you. /// The funds will be transferred via an ACH debit. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryInboundTransfer { /// Amount (in cents) transferred. pub amount: i64, @@ -246,7 +246,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryInboundTransfer { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -348,7 +348,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TreasuryInboundTransferStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryInboundTransferStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_inbound_transfers_resource_failure_details.rs b/generated/stripe_treasury/src/treasury_inbound_transfers_resource_failure_details.rs index fc67f9f87..48776d937 100644 --- a/generated/stripe_treasury/src/treasury_inbound_transfers_resource_failure_details.rs +++ b/generated/stripe_treasury/src/treasury_inbound_transfers_resource_failure_details.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryInboundTransfersResourceFailureDetails { /// Reason for the failure. pub code: TreasuryInboundTransfersResourceFailureDetailsCode, @@ -166,7 +166,7 @@ impl std::fmt::Debug for TreasuryInboundTransfersResourceFailureDetailsCode { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryInboundTransfersResourceFailureDetailsCode { fn serialize(&self, serializer: S) -> Result where @@ -193,7 +193,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for TreasuryInboundTransfersResourceFailureDetailsCode { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_inbound_transfers_resource_inbound_transfer_resource_linked_flows.rs b/generated/stripe_treasury/src/treasury_inbound_transfers_resource_inbound_transfer_resource_linked_flows.rs index fcb8fe9d7..d2858d0cf 100644 --- a/generated/stripe_treasury/src/treasury_inbound_transfers_resource_inbound_transfer_resource_linked_flows.rs +++ b/generated/stripe_treasury/src/treasury_inbound_transfers_resource_inbound_transfer_resource_linked_flows.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryInboundTransfersResourceInboundTransferResourceLinkedFlows { /// If funds for this flow were returned after the flow went to the `succeeded` state, this field contains a reference to the ReceivedDebit return. pub received_debit: Option, diff --git a/generated/stripe_treasury/src/treasury_inbound_transfers_resource_inbound_transfer_resource_status_transitions.rs b/generated/stripe_treasury/src/treasury_inbound_transfers_resource_inbound_transfer_resource_status_transitions.rs index f715f9a07..edec00bd2 100644 --- a/generated/stripe_treasury/src/treasury_inbound_transfers_resource_inbound_transfer_resource_status_transitions.rs +++ b/generated/stripe_treasury/src/treasury_inbound_transfers_resource_inbound_transfer_resource_status_transitions.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryInboundTransfersResourceInboundTransferResourceStatusTransitions { /// Timestamp describing when an InboundTransfer changed status to `canceled`. pub canceled_at: Option, diff --git a/generated/stripe_treasury/src/treasury_outbound_payment/requests.rs b/generated/stripe_treasury/src/treasury_outbound_payment/requests.rs index b966ab6b4..d7b79a80f 100644 --- a/generated/stripe_treasury/src/treasury_outbound_payment/requests.rs +++ b/generated/stripe_treasury/src/treasury_outbound_payment/requests.rs @@ -222,7 +222,7 @@ impl serde::Serialize for ReturnOutboundPaymentTreasuryOutboundPaymentReturnedDe serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ReturnOutboundPaymentTreasuryOutboundPaymentReturnedDetailsCode { @@ -451,7 +451,7 @@ impl serde::Serialize for CreateTreasuryOutboundPaymentDestinationPaymentMethodD serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTreasuryOutboundPaymentDestinationPaymentMethodDataType { @@ -546,7 +546,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTreasuryOutboundPaymentDestinationPaymentMethodDataUsBankAccountAccountHolderType { @@ -610,7 +610,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTreasuryOutboundPaymentDestinationPaymentMethodDataUsBankAccountAccountType { @@ -702,7 +702,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTreasuryOutboundPaymentDestinationPaymentMethodOptionsUsBankAccountNetwork { diff --git a/generated/stripe_treasury/src/treasury_outbound_payment/types.rs b/generated/stripe_treasury/src/treasury_outbound_payment/types.rs index 44de20691..0fa015872 100644 --- a/generated/stripe_treasury/src/treasury_outbound_payment/types.rs +++ b/generated/stripe_treasury/src/treasury_outbound_payment/types.rs @@ -4,7 +4,7 @@ /// Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. /// These methods can only be called on test mode objects. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryOutboundPayment { /// Amount (in cents) transferred. pub amount: i64, @@ -269,7 +269,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryOutboundPayment { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -378,7 +378,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TreasuryOutboundPaymentStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryOutboundPaymentStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_outbound_payments_resource_outbound_payment_resource_end_user_details.rs b/generated/stripe_treasury/src/treasury_outbound_payments_resource_outbound_payment_resource_end_user_details.rs index 0ffbcd569..80d3f4ec9 100644 --- a/generated/stripe_treasury/src/treasury_outbound_payments_resource_outbound_payment_resource_end_user_details.rs +++ b/generated/stripe_treasury/src/treasury_outbound_payments_resource_outbound_payment_resource_end_user_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryOutboundPaymentsResourceOutboundPaymentResourceEndUserDetails { /// IP address of the user initiating the OutboundPayment. /// Set if `present` is set to `true`. diff --git a/generated/stripe_treasury/src/treasury_outbound_payments_resource_outbound_payment_resource_status_transitions.rs b/generated/stripe_treasury/src/treasury_outbound_payments_resource_outbound_payment_resource_status_transitions.rs index 7c2f18f8c..0529b7604 100644 --- a/generated/stripe_treasury/src/treasury_outbound_payments_resource_outbound_payment_resource_status_transitions.rs +++ b/generated/stripe_treasury/src/treasury_outbound_payments_resource_outbound_payment_resource_status_transitions.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitions { /// Timestamp describing when an OutboundPayment changed status to `canceled`. pub canceled_at: Option, diff --git a/generated/stripe_treasury/src/treasury_outbound_payments_resource_returned_status.rs b/generated/stripe_treasury/src/treasury_outbound_payments_resource_returned_status.rs index 23025cbcd..82fa04def 100644 --- a/generated/stripe_treasury/src/treasury_outbound_payments_resource_returned_status.rs +++ b/generated/stripe_treasury/src/treasury_outbound_payments_resource_returned_status.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryOutboundPaymentsResourceReturnedStatus { /// Reason for the return. pub code: TreasuryOutboundPaymentsResourceReturnedStatusCode, @@ -158,7 +158,7 @@ impl std::fmt::Debug for TreasuryOutboundPaymentsResourceReturnedStatusCode { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryOutboundPaymentsResourceReturnedStatusCode { fn serialize(&self, serializer: S) -> Result where @@ -185,7 +185,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for TreasuryOutboundPaymentsResourceReturnedStatusCode { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_outbound_transfer/requests.rs b/generated/stripe_treasury/src/treasury_outbound_transfer/requests.rs index 558b6067f..7b41cc8e1 100644 --- a/generated/stripe_treasury/src/treasury_outbound_transfer/requests.rs +++ b/generated/stripe_treasury/src/treasury_outbound_transfer/requests.rs @@ -218,7 +218,7 @@ impl serde::Serialize for ReturnOutboundTransferTreasuryOutboundTransferReturned serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ReturnOutboundTransferTreasuryOutboundTransferReturnedDetailsCode { @@ -372,7 +372,7 @@ impl serde::Serialize serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTreasuryOutboundTransferDestinationPaymentMethodOptionsUsBankAccountNetwork { diff --git a/generated/stripe_treasury/src/treasury_outbound_transfer/types.rs b/generated/stripe_treasury/src/treasury_outbound_transfer/types.rs index 68d60b802..cfd0f96ce 100644 --- a/generated/stripe_treasury/src/treasury_outbound_transfer/types.rs +++ b/generated/stripe_treasury/src/treasury_outbound_transfer/types.rs @@ -5,7 +5,7 @@ /// Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. /// These methods can only be called on test mode objects. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryOutboundTransfer { /// Amount (in cents) transferred. pub amount: i64, @@ -244,7 +244,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryOutboundTransfer { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -351,7 +351,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TreasuryOutboundTransferStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryOutboundTransferStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_outbound_transfers_resource_returned_details.rs b/generated/stripe_treasury/src/treasury_outbound_transfers_resource_returned_details.rs index 6b82a73e2..8cc73f147 100644 --- a/generated/stripe_treasury/src/treasury_outbound_transfers_resource_returned_details.rs +++ b/generated/stripe_treasury/src/treasury_outbound_transfers_resource_returned_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryOutboundTransfersResourceReturnedDetails { /// Reason for the return. pub code: TreasuryOutboundTransfersResourceReturnedDetailsCode, @@ -158,7 +158,7 @@ impl std::fmt::Debug for TreasuryOutboundTransfersResourceReturnedDetailsCode { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryOutboundTransfersResourceReturnedDetailsCode { fn serialize(&self, serializer: S) -> Result where @@ -185,7 +185,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for TreasuryOutboundTransfersResourceReturnedDetailsCode { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_outbound_transfers_resource_status_transitions.rs b/generated/stripe_treasury/src/treasury_outbound_transfers_resource_status_transitions.rs index 77b04cb31..dbad49819 100644 --- a/generated/stripe_treasury/src/treasury_outbound_transfers_resource_status_transitions.rs +++ b/generated/stripe_treasury/src/treasury_outbound_transfers_resource_status_transitions.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryOutboundTransfersResourceStatusTransitions { /// Timestamp describing when an OutboundTransfer changed status to `canceled` pub canceled_at: Option, diff --git a/generated/stripe_treasury/src/treasury_received_credit/requests.rs b/generated/stripe_treasury/src/treasury_received_credit/requests.rs index ff22d924d..62498c9b6 100644 --- a/generated/stripe_treasury/src/treasury_received_credit/requests.rs +++ b/generated/stripe_treasury/src/treasury_received_credit/requests.rs @@ -102,7 +102,7 @@ impl serde::Serialize for ListTreasuryReceivedCreditLinkedFlowsSourceFlowType { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ListTreasuryReceivedCreditLinkedFlowsSourceFlowType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -248,7 +248,7 @@ impl serde::Serialize for CreateTreasuryReceivedCreditInitiatingPaymentMethodDet serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTreasuryReceivedCreditInitiatingPaymentMethodDetailsType { @@ -326,7 +326,7 @@ impl serde::Serialize for CreateTreasuryReceivedCreditNetwork { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTreasuryReceivedCreditNetwork { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_received_credit/types.rs b/generated/stripe_treasury/src/treasury_received_credit/types.rs index 4aff78767..b0513d684 100644 --- a/generated/stripe_treasury/src/treasury_received_credit/types.rs +++ b/generated/stripe_treasury/src/treasury_received_credit/types.rs @@ -1,7 +1,7 @@ /// ReceivedCredits represent funds sent to a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) (for example, via ACH or wire). /// These money movements are not initiated from the FinancialAccount. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryReceivedCredit { /// Amount (in cents) transferred. pub amount: i64, @@ -206,7 +206,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryReceivedCredit { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -276,7 +276,7 @@ impl std::fmt::Debug for TreasuryReceivedCreditFailureCode { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryReceivedCreditFailureCode { fn serialize(&self, serializer: S) -> Result where @@ -301,7 +301,7 @@ impl miniserde::de::Visitor for crate::Place } stripe_types::impl_from_val_with_from_str!(TreasuryReceivedCreditFailureCode); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryReceivedCreditFailureCode { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -355,7 +355,7 @@ impl std::fmt::Debug for TreasuryReceivedCreditNetwork { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryReceivedCreditNetwork { fn serialize(&self, serializer: S) -> Result where @@ -379,7 +379,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TreasuryReceivedCreditNetwork); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryReceivedCreditNetwork { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -456,7 +456,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TreasuryReceivedCreditStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryReceivedCreditStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_received_credits_resource_linked_flows.rs b/generated/stripe_treasury/src/treasury_received_credits_resource_linked_flows.rs index ca88fe471..ade6f585e 100644 --- a/generated/stripe_treasury/src/treasury_received_credits_resource_linked_flows.rs +++ b/generated/stripe_treasury/src/treasury_received_credits_resource_linked_flows.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryReceivedCreditsResourceLinkedFlows { /// The CreditReversal created as a result of this ReceivedCredit being reversed. pub credit_reversal: Option, diff --git a/generated/stripe_treasury/src/treasury_received_credits_resource_reversal_details.rs b/generated/stripe_treasury/src/treasury_received_credits_resource_reversal_details.rs index 97a9f3ce4..c7f5e2a38 100644 --- a/generated/stripe_treasury/src/treasury_received_credits_resource_reversal_details.rs +++ b/generated/stripe_treasury/src/treasury_received_credits_resource_reversal_details.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryReceivedCreditsResourceReversalDetails { /// Time before which a ReceivedCredit can be reversed. pub deadline: Option, @@ -144,7 +144,7 @@ impl std::fmt::Debug for TreasuryReceivedCreditsResourceReversalDetailsRestricte f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryReceivedCreditsResourceReversalDetailsRestrictedReason { fn serialize(&self, serializer: S) -> Result where @@ -175,7 +175,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( TreasuryReceivedCreditsResourceReversalDetailsRestrictedReason ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryReceivedCreditsResourceReversalDetailsRestrictedReason { diff --git a/generated/stripe_treasury/src/treasury_received_credits_resource_source_flows_details.rs b/generated/stripe_treasury/src/treasury_received_credits_resource_source_flows_details.rs index 2b4546646..8c91eadae 100644 --- a/generated/stripe_treasury/src/treasury_received_credits_resource_source_flows_details.rs +++ b/generated/stripe_treasury/src/treasury_received_credits_resource_source_flows_details.rs @@ -1,12 +1,12 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryReceivedCreditsResourceSourceFlowsDetails { pub credit_reversal: Option, pub outbound_payment: Option, pub payout: Option, /// The type of the source flow that originated the ReceivedCredit. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: TreasuryReceivedCreditsResourceSourceFlowsDetailsType, } #[doc(hidden)] @@ -158,7 +158,7 @@ impl std::fmt::Debug for TreasuryReceivedCreditsResourceSourceFlowsDetailsType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryReceivedCreditsResourceSourceFlowsDetailsType { fn serialize(&self, serializer: S) -> Result where @@ -187,7 +187,7 @@ impl miniserde::de::Visitor } stripe_types::impl_from_val_with_from_str!(TreasuryReceivedCreditsResourceSourceFlowsDetailsType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryReceivedCreditsResourceSourceFlowsDetailsType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_received_credits_resource_status_transitions.rs b/generated/stripe_treasury/src/treasury_received_credits_resource_status_transitions.rs index d25e98e87..1f157ccff 100644 --- a/generated/stripe_treasury/src/treasury_received_credits_resource_status_transitions.rs +++ b/generated/stripe_treasury/src/treasury_received_credits_resource_status_transitions.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryReceivedCreditsResourceStatusTransitions { /// Timestamp describing when the CreditReversal changed status to `posted` pub posted_at: Option, diff --git a/generated/stripe_treasury/src/treasury_received_debit/requests.rs b/generated/stripe_treasury/src/treasury_received_debit/requests.rs index fbad3383a..c92b3210e 100644 --- a/generated/stripe_treasury/src/treasury_received_debit/requests.rs +++ b/generated/stripe_treasury/src/treasury_received_debit/requests.rs @@ -169,7 +169,7 @@ impl serde::Serialize for CreateTreasuryReceivedDebitInitiatingPaymentMethodDeta serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTreasuryReceivedDebitInitiatingPaymentMethodDetailsType { @@ -244,7 +244,7 @@ impl serde::Serialize for CreateTreasuryReceivedDebitNetwork { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for CreateTreasuryReceivedDebitNetwork { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_received_debit/types.rs b/generated/stripe_treasury/src/treasury_received_debit/types.rs index a858b5eeb..3aaba6592 100644 --- a/generated/stripe_treasury/src/treasury_received_debit/types.rs +++ b/generated/stripe_treasury/src/treasury_received_debit/types.rs @@ -1,7 +1,7 @@ /// ReceivedDebits represent funds pulled from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts). /// These are not initiated from the FinancialAccount. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryReceivedDebit { /// Amount (in cents) transferred. pub amount: i64, @@ -206,7 +206,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryReceivedDebit { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -279,7 +279,7 @@ impl std::fmt::Debug for TreasuryReceivedDebitFailureCode { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryReceivedDebitFailureCode { fn serialize(&self, serializer: S) -> Result where @@ -304,7 +304,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TreasuryReceivedDebitFailureCode); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryReceivedDebitFailureCode { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -355,7 +355,7 @@ impl std::fmt::Debug for TreasuryReceivedDebitNetwork { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryReceivedDebitNetwork { fn serialize(&self, serializer: S) -> Result where @@ -379,7 +379,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TreasuryReceivedDebitNetwork); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryReceivedDebitNetwork { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -455,7 +455,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TreasuryReceivedDebitStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryReceivedDebitStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_received_debits_resource_debit_reversal_linked_flows.rs b/generated/stripe_treasury/src/treasury_received_debits_resource_debit_reversal_linked_flows.rs index 2dbf23341..9410dd94f 100644 --- a/generated/stripe_treasury/src/treasury_received_debits_resource_debit_reversal_linked_flows.rs +++ b/generated/stripe_treasury/src/treasury_received_debits_resource_debit_reversal_linked_flows.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryReceivedDebitsResourceDebitReversalLinkedFlows { /// Set if there is an Issuing dispute associated with the DebitReversal. pub issuing_dispute: Option, diff --git a/generated/stripe_treasury/src/treasury_received_debits_resource_linked_flows.rs b/generated/stripe_treasury/src/treasury_received_debits_resource_linked_flows.rs index a6e4a1545..01c27de0f 100644 --- a/generated/stripe_treasury/src/treasury_received_debits_resource_linked_flows.rs +++ b/generated/stripe_treasury/src/treasury_received_debits_resource_linked_flows.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryReceivedDebitsResourceLinkedFlows { /// The DebitReversal created as a result of this ReceivedDebit being reversed. pub debit_reversal: Option, diff --git a/generated/stripe_treasury/src/treasury_received_debits_resource_reversal_details.rs b/generated/stripe_treasury/src/treasury_received_debits_resource_reversal_details.rs index 5234ece1a..8fbbb960e 100644 --- a/generated/stripe_treasury/src/treasury_received_debits_resource_reversal_details.rs +++ b/generated/stripe_treasury/src/treasury_received_debits_resource_reversal_details.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryReceivedDebitsResourceReversalDetails { /// Time before which a ReceivedDebit can be reversed. pub deadline: Option, @@ -144,7 +144,7 @@ impl std::fmt::Debug for TreasuryReceivedDebitsResourceReversalDetailsRestricted f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryReceivedDebitsResourceReversalDetailsRestrictedReason { fn serialize(&self, serializer: S) -> Result where @@ -175,7 +175,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( TreasuryReceivedDebitsResourceReversalDetailsRestrictedReason ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryReceivedDebitsResourceReversalDetailsRestrictedReason { diff --git a/generated/stripe_treasury/src/treasury_received_debits_resource_status_transitions.rs b/generated/stripe_treasury/src/treasury_received_debits_resource_status_transitions.rs index 75237add8..f481e1a83 100644 --- a/generated/stripe_treasury/src/treasury_received_debits_resource_status_transitions.rs +++ b/generated/stripe_treasury/src/treasury_received_debits_resource_status_transitions.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryReceivedDebitsResourceStatusTransitions { /// Timestamp describing when the DebitReversal changed status to `completed`. pub completed_at: Option, diff --git a/generated/stripe_treasury/src/treasury_shared_resource_billing_details.rs b/generated/stripe_treasury/src/treasury_shared_resource_billing_details.rs index 286388b9d..cb542fc50 100644 --- a/generated/stripe_treasury/src/treasury_shared_resource_billing_details.rs +++ b/generated/stripe_treasury/src/treasury_shared_resource_billing_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasurySharedResourceBillingDetails { pub address: stripe_shared::Address, /// Email address. diff --git a/generated/stripe_treasury/src/treasury_shared_resource_initiating_payment_method_details_initiating_payment_method_details.rs b/generated/stripe_treasury/src/treasury_shared_resource_initiating_payment_method_details_initiating_payment_method_details.rs index 03daef179..d8f71834c 100644 --- a/generated/stripe_treasury/src/treasury_shared_resource_initiating_payment_method_details_initiating_payment_method_details.rs +++ b/generated/stripe_treasury/src/treasury_shared_resource_initiating_payment_method_details_initiating_payment_method_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetails { /// Set when `type` is `balance`. pub balance: Option< @@ -13,7 +13,7 @@ pub struct TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPayment pub issuing_card: Option, /// Polymorphic type matching the originating money movement's source. /// This can be an external account, a Stripe balance, or a FinancialAccount. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsType, pub us_bank_account: @@ -186,7 +186,7 @@ impl std::fmt::Debug f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsBalance { @@ -220,7 +220,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsBalance ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsBalance { @@ -284,7 +284,7 @@ impl std::fmt::Debug f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsType { @@ -318,7 +318,7 @@ impl miniserde::de::Visitor stripe_types::impl_from_val_with_from_str!( TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsType ); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsType { diff --git a/generated/stripe_treasury/src/treasury_shared_resource_initiating_payment_method_details_us_bank_account.rs b/generated/stripe_treasury/src/treasury_shared_resource_initiating_payment_method_details_us_bank_account.rs index 56e9b4c23..8def3f7a0 100644 --- a/generated/stripe_treasury/src/treasury_shared_resource_initiating_payment_method_details_us_bank_account.rs +++ b/generated/stripe_treasury/src/treasury_shared_resource_initiating_payment_method_details_us_bank_account.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccount { /// Bank name. pub bank_name: Option, diff --git a/generated/stripe_treasury/src/treasury_transaction/requests.rs b/generated/stripe_treasury/src/treasury_transaction/requests.rs index 6a9db3047..9177e03fc 100644 --- a/generated/stripe_treasury/src/treasury_transaction/requests.rs +++ b/generated/stripe_treasury/src/treasury_transaction/requests.rs @@ -95,7 +95,7 @@ impl serde::Serialize for ListTreasuryTransactionOrderBy { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ListTreasuryTransactionOrderBy { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_transaction/types.rs b/generated/stripe_treasury/src/treasury_transaction/types.rs index 1e53bd329..04c9b3781 100644 --- a/generated/stripe_treasury/src/treasury_transaction/types.rs +++ b/generated/stripe_treasury/src/treasury_transaction/types.rs @@ -1,6 +1,6 @@ /// Transactions represent changes to a [FinancialAccount's](https://stripe.com/docs/api#financial_accounts) balance. #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryTransaction { /// Amount (in cents) transferred. pub amount: i64, @@ -191,7 +191,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryTransaction { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -274,7 +274,7 @@ impl std::fmt::Debug for TreasuryTransactionFlowType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryTransactionFlowType { fn serialize(&self, serializer: S) -> Result where @@ -298,7 +298,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TreasuryTransactionFlowType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryTransactionFlowType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -377,7 +377,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TreasuryTransactionStatus); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryTransactionStatus { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_transaction_entry/requests.rs b/generated/stripe_treasury/src/treasury_transaction_entry/requests.rs index 87028b938..bc6a71449 100644 --- a/generated/stripe_treasury/src/treasury_transaction_entry/requests.rs +++ b/generated/stripe_treasury/src/treasury_transaction_entry/requests.rs @@ -93,7 +93,7 @@ impl serde::Serialize for ListTreasuryTransactionEntryOrderBy { serializer.serialize_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for ListTreasuryTransactionEntryOrderBy { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_transaction_entry/types.rs b/generated/stripe_treasury/src/treasury_transaction_entry/types.rs index ada117732..72cf9de74 100644 --- a/generated/stripe_treasury/src/treasury_transaction_entry/types.rs +++ b/generated/stripe_treasury/src/treasury_transaction_entry/types.rs @@ -1,6 +1,6 @@ /// TransactionEntries represent individual units of money movements within a single [Transaction](https://stripe.com/docs/api#transactions). #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryTransactionEntry { pub balance_impact: stripe_treasury::TreasuryTransactionsResourceBalanceImpact, /// Time at which the object was created. Measured in seconds since the Unix epoch. @@ -25,7 +25,7 @@ pub struct TreasuryTransactionEntry { /// The Transaction associated with this object. pub transaction: stripe_types::Expandable, /// The specific money movement that generated the TransactionEntry. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(feature = "deserialize", serde(rename = "type"))] pub type_: TreasuryTransactionEntryType, } #[doc(hidden)] @@ -173,7 +173,7 @@ const _: () = { } } }; -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryTransactionEntry { fn serialize(&self, s: S) -> Result { use serde::ser::SerializeStruct; @@ -254,7 +254,7 @@ impl std::fmt::Debug for TreasuryTransactionEntryFlowType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryTransactionEntryFlowType { fn serialize(&self, serializer: S) -> Result where @@ -279,7 +279,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TreasuryTransactionEntryFlowType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryTransactionEntryFlowType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; @@ -385,7 +385,7 @@ impl std::fmt::Debug for TreasuryTransactionEntryType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryTransactionEntryType { fn serialize(&self, serializer: S) -> Result where @@ -412,7 +412,7 @@ impl miniserde::de::Visitor for crate::Place { } stripe_types::impl_from_val_with_from_str!(TreasuryTransactionEntryType); -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for TreasuryTransactionEntryType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/generated/stripe_treasury/src/treasury_transactions_resource_abstract_transaction_resource_status_transitions.rs b/generated/stripe_treasury/src/treasury_transactions_resource_abstract_transaction_resource_status_transitions.rs index 516f9054d..e5149dbf7 100644 --- a/generated/stripe_treasury/src/treasury_transactions_resource_abstract_transaction_resource_status_transitions.rs +++ b/generated/stripe_treasury/src/treasury_transactions_resource_abstract_transaction_resource_status_transitions.rs @@ -1,6 +1,6 @@ #[derive(Copy, Clone, Debug, Default)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitions { /// Timestamp describing when the Transaction changed status to `posted`. pub posted_at: Option, diff --git a/generated/stripe_treasury/src/treasury_transactions_resource_balance_impact.rs b/generated/stripe_treasury/src/treasury_transactions_resource_balance_impact.rs index eeb7b3aa2..6bb637fe8 100644 --- a/generated/stripe_treasury/src/treasury_transactions_resource_balance_impact.rs +++ b/generated/stripe_treasury/src/treasury_transactions_resource_balance_impact.rs @@ -1,7 +1,7 @@ /// Change to a FinancialAccount's balance #[derive(Copy, Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryTransactionsResourceBalanceImpact { /// The change made to funds the user can spend right now. pub cash: i64, diff --git a/generated/stripe_treasury/src/treasury_transactions_resource_flow_details.rs b/generated/stripe_treasury/src/treasury_transactions_resource_flow_details.rs index f073554dc..5674a0313 100644 --- a/generated/stripe_treasury/src/treasury_transactions_resource_flow_details.rs +++ b/generated/stripe_treasury/src/treasury_transactions_resource_flow_details.rs @@ -1,6 +1,6 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct TreasuryTransactionsResourceFlowDetails { pub credit_reversal: Option, pub debit_reversal: Option, @@ -11,7 +11,7 @@ pub struct TreasuryTransactionsResourceFlowDetails { pub received_credit: Option, pub received_debit: Option, /// Type of the flow that created the Transaction. Set to the same value as `flow_type`. - #[cfg_attr(feature = "serde", serde(rename = "type"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "type"))] pub type_: TreasuryTransactionsResourceFlowDetailsType, } #[doc(hidden)] @@ -205,7 +205,7 @@ impl std::fmt::Debug for TreasuryTransactionsResourceFlowDetailsType { f.write_str(self.as_str()) } } -#[cfg(feature = "serde")] +#[cfg(feature = "serialize")] impl serde::Serialize for TreasuryTransactionsResourceFlowDetailsType { fn serialize(&self, serializer: S) -> Result where @@ -232,7 +232,7 @@ impl miniserde::de::Visitor for crate::Place serde::Deserialize<'de> for TreasuryTransactionsResourceFlowDetailsType { fn deserialize>(deserializer: D) -> Result { use std::str::FromStr; diff --git a/openapi/src/templates/cargo_toml.rs b/openapi/src/templates/cargo_toml.rs index d78266d70..4bd98c943 100644 --- a/openapi/src/templates/cargo_toml.rs +++ b/openapi/src/templates/cargo_toml.rs @@ -14,19 +14,23 @@ const CORE_FEATURES: &[&str] = &[ "runtime-async-std-surf", ]; +fn get_serialization_feature(deps: &[Crate], kind: &str) -> String { + let mut features = vec![format!("stripe_types/{kind}")]; + for dep in deps { + features.push(format!("{}/{kind}", dep.name())); + } + features.into_iter().map(|f| format!(r#""{f}""#)).collect::>().join(",") +} + pub fn gen_crate_toml(krate: Crate, crate_deps: Vec, crate_features: Vec) -> String { let mut crate_dep_section = String::new(); - let mut serde_features = vec!["stripe_types/serde".into()]; - for dep in crate_deps { - let dep_path = format!("../../generated/{}", dep.name()); - let _ = writeln!(crate_dep_section, r#"{} = {{path = "{}"}}"#, dep.name(), dep_path); - serde_features.push(format!("{}/serde", dep.name())); + for dep in &crate_deps { + let dep_name = dep.name(); + let dep_path = format!("../../generated/{dep_name}"); + let _ = writeln!(crate_dep_section, r#"{dep_name} = {{path = "{dep_path}"}}"#); } - let serde_features_str = - serde_features.into_iter().map(|f| format!(r#""{f}""#)).collect::>().join(","); - // Dependencies only needed for libraries which implement Stripe requests let request_deps = if krate == Crate::SHARED { "".into() @@ -39,6 +43,9 @@ pub fn gen_crate_toml(krate: Crate, crate_deps: Vec, crate_features: Vec< } }; + let ser_features = get_serialization_feature(&crate_deps, "serialize"); + let deser_features = get_serialization_feature(&crate_deps, "deserialize"); + let features = if krate == Crate::SHARED { "".into() } else { gen_feature_section(crate_features) }; formatdoc! { @@ -71,7 +78,8 @@ pub fn gen_crate_toml(krate: Crate, crate_deps: Vec, crate_features: Vec< {crate_dep_section} [features] - serde = [{serde_features_str}] + serialize = [{ser_features}] + deserialize = [{deser_features}] {features} "# } diff --git a/openapi/src/templates/enums.rs b/openapi/src/templates/enums.rs index 653747be4..4deb86458 100644 --- a/openapi/src/templates/enums.rs +++ b/openapi/src/templates/enums.rs @@ -6,10 +6,7 @@ use crate::printable::PrintableWithLifetime; use crate::rust_object::{EnumOfObjects, EnumVariant, FieldlessVariant}; use crate::templates::miniserde::gen_enum_of_objects_miniserde; use crate::templates::object_writer::{write_derives_line, ObjectWriter}; -use crate::templates::utils::{ - maybe_serde_gate, write_gated_serde_derive, write_gated_serde_rename, write_gated_serde_tag, - write_serde_derive, SerOrDeser, -}; +use crate::templates::utils::{SerdeDeriveState, ShouldDerive}; impl<'a> ObjectWriter<'a> { /// Fallback case if no more specific structure inferred @@ -17,6 +14,9 @@ impl<'a> ObjectWriter<'a> { if !self.usage.used_as_request_param { unimplemented!(); } + let mut serde_derive = SerdeDeriveState::default(); + serde_derive.serialize(ShouldDerive::Always); + let enum_name = self.ident; // Build the body of the enum definition @@ -31,7 +31,7 @@ impl<'a> ObjectWriter<'a> { } } write_derives_line(out, self.derives); - write_serde_derive(out, SerOrDeser::Ser); + serde_derive.write_derives(out); let lifetime_str = self.lifetime_param(); let _ = writedoc!( out, @@ -48,6 +48,10 @@ impl<'a> ObjectWriter<'a> { if self.lifetime.is_some() || self.usage.used_as_request_param { unimplemented!(); } + let mut serde_derive = SerdeDeriveState::default(); + + serde_derive.serialize(ShouldDerive::Gated).deserialize(ShouldDerive::Gated); + let enum_name = self.ident; // Build the body of the enum definition @@ -64,24 +68,23 @@ impl<'a> ObjectWriter<'a> { for (obj_name, obj) in objects { let name = &obj.ident; let printable = self.components.construct_printable_type_from_path(&obj.path); - write_gated_serde_rename(&mut enum_body, obj_name); + serde_derive.maybe_write_rename(&mut enum_body, obj_name); let _ = writeln!(enum_body, "{name}({printable}),"); } } } if self.provide_unknown_variant { - write_gated_serde_tag(&mut enum_body, "other"); + serde_derive.maybe_write_tag(&mut enum_body, "other"); let _ = writeln!(enum_body, "Unknown"); } write_derives_line(out, self.derives); - write_gated_serde_derive(out, SerOrDeser::Ser); - write_gated_serde_derive(out, SerOrDeser::Deser); + serde_derive.write_derives(out); self.write_nonexhaustive_attr(out); match objects { - EnumOfObjects::MaybeDeleted(_) => write_gated_serde_tag(out, "untagged"), - EnumOfObjects::ObjectUnion(_) => write_gated_serde_tag(out, r#"tag = "object""#), + EnumOfObjects::MaybeDeleted(_) => serde_derive.maybe_write_tag(out, "untagged"), + EnumOfObjects::ObjectUnion(_) => serde_derive.maybe_write_tag(out, r#"tag = "object""#), } let miniserde_impl = gen_enum_of_objects_miniserde(enum_name, objects); @@ -176,11 +179,13 @@ impl<'a> ObjectWriter<'a> { "# ); - let gate = maybe_serde_gate(!self.usage.should_impl_serialize()); + if !self.usage.should_impl_serialize() { + let _ = writeln!(out, r#"#[cfg(feature = "serialize")]"#); + } let _ = writedoc!( out, r#" - {gate}impl serde::Serialize for {enum_name} {{ + impl serde::Serialize for {enum_name} {{ fn serialize(&self, serializer: S) -> Result where S: serde::Serializer {{ serializer.serialize_str(self.as_str()) }} @@ -228,7 +233,7 @@ impl<'a> ObjectWriter<'a> { let _ = writedoc!( out, r#" - #[cfg(feature = "serde")] + #[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for {enum_name} {{ fn deserialize>(deserializer: D) -> Result {{ use std::str::FromStr; diff --git a/openapi/src/templates/structs.rs b/openapi/src/templates/structs.rs index 9ace70475..2bb955e10 100644 --- a/openapi/src/templates/structs.rs +++ b/openapi/src/templates/structs.rs @@ -6,38 +6,38 @@ use crate::printable::PrintableWithLifetime; use crate::rust_object::{ObjectKind, Struct, StructField, Visibility}; use crate::rust_type::{ExtType, RustType, SimpleType}; use crate::templates::object_writer::write_derives_line; -use crate::templates::utils::{ - write_doc_comment, write_gated_serde_derive, write_maybe_gated_serde_rename, - write_maybe_gated_serde_tag, write_serde_derive, SerOrDeser, -}; +use crate::templates::utils::{write_doc_comment, SerdeDeriveState, ShouldDerive}; use crate::templates::ObjectWriter; impl<'a> ObjectWriter<'a> { pub fn write_struct(&self, out: &mut String, struct_: &Struct) { - let fields = &struct_.fields; - let name = self.ident; - - let mut fields_str = String::with_capacity(64); - for field in fields { - self.write_struct_field(&mut fields_str, field); - } - - let lifetime_str = self.lifetime_param(); - write_derives_line(out, self.derives); - + let mut serde_derive = SerdeDeriveState::default(); // In theory this could be supported, but it would require not borrowing in request structs if !matches!(self.usage.kind, ObjectKind::RequestParam) { - write_gated_serde_derive(out, SerOrDeser::Deser); + serde_derive.deserialize(ShouldDerive::Gated); } if self.usage.should_impl_serialize() { if struct_.object_field.is_some() { panic!("unexpected object marker in parameter type"); } - write_serde_derive(out, SerOrDeser::Ser); + serde_derive.serialize(ShouldDerive::Always); } else if struct_.object_field.is_none() { // Otherwise we can just use the proc macro if there is no object sentinel field - write_gated_serde_derive(out, SerOrDeser::Ser); + serde_derive.serialize(ShouldDerive::Gated); + } + + let fields = &struct_.fields; + let name = self.ident; + + let mut fields_str = String::with_capacity(64); + for field in fields { + self.write_struct_field(&mut fields_str, field, serde_derive); } + + let lifetime_str = self.lifetime_param(); + write_derives_line(out, self.derives); + serde_derive.write_derives(out); + let _ = writedoc!( out, r" @@ -100,21 +100,21 @@ impl<'a> ObjectWriter<'a> { } } - fn write_struct_field(&self, out: &mut String, field: &StructField) { - let needs_gate = !self.usage.should_impl_serialize(); + fn write_struct_field( + &self, + out: &mut String, + field: &StructField, + serde_derive: SerdeDeriveState, + ) { if let Some(doc_comment) = &field.doc_comment { let _ = writeln!(out, "{}", write_doc_comment(doc_comment, 1).trim_end()); } if let Some(renamer) = &field.rename_as { - write_maybe_gated_serde_rename(out, renamer, needs_gate); + serde_derive.maybe_write_rename(out, renamer); } if !field.required && field.rust_type.is_option() && self.usage.used_as_request_param { - write_maybe_gated_serde_tag( - out, - r#"skip_serializing_if = "Option::is_none""#, - needs_gate, - ); + serde_derive.maybe_write_tag(out, r#"skip_serializing_if = "Option::is_none""#); } if matches!( @@ -123,11 +123,7 @@ impl<'a> ObjectWriter<'a> { ) { let with = if field.rust_type.is_option() { "with_serde_json_opt" } else { "with_serde_json" }; - write_maybe_gated_serde_tag( - out, - format!(r#"with = "stripe_types::{with}""#), - needs_gate, - ); + serde_derive.maybe_write_tag(out, format!(r#"with = "stripe_types::{with}""#)); } // For the private `AlwaysTrue` or `ObjectName` field used as a serde discriminant. For `miniserde`, it @@ -165,7 +161,7 @@ impl<'a> ObjectWriter<'a> { let _ = writedoc!( out, r#" - #[cfg(feature = "serde")] + #[cfg(feature = "serialize")] impl serde::Serialize for {name} {{ fn serialize(&self, s: S) -> Result {{ use serde::ser::SerializeStruct; diff --git a/openapi/src/templates/utils.rs b/openapi/src/templates/utils.rs index 10421bdce..b17220b3d 100644 --- a/openapi/src/templates/utils.rs +++ b/openapi/src/templates/utils.rs @@ -1,4 +1,4 @@ -use std::fmt::{Display, Write}; +use std::fmt::{Display, Formatter, Write}; use lazy_static::lazy_static; use regex_lite::Regex; @@ -8,53 +8,138 @@ lazy_static! { static ref PERIOD_THEN_WHITESPACE: Regex = Regex::new(r"\.\s[\s]?").unwrap(); } -pub fn maybe_serde_gate(should_gate: bool) -> &'static str { - if should_gate { - r#"#[cfg(feature = "serde")]"# - } else { - "" - } +#[derive(Debug, Copy, Clone, Default)] +pub struct SerdeDeriveState { + serialize: Option, + deserialize: Option, } -pub enum SerOrDeser { - Ser, - Deser, +impl SerdeDeriveState { + pub fn serialize(&mut self, kind: ShouldDerive) -> &mut Self { + self.serialize = Some(kind); + self + } + + pub fn deserialize(&mut self, kind: ShouldDerive) -> &mut Self { + self.deserialize = Some(kind); + self + } + + pub fn write_derives(&self, out: &mut String) { + if let Some(derive) = self.serialize { + write_derive(derive, SerOrDeser::Ser, out); + } + if let Some(derive) = self.deserialize { + write_derive(derive, SerOrDeser::Deser, out); + } + } + + pub fn maybe_write_tag(&self, out: &mut String, tag: impl Display) { + let feature_gate = match self.usage() { + SerdeUsage::Never => { + return; + } + SerdeUsage::Always => { + let _ = writeln!(out, r#"#[serde({tag})]"#); + return; + } + SerdeUsage::SerGated => SerFeatureGate::Ser, + SerdeUsage::DeserGated => SerFeatureGate::Deser, + SerdeUsage::EitherGated => SerFeatureGate::Either, + }; + let _ = writeln!(out, r#"#[cfg_attr({feature_gate}, serde({tag}))]"#); + } + + pub fn maybe_write_rename(&self, out: &mut String, rename: &str) { + self.maybe_write_tag(out, format!(r#"rename = "{rename}""#)); + } + + fn usage(&self) -> SerdeUsage { + match (self.serialize, self.deserialize) { + (None, None) => SerdeUsage::Never, + (Some(state), None) => match state { + ShouldDerive::Always => SerdeUsage::Always, + ShouldDerive::Gated => SerdeUsage::SerGated, + }, + (None, Some(state)) => match state { + ShouldDerive::Always => SerdeUsage::Always, + ShouldDerive::Gated => SerdeUsage::DeserGated, + }, + (Some(state_ser), Some(state_deser)) => match (state_ser, state_deser) { + (ShouldDerive::Always, _) => SerdeUsage::Always, + (_, ShouldDerive::Always) => SerdeUsage::Always, + (ShouldDerive::Gated, ShouldDerive::Gated) => SerdeUsage::EitherGated, + }, + } + } } -impl SerOrDeser { - pub fn as_str(&self) -> &'static str { - match self { - SerOrDeser::Ser => "Serialize", - SerOrDeser::Deser => "Deserialize", +fn write_derive(derive: ShouldDerive, ser: SerOrDeser, out: &mut String) { + match derive { + ShouldDerive::Always => { + let _ = writeln!(out, "#[derive(serde::{ser})]"); + } + ShouldDerive::Gated => { + let _ = writeln!( + out, + r#"#[cfg_attr(feature = "{}", derive(serde::{ser}))]"#, + ser.feature_gate() + ); } } } -pub fn write_gated_serde_derive(out: &mut String, kind: SerOrDeser) { - let _ = write!(out, r#"#[cfg_attr(feature = "serde", derive(serde::{}))]"#, kind.as_str()); +enum SerdeUsage { + SerGated, + DeserGated, + EitherGated, + Always, + Never, +} + +#[derive(Debug, Copy, Clone)] +pub enum ShouldDerive { + Always, + Gated, } -pub fn write_serde_derive(out: &mut String, kind: SerOrDeser) { - let _ = write!(out, r#"#[derive(serde::{})]"#, kind.as_str()); +#[derive(Debug, Copy, Clone)] +enum SerFeatureGate { + Ser, + Deser, + Either, } -pub fn write_gated_serde_rename(out: &mut String, rename: &str) { - write_gated_serde_tag(out, format!(r#"rename = "{rename}""#)); +impl Display for SerFeatureGate { + fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { + f.write_str(match self { + SerFeatureGate::Ser => r#"feature = "serialize""#, + SerFeatureGate::Deser => r#"feature = "deserialize""#, + SerFeatureGate::Either => r#"any(feature = "deserialize", feature = "serialize")"#, + }) + } } -pub fn write_maybe_gated_serde_rename(out: &mut String, rename: &str, should_gate: bool) { - write_maybe_gated_serde_tag(out, format!(r#"rename = "{rename}""#), should_gate); +enum SerOrDeser { + Ser, + Deser, } -pub fn write_gated_serde_tag(out: &mut String, tag: impl Display) { - let _ = writeln!(out, r#"#[cfg_attr(feature = "serde", serde({tag}))]"#); +impl SerOrDeser { + fn feature_gate(&self) -> &'static str { + match self { + Self::Ser => "serialize", + Self::Deser => "deserialize", + } + } } -pub fn write_maybe_gated_serde_tag(out: &mut String, tag: impl Display, should_gate: bool) { - if should_gate { - write_gated_serde_tag(out, tag) - } else { - let _ = writeln!(out, r#"#[serde({tag})]"#); +impl Display for SerOrDeser { + fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { + f.write_str(match self { + Self::Ser => "Serialize", + Self::Deser => "Deserialize", + }) } } diff --git a/stripe_types/Cargo.toml b/stripe_types/Cargo.toml index 4d74aa284..8ca1559ac 100644 --- a/stripe_types/Cargo.toml +++ b/stripe_types/Cargo.toml @@ -21,4 +21,5 @@ miniserde.workspace = true serde_qs = "0.12.0" [features] -serde = [] \ No newline at end of file +serialize = [] +deserialize = [] diff --git a/stripe_types/src/currency.rs b/stripe_types/src/currency.rs index 49273eca7..93970d47a 100644 --- a/stripe_types/src/currency.rs +++ b/stripe_types/src/currency.rs @@ -4,7 +4,7 @@ use serde::Serialize; /// /// For more details see . #[derive(Copy, Clone, Debug, Eq, Serialize, PartialEq, Hash, Default, miniserde::Deserialize)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub enum Currency { #[serde(rename = "byn")] BYN, // Belarusian Ruble diff --git a/stripe_types/src/expandable.rs b/stripe_types/src/expandable.rs index d4269b205..7ff829076 100644 --- a/stripe_types/src/expandable.rs +++ b/stripe_types/src/expandable.rs @@ -10,7 +10,7 @@ use crate::Object; /// /// For more details see . #[derive(Clone, Debug, Serialize)] // TODO: Implement deserialize by hand for better error messages with `serde` enabled -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] #[serde(untagged)] pub enum Expandable { Id(T::Id), diff --git a/stripe_types/src/ids.rs b/stripe_types/src/ids.rs index c18733a64..ffbdcbf5e 100644 --- a/stripe_types/src/ids.rs +++ b/stripe_types/src/ids.rs @@ -12,7 +12,7 @@ macro_rules! def_id_serde_impls { } } - #[cfg(feature = "serde")] + #[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for $struct_name { fn deserialize(deserializer: D) -> Result where diff --git a/stripe_types/src/pagination.rs b/stripe_types/src/pagination.rs index caf8c8eb8..b4a03dba2 100644 --- a/stripe_types/src/pagination.rs +++ b/stripe_types/src/pagination.rs @@ -134,7 +134,7 @@ where /// /// For more details, see #[derive(Debug)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct List { pub data: Vec, pub has_more: bool, @@ -177,7 +177,7 @@ impl Clone for List { /// /// For more details, see #[derive(Debug, Serialize)] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] pub struct SearchList { pub url: String, pub has_more: bool, diff --git a/stripe_types/src/params.rs b/stripe_types/src/params.rs index fec447fb4..1c9cfa261 100644 --- a/stripe_types/src/params.rs +++ b/stripe_types/src/params.rs @@ -14,7 +14,7 @@ impl serde::Serialize for AlwaysTrue { } } -#[cfg(feature = "serde")] +#[cfg(feature = "deserialize")] impl<'de> serde::Deserialize<'de> for AlwaysTrue { fn deserialize(deserializer: D) -> Result where diff --git a/stripe_webhook/src/generated/mod.rs b/stripe_webhook/src/generated/mod.rs index 492a74c00..05905f673 100644 --- a/stripe_webhook/src/generated/mod.rs +++ b/stripe_webhook/src/generated/mod.rs @@ -1,13 +1,16 @@ #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", serde(tag = "object"))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(tag = "object"))] pub enum AccountExternalAccountCreated { - #[cfg_attr(feature = "serde", serde(rename = "bank_account"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(rename = "bank_account") + )] BankAccount(stripe_shared::BankAccount), - #[cfg_attr(feature = "serde", serde(rename = "card"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "card"))] Card(stripe_shared::Card), - #[cfg_attr(feature = "serde", serde(rename = "source"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "source"))] Source(stripe_shared::Source), } @@ -95,15 +98,18 @@ const _: () = { }; #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", serde(tag = "object"))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(tag = "object"))] pub enum AccountExternalAccountDeleted { - #[cfg_attr(feature = "serde", serde(rename = "bank_account"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(rename = "bank_account") + )] BankAccount(stripe_shared::BankAccount), - #[cfg_attr(feature = "serde", serde(rename = "card"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "card"))] Card(stripe_shared::Card), - #[cfg_attr(feature = "serde", serde(rename = "source"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "source"))] Source(stripe_shared::Source), } @@ -191,15 +197,18 @@ const _: () = { }; #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", serde(tag = "object"))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(tag = "object"))] pub enum AccountExternalAccountUpdated { - #[cfg_attr(feature = "serde", serde(rename = "bank_account"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(rename = "bank_account") + )] BankAccount(stripe_shared::BankAccount), - #[cfg_attr(feature = "serde", serde(rename = "card"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "card"))] Card(stripe_shared::Card), - #[cfg_attr(feature = "serde", serde(rename = "source"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "source"))] Source(stripe_shared::Source), } @@ -287,15 +296,18 @@ const _: () = { }; #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", serde(tag = "object"))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(tag = "object"))] pub enum CustomerSourceCreated { - #[cfg_attr(feature = "serde", serde(rename = "bank_account"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(rename = "bank_account") + )] BankAccount(stripe_shared::BankAccount), - #[cfg_attr(feature = "serde", serde(rename = "card"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "card"))] Card(stripe_shared::Card), - #[cfg_attr(feature = "serde", serde(rename = "source"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "source"))] Source(stripe_shared::Source), } @@ -383,15 +395,18 @@ const _: () = { }; #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", serde(tag = "object"))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(tag = "object"))] pub enum CustomerSourceDeleted { - #[cfg_attr(feature = "serde", serde(rename = "bank_account"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(rename = "bank_account") + )] BankAccount(stripe_shared::BankAccount), - #[cfg_attr(feature = "serde", serde(rename = "card"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "card"))] Card(stripe_shared::Card), - #[cfg_attr(feature = "serde", serde(rename = "source"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "source"))] Source(stripe_shared::Source), } @@ -479,13 +494,13 @@ const _: () = { }; #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", serde(tag = "object"))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(tag = "object"))] pub enum CustomerSourceExpiring { - #[cfg_attr(feature = "serde", serde(rename = "card"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "card"))] Card(stripe_shared::Card), - #[cfg_attr(feature = "serde", serde(rename = "source"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "source"))] Source(stripe_shared::Source), } @@ -572,15 +587,18 @@ const _: () = { }; #[derive(Clone, Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize))] -#[cfg_attr(feature = "serde", derive(serde::Deserialize))] -#[cfg_attr(feature = "serde", serde(tag = "object"))] +#[cfg_attr(feature = "serialize", derive(serde::Serialize))] +#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))] +#[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(tag = "object"))] pub enum CustomerSourceUpdated { - #[cfg_attr(feature = "serde", serde(rename = "bank_account"))] + #[cfg_attr( + any(feature = "deserialize", feature = "serialize"), + serde(rename = "bank_account") + )] BankAccount(stripe_shared::BankAccount), - #[cfg_attr(feature = "serde", serde(rename = "card"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "card"))] Card(stripe_shared::Card), - #[cfg_attr(feature = "serde", serde(rename = "source"))] + #[cfg_attr(any(feature = "deserialize", feature = "serialize"), serde(rename = "source"))] Source(stripe_shared::Source), } diff --git a/tests/Cargo.toml b/tests/Cargo.toml index 14cb565fc..9affd6835 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -14,19 +14,19 @@ httpmock = "0.6.7" wiremock = "0.5.22" futures-util = { version = "0.3.21" } tokio = { version = "1.24.1", features = ["rt", "macros"] } -stripe_types = { path = "../stripe_types", features = ["serde"] } +stripe_types = { path = "../stripe_types", features = ["serialize", "deserialize"] } async-stripe = { path = "../async-stripe" } -stripe_connect = { path = "../generated/stripe_connect", features = ["account", "transfer_reversal", "serde"] } -stripe_billing = { path = "../generated/stripe_billing", features = ["invoice", "plan", "subscription", "subscription_item", "usage_record", "serde"] } -stripe_core = { path = "../generated/stripe_core", features = ["customer", "charge", "token", "serde"] } -stripe_checkout = { path = "../generated/stripe_checkout", features = ["checkout_session", "serde"] } -stripe_product = { path = "../generated/stripe_product", features = ["product", "price", "promotion_code", "serde"] } -stripe_payment = { path = "../generated/stripe_payment", features = ["serde"] } -stripe_treasury = { path = "../generated/stripe_treasury", features = ["serde"] } -stripe_terminal = { path = "../generated/stripe_terminal", features = ["serde"] } -stripe_fraud = { path = "../generated/stripe_fraud", features = ["serde"] } -stripe_issuing = { path = "../generated/stripe_issuing", features = ["serde"] } -stripe_misc = { path = "../generated/stripe_misc", features = ["serde"] } +stripe_connect = { path = "../generated/stripe_connect", features = ["account", "transfer_reversal", "serialize", "deserialize"] } +stripe_billing = { path = "../generated/stripe_billing", features = ["invoice", "plan", "subscription", "subscription_item", "usage_record", "serialize", "deserialize"] } +stripe_core = { path = "../generated/stripe_core", features = ["customer", "charge", "token", "serialize", "deserialize"] } +stripe_checkout = { path = "../generated/stripe_checkout", features = ["checkout_session", "serialize", "deserialize"] } +stripe_product = { path = "../generated/stripe_product", features = ["product", "price", "promotion_code", "serialize", "deserialize"] } +stripe_payment = { path = "../generated/stripe_payment", features = ["serialize", "deserialize"] } +stripe_treasury = { path = "../generated/stripe_treasury", features = ["serialize", "deserialize"] } +stripe_terminal = { path = "../generated/stripe_terminal", features = ["serialize", "deserialize"] } +stripe_fraud = { path = "../generated/stripe_fraud", features = ["serialize", "deserialize"] } +stripe_issuing = { path = "../generated/stripe_issuing", features = ["serialize", "deserialize"] } +stripe_misc = { path = "../generated/stripe_misc", features = ["serialize", "deserialize"] } [features] async = []