Class: Stripe::TestHelpers::Issuing::TransactionService::CreateUnlinkedRefundParams::MerchantData

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(category: nil, city: nil, country: nil, name: nil, network_id: nil, postal_code: nil, state: nil, terminal_id: nil, url: nil) ⇒ MerchantData

Returns a new instance of MerchantData.



351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 351

def initialize(
  category: nil,
  city: nil,
  country: nil,
  name: nil,
  network_id: nil,
  postal_code: nil,
  state: nil,
  terminal_id: nil,
  url: nil
)
  @category = category
  @city = city
  @country = country
  @name = name
  @network_id = network_id
  @postal_code = postal_code
  @state = state
  @terminal_id = terminal_id
  @url = url
end

Instance Attribute Details

#categoryObject

A categorization of the seller’s type of business. See our [merchant categories guide](stripe.com/docs/issuing/merchant-categories) for a list of possible values.



333
334
335
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 333

def category
  @category
end

#cityObject

City where the seller is located



335
336
337
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 335

def city
  @city
end

#countryObject

Country where the seller is located



337
338
339
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 337

def country
  @country
end

#nameObject

Name of the seller



339
340
341
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 339

def name
  @name
end

#network_idObject

Identifier assigned to the seller by the card network. Different card networks may assign different network_id fields to the same merchant.



341
342
343
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 341

def network_id
  @network_id
end

#postal_codeObject

Postal code where the seller is located



343
344
345
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 343

def postal_code
  @postal_code
end

#stateObject

State where the seller is located



345
346
347
# File 'lib/stripe/services/test_helpers/issuing/transaction_service.rb', line 345

def state
  @state
end

#terminal_idObject

An ID assigned by the seller to the location of the sale.



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

def terminal_id
  @terminal_id
end

#urlObject

URL provided by the merchant on a 3DS request



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

def url
  @url
end