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.



566
567
568
569
570
571
# File 'lib/stripe/resources/order.rb', line 566

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.



558
559
560
# File 'lib/stripe/resources/order.rb', line 558

def address
  @address
end

#emailObject

The billing email provided by the customer.



560
561
562
# File 'lib/stripe/resources/order.rb', line 560

def email
  @email
end

#nameObject

The billing name provided by the customer.



562
563
564
# File 'lib/stripe/resources/order.rb', line 562

def name
  @name
end

#phoneObject

The billing phone number provided by the customer.



564
565
566
# File 'lib/stripe/resources/order.rb', line 564

def phone
  @phone
end