Class: Stripe::Issuing::CardService::UpdateParams::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.



363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
# File 'lib/stripe/services/issuing/card_service.rb', line 363

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.



347
348
349
# File 'lib/stripe/services/issuing/card_service.rb', line 347

def address
  @address
end

#address_validationObject

Address validation settings.



349
350
351
# File 'lib/stripe/services/issuing/card_service.rb', line 349

def address_validation
  @address_validation
end

#customsObject

Customs information for the shipment.



351
352
353
# File 'lib/stripe/services/issuing/card_service.rb', line 351

def customs
  @customs
end

#nameObject

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



353
354
355
# File 'lib/stripe/services/issuing/card_service.rb', line 353

def name
  @name
end

#phone_numberObject

Phone number of the recipient of the shipment.



355
356
357
# File 'lib/stripe/services/issuing/card_service.rb', line 355

def phone_number
  @phone_number
end

#require_signatureObject

Whether a signature is required for card delivery.



357
358
359
# File 'lib/stripe/services/issuing/card_service.rb', line 357

def require_signature
  @require_signature
end

#serviceObject

Shipment service.



359
360
361
# File 'lib/stripe/services/issuing/card_service.rb', line 359

def service
  @service
end

#typeObject

Packaging options.



361
362
363
# File 'lib/stripe/services/issuing/card_service.rb', line 361

def type
  @type
end