Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentRegistrationAllOf" /> class.
 /// </summary>
 /// <param name="originalTransactionType">Defines the type of the original transaction that is being evaluated for the Fraud Score..</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.</param>
 public PaymentRegistrationAllOf(string originalTransactionType = default(string), IssuerResponse issuerResponse = default(IssuerResponse), VerificationAvs verificationAvs = default(VerificationAvs), Verification3ds verification3ds = default(Verification3ds), VerificationCvv verificationCvv = default(VerificationCvv), RegistrationMethod registrationMethod = default(RegistrationMethod))
 {
     this.OriginalTransactionType = originalTransactionType;
     this.IssuerResponse          = issuerResponse;
     this.VerificationAvs         = verificationAvs;
     this.Verification3ds         = verification3ds;
     this.VerificationCvv         = verificationCvv;
     this.RegistrationMethod      = registrationMethod;
 }
Esempio n. 2
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;
 }