Ejemplo n.º 1
0
 public Invoice(string id         = null,
                int?version       = null,
                string locationId = null,
                string orderId    = null,
                Models.InvoiceRecipient primaryRecipient             = null,
                IList <Models.InvoicePaymentRequest> paymentRequests = null,
                string invoiceNumber = null,
                string title         = null,
                string description   = null,
                string scheduledAt   = null,
                string publicUrl     = null,
                Models.Money nextPaymentAmountMoney = null,
                string status    = null,
                string timezone  = null,
                string createdAt = null,
                string updatedAt = null)
 {
     Id                     = id;
     Version                = version;
     LocationId             = locationId;
     OrderId                = orderId;
     PrimaryRecipient       = primaryRecipient;
     PaymentRequests        = paymentRequests;
     InvoiceNumber          = invoiceNumber;
     Title                  = title;
     Description            = description;
     ScheduledAt            = scheduledAt;
     PublicUrl              = publicUrl;
     NextPaymentAmountMoney = nextPaymentAmountMoney;
     Status                 = status;
     Timezone               = timezone;
     CreatedAt              = createdAt;
     UpdatedAt              = updatedAt;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Invoice"/> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="version">version.</param>
 /// <param name="locationId">location_id.</param>
 /// <param name="orderId">order_id.</param>
 /// <param name="primaryRecipient">primary_recipient.</param>
 /// <param name="paymentRequests">payment_requests.</param>
 /// <param name="deliveryMethod">delivery_method.</param>
 /// <param name="invoiceNumber">invoice_number.</param>
 /// <param name="title">title.</param>
 /// <param name="description">description.</param>
 /// <param name="scheduledAt">scheduled_at.</param>
 /// <param name="publicUrl">public_url.</param>
 /// <param name="nextPaymentAmountMoney">next_payment_amount_money.</param>
 /// <param name="status">status.</param>
 /// <param name="timezone">timezone.</param>
 /// <param name="createdAt">created_at.</param>
 /// <param name="updatedAt">updated_at.</param>
 /// <param name="acceptedPaymentMethods">accepted_payment_methods.</param>
 /// <param name="customFields">custom_fields.</param>
 /// <param name="subscriptionId">subscription_id.</param>
 public Invoice(
     string id         = null,
     int?version       = null,
     string locationId = null,
     string orderId    = null,
     Models.InvoiceRecipient primaryRecipient             = null,
     IList <Models.InvoicePaymentRequest> paymentRequests = null,
     string deliveryMethod = null,
     string invoiceNumber  = null,
     string title          = null,
     string description    = null,
     string scheduledAt    = null,
     string publicUrl      = null,
     Models.Money nextPaymentAmountMoney = null,
     string status    = null,
     string timezone  = null,
     string createdAt = null,
     string updatedAt = null,
     Models.InvoiceAcceptedPaymentMethods acceptedPaymentMethods = null,
     IList <Models.InvoiceCustomField> customFields = null,
     string subscriptionId = null)
 {
     this.Id                     = id;
     this.Version                = version;
     this.LocationId             = locationId;
     this.OrderId                = orderId;
     this.PrimaryRecipient       = primaryRecipient;
     this.PaymentRequests        = paymentRequests;
     this.DeliveryMethod         = deliveryMethod;
     this.InvoiceNumber          = invoiceNumber;
     this.Title                  = title;
     this.Description            = description;
     this.ScheduledAt            = scheduledAt;
     this.PublicUrl              = publicUrl;
     this.NextPaymentAmountMoney = nextPaymentAmountMoney;
     this.Status                 = status;
     this.Timezone               = timezone;
     this.CreatedAt              = createdAt;
     this.UpdatedAt              = updatedAt;
     this.AcceptedPaymentMethods = acceptedPaymentMethods;
     this.CustomFields           = customFields;
     this.SubscriptionId         = subscriptionId;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// PrimaryRecipient.
 /// </summary>
 /// <param name="primaryRecipient"> primaryRecipient. </param>
 /// <returns> Builder. </returns>
 public Builder PrimaryRecipient(Models.InvoiceRecipient primaryRecipient)
 {
     this.primaryRecipient = primaryRecipient;
     return(this);
 }
Ejemplo n.º 4
0
 public Builder PrimaryRecipient(Models.InvoiceRecipient value)
 {
     primaryRecipient = value;
     return(this);
 }