Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentRegistration" /> class.
 /// </summary>
 /// <param name="merchantRef">Merchant reference code. Used by FirstAPI and reflected in settlement records and webhook notifications. Typically, the merchantRef field is the purchase order number or unique sequence value associated to a given transaction..</param>
 /// <param name="transactionType">Type of transaction merchant wants to process. (required).</param>
 /// <param name="customer">customer (required).</param>
 /// <param name="merchant">merchant (required).</param>
 /// <param name="device">device.</param>
 /// <param name="userDefined">A JSON object that can carry any additional information that might be helpful for fraud detection..</param>
 /// <param name="originalTransactionType">Defines the type of the original transaction that is being evaluated for the Fraud Score. (required).</param>
 /// <param name="issuerResponse">issuerResponse.</param>
 /// <param name="verificationAvs">verificationAvs.</param>
 /// <param name="verification3ds">verification3ds.</param>
 /// <param name="verificationCvv">verificationCvv.</param>
 /// <param name="registrationMethod">registrationMethod (required).</param>
 public PaymentRegistration(string merchantRef = default(string), string transactionType = default(string), Customer customer = default(Customer), Merchant merchant = default(Merchant), FraudRegistrationDevice device = default(FraudRegistrationDevice), Object userDefined = default(Object), string originalTransactionType = default(string), IssuerResponse issuerResponse = default(IssuerResponse), VerificationAvs verificationAvs = default(VerificationAvs), Verification3ds verification3ds = default(Verification3ds), VerificationCvv verificationCvv = default(VerificationCvv), RegistrationMethod registrationMethod = default(RegistrationMethod))
 {
     // to ensure "transactionType" is required (not null)
     this.TransactionType = transactionType ?? throw new ArgumentNullException("transactionType is a required property for PaymentRegistration and cannot be null");
     // to ensure "customer" is required (not null)
     this.Customer = customer ?? throw new ArgumentNullException("customer is a required property for PaymentRegistration and cannot be null");
     // to ensure "merchant" is required (not null)
     this.Merchant = merchant ?? throw new ArgumentNullException("merchant is a required property for PaymentRegistration and cannot be null");
     // to ensure "originalTransactionType" is required (not null)
     this.OriginalTransactionType = originalTransactionType ?? throw new ArgumentNullException("originalTransactionType is a required property for PaymentRegistration and cannot be null");
     // to ensure "registrationMethod" is required (not null)
     this.RegistrationMethod = registrationMethod ?? throw new ArgumentNullException("registrationMethod is a required property for PaymentRegistration and cannot be null");
     this.MerchantRef        = merchantRef;
     this.Device             = device;
     this.UserDefined        = userDefined;
     this.IssuerResponse     = issuerResponse;
     this.VerificationAvs    = verificationAvs;
     this.Verification3ds    = verification3ds;
     this.VerificationCvv    = verificationCvv;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClientRegistration" /> class.
 /// </summary>
 /// <param name="merchantRef">Merchant reference code. Used by FirstAPI and reflected in settlement records and webhook notifications. Typically, the merchantRef field is the purchase order number or unique sequence value associated to a given transaction..</param>
 /// <param name="transactionType">Type of transaction merchant wants to process. (required).</param>
 /// <param name="customer">customer (required).</param>
 /// <param name="merchant">merchant (required).</param>
 /// <param name="device">device.</param>
 /// <param name="userDefined">A JSON object that can carry any additional information that might be helpful for fraud detection..</param>
 /// <param name="originalTransactionType">Defines the type of the original transaction that is being evaluated for the Fraud Score. (required).</param>
 public ClientRegistration(string merchantRef = default(string), string transactionType = default(string), Customer customer = default(Customer), Merchant merchant = default(Merchant), FraudRegistrationDevice device = default(FraudRegistrationDevice), Object userDefined = default(Object), string originalTransactionType = default(string))
 {
     // to ensure "transactionType" is required (not null)
     this.TransactionType = transactionType ?? throw new ArgumentNullException("transactionType is a required property for ClientRegistration and cannot be null");
     // to ensure "customer" is required (not null)
     this.Customer = customer ?? throw new ArgumentNullException("customer is a required property for ClientRegistration and cannot be null");
     // to ensure "merchant" is required (not null)
     this.Merchant = merchant ?? throw new ArgumentNullException("merchant is a required property for ClientRegistration and cannot be null");
     // to ensure "originalTransactionType" is required (not null)
     this.OriginalTransactionType = originalTransactionType ?? throw new ArgumentNullException("originalTransactionType is a required property for ClientRegistration and cannot be null");
     this.MerchantRef             = merchantRef;
     this.Device      = device;
     this.UserDefined = userDefined;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ScoreOnlyRequest" /> class.
 /// </summary>
 /// <param name="merchantRef">Merchant reference code. Used by FirstAPI and reflected in settlement records and Webhook notifications. Typically, the merchantRef field is the purchase order number or unique sequence value associated to a given transaction..</param>
 /// <param name="transactionType">Type of transaction merchant wants to process. (required).</param>
 /// <param name="originalTransactionType">Defines the type of the original transaction that is being evaluated for the Fraud Score. (required).</param>
 /// <param name="originalTransactionId">The unique ID of this transaction. Must be unique for the entire system (not just within a specific merchant or industry). Subsequent requests related to the same transaction must have the same transactionId (e.g. transaction/deposit or transaction/authorization-reversal). This field is used for matching transactions with settlement and chargeback information. If there is no such ID available you may wish to compose one from fields available in both systems. Consider including backend, issuer, merchant id, date and time, amount, etc. as necessary. (required).</param>
 /// <param name="amount">The amount processed for the original transaction. (required).</param>
 /// <param name="currencyCode">The currency of the original transaction. (required).</param>
 /// <param name="customer">customer.</param>
 /// <param name="billingAddress">billingAddress.</param>
 /// <param name="device">device.</param>
 /// <param name="loyalty">loyalty.</param>
 /// <param name="payment">payment (required).</param>
 /// <param name="merchant">merchant (required).</param>
 /// <param name="order">order.</param>
 /// <param name="userDefined">A JSON object that can carry any additional information that might be helpful for fraud detection..</param>
 public ScoreOnlyRequest(string merchantRef = default(string), string transactionType = default(string), OriginalTransactionTypeEnum originalTransactionType = default(OriginalTransactionTypeEnum), string originalTransactionId = default(string), string amount = default(string), string currencyCode = default(string), Customer customer = default(Customer), BillingAddress billingAddress = default(BillingAddress), Device device = default(Device), Loyalty loyalty = default(Loyalty), Payment payment = default(Payment), Merchant merchant = default(Merchant), FraudOrder order = default(FraudOrder), Object userDefined = default(Object))
 {
     // to ensure "transactionType" is required (not null)
     this.TransactionType         = transactionType ?? throw new ArgumentNullException("transactionType is a required property for ScoreOnlyRequest and cannot be null");
     this.OriginalTransactionType = originalTransactionType;
     // to ensure "originalTransactionId" is required (not null)
     this.OriginalTransactionId = originalTransactionId ?? throw new ArgumentNullException("originalTransactionId is a required property for ScoreOnlyRequest and cannot be null");
     // to ensure "amount" is required (not null)
     this.Amount = amount ?? throw new ArgumentNullException("amount is a required property for ScoreOnlyRequest and cannot be null");
     // to ensure "currencyCode" is required (not null)
     this.CurrencyCode = currencyCode ?? throw new ArgumentNullException("currencyCode is a required property for ScoreOnlyRequest and cannot be null");
     // to ensure "payment" is required (not null)
     this.Payment = payment ?? throw new ArgumentNullException("payment is a required property for ScoreOnlyRequest and cannot be null");
     // to ensure "merchant" is required (not null)
     this.Merchant       = merchant ?? throw new ArgumentNullException("merchant is a required property for ScoreOnlyRequest and cannot be null");
     this.MerchantRef    = merchantRef;
     this.Customer       = customer;
     this.BillingAddress = billingAddress;
     this.Device         = device;
     this.Loyalty        = loyalty;
     this.Order          = order;
     this.UserDefined    = userDefined;
 }