Class: Stripe::ChargeCreateParams::Shipping

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/charge_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, carrier: nil, name: nil, phone: nil, tracking_number: nil) ⇒ Shipping

Returns a new instance of Shipping.



69
70
71
72
73
74
75
# File 'lib/stripe/params/charge_create_params.rb', line 69

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

Instance Attribute Details

#addressObject

Shipping address.



59
60
61
# File 'lib/stripe/params/charge_create_params.rb', line 59

def address
  @address
end

#carrierObject

The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.



61
62
63
# File 'lib/stripe/params/charge_create_params.rb', line 61

def carrier
  @carrier
end

#nameObject

Recipient name.



63
64
65
# File 'lib/stripe/params/charge_create_params.rb', line 63

def name
  @name
end

#phoneObject

Recipient phone (including extension).



65
66
67
# File 'lib/stripe/params/charge_create_params.rb', line 65

def phone
  @phone
end

#tracking_numberObject

The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.



67
68
69
# File 'lib/stripe/params/charge_create_params.rb', line 67

def tracking_number
  @tracking_number
end