class Stripe::PostCustomersRequest

Included Modules

Defined in:

stripe/models/post_customers_request.cr

Constant 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

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(*, 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


[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



[View source]
def address=(new_value : Stripe::PostCustomersRequestAddress | Nil) #

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


[View source]
def balance : Int64 | Nil #

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

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


[View source]
def cash_balance : Stripe::CashBalanceParam | Nil #

[View source]
def cash_balance=(new_value : Stripe::CashBalanceParam | Nil) #

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


[View source]
def coupon : String | Nil #

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

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


[View source]
def description : String | Nil #

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

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


[View source]
def email : String | Nil #

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

Custom attribute writer method checking allowed values (enum). @param [Object] email 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 invoice_prefix : String | Nil #

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

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


[View source]
def invoice_settings : Stripe::CustomerParam | Nil #

[View source]
def invoice_settings=(new_value : Stripe::CustomerParam | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] invoice_settings 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 : Stripe::PostAccountsRequestMetadata | Nil #

[View source]
def metadata=(new_value : Stripe::PostAccountsRequestMetadata | Nil) #

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


[View source]
def name : String | Nil #

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

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


[View source]
def next_invoice_sequence : Int64 | Nil #

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

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


[View source]
def payment_method : String | Nil #

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

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


[View source]
def phone : String | Nil #

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

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


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

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

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


[View source]
def promotion_code : String | Nil #

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

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


[View source]

[View source]
def shipping=(new_value : Stripe::PostCustomersRequestShipping | Nil) #

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


[View source]
def source : String | Nil #

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

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


[View source]
def tax : Stripe::TaxParam | Nil #

[View source]
def tax=(new_value : Stripe::TaxParam | Nil) #

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


[View source]
def tax_exempt : String | Nil #

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

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


[View source]
def tax_id_data : Array(Stripe::DataParams) | Nil #

[View source]
def tax_id_data=(new_value : Array(Stripe::DataParams) | Nil) #

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


[View source]
def test_clock : String | Nil #

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

Custom attribute writer method checking allowed values (enum). @param [Object] test_clock 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]
def validate : Bool | Nil #

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

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


[View source]