Class: PaysonAPI::V2::Models::Merchant

Inherits:
Object
  • Object
show all
Defined in:
lib/payson_api/v2/models/merchant.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#checkout_uriObject

Returns the value of attribute checkout_uri.



7
8
9
# File 'lib/payson_api/v2/models/merchant.rb', line 7

def checkout_uri
  @checkout_uri
end

#confirmation_uriObject

Returns the value of attribute confirmation_uri.



7
8
9
# File 'lib/payson_api/v2/models/merchant.rb', line 7

def confirmation_uri
  @confirmation_uri
end

#integration_infoObject

Returns the value of attribute integration_info.



7
8
9
# File 'lib/payson_api/v2/models/merchant.rb', line 7

def integration_info
  @integration_info
end

#notification_uriObject

Returns the value of attribute notification_uri.



7
8
9
# File 'lib/payson_api/v2/models/merchant.rb', line 7

def notification_uri
  @notification_uri
end

#partner_idObject

Returns the value of attribute partner_id.



7
8
9
# File 'lib/payson_api/v2/models/merchant.rb', line 7

def partner_id
  @partner_id
end

#referenceObject

Returns the value of attribute reference.



7
8
9
# File 'lib/payson_api/v2/models/merchant.rb', line 7

def reference
  @reference
end

#terms_uriObject

Returns the value of attribute terms_uri.



7
8
9
# File 'lib/payson_api/v2/models/merchant.rb', line 7

def terms_uri
  @terms_uri
end

#validation_uriObject

Returns the value of attribute validation_uri.



7
8
9
# File 'lib/payson_api/v2/models/merchant.rb', line 7

def validation_uri
  @validation_uri
end

Class Method Details

.from_hash(hash) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/payson_api/v2/models/merchant.rb', line 10

def self.from_hash(hash)
  new.tap do |merchant|
    merchant.checkout_uri = hash['checkoutUri']
    merchant.confirmation_uri = hash['confirmationUri']
    merchant.validation_uri = hash['validationUri']
    merchant.terms_uri = hash['termsUri']
    merchant.partner_id = hash['partnerId']
    merchant.integration_info = hash['integrationInfo']
    merchant.reference = hash['reference']
  end
end