Class: MetronomeSDK::Models::PaymentGateConfig::StripeConfig

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/payment_gate_config.rb

Overview

See Also:

Defined Under Namespace

Modules: PaymentType

Instance Attribute Summary collapse

Instance Method Summary collapse

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(payment_type: , invoice_metadata: nil) ⇒ Object

Some parameter documentations has been truncated, see MetronomeSDK::Models::PaymentGateConfig::StripeConfig for more details.

Only applicable if using STRIPE as your payment gate type.

Parameters:



# File 'lib/metronome_sdk/models/payment_gate_config.rb', line 107

Instance Attribute Details

#invoice_metadataHash{Symbol=>String}?

Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.

Returns:

  • (Hash{Symbol=>String}, nil)


105
# File 'lib/metronome_sdk/models/payment_gate_config.rb', line 105

optional :invoice_metadata, MetronomeSDK::Internal::Type::HashOf[String]

#payment_typeSymbol, MetronomeSDK::Models::PaymentGateConfig::StripeConfig::PaymentType

If left blank, will default to INVOICE



98
# File 'lib/metronome_sdk/models/payment_gate_config.rb', line 98

required :payment_type, enum: -> { MetronomeSDK::PaymentGateConfig::StripeConfig::PaymentType }