class Stripe::SubscriptionScheduleCustomer

Overview

ID of the customer who owns the subscription schedule.

Included Modules

Defined in:

stripe/models/subscription_schedule_customer.cr

Constant Summary

ERROR_MESSAGE_FOR_OBJECT = "invalid value for \"object\", must be one of [customer]."
ERROR_MESSAGE_FOR_TAX_EXEMPT = "invalid value for \"tax_exempt\", must be one of [exempt, none, reverse]."
MAX_LENGTH_FOR_CURRENCY = 5000
MAX_LENGTH_FOR_DESCRIPTION = 5000
MAX_LENGTH_FOR_EMAIL = 5000
MAX_LENGTH_FOR_ID = 5000
MAX_LENGTH_FOR_INVOICE_PREFIX = 5000
MAX_LENGTH_FOR_NAME = 5000
MAX_LENGTH_FOR_PHONE = 5000
VALID_VALUES_FOR_OBJECT = String.static_array("customer")
VALID_VALUES_FOR_TAX_EXEMPT = String.static_array("exempt", "none", "reverse")

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(*, created : Int64 | Nil = nil, default_source : Stripe::CustomerDefaultSource | Nil = nil, description : String | Nil = nil, email : String | Nil = nil, id : String | Nil = nil, livemode : Bool | Nil = nil, object : String | Nil = nil, shipping : Stripe::Shipping | Nil = nil, deleted : Bool | Nil = nil, address : Stripe::Address | Nil = nil, balance : Int64 | Nil = nil, cash_balance : Stripe::CashBalance | Nil = nil, currency : String | Nil = nil, delinquent : Bool | Nil = nil, discount : Stripe::Discount | Nil = nil, invoice_credit_balance : Hash(String, Int32) | Nil = nil, invoice_prefix : String | Nil = nil, invoice_settings : Stripe::InvoiceSettingCustomerSetting | Nil = nil, metadata : Hash(String, String) | Nil = nil, name : String | Nil = nil, next_invoice_sequence : Int64 | Nil = nil, phone : String | Nil = nil, preferred_locales : Array(String) | Nil = nil, sources : Stripe::ApmsSourcesSourceList | Nil = nil, subscriptions : Stripe::SubscriptionList | Nil = nil, tax : Stripe::CustomerTax | Nil = nil, tax_exempt : String | Nil = nil, tax_ids : Stripe::TaxIDsList | Nil = nil, test_clock : Stripe::CustomerTestClock | 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 address : Stripe::Address | Nil #

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

[View source]
def balance : Int64 | Nil #

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

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

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

[View source]
def created : Int64 | Nil #

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

[View source]
def currency : String | Nil #

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

[View source]
def currency_present=(currency_present : Bool) #

[View source]
def currency_present? : Bool #

[View source]
def default_source : Stripe::CustomerDefaultSource | Nil #

[View source]
def default_source=(default_source : Stripe::CustomerDefaultSource | Nil) #

[View source]
def deleted : Bool | Nil #

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

[View source]
def delinquent : Bool | Nil #

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

[View source]
def delinquent_present=(delinquent_present : Bool) #

[View source]
def delinquent_present? : Bool #

[View source]
def description : String | Nil #

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

[View source]
def discount : Stripe::Discount | Nil #

[View source]
def discount=(discount : Stripe::Discount | Nil) #

[View source]
def email : String | Nil #

[View source]
def email=(email : 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 invoice_credit_balance : Hash(String, Int32) | Nil #

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

[View source]
def invoice_prefix : String | Nil #

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

[View source]
def invoice_prefix_present=(invoice_prefix_present : Bool) #

[View source]
def invoice_prefix_present? : Bool #

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

[View source]
def invoice_settings=(invoice_settings : Stripe::InvoiceSettingCustomerSetting | 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 name : String | Nil #

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

[View source]
def name_present=(name_present : Bool) #

[View source]
def name_present? : Bool #

[View source]
def next_invoice_sequence : Int64 | Nil #

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

[View source]
def object : String | Nil #

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

[View source]
def phone : String | Nil #

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

[View source]
def phone_present=(phone_present : Bool) #

[View source]
def phone_present? : Bool #

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

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

[View source]
def preferred_locales_present=(preferred_locales_present : Bool) #

[View source]
def preferred_locales_present? : Bool #

[View source]
def shipping : Stripe::Shipping | Nil #

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

[View source]
def sources : Stripe::ApmsSourcesSourceList | Nil #

[View source]
def sources=(sources : Stripe::ApmsSourcesSourceList | Nil) #

[View source]
def subscriptions : Stripe::SubscriptionList | Nil #

[View source]
def subscriptions=(subscriptions : Stripe::SubscriptionList | Nil) #

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

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

[View source]
def tax_exempt : String | Nil #

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

[View source]
def tax_exempt_present=(tax_exempt_present : Bool) #

[View source]
def tax_exempt_present? : Bool #

[View source]
def tax_ids : Stripe::TaxIDsList | Nil #

[View source]
def tax_ids=(tax_ids : Stripe::TaxIDsList | Nil) #

[View source]
def test_clock : Stripe::CustomerTestClock | Nil #

[View source]
def test_clock=(test_clock : Stripe::CustomerTestClock | Nil) #

[View source]
def test_clock_present=(test_clock_present : Bool) #

[View source]
def test_clock_present? : Bool #

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