Class: Stripe::Issuing::CardCreateParams::Shipping

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/issuing/card_create_params.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.



82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# File 'lib/stripe/params/issuing/card_create_params.rb', line 82

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.



66
67
68
# File 'lib/stripe/params/issuing/card_create_params.rb', line 66

def address
  @address
end

#address_validationObject

Address validation settings.



68
69
70
# File 'lib/stripe/params/issuing/card_create_params.rb', line 68

def address_validation
  @address_validation
end

#customsObject

Customs information for the shipment.



70
71
72
# File 'lib/stripe/params/issuing/card_create_params.rb', line 70

def customs
  @customs
end

#nameObject

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



72
73
74
# File 'lib/stripe/params/issuing/card_create_params.rb', line 72

def name
  @name
end

#phone_numberObject

Phone number of the recipient of the shipment.



74
75
76
# File 'lib/stripe/params/issuing/card_create_params.rb', line 74

def phone_number
  @phone_number
end

#require_signatureObject

Whether a signature is required for card delivery.



76
77
78
# File 'lib/stripe/params/issuing/card_create_params.rb', line 76

def require_signature
  @require_signature
end

#serviceObject

Shipment service.



78
79
80
# File 'lib/stripe/params/issuing/card_create_params.rb', line 78

def service
  @service
end

#typeObject

Packaging options.



80
81
82
# File 'lib/stripe/params/issuing/card_create_params.rb', line 80

def type
  @type
end