class Stripe::CheckoutSessionPaymentLink

Overview

The ID of the Payment Link that created this Session.

Included Modules

Defined in:

stripe/models/checkout_session_payment_link.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_OBJECT = "invalid value for \"object\", must be one of [payment_link]."
ERROR_MESSAGE_FOR_PAYMENT_METHOD_COLLECTION = "invalid value for \"payment_method_collection\", must be one of [always, if_required]."
ERROR_MESSAGE_FOR_PAYMENT_METHOD_TYPES = "invalid value for \"payment_method_types\", must be one of [affirm, afterpay_clearpay, alipay, au_becs_debit, bacs_debit, bancontact, blik, boleto, card, cashapp, eps, fpx, giropay, grabpay, ideal, klarna, konbini, link, mobilepay, multibanco, oxxo, p24, paynow, paypal, pix, promptpay, sepa_debit, sofort, swish, twint, us_bank_account, wechat_pay, zip]."
ERROR_MESSAGE_FOR_SUBMIT_TYPE = "invalid value for \"submit_type\", must be one of [auto, book, donate, pay]."
MAX_LENGTH_FOR_ID = 5000
MAX_LENGTH_FOR_INACTIVE_MESSAGE = 5000
MAX_LENGTH_FOR_URL = 5000
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_OBJECT = String.static_array("payment_link")
VALID_VALUES_FOR_PAYMENT_METHOD_COLLECTION = String.static_array("always", "if_required")
VALID_VALUES_FOR_PAYMENT_METHOD_TYPES = String.static_array("affirm", "afterpay_clearpay", "alipay", "au_becs_debit", "bacs_debit", "bancontact", "blik", "boleto", "card", "cashapp", "eps", "fpx", "giropay", "grabpay", "ideal", "klarna", "konbini", "link", "mobilepay", "multibanco", "oxxo", "p24", "paynow", "paypal", "pix", "promptpay", "sepa_debit", "sofort", "swish", "twint", "us_bank_account", "wechat_pay", "zip")
VALID_VALUES_FOR_SUBMIT_TYPE = String.static_array("auto", "book", "donate", "pay")

Constructors

Class Method Summary

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::PaymentLinksResourceAfterCompletion | Nil = nil, allow_promotion_codes : Bool | Nil = nil, application : Stripe::PaymentLinkApplication | Nil = nil, application_fee_amount : Int64 | Nil = nil, application_fee_percent : Float64 | Nil = nil, automatic_tax : Stripe::PaymentLinksResourceAutomaticTax | Nil = nil, billing_address_collection : String | Nil = nil, consent_collection : Stripe::PaymentLinksResourceConsentCollection | Nil = nil, currency : String | Nil = nil, custom_fields : Array(Stripe::PaymentLinksResourceCustomFields) | Nil = nil, custom_text : Stripe::PaymentLinksResourceCustomText | Nil = nil, customer_creation : String | Nil = nil, id : String | Nil = nil, inactive_message : String | Nil = nil, invoice_creation : Stripe::PaymentLinksResourceInvoiceCreation | Nil = nil, livemode : Bool | Nil = nil, metadata : Hash(String, String) | Nil = nil, object : String | Nil = nil, on_behalf_of : Stripe::PaymentLinkOnBehalfOf | Nil = nil, payment_intent_data : Stripe::PaymentLinksResourcePaymentIntentData | Nil = nil, payment_method_collection : String | Nil = nil, payment_method_types : Array(String) | Nil = nil, phone_number_collection : Stripe::PaymentLinksResourcePhoneNumberCollection | Nil = nil, restrictions : Stripe::PaymentLinksResourceRestrictions | Nil = nil, shipping_address_collection : Stripe::PaymentLinksResourceShippingAddressCollection | Nil = nil, shipping_options : Array(Stripe::PaymentLinksResourceShippingOption) | Nil = nil, submit_type : String | Nil = nil, subscription_data : Stripe::PaymentLinksResourceSubscriptionData | Nil = nil, tax_id_collection : Stripe::PaymentLinksResourceTaxIdCollection | Nil = nil, transfer_data : Stripe::PaymentLinksResourceTransferData | Nil = nil, url : String | Nil = nil, line_items : Stripe::PaymentLinksResourceListLineItems | Nil = nil) #

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


[View source]

Class Method Detail

def self.openapi_any_of #

List of class defined in anyOf (OpenAPI v3)


[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=(active : Bool | Nil) #

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

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

[View source]
def allow_promotion_codes : Bool | Nil #

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

[View source]
def application : Stripe::PaymentLinkApplication | Nil #

[View source]
def application=(application : Stripe::PaymentLinkApplication | Nil) #

[View source]
def application_fee_amount : Int64 | Nil #

[View source]
def application_fee_amount=(application_fee_amount : Int64 | Nil) #

[View source]
def application_fee_percent : Float64 | Nil #

[View source]
def application_fee_percent=(application_fee_percent : Float64 | Nil) #

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

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

[View source]
def billing_address_collection : String | Nil #

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

[View source]
def consent_collection : Stripe::PaymentLinksResourceConsentCollection | Nil #

[View source]
def consent_collection=(consent_collection : Stripe::PaymentLinksResourceConsentCollection | Nil) #

[View source]
def currency : String | Nil #

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

[View source]
def custom_fields : Array(Stripe::PaymentLinksResourceCustomFields) | Nil #

[View source]
def custom_fields=(custom_fields : Array(Stripe::PaymentLinksResourceCustomFields) | Nil) #

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

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

[View source]
def customer_creation : String | Nil #

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

[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 id : String | Nil #

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

[View source]
def inactive_message : String | Nil #

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

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

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

[View source]

[View source]
def line_items=(line_items : Stripe::PaymentLinksResourceListLineItems | Nil) #

[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 livemode : Bool | Nil #

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

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

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

[View source]
def object : String | Nil #

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

[View source]
def on_behalf_of : Stripe::PaymentLinkOnBehalfOf | Nil #

[View source]
def on_behalf_of=(on_behalf_of : Stripe::PaymentLinkOnBehalfOf | Nil) #

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

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

[View source]
def payment_method_collection : String | Nil #

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

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

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

[View source]
def phone_number_collection : Stripe::PaymentLinksResourcePhoneNumberCollection | Nil #

[View source]
def phone_number_collection=(phone_number_collection : Stripe::PaymentLinksResourcePhoneNumberCollection | Nil) #

[View source]
def restrictions : Stripe::PaymentLinksResourceRestrictions | Nil #

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

[View source]
def shipping_address_collection : Stripe::PaymentLinksResourceShippingAddressCollection | Nil #

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

[View source]
def shipping_options : Array(Stripe::PaymentLinksResourceShippingOption) | Nil #

[View source]
def shipping_options=(shipping_options : Array(Stripe::PaymentLinksResourceShippingOption) | Nil) #

[View source]
def submit_type : String | Nil #

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

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

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

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

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

[View source]
def transfer_data : Stripe::PaymentLinksResourceTransferData | Nil #

[View source]
def transfer_data=(transfer_data : Stripe::PaymentLinksResourceTransferData | Nil) #

[View source]
def url : String | Nil #

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

[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]