Class: Stripe::Order::CreateParams::BillingDetails

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/order.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, email: nil, name: nil, phone: nil) ⇒ BillingDetails

Returns a new instance of BillingDetails.



583
584
585
586
587
588
# File 'lib/stripe/resources/order.rb', line 583

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

Instance Attribute Details

#addressObject

The billing address provided by the customer.



575
576
577
# File 'lib/stripe/resources/order.rb', line 575

def address
  @address
end

#emailObject

The billing email provided by the customer.



577
578
579
# File 'lib/stripe/resources/order.rb', line 577

def email
  @email
end

#nameObject

The billing name provided by the customer.



579
580
581
# File 'lib/stripe/resources/order.rb', line 579

def name
  @name
end

#phoneObject

The billing phone number provided by the customer.



581
582
583
# File 'lib/stripe/resources/order.rb', line 581

def phone
  @phone
end