Class: Google4R::Checkout::CouponResult

Inherits:
CodeResult
  • Object
show all
Defined in:
lib/google4r/checkout/merchant_calculation.rb

Overview

This class represents a coupon-result in the merchant-calculation-results XML

Instance Attribute Summary

Attributes inherited from CodeResult

#calculated_amount, #code, #message, #valid

Instance Method Summary collapse

Constructor Details

#initialize(valid = false, code = '', calculated_amount = nil, message = '') ⇒ CouponResult

Returns a new instance of CouponResult.



305
306
307
308
309
310
# File 'lib/google4r/checkout/merchant_calculation.rb', line 305

def initialize(valid=false, code='', calculated_amount=nil, message='')
  @valid = valid
  @code = code
  @calculated_amount = calculated_amount
  @message = message
end