Class: Minfraud::Components::Order
- Defined in:
- lib/minfraud/components/order.rb
Instance Attribute Summary collapse
-
#:has_gift_message(: has_gift_message) ⇒ Boolean
Whether the purchaser included a gift message.
-
#:is_gift(: is_gift) ⇒ Boolean
Whether order was marked as a gift by the purchaser.
-
#:referrer_uri(: referrer_uri) ⇒ String
The URI of the referring site for this order.
-
#affiliate_id ⇒ String
The ID of the affiliate where the order is coming from.
-
#amount ⇒ Decimal
The total order amount for the transaction.
-
#currency ⇒ String
The ISO 4217 currency code for the currency used in the transaction.
-
#discount_code ⇒ String
please separate them with a comma.
-
#has_gift_message ⇒ Boolean
Whether the purchaser included a gift message.
-
#is_gift ⇒ Boolean
Whether order was marked as a gift by the purchaser.
-
#referrer_uri ⇒ String
The URI of the referring site for this order.
-
#subaffiliate_id ⇒ String
The ID of the sub-affiliate where the order is coming from.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Minfraud::Components::Order
constructor
Creates Minfraud::Components::Order instance.
Methods inherited from Base
Constructor Details
#initialize(params = {}) ⇒ Minfraud::Components::Order
Creates Minfraud::Components::Order instance
40 41 42 43 44 45 46 47 48 |
# File 'lib/minfraud/components/order.rb', line 40 def initialize (params = {}) @has_gift_message = params[:has_gift_message] @affiliate_id = params[:affiliate_id] @subaffiliate_id = params[:subaffiliate_id] @currency = params[:currency] @discount_code = params[:discount_cide] @referrer_uri = params[:referrer_uri] @is_gift = params[:is_gift] end |
Instance Attribute Details
#:has_gift_message(: has_gift_message) ⇒ Boolean
Returns Whether the purchaser included a gift message.
35 |
# File 'lib/minfraud/components/order.rb', line 35 attr_accessor :has_gift_message |
#:is_gift(: is_gift) ⇒ Boolean
Returns Whether order was marked as a gift by the purchaser.
31 |
# File 'lib/minfraud/components/order.rb', line 31 attr_accessor :is_gift |
#:referrer_uri(: referrer_uri) ⇒ String
Returns The URI of the referring site for this order.
27 |
# File 'lib/minfraud/components/order.rb', line 27 attr_accessor :referrer_uri |
#affiliate_id ⇒ String
Returns The ID of the affiliate where the order is coming from.
19 20 21 |
# File 'lib/minfraud/components/order.rb', line 19 def affiliate_id @affiliate_id end |
#amount ⇒ Decimal
Returns The total order amount for the transaction.
6 7 8 |
# File 'lib/minfraud/components/order.rb', line 6 def amount @amount end |
#currency ⇒ String
Returns The ISO 4217 currency code for the currency used in the transaction.
10 11 12 |
# File 'lib/minfraud/components/order.rb', line 10 def currency @currency end |
#discount_code ⇒ String
please separate them with a comma.
15 16 17 |
# File 'lib/minfraud/components/order.rb', line 15 def discount_code @discount_code end |
#has_gift_message ⇒ Boolean
Returns Whether the purchaser included a gift message.
35 36 37 |
# File 'lib/minfraud/components/order.rb', line 35 def @has_gift_message end |
#is_gift ⇒ Boolean
Returns Whether order was marked as a gift by the purchaser.
31 32 33 |
# File 'lib/minfraud/components/order.rb', line 31 def is_gift @is_gift end |
#referrer_uri ⇒ String
Returns The URI of the referring site for this order.
27 28 29 |
# File 'lib/minfraud/components/order.rb', line 27 def referrer_uri @referrer_uri end |
#subaffiliate_id ⇒ String
Returns The ID of the sub-affiliate where the order is coming from.
23 24 25 |
# File 'lib/minfraud/components/order.rb', line 23 def subaffiliate_id @subaffiliate_id end |