Class: PaysonAPI::V2::Requests::Merchant

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#checkout_uriObject

Returns the value of attribute checkout_uri.



7
8
9
# File 'lib/payson_api/v2/requests/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/requests/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/requests/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/requests/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/requests/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/requests/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/requests/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/requests/merchant.rb', line 7

def validation_uri
  @validation_uri
end

Instance Method Details

#to_hashObject



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

def to_hash
  {}.tap do |hash|
    hash['checkoutUri'] = @checkout_uri
    hash['notificationUri'] = @notification_uri
    hash['termsUri'] = @terms_uri
    hash['confirmationUri'] = @confirmation_uri
    hash['partnerId'] = @partner_id unless @partner_id.nil?
    hash['validationUri'] = @validation_uri unless @validation_uri.nil?
    hash['integrationInfo'] = @integration_info unless @integration_info.nil?
    hash['reference'] = @reference unless @reference.nil?
  end
end