Class: Stripe::Issuing::CardService::CreateParams::Shipping

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/issuing/card_service.rb

Defined Under Namespace

Classes: Address, AddressValidation, Customs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(address: nil, address_validation: nil, customs: nil, name: nil, phone_number: nil, require_signature: nil, service: nil, type: nil) ⇒ Shipping

Returns a new instance of Shipping.



181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
# File 'lib/stripe/services/issuing/card_service.rb', line 181

def initialize(
  address: nil,
  address_validation: nil,
  customs: nil,
  name: nil,
  phone_number: nil,
  require_signature: nil,
  service: nil,
  type: nil
)
  @address = address
  @address_validation = address_validation
  @customs = customs
  @name = name
  @phone_number = phone_number
  @require_signature = require_signature
  @service = service
  @type = type
end

Instance Attribute Details

#addressObject

The address that the card is shipped to.



158
159
160
# File 'lib/stripe/services/issuing/card_service.rb', line 158

def address
  @address
end

#address_validationObject

Address validation settings.



161
162
163
# File 'lib/stripe/services/issuing/card_service.rb', line 161

def address_validation
  @address_validation
end

#customsObject

Customs information for the shipment.



164
165
166
# File 'lib/stripe/services/issuing/card_service.rb', line 164

def customs
  @customs
end

#nameObject

The name printed on the shipping label when shipping the card.



167
168
169
# File 'lib/stripe/services/issuing/card_service.rb', line 167

def name
  @name
end

#phone_numberObject

Phone number of the recipient of the shipment.



170
171
172
# File 'lib/stripe/services/issuing/card_service.rb', line 170

def phone_number
  @phone_number
end

#require_signatureObject

Whether a signature is required for card delivery.



173
174
175
# File 'lib/stripe/services/issuing/card_service.rb', line 173

def require_signature
  @require_signature
end

#serviceObject

Shipment service.



176
177
178
# File 'lib/stripe/services/issuing/card_service.rb', line 176

def service
  @service
end

#typeObject

Packaging options.



179
180
181
# File 'lib/stripe/services/issuing/card_service.rb', line 179

def type
  @type
end