Class: Klarna::Checkout::Merchant

Inherits:
Resource
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
lib/klarna/checkout/merchant.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Resource

defaults, defaults=, #initialize, #json_sanitize, #to_json

Methods included from HasOne

#has_one

Methods included from HasMany

#has_many

Constructor Details

This class inherits a constructor from Klarna::Checkout::Resource

Instance Attribute Details

#checkout_uriObject

Returns the value of attribute checkout_uri.



8
9
10
# File 'lib/klarna/checkout/merchant.rb', line 8

def checkout_uri
  @checkout_uri
end

#confirmation_uriObject

Returns the value of attribute confirmation_uri.



8
9
10
# File 'lib/klarna/checkout/merchant.rb', line 8

def confirmation_uri
  @confirmation_uri
end

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/klarna/checkout/merchant.rb', line 8

def id
  @id
end

#push_uriObject

Returns the value of attribute push_uri.



8
9
10
# File 'lib/klarna/checkout/merchant.rb', line 8

def push_uri
  @push_uri
end

#terms_uriObject

Returns the value of attribute terms_uri.



8
9
10
# File 'lib/klarna/checkout/merchant.rb', line 8

def terms_uri
  @terms_uri
end

#validation_uriObject

Returns the value of attribute validation_uri.



8
9
10
# File 'lib/klarna/checkout/merchant.rb', line 8

def validation_uri
  @validation_uri
end

Instance Method Details

#as_jsonObject



14
15
16
17
18
19
20
21
22
23
# File 'lib/klarna/checkout/merchant.rb', line 14

def as_json
  json_sanitize({
    :id               => @id,
    :terms_uri        => @terms_uri,
    :checkout_uri     => @checkout_uri,    
    :confirmation_uri => @confirmation_uri,        
    :push_uri         => @push_uri,
    :validation_uri   => @validation_uri
  })
end