Constructor.
Namespace:
MaxMind.MinFraud.Request
Assembly:
MaxMind.MinFraud (in MaxMind.MinFraud.dll) Version: 2.0.0
Syntaxpublic Order(
Nullable<decimal> amount = null,
string currency = null,
string discountCode = null,
string affiliateId = null,
string subaffiliateId = null,
Uri referrerUri = null,
Nullable<bool> isGift = null,
Nullable<bool> hasGiftMessage = null
)
Public Sub New (
Optional amount As Nullable(Of Decimal) = Nothing,
Optional currency As String = Nothing,
Optional discountCode As String = Nothing,
Optional affiliateId As String = Nothing,
Optional subaffiliateId As String = Nothing,
Optional referrerUri As Uri = Nothing,
Optional isGift As Nullable(Of Boolean) = Nothing,
Optional hasGiftMessage As Nullable(Of Boolean) = Nothing
)
public:
Order(
Nullable<Decimal> amount = nullptr,
String^ currency = nullptr,
String^ discountCode = nullptr,
String^ affiliateId = nullptr,
String^ subaffiliateId = nullptr,
Uri^ referrerUri = nullptr,
Nullable<bool> isGift = nullptr,
Nullable<bool> hasGiftMessage = nullptr
)
new :
?amount : Nullable<decimal> *
?currency : string *
?discountCode : string *
?affiliateId : string *
?subaffiliateId : string *
?referrerUri : Uri *
?isGift : Nullable<bool> *
?hasGiftMessage : Nullable<bool>
(* Defaults:
let _amount = defaultArg amount null
let _currency = defaultArg currency null
let _discountCode = defaultArg discountCode null
let _affiliateId = defaultArg affiliateId null
let _subaffiliateId = defaultArg subaffiliateId null
let _referrerUri = defaultArg referrerUri null
let _isGift = defaultArg isGift null
let _hasGiftMessage = defaultArg hasGiftMessage null
*)
-> Order
Parameters
- amount (Optional)
- Type: SystemNullableDecimal
The total order amount for the transaction. - currency (Optional)
- Type: SystemString
The ISO 4217 currency code for the currency
used in the transaction. - discountCode (Optional)
- Type: SystemString
The discount code applied to the
transaction. If multiple discount codes were used, please separate
them with a comma. - affiliateId (Optional)
- Type: SystemString
The ID of the affiliate where the order is
coming from. - subaffiliateId (Optional)
- Type: SystemString
The ID of the sub-affiliate where the
order is coming from. - referrerUri (Optional)
- Type: SystemUri
The URI of the referring site for this
order. - isGift (Optional)
- Type: SystemNullableBoolean
Whether order was marked as a gift by the
purchaser. - hasGiftMessage (Optional)
- Type: SystemNullableBoolean
Whether the purchaser included a gift
message.
See Also