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.



155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
# File 'lib/stripe/services/issuing/card_service.rb', line 155

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.



139
140
141
# File 'lib/stripe/services/issuing/card_service.rb', line 139

def address
  @address
end

#address_validationObject

Address validation settings.



141
142
143
# File 'lib/stripe/services/issuing/card_service.rb', line 141

def address_validation
  @address_validation
end

#customsObject

Customs information for the shipment.



143
144
145
# File 'lib/stripe/services/issuing/card_service.rb', line 143

def customs
  @customs
end

#nameObject

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



145
146
147
# File 'lib/stripe/services/issuing/card_service.rb', line 145

def name
  @name
end

#phone_numberObject

Phone number of the recipient of the shipment.



147
148
149
# File 'lib/stripe/services/issuing/card_service.rb', line 147

def phone_number
  @phone_number
end

#require_signatureObject

Whether a signature is required for card delivery.



149
150
151
# File 'lib/stripe/services/issuing/card_service.rb', line 149

def require_signature
  @require_signature
end

#serviceObject

Shipment service.



151
152
153
# File 'lib/stripe/services/issuing/card_service.rb', line 151

def service
  @service
end

#typeObject

Packaging options.



153
154
155
# File 'lib/stripe/services/issuing/card_service.rb', line 153

def type
  @type
end