Class: PaysonAPI::V2::Requests::UpdateCheckout

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeUpdateCheckout



9
10
11
12
# File 'lib/payson_api/v2/requests/update_checkout.rb', line 9

def initialize
  @order = PaysonAPI::V2::Requests::Order.new
  @merchant = PaysonAPI::V2::Requests::Merchant.new
end

Instance Attribute Details

#currencyObject

Returns the value of attribute currency.



7
8
9
# File 'lib/payson_api/v2/requests/update_checkout.rb', line 7

def currency
  @currency
end

#customerObject

Returns the value of attribute customer.



7
8
9
# File 'lib/payson_api/v2/requests/update_checkout.rb', line 7

def customer
  @customer
end

#descriptionObject

Returns the value of attribute description.



7
8
9
# File 'lib/payson_api/v2/requests/update_checkout.rb', line 7

def description
  @description
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/payson_api/v2/requests/update_checkout.rb', line 7

def id
  @id
end

#localeObject

Returns the value of attribute locale.



7
8
9
# File 'lib/payson_api/v2/requests/update_checkout.rb', line 7

def locale
  @locale
end

#merchantObject

Returns the value of attribute merchant.



7
8
9
# File 'lib/payson_api/v2/requests/update_checkout.rb', line 7

def merchant
  @merchant
end

#orderObject

Returns the value of attribute order.



7
8
9
# File 'lib/payson_api/v2/requests/update_checkout.rb', line 7

def order
  @order
end

#statusObject

Returns the value of attribute status.



7
8
9
# File 'lib/payson_api/v2/requests/update_checkout.rb', line 7

def status
  @status
end

Instance Method Details

#to_hashObject



14
15
16
17
18
19
20
21
# File 'lib/payson_api/v2/requests/update_checkout.rb', line 14

def to_hash
  {}.tap do |hash|
    hash['id'] = @id
    hash['order'] = @order.to_hash
    hash['status'] = @status
    hash['merchant'] = @merchant.to_hash
  end
end