class Stripe::PostPaymentLinksPaymentLinkRequest

Included Modules

Defined in:

stripe/models/post_payment_links_payment_link_request.cr

Constant Summary

ERROR_MESSAGE_FOR_BILLING_ADDRESS_COLLECTION = "invalid value for \"billing_address_collection\", must be one of [auto, required]."
ERROR_MESSAGE_FOR_CUSTOMER_CREATION = "invalid value for \"customer_creation\", must be one of [always, if_required]."
ERROR_MESSAGE_FOR_INACTIVE_MESSAGE = "invalid value for \"inactive_message\", must be one of []."
ERROR_MESSAGE_FOR_PAYMENT_METHOD_COLLECTION = "invalid value for \"payment_method_collection\", must be one of [always, if_required]."
VALID_VALUES_FOR_BILLING_ADDRESS_COLLECTION = String.static_array("auto", "required")
VALID_VALUES_FOR_CUSTOMER_CREATION = String.static_array("always", "if_required")
VALID_VALUES_FOR_INACTIVE_MESSAGE = String.static_array("")
VALID_VALUES_FOR_PAYMENT_METHOD_COLLECTION = String.static_array("always", "if_required")

Constructors

Instance Method Summary

Instance methods inherited from module OpenApi::Json

after_initialize after_initialize, eql?(o : self) eql?, to_hash : Hash(String, JSON::Any) to_hash, to_json_any : JSON::Any to_json_any

Class methods inherited from module OpenApi::Json

build_from_hash(hash : Hash) build_from_hash, build_from_json_any(json_any : JSON::Any) build_from_json_any

Instance methods inherited from module OpenApi::Validatable

list_invalid_properties : Array(String) list_invalid_properties, list_invalid_properties_for(key : String) : Array(String) list_invalid_properties_for, valid? : Bool valid?, validate : Nil validate

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, active : Bool | Nil = nil, after_completion : Stripe::AfterCompletionParams | Nil = nil, allow_promotion_codes : Bool | Nil = nil, automatic_tax : Stripe::AutomaticTaxParams | Nil = nil, billing_address_collection : String | Nil = nil, custom_fields : Stripe::PostPaymentLinksPaymentLinkRequestCustomFields | Nil = nil, custom_text : Stripe::CustomTextParam | Nil = nil, customer_creation : String | Nil = nil, expand : Array(String) | Nil = nil, inactive_message : String | Nil = nil, invoice_creation : Stripe::InvoiceCreationUpdateParams | Nil = nil, line_items : Array(Stripe::LineItemsUpdateParams) | Nil = nil, metadata : Hash(String, String) | Nil = nil, payment_intent_data : Stripe::PaymentIntentDataUpdateParams | Nil = nil, payment_method_collection : String | Nil = nil, payment_method_types : Stripe::PostPaymentLinksPaymentLinkRequestPaymentMethodTypes | Nil = nil, restrictions : Stripe::PostPaymentLinksPaymentLinkRequestRestrictions | Nil = nil, shipping_address_collection : Stripe::PostPaymentLinksPaymentLinkRequestShippingAddressCollection | Nil = nil, subscription_data : Stripe::SubscriptionDataUpdateParams | Nil = nil, tax_id_collection : Stripe::TaxIdCollectionParams | Nil = nil) #

Initializes the object @param [Hash] attributes Model attributes in the form of hash


[View source]

Instance Method Detail

def ==(other : self) #

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code


def active : Bool | Nil #

[View source]
def active=(new_value : Bool | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] active Object to be assigned


[View source]
def after_completion : Stripe::AfterCompletionParams | Nil #

[View source]
def after_completion=(new_value : Stripe::AfterCompletionParams | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] after_completion Object to be assigned


[View source]
def allow_promotion_codes : Bool | Nil #

[View source]
def allow_promotion_codes=(new_value : Bool | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] allow_promotion_codes Object to be assigned


[View source]
def automatic_tax : Stripe::AutomaticTaxParams | Nil #

[View source]
def automatic_tax=(new_value : Stripe::AutomaticTaxParams | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] automatic_tax Object to be assigned


[View source]
def billing_address_collection : String | Nil #

[View source]
def billing_address_collection=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] billing_address_collection Object to be assigned


[View source]

[View source]
def custom_fields=(new_value : Stripe::PostPaymentLinksPaymentLinkRequestCustomFields | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] custom_fields Object to be assigned


[View source]
def custom_text : Stripe::CustomTextParam | Nil #

[View source]
def custom_text=(new_value : Stripe::CustomTextParam | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] custom_text Object to be assigned


[View source]
def customer_creation : String | Nil #

[View source]
def customer_creation=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] customer_creation Object to be assigned


[View source]
def expand : Array(String) | Nil #

[View source]
def expand=(new_value : Array(String) | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] expand Object to be assigned


[View source]
def hash(hasher) #

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code


def inactive_message : String | Nil #

[View source]
def inactive_message=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] inactive_message Object to be assigned


[View source]
def invoice_creation : Stripe::InvoiceCreationUpdateParams | Nil #

[View source]
def invoice_creation=(new_value : Stripe::InvoiceCreationUpdateParams | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] invoice_creation Object to be assigned


[View source]
def line_items : Array(Stripe::LineItemsUpdateParams) | Nil #

[View source]
def line_items=(new_value : Array(Stripe::LineItemsUpdateParams) | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] line_items Object to be assigned


[View source]
def list_invalid_properties : Array(String) #

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons


[View source]
def metadata : Hash(String, String) | Nil #

[View source]
def metadata=(new_value : Hash(String, String) | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] metadata Object to be assigned


[View source]
def payment_intent_data : Stripe::PaymentIntentDataUpdateParams | Nil #

[View source]
def payment_intent_data=(new_value : Stripe::PaymentIntentDataUpdateParams | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] payment_intent_data Object to be assigned


[View source]
def payment_method_collection : String | Nil #

[View source]
def payment_method_collection=(new_value : String | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] payment_method_collection Object to be assigned


[View source]

[View source]
def payment_method_types=(new_value : Stripe::PostPaymentLinksPaymentLinkRequestPaymentMethodTypes | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] payment_method_types Object to be assigned


[View source]

[View source]
def restrictions=(new_value : Stripe::PostPaymentLinksPaymentLinkRequestRestrictions | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] restrictions Object to be assigned


[View source]

[View source]
def shipping_address_collection=(new_value : Stripe::PostPaymentLinksPaymentLinkRequestShippingAddressCollection | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] shipping_address_collection Object to be assigned


[View source]
def subscription_data : Stripe::SubscriptionDataUpdateParams | Nil #

[View source]
def subscription_data=(new_value : Stripe::SubscriptionDataUpdateParams | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] subscription_data Object to be assigned


[View source]
def tax_id_collection : Stripe::TaxIdCollectionParams | Nil #

[View source]
def tax_id_collection=(new_value : Stripe::TaxIdCollectionParams | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] tax_id_collection Object to be assigned


[View source]
def valid? : Bool #

Check to see if the all the properties in the model are valid @return true if the model is valid


[View source]