Esempio n. 1
0
        /// <summary>
        /// The constructor to instantiate a recipient object
        /// </summary>
        /// <param name="id"></param>
        /// <param name="type"></param>
        /// <param name="referenceId"></param>
        /// <param name="email"></param>
        /// <param name="name"></param>
        /// <param name="firstName"></param>
        /// <param name="lastName"></param>
        /// <param name="status"></param>
        /// <param name="timeZone"></param>
        /// <param name="language"></param>
        /// <param name="dob"></param>
        /// <param name="gravatarUrl"></param>
        /// <param name="compliance"></param>
        /// <param name="payout"></param>
        /// <param name="address"></param>

        public Recipient(string type, string email, string name, string firstName, string lastName, string id = null, string referenceId = null, string status = null, string timeZone = null, string language = null, string dob = null, string gravatarUrl = null, Compliance compliance = null, List <RecipientAccount> recipientAccounts = null, Address address = null)
        {
            this.id                = id;
            this.type              = type;
            this.referenceId       = referenceId;
            this.email             = email;
            this.name              = name;
            this.firstName         = firstName;
            this.lastName          = lastName;
            this.status            = status;
            this.timeZone          = timeZone;
            this.language          = language;
            this.dob               = dob;
            this.gravatarUrl       = gravatarUrl;
            this.compliance        = compliance;
            this.recipientAccounts = recipientAccounts;
            this.address           = address;
        }
Esempio n. 2
0
        /// <summary>
        /// The constructor to instantiate a payment
        /// </summary>
        /// <param name="recipient"></param>
        /// <param name="sourceAmount"></param>
        /// <param name="memo"></param>
        /// <param name="targetAmount"></param>
        /// <param name="targetCurrency"></param>
        /// <param name="exchangeRate"></param>
        /// <param name="fees"></param>
        /// <param name="recipientFees"></param>
        /// <param name="fxRate"></param>
        /// <param name="processedAt"></param>
        /// <param name="createdAt"></param>
        /// <param name="updatedAt"></param>
        /// <param name="merchantFees"></param>
        /// <param name="sourceCurrency"></param>
        /// <param name="batchId"></param>
        /// <param name="id"></param>
        /// <param name="status"></param>
        /// <param name="compliance"></param>
        public Payment(Recipient recipient, double sourceAmount, string sourceCurrency, double targetAmount, string targetCurrency, string id = null, string memo = null, double exchangeRate = 0,
                       double fees         = 0, double recipientFees = 0, double fxRate    = 0, string processedAt       = null, string createdAt = null, string updatedAt = null,
                       double merchantFees = 0, string batchId       = null, string status = null, Compliance compliance = null)

        {
            this.sourceAmount   = sourceAmount;
            this.targetAmount   = targetAmount;
            this.targetCurrency = targetCurrency;
            this.exchangeRate   = exchangeRate;
            this.fees           = fees;
            this.recipientFees  = recipientFees;
            this.fxRate         = fxRate;
            this.memo           = memo;
            this.processedAt    = processedAt;
            this.createdAt      = createdAt;
            this.updatedAt      = updatedAt;
            this.merchantFees   = merchantFees;
            this.sourceCurrency = sourceCurrency;
            this.batchId        = batchId;
            this.id             = id;
            this.status         = status;
            this.recipient      = recipient;
            this.compliance     = compliance;
        }
        public Payment(Recipient recipient, double amount, string currency, double sourceAmount = 0, string sourceCurrency = null, double targetAmount = 0, string targetCurrency = null, string id = null, string memo = null, double exchangeRate = 0,
                       double fees         = 0, double recipientFees = 0, double fxRate    = 0, string processedAt       = null, string createdAt = null, string updatedAt = null,
                       double merchantFees = 0, string batchId       = null, string status = null, Compliance compliance = null) : this(recipient, sourceAmount, sourceCurrency, targetAmount, targetCurrency, id, memo, exchangeRate, fees, recipientFees, fxRate, processedAt, createdAt, updatedAt, merchantFees, batchId, status, compliance)

        {
            this.amount   = amount;
            this.currency = currency;
        }