class Stripe::PostPaymentLinksRequest
- Stripe::PostPaymentLinksRequest
- Reference
- Object
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- OpenApi::Json
- OpenApi::Validatable
Defined in:
stripe/models/post_payment_links_request.crConstant 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_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_INACTIVE_MESSAGE =
500
-
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_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
- .new(pull : JSON::PullParser)
-
.new(*, line_items : Array(Stripe::LineItemsCreateParams) | Nil = nil, after_completion : Stripe::AfterCompletionParams | Nil = nil, allow_promotion_codes : Bool | Nil = nil, application_fee_amount : Int64 | Nil = nil, application_fee_percent : Float64 | Nil = nil, automatic_tax : Stripe::AutomaticTaxParams | Nil = nil, billing_address_collection : String | Nil = nil, consent_collection : Stripe::ConsentCollectionParams | Nil = nil, currency : String | Nil = nil, custom_fields : Array(Stripe::CustomFieldParam) | 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::InvoiceCreationCreateParams | Nil = nil, metadata : Hash(String, String) | Nil = nil, on_behalf_of : String | Nil = nil, payment_intent_data : Stripe::PaymentIntentDataParams | Nil = nil, payment_method_collection : String | Nil = nil, payment_method_types : Array(String) | Nil = nil, phone_number_collection : Stripe::PhoneNumberCollectionParams | Nil = nil, restrictions : Stripe::RestrictionsParams | Nil = nil, shipping_address_collection : Stripe::ShippingAddressCollectionParams | Nil = nil, shipping_options : Array(Stripe::ShippingOptionParams) | Nil = nil, submit_type : String | Nil = nil, subscription_data : Stripe::SubscriptionDataParams | Nil = nil, tax_id_collection : Stripe::TaxIdCollectionParams | Nil = nil, transfer_data : Stripe::TransferDataParams | Nil = nil)
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Instance Method Summary
-
#==(other : self)
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
- #after_completion : Stripe::AfterCompletionParams | Nil
-
#after_completion=(new_value : Stripe::AfterCompletionParams | Nil)
Custom attribute writer method checking allowed values (enum).
- #allow_promotion_codes : Bool | Nil
-
#allow_promotion_codes=(new_value : Bool | Nil)
Custom attribute writer method checking allowed values (enum).
- #application_fee_amount : Int64 | Nil
-
#application_fee_amount=(new_value : Int64 | Nil)
Custom attribute writer method checking allowed values (enum).
- #application_fee_percent : Float64 | Nil
-
#application_fee_percent=(new_value : Float64 | Nil)
Custom attribute writer method checking allowed values (enum).
- #automatic_tax : Stripe::AutomaticTaxParams | Nil
-
#automatic_tax=(new_value : Stripe::AutomaticTaxParams | Nil)
Custom attribute writer method checking allowed values (enum).
- #billing_address_collection : String | Nil
-
#billing_address_collection=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #consent_collection : Stripe::ConsentCollectionParams | Nil
-
#consent_collection=(new_value : Stripe::ConsentCollectionParams | Nil)
Custom attribute writer method checking allowed values (enum).
- #currency : String | Nil
-
#currency=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #custom_fields : Array(Stripe::CustomFieldParam) | Nil
-
#custom_fields=(new_value : Array(Stripe::CustomFieldParam) | Nil)
Custom attribute writer method checking allowed values (enum).
- #custom_text : Stripe::CustomTextParam | Nil
-
#custom_text=(new_value : Stripe::CustomTextParam | Nil)
Custom attribute writer method checking allowed values (enum).
- #customer_creation : String | Nil
-
#customer_creation=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #expand : Array(String) | Nil
-
#expand=(new_value : Array(String) | Nil)
Custom attribute writer method checking allowed values (enum).
-
#hash(hasher)
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
- #inactive_message : String | Nil
-
#inactive_message=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #invoice_creation : Stripe::InvoiceCreationCreateParams | Nil
-
#invoice_creation=(new_value : Stripe::InvoiceCreationCreateParams | Nil)
Custom attribute writer method checking allowed values (enum).
- #line_items : Array(Stripe::LineItemsCreateParams) | Nil
-
#line_items=(new_value : Array(Stripe::LineItemsCreateParams) | Nil)
Custom attribute writer method checking allowed values (enum).
-
#list_invalid_properties : Array(String)
Show invalid properties with the reasons.
- #metadata : Hash(String, String) | Nil
-
#metadata=(new_value : Hash(String, String) | Nil)
Custom attribute writer method checking allowed values (enum).
- #on_behalf_of : String | Nil
-
#on_behalf_of=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #payment_intent_data : Stripe::PaymentIntentDataParams | Nil
-
#payment_intent_data=(new_value : Stripe::PaymentIntentDataParams | Nil)
Custom attribute writer method checking allowed values (enum).
- #payment_method_collection : String | Nil
-
#payment_method_collection=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #payment_method_types : Array(String) | Nil
-
#payment_method_types=(new_value : Array(String) | Nil)
Custom attribute writer method checking allowed values (enum).
- #phone_number_collection : Stripe::PhoneNumberCollectionParams | Nil
-
#phone_number_collection=(new_value : Stripe::PhoneNumberCollectionParams | Nil)
Custom attribute writer method checking allowed values (enum).
- #restrictions : Stripe::RestrictionsParams | Nil
-
#restrictions=(new_value : Stripe::RestrictionsParams | Nil)
Custom attribute writer method checking allowed values (enum).
- #shipping_address_collection : Stripe::ShippingAddressCollectionParams | Nil
-
#shipping_address_collection=(new_value : Stripe::ShippingAddressCollectionParams | Nil)
Custom attribute writer method checking allowed values (enum).
- #shipping_options : Array(Stripe::ShippingOptionParams) | Nil
-
#shipping_options=(new_value : Array(Stripe::ShippingOptionParams) | Nil)
Custom attribute writer method checking allowed values (enum).
- #submit_type : String | Nil
-
#submit_type=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #subscription_data : Stripe::SubscriptionDataParams | Nil
-
#subscription_data=(new_value : Stripe::SubscriptionDataParams | Nil)
Custom attribute writer method checking allowed values (enum).
- #tax_id_collection : Stripe::TaxIdCollectionParams | Nil
-
#tax_id_collection=(new_value : Stripe::TaxIdCollectionParams | Nil)
Custom attribute writer method checking allowed values (enum).
- #transfer_data : Stripe::TransferDataParams | Nil
-
#transfer_data=(new_value : Stripe::TransferDataParams | Nil)
Custom attribute writer method checking allowed values (enum).
-
#valid? : Bool
Check to see if the all the properties in the model are valid @return true if the model is valid
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
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Instance Method Detail
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] after_completion Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] allow_promotion_codes Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] application_fee_amount Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] application_fee_percent Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] automatic_tax Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] billing_address_collection Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] consent_collection Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] currency Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] custom_fields Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] custom_text Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] customer_creation Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] expand Object to be assigned
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] inactive_message Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] invoice_creation Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] line_items Object to be assigned
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Custom attribute writer method checking allowed values (enum). @param [Object] metadata Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] on_behalf_of Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] payment_intent_data Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] payment_method_collection Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] payment_method_types Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] phone_number_collection Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] restrictions Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] shipping_address_collection Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] shipping_options Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] submit_type Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] subscription_data Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] tax_id_collection Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] transfer_data Object to be assigned
Check to see if the all the properties in the model are valid @return true if the model is valid