Class: Dodopayments::Models::CheckoutSessionPreviewParams

Inherits:
CheckoutSessionRequest show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/dodopayments/models/checkout_session_preview_params.rb,
sig/dodopayments/models/checkout_session_preview_params.rbs

Overview

See Also:

  • Dodopayments::Resources::CheckoutSessions#preview

Constant Summary

Constants included from Internal::Type::RequestParameters

Internal::Type::RequestParameters::Dodopayments

Constants inherited from CheckoutSessionRequest

Dodopayments::Models::CheckoutSessionRequest::Dodopayments

Instance Attribute Summary

Attributes included from Internal::Type::RequestParameters

#request_options

Attributes inherited from CheckoutSessionRequest

#allowed_payment_method_types, #billing_address, #billing_currency, #cancel_url, #confirm, #custom_fields, #customer, #customer_business_name, #customization, #discount_code, #discount_codes, #feature_flags, #force_3ds, #mandate_min_amount_inr_paise, #metadata, #minimal_address, #payment_method_id, #product_cart, #product_collection_id, #return_url, #short_link, #show_saved_payment_methods, #subscription_data, #tax_id

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(request_options: {}) ⇒ CheckoutSessionPreviewParams

Returns a new instance of CheckoutSessionPreviewParams.

Parameters:

  • request_options (Dodopayments::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})
  • request_options: (Dodopayments::request_opts) (defaults to: {})


# File 'lib/dodopayments/models/checkout_session_preview_params.rb', line 10

Instance Method Details

#to_hash{ request_options: Dodopayments::RequestOptions }

Returns:



12
# File 'sig/dodopayments/models/checkout_session_preview_params.rbs', line 12

def to_hash: -> { request_options: Dodopayments::RequestOptions }