class Stripe::PostCustomersRequest
- Stripe::PostCustomersRequest
- Reference
- Object
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- OpenApi::Json
- OpenApi::Validatable
Defined in:
stripe/models/post_customers_request.crConstant Summary
-
ERROR_MESSAGE_FOR_TAX_EXEMPT =
"invalid value for \"tax_exempt\", must be one of [, exempt, none, reverse]."
-
MAX_LENGTH_FOR_COUPON =
5000
-
MAX_LENGTH_FOR_DESCRIPTION =
5000
-
MAX_LENGTH_FOR_EMAIL =
512
-
MAX_LENGTH_FOR_INVOICE_PREFIX =
5000
-
MAX_LENGTH_FOR_NAME =
256
-
MAX_LENGTH_FOR_PAYMENT_METHOD =
5000
-
MAX_LENGTH_FOR_PHONE =
20
-
MAX_LENGTH_FOR_PROMOTION_CODE =
5000
-
MAX_LENGTH_FOR_SOURCE =
5000
-
MAX_LENGTH_FOR_TEST_CLOCK =
5000
-
VALID_VALUES_FOR_TAX_EXEMPT =
String.static_array("", "exempt", "none", "reverse")
Constructors
- .new(pull : JSON::PullParser)
-
.new(*, address : Stripe::PostCustomersRequestAddress | Nil = nil, balance : Int64 | Nil = nil, cash_balance : Stripe::CashBalanceParam | Nil = nil, coupon : String | Nil = nil, description : String | Nil = nil, email : String | Nil = nil, expand : Array(String) | Nil = nil, invoice_prefix : String | Nil = nil, invoice_settings : Stripe::CustomerParam | Nil = nil, metadata : Stripe::PostAccountsRequestMetadata | Nil = nil, name : String | Nil = nil, next_invoice_sequence : Int64 | Nil = nil, payment_method : String | Nil = nil, phone : String | Nil = nil, preferred_locales : Array(String) | Nil = nil, promotion_code : String | Nil = nil, shipping : Stripe::PostCustomersRequestShipping | Nil = nil, source : String | Nil = nil, tax : Stripe::TaxParam | Nil = nil, tax_exempt : String | Nil = nil, tax_id_data : Array(Stripe::DataParams) | Nil = nil, test_clock : String | Nil = nil, validate : Bool | 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.
- #address : Stripe::PostCustomersRequestAddress | Nil
-
#address=(new_value : Stripe::PostCustomersRequestAddress | Nil)
Custom attribute writer method checking allowed values (enum).
- #balance : Int64 | Nil
-
#balance=(new_value : Int64 | Nil)
Custom attribute writer method checking allowed values (enum).
- #cash_balance : Stripe::CashBalanceParam | Nil
-
#cash_balance=(new_value : Stripe::CashBalanceParam | Nil)
Custom attribute writer method checking allowed values (enum).
- #coupon : String | Nil
-
#coupon=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #description : String | Nil
-
#description=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #email : String | Nil
-
#email=(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.
- #invoice_prefix : String | Nil
-
#invoice_prefix=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #invoice_settings : Stripe::CustomerParam | Nil
-
#invoice_settings=(new_value : Stripe::CustomerParam | Nil)
Custom attribute writer method checking allowed values (enum).
-
#list_invalid_properties : Array(String)
Show invalid properties with the reasons.
- #metadata : Stripe::PostAccountsRequestMetadata | Nil
-
#metadata=(new_value : Stripe::PostAccountsRequestMetadata | Nil)
Custom attribute writer method checking allowed values (enum).
- #name : String | Nil
-
#name=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #next_invoice_sequence : Int64 | Nil
-
#next_invoice_sequence=(new_value : Int64 | Nil)
Custom attribute writer method checking allowed values (enum).
- #payment_method : String | Nil
-
#payment_method=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #phone : String | Nil
-
#phone=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #preferred_locales : Array(String) | Nil
-
#preferred_locales=(new_value : Array(String) | Nil)
Custom attribute writer method checking allowed values (enum).
- #promotion_code : String | Nil
-
#promotion_code=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #shipping : Stripe::PostCustomersRequestShipping | Nil
-
#shipping=(new_value : Stripe::PostCustomersRequestShipping | Nil)
Custom attribute writer method checking allowed values (enum).
- #source : String | Nil
-
#source=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #tax : Stripe::TaxParam | Nil
-
#tax=(new_value : Stripe::TaxParam | Nil)
Custom attribute writer method checking allowed values (enum).
- #tax_exempt : String | Nil
-
#tax_exempt=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #tax_id_data : Array(Stripe::DataParams) | Nil
-
#tax_id_data=(new_value : Array(Stripe::DataParams) | Nil)
Custom attribute writer method checking allowed values (enum).
- #test_clock : String | Nil
-
#test_clock=(new_value : String | 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
- #validate : Bool | Nil
-
#validate=(new_value : Bool | Nil)
Custom attribute writer method checking allowed values (enum).
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] address Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] balance Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] cash_balance Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] coupon Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] description Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] email 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] invoice_prefix Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] invoice_settings 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] name Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] next_invoice_sequence Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] payment_method Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] phone Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] preferred_locales Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] promotion_code Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] shipping Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] source Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] tax Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] tax_exempt Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] tax_id_data Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] test_clock Object to be assigned
Check to see if the all the properties in the model are valid @return true if the model is valid
Custom attribute writer method checking allowed values (enum). @param [Object] validate Object to be assigned