Пример #1
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;
 }
Пример #2
0
 /// <summary>
 /// AcceptedPaymentMethods.
 /// </summary>
 /// <param name="acceptedPaymentMethods"> acceptedPaymentMethods. </param>
 /// <returns> Builder. </returns>
 public Builder AcceptedPaymentMethods(Models.InvoiceAcceptedPaymentMethods acceptedPaymentMethods)
 {
     this.acceptedPaymentMethods = acceptedPaymentMethods;
     return(this);
 }