コード例 #1
0
ファイル: Invoice.cs プロジェクト: ramil91/square-dotnet-sdk
 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;
 }
コード例 #2
0
ファイル: Invoice.cs プロジェクト: square/square-dotnet-sdk
 /// <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;
 }
コード例 #3
0
ファイル: Invoice.cs プロジェクト: square/square-dotnet-sdk
 /// <summary>
 /// PrimaryRecipient.
 /// </summary>
 /// <param name="primaryRecipient"> primaryRecipient. </param>
 /// <returns> Builder. </returns>
 public Builder PrimaryRecipient(Models.InvoiceRecipient primaryRecipient)
 {
     this.primaryRecipient = primaryRecipient;
     return(this);
 }
コード例 #4
0
ファイル: Invoice.cs プロジェクト: okenshields/test-dotnet
 public Builder PrimaryRecipient(Models.InvoiceRecipient value)
 {
     primaryRecipient = value;
     return(this);
 }