Class: Stripe::CustomerCreateParams::Shipping

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/customer_create_params.rb

Defined Under Namespace

Classes: Address

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(address: nil, name: nil, phone: nil) ⇒ Shipping

Returns a new instance of Shipping.



132
133
134
135
136
# File 'lib/stripe/params/customer_create_params.rb', line 132

def initialize(address: nil, name: nil, phone: nil)
  @address = address
  @name = name
  @phone = phone
end

Instance Attribute Details

#addressObject

Customer shipping address.



126
127
128
# File 'lib/stripe/params/customer_create_params.rb', line 126

def address
  @address
end

#nameObject

Customer name.



128
129
130
# File 'lib/stripe/params/customer_create_params.rb', line 128

def name
  @name
end

#phoneObject

Customer phone (including extension).



130
131
132
# File 'lib/stripe/params/customer_create_params.rb', line 130

def phone
  @phone
end