/// <summary>
 /// Initializes a new instance of the <see cref="V1PaymentSurcharge" /> class.
 /// </summary>
 /// <param name="Name">The name of the surcharge..</param>
 /// <param name="AppliedMoney">The amount of money applied to the order as a result of the surcharge..</param>
 /// <param name="Rate">The amount of the surcharge as a percentage. The percentage is provided as a string representing the decimal equivalent of the percentage. For example, \&quot;0.7\&quot; corresponds to a 7% surcharge. Exactly one of rate or amount_money should be set..</param>
 /// <param name="AmountMoney">The amount of the surcharge as a Money object. Exactly one of rate or amount_money should be set..</param>
 /// <param name="Type">Indicates the source of the surcharge. For example, if it was applied as an automatic gratuity for a large group..</param>
 /// <param name="Taxable">Indicates whether the surcharge is taxable..</param>
 /// <param name="Taxes">The list of taxes that should be applied to the surcharge..</param>
 /// <param name="SurchargeId">A Square-issued unique identifier associated with the surcharge..</param>
 public V1PaymentSurcharge(string Name = default(string), V1Money AppliedMoney = default(V1Money), string Rate = default(string), V1Money AmountMoney = default(V1Money), TypeEnum?Type = default(TypeEnum?), bool?Taxable = default(bool?), List <V1PaymentTax> Taxes = default(List <V1PaymentTax>), string SurchargeId = default(string))
 {
     this.Name         = Name;
     this.AppliedMoney = AppliedMoney;
     this.Rate         = Rate;
     this.AmountMoney  = AmountMoney;
     this.Type         = Type;
     this.Taxable      = Taxable;
     this.Taxes        = Taxes;
     this.SurchargeId  = SurchargeId;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V1Discount" /> class.
 /// </summary>
 /// <param name="Id">The discount&#39;s unique ID..</param>
 /// <param name="Name">The discount&#39;s name..</param>
 /// <param name="Rate">The rate of the discount, as a string representation of a decimal number. A value of 0.07 corresponds to a rate of 7%. This rate is 0 if discount_type is VARIABLE_PERCENTAGE..</param>
 /// <param name="AmountMoney">The amount of the discount. This amount is 0 if discount_type is VARIABLE_AMOUNT. This field is not included for rate-based discounts..</param>
 /// <param name="DiscountType">Indicates whether the discount is a FIXED value or entered at the time of sale. See [V1DiscountDiscountType](#type-v1discountdiscounttype) for possible values.</param>
 /// <param name="PinRequired">Indicates whether a mobile staff member needs to enter their PIN to apply the discount to a payment..</param>
 /// <param name="Color">The color of the discount&#39;s display label in Square Register, if not the default color. The default color is 9da2a6. See [V1DiscountColor](#type-v1discountcolor) for possible values.</param>
 /// <param name="V2Id">The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID..</param>
 public V1Discount(string Id = default(string), string Name = default(string), string Rate = default(string), V1Money AmountMoney = default(V1Money), DiscountTypeEnum?DiscountType = default(DiscountTypeEnum?), bool?PinRequired = default(bool?), ColorEnum?Color = default(ColorEnum?), string V2Id = default(string))
 {
     this.Id           = Id;
     this.Name         = Name;
     this.Rate         = Rate;
     this.AmountMoney  = AmountMoney;
     this.DiscountType = DiscountType;
     this.PinRequired  = PinRequired;
     this.Color        = Color;
     this.V2Id         = V2Id;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V1SettlementEntry" /> class.
 /// </summary>
 /// <param name="PaymentId">The settlement&#39;s unique identifier..</param>
 /// <param name="Type">The settlement&#39;s current status..</param>
 /// <param name="AmountMoney">The total amount of money this entry contributes to the total settlement amount..</param>
 /// <param name="FeeMoney">The amount of all Square fees associated with this settlement entry. This value is always negative or zero..</param>
 public V1SettlementEntry(string PaymentId = default(string), TypeEnum?Type = default(TypeEnum?), V1Money AmountMoney = default(V1Money), V1Money FeeMoney = default(V1Money))
 {
     this.PaymentId   = PaymentId;
     this.Type        = Type;
     this.AmountMoney = AmountMoney;
     this.FeeMoney    = FeeMoney;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V1PaymentTax" /> class.
 /// </summary>
 /// <param name="Errors">Any errors that occurred during the request..</param>
 /// <param name="Name">The merchant-defined name of the tax..</param>
 /// <param name="AppliedMoney">The amount of money that this tax adds to the payment..</param>
 /// <param name="Rate">The rate of the tax, as a string representation of a decimal number. A value of 0.07 corresponds to a rate of 7%..</param>
 /// <param name="InclusionType">Whether the tax is an ADDITIVE tax or an INCLUSIVE tax. See [V1PaymentTaxInclusionType](#type-v1paymenttaxinclusiontype) for possible values.</param>
 /// <param name="FeeId">The ID of the tax, if available. Taxes applied in older versions of Square Register might not have an ID..</param>
 public V1PaymentTax(List <Error> Errors = default(List <Error>), string Name = default(string), V1Money AppliedMoney = default(V1Money), string Rate = default(string), InclusionTypeEnum?InclusionType = default(InclusionTypeEnum?), string FeeId = default(string))
 {
     this.Errors        = Errors;
     this.Name          = Name;
     this.AppliedMoney  = AppliedMoney;
     this.Rate          = Rate;
     this.InclusionType = InclusionType;
     this.FeeId         = FeeId;
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1CreateRefundRequest" /> class.
 /// </summary>
 /// <param name="PaymentId">The ID of the payment to refund. If you are creating a &#x60;PARTIAL&#x60; refund for a split tender payment, instead provide the id of the particular tender you want to refund. (required).</param>
 /// <param name="Type">TThe type of refund (FULL or PARTIAL). See [V1CreateRefundRequestType](#type-v1createrefundrequesttype) for possible values (required).</param>
 /// <param name="Reason">The reason for the refund. (required).</param>
 /// <param name="RefundedMoney">The amount of money to refund. Required only for PARTIAL refunds..</param>
 /// <param name="RequestIdempotenceKey">An optional key to ensure idempotence if you issue the same PARTIAL refund request more than once..</param>
 public V1CreateRefundRequest(string PaymentId = default(string), string Type = default(string), string Reason = default(string), V1Money RefundedMoney = default(V1Money), string RequestIdempotenceKey = default(string))
 {
     // to ensure "PaymentId" is required (not null)
     if (PaymentId == null)
     {
         throw new InvalidDataException("PaymentId is a required property for V1CreateRefundRequest and cannot be null");
     }
     else
     {
         this.PaymentId = PaymentId;
     }
     // to ensure "Type" is required (not null)
     if (Type == null)
     {
         throw new InvalidDataException("Type is a required property for V1CreateRefundRequest and cannot be null");
     }
     else
     {
         this.Type = Type;
     }
     // to ensure "Reason" is required (not null)
     if (Reason == null)
     {
         throw new InvalidDataException("Reason is a required property for V1CreateRefundRequest and cannot be null");
     }
     else
     {
         this.Reason = Reason;
     }
     this.RefundedMoney         = RefundedMoney;
     this.RequestIdempotenceKey = RequestIdempotenceKey;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V1Settlement" /> class.
 /// </summary>
 /// <param name="Id">The settlement&#39;s unique identifier..</param>
 /// <param name="Status">The settlement&#39;s current status. See [V1SettlementStatus](#type-v1settlementstatus) for possible values.</param>
 /// <param name="TotalMoney">The amount of money involved in the settlement. A positive amount indicates a deposit, and a negative amount indicates a withdrawal. This amount is never zero..</param>
 /// <param name="InitiatedAt">The time when the settlement was submitted for deposit or withdrawal, in ISO 8601 format..</param>
 /// <param name="BankAccountId">The Square-issued unique identifier for the bank account associated with the settlement..</param>
 /// <param name="Entries">The entries included in this settlement..</param>
 public V1Settlement(string Id = default(string), StatusEnum?Status = default(StatusEnum?), V1Money TotalMoney = default(V1Money), string InitiatedAt = default(string), string BankAccountId = default(string), List <V1SettlementEntry> Entries = default(List <V1SettlementEntry>))
 {
     this.Id            = Id;
     this.Status        = Status;
     this.TotalMoney    = TotalMoney;
     this.InitiatedAt   = InitiatedAt;
     this.BankAccountId = BankAccountId;
     this.Entries       = Entries;
 }
Esempio n. 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1Tender" /> class.
 /// </summary>
 /// <param name="Id">The tender&#39;s unique ID..</param>
 /// <param name="Type">The type of tender..</param>
 /// <param name="Name">A human-readable description of the tender..</param>
 /// <param name="EmployeeId">The ID of the employee that processed the tender..</param>
 /// <param name="ReceiptUrl">The URL of the receipt for the tender..</param>
 /// <param name="CardBrand">The brand of credit card provided..</param>
 /// <param name="PanSuffix">The last four digits of the provided credit card&#39;s account number..</param>
 /// <param name="EntryMethod">The tender&#39;s unique ID..</param>
 /// <param name="PaymentNote">Notes entered by the merchant about the tender at the time of payment, if any. Typically only present for tender with the type: OTHER..</param>
 /// <param name="TotalMoney">The total amount of money provided in this form of tender..</param>
 /// <param name="TenderedMoney">The amount of total_money applied to the payment..</param>
 /// <param name="ChangeBackMoney">The amount of total_money returned to the buyer as change..</param>
 /// <param name="RefundedMoney">The total of all refunds applied to this tender. This amount is always negative or zero..</param>
 /// <param name="IsExchange">Indicates whether or not the tender is associated with an exchange. If is_exchange is true, the tender represents the value of goods returned in an exchange not the actual money paid. The exchange value reduces the tender amounts needed to pay for items purchased in the exchange..</param>
 public V1Tender(string Id = default(string), TypeEnum?Type = default(TypeEnum?), string Name = default(string), string EmployeeId = default(string), string ReceiptUrl = default(string), CardBrandEnum?CardBrand = default(CardBrandEnum?), string PanSuffix = default(string), EntryMethodEnum?EntryMethod = default(EntryMethodEnum?), string PaymentNote = default(string), V1Money TotalMoney = default(V1Money), V1Money TenderedMoney = default(V1Money), V1Money ChangeBackMoney = default(V1Money), V1Money RefundedMoney = default(V1Money), bool?IsExchange = default(bool?))
 {
     this.Id              = Id;
     this.Type            = Type;
     this.Name            = Name;
     this.EmployeeId      = EmployeeId;
     this.ReceiptUrl      = ReceiptUrl;
     this.CardBrand       = CardBrand;
     this.PanSuffix       = PanSuffix;
     this.EntryMethod     = EntryMethod;
     this.PaymentNote     = PaymentNote;
     this.TotalMoney      = TotalMoney;
     this.TenderedMoney   = TenderedMoney;
     this.ChangeBackMoney = ChangeBackMoney;
     this.RefundedMoney   = RefundedMoney;
     this.IsExchange      = IsExchange;
 }
Esempio n. 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1Refund" /> class.
 /// </summary>
 /// <param name="Type">The type of refund See [V1RefundType](#type-v1refundtype) for possible values.</param>
 /// <param name="Reason">The merchant-specified reason for the refund..</param>
 /// <param name="RefundedMoney">The amount of money refunded. This amount is always negative..</param>
 /// <param name="RefundedProcessingFeeMoney">The amount of processing fee money refunded. This amount is always positive..</param>
 /// <param name="RefundedTaxMoney">The total amount of tax money refunded. This amount is always negative..</param>
 /// <param name="RefundedAdditiveTaxMoney">The amount of additive tax money refunded. This amount is always negative..</param>
 /// <param name="RefundedAdditiveTax">All of the additive taxes associated with the refund..</param>
 /// <param name="RefundedInclusiveTaxMoney">The amount of inclusive tax money refunded. This amount is always negative..</param>
 /// <param name="RefundedInclusiveTax">All of the inclusive taxes associated with the refund..</param>
 /// <param name="RefundedTipMoney">The amount of tip money refunded. This amount is always negative..</param>
 /// <param name="RefundedDiscountMoney">The amount of discount money refunded. This amount is always positive..</param>
 /// <param name="RefundedSurchargeMoney">The amount of surcharge money refunded. This amount is always negative..</param>
 /// <param name="RefundedSurcharges">A list of all surcharges associated with the refund..</param>
 /// <param name="CreatedAt">The time when the merchant initiated the refund for Square to process, in ISO 8601 format..</param>
 /// <param name="ProcessedAt">The time when Square processed the refund on behalf of the merchant, in ISO 8601 format..</param>
 /// <param name="PaymentId">A Square-issued ID associated with the refund. For single-tender refunds, payment_id is the ID of the original payment ID. For split-tender refunds, payment_id is the ID of the original tender. For exchange-based refunds (is_exchange &#x3D;&#x3D; true), payment_id is the ID of the original payment ID even if the payment includes other tenders..</param>
 /// <param name="MerchantId">.</param>
 /// <param name="IsExchange">Indicates whether or not the refund is associated with an exchange. If is_exchange is true, the refund reflects the value of goods returned in the exchange not the total money refunded..</param>
 public V1Refund(string Type = default(string), string Reason = default(string), V1Money RefundedMoney = default(V1Money), V1Money RefundedProcessingFeeMoney = default(V1Money), V1Money RefundedTaxMoney = default(V1Money), V1Money RefundedAdditiveTaxMoney = default(V1Money), List <V1PaymentTax> RefundedAdditiveTax = default(List <V1PaymentTax>), V1Money RefundedInclusiveTaxMoney = default(V1Money), List <V1PaymentTax> RefundedInclusiveTax = default(List <V1PaymentTax>), V1Money RefundedTipMoney = default(V1Money), V1Money RefundedDiscountMoney = default(V1Money), V1Money RefundedSurchargeMoney = default(V1Money), List <V1PaymentSurcharge> RefundedSurcharges = default(List <V1PaymentSurcharge>), string CreatedAt = default(string), string ProcessedAt = default(string), string PaymentId = default(string), string MerchantId = default(string), bool?IsExchange = default(bool?))
 {
     this.Type          = Type;
     this.Reason        = Reason;
     this.RefundedMoney = RefundedMoney;
     this.RefundedProcessingFeeMoney = RefundedProcessingFeeMoney;
     this.RefundedTaxMoney           = RefundedTaxMoney;
     this.RefundedAdditiveTaxMoney   = RefundedAdditiveTaxMoney;
     this.RefundedAdditiveTax        = RefundedAdditiveTax;
     this.RefundedInclusiveTaxMoney  = RefundedInclusiveTaxMoney;
     this.RefundedInclusiveTax       = RefundedInclusiveTax;
     this.RefundedTipMoney           = RefundedTipMoney;
     this.RefundedDiscountMoney      = RefundedDiscountMoney;
     this.RefundedSurchargeMoney     = RefundedSurchargeMoney;
     this.RefundedSurcharges         = RefundedSurcharges;
     this.CreatedAt   = CreatedAt;
     this.ProcessedAt = ProcessedAt;
     this.PaymentId   = PaymentId;
     this.MerchantId  = MerchantId;
     this.IsExchange  = IsExchange;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V1ModifierOption" /> class.
 /// </summary>
 /// <param name="Id">The modifier option&#39;s unique ID..</param>
 /// <param name="Name">The modifier option&#39;s name..</param>
 /// <param name="PriceMoney">The modifier option&#39;s price..</param>
 /// <param name="OnByDefault">If true, the modifier option is the default option in a modifier list for which selection_type is SINGLE..</param>
 /// <param name="Ordinal">Indicates the modifier option&#39;s list position when displayed in Square Register and the merchant dashboard. If more than one modifier option in the same modifier list has the same ordinal value, those options are displayed in alphabetical order..</param>
 /// <param name="ModifierListId">The ID of the modifier list the option belongs to..</param>
 /// <param name="V2Id">The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID..</param>
 public V1ModifierOption(string Id = default(string), string Name = default(string), V1Money PriceMoney = default(V1Money), bool?OnByDefault = default(bool?), int?Ordinal = default(int?), string ModifierListId = default(string), string V2Id = default(string))
 {
     this.Id             = Id;
     this.Name           = Name;
     this.PriceMoney     = PriceMoney;
     this.OnByDefault    = OnByDefault;
     this.Ordinal        = Ordinal;
     this.ModifierListId = ModifierListId;
     this.V2Id           = V2Id;
 }
Esempio n. 10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1PaymentDiscount" /> class.
 /// </summary>
 /// <param name="Name">The discount&#39;s name..</param>
 /// <param name="AppliedMoney">The amount of money that this discount adds to the payment (note that this value is always negative or zero)..</param>
 /// <param name="DiscountId">The ID of the applied discount, if available. Discounts applied in older versions of Square Register might not have an ID..</param>
 public V1PaymentDiscount(string Name = default(string), V1Money AppliedMoney = default(V1Money), string DiscountId = default(string))
 {
     this.Name         = Name;
     this.AppliedMoney = AppliedMoney;
     this.DiscountId   = DiscountId;
 }
Esempio n. 11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1Order" /> class.
 /// </summary>
 /// <param name="Errors">Any errors that occurred during the request..</param>
 /// <param name="Id">The order&#39;s unique identifier..</param>
 /// <param name="BuyerEmail">The email address of the order&#39;s buyer..</param>
 /// <param name="RecipientName">The name of the order&#39;s buyer..</param>
 /// <param name="RecipientPhoneNumber">The phone number to use for the order&#39;s delivery..</param>
 /// <param name="State">Whether the tax is an ADDITIVE tax or an INCLUSIVE tax. See [V1OrderState](#type-v1orderstate) for possible values.</param>
 /// <param name="ShippingAddress">The address to ship the order to..</param>
 /// <param name="SubtotalMoney">The amount of all items purchased in the order, before taxes and shipping..</param>
 /// <param name="TotalShippingMoney">The shipping cost for the order..</param>
 /// <param name="TotalTaxMoney">The total of all taxes applied to the order..</param>
 /// <param name="TotalPriceMoney">The total cost of the order..</param>
 /// <param name="TotalDiscountMoney">The total of all discounts applied to the order..</param>
 /// <param name="CreatedAt">The time when the order was created, in ISO 8601 format..</param>
 /// <param name="UpdatedAt">The time when the order was last modified, in ISO 8601 format..</param>
 /// <param name="ExpiresAt">The time when the order expires if no action is taken, in ISO 8601 format..</param>
 /// <param name="PaymentId">The unique identifier of the payment associated with the order..</param>
 /// <param name="BuyerNote">A note provided by the buyer when the order was created, if any..</param>
 /// <param name="CompletedNote">A note provided by the merchant when the order&#39;s state was set to COMPLETED, if any.</param>
 /// <param name="RefundedNote">A note provided by the merchant when the order&#39;s state was set to REFUNDED, if any..</param>
 /// <param name="CanceledNote">A note provided by the merchant when the order&#39;s state was set to CANCELED, if any..</param>
 /// <param name="Tender">The tender used to pay for the order..</param>
 /// <param name="OrderHistory">The history of actions associated with the order..</param>
 /// <param name="PromoCode">The promo code provided by the buyer, if any..</param>
 /// <param name="BtcReceiveAddress">For Bitcoin transactions, the address that the buyer sent Bitcoin to..</param>
 /// <param name="BtcPriceSatoshi">For Bitcoin transactions, the price of the buyer&#39;s order in satoshi (100 million satoshi equals 1 BTC)..</param>
 public V1Order(List <Error> Errors = default(List <Error>), string Id = default(string), string BuyerEmail = default(string), string RecipientName = default(string), string RecipientPhoneNumber = default(string), string State = default(string), Address ShippingAddress = default(Address), V1Money SubtotalMoney = default(V1Money), V1Money TotalShippingMoney = default(V1Money), V1Money TotalTaxMoney = default(V1Money), V1Money TotalPriceMoney = default(V1Money), V1Money TotalDiscountMoney = default(V1Money), string CreatedAt = default(string), string UpdatedAt = default(string), string ExpiresAt = default(string), string PaymentId = default(string), string BuyerNote = default(string), string CompletedNote = default(string), string RefundedNote = default(string), string CanceledNote = default(string), V1Tender Tender = default(V1Tender), List <V1OrderHistoryEntry> OrderHistory = default(List <V1OrderHistoryEntry>), string PromoCode = default(string), string BtcReceiveAddress = default(string), decimal?BtcPriceSatoshi = default(decimal?))
 {
     this.Errors               = Errors;
     this.Id                   = Id;
     this.BuyerEmail           = BuyerEmail;
     this.RecipientName        = RecipientName;
     this.RecipientPhoneNumber = RecipientPhoneNumber;
     this.State                = State;
     this.ShippingAddress      = ShippingAddress;
     this.SubtotalMoney        = SubtotalMoney;
     this.TotalShippingMoney   = TotalShippingMoney;
     this.TotalTaxMoney        = TotalTaxMoney;
     this.TotalPriceMoney      = TotalPriceMoney;
     this.TotalDiscountMoney   = TotalDiscountMoney;
     this.CreatedAt            = CreatedAt;
     this.UpdatedAt            = UpdatedAt;
     this.ExpiresAt            = ExpiresAt;
     this.PaymentId            = PaymentId;
     this.BuyerNote            = BuyerNote;
     this.CompletedNote        = CompletedNote;
     this.RefundedNote         = RefundedNote;
     this.CanceledNote         = CanceledNote;
     this.Tender               = Tender;
     this.OrderHistory         = OrderHistory;
     this.PromoCode            = PromoCode;
     this.BtcReceiveAddress    = BtcReceiveAddress;
     this.BtcPriceSatoshi      = BtcPriceSatoshi;
 }
Esempio n. 12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1Variation" /> class.
 /// </summary>
 /// <param name="Id">The item variation&#39;s unique ID..</param>
 /// <param name="Name">The item variation&#39;s name..</param>
 /// <param name="ItemId">The ID of the variation&#39;s associated item..</param>
 /// <param name="Ordinal">Indicates the variation&#39;s list position when displayed in Square Register and the merchant dashboard. If more than one variation for the same item has the same ordinal value, those variations are displayed in alphabetical order.</param>
 /// <param name="PricingType">Indicates whether the item variation&#39;s price is fixed or determined at the time of sale..</param>
 /// <param name="PriceMoney">The item variation&#39;s price, if any..</param>
 /// <param name="Sku">The item variation&#39;s SKU, if any..</param>
 /// <param name="TrackInventory">If true, inventory tracking is active for the variation..</param>
 /// <param name="InventoryAlertType">Indicates whether the item variation displays an alert when its inventory quantity is less than or equal to its inventory_alert_threshold..</param>
 /// <param name="InventoryAlertThreshold">If the inventory quantity for the variation is less than or equal to this value and inventory_alert_type is LOW_QUANTITY, the variation displays an alert in the merchant dashboard..</param>
 /// <param name="UserData">Arbitrary metadata associated with the variation. Cannot exceed 255 characters..</param>
 public V1Variation(string Id = default(string), string Name = default(string), string ItemId = default(string), int?Ordinal = default(int?), PricingTypeEnum?PricingType = default(PricingTypeEnum?), V1Money PriceMoney = default(V1Money), string Sku = default(string), bool?TrackInventory = default(bool?), InventoryAlertTypeEnum?InventoryAlertType = default(InventoryAlertTypeEnum?), int?InventoryAlertThreshold = default(int?), string UserData = default(string))
 {
     this.Id                      = Id;
     this.Name                    = Name;
     this.ItemId                  = ItemId;
     this.Ordinal                 = Ordinal;
     this.PricingType             = PricingType;
     this.PriceMoney              = PriceMoney;
     this.Sku                     = Sku;
     this.TrackInventory          = TrackInventory;
     this.InventoryAlertType      = InventoryAlertType;
     this.InventoryAlertThreshold = InventoryAlertThreshold;
     this.UserData                = UserData;
 }
Esempio n. 13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1CashDrawerShift" /> class.
 /// </summary>
 /// <param name="Id">The shift&#39;s unique ID..</param>
 /// <param name="EventType">The shift&#39;s current state. See [V1CashDrawerShiftEventType](#type-v1cashdrawershifteventtype) for possible values.</param>
 /// <param name="OpenedAt">The time when the shift began, in ISO 8601 format..</param>
 /// <param name="EndedAt">The time when the shift ended, in ISO 8601 format..</param>
 /// <param name="ClosedAt">The time when the shift was closed, in ISO 8601 format..</param>
 /// <param name="EmployeeIds">The IDs of all employees that were logged into Square Register at some point during the cash drawer shift..</param>
 /// <param name="OpeningEmployeeId">The ID of the employee that started the cash drawer shift..</param>
 /// <param name="EndingEmployeeId">The ID of the employee that ended the cash drawer shift..</param>
 /// <param name="ClosingEmployeeId">The ID of the employee that closed the cash drawer shift by auditing the cash drawer&#39;s contents..</param>
 /// <param name="Description">The time when the timecard was created, in ISO 8601 format..</param>
 /// <param name="StartingCashMoney">The amount of money in the cash drawer at the start of the shift..</param>
 /// <param name="CashPaymentMoney">The amount of money added to the cash drawer from cash payments..</param>
 /// <param name="CashRefundsMoney">The amount of money removed from the cash drawer from cash refunds. This value is always negative or zero..</param>
 /// <param name="CashPaidInMoney">The amount of money added to the cash drawer for reasons other than cash payments..</param>
 /// <param name="CashPaidOutMoney">The amount of money removed from the cash drawer for reasons other than cash refunds..</param>
 /// <param name="ExpectedCashMoney">The amount of money that should be in the cash drawer at the end of the shift, based on the shift&#39;s other money amounts..</param>
 /// <param name="ClosedCashMoney">The amount of money found in the cash drawer at the end of the shift by an auditing employee..</param>
 /// <param name="Device">The device running Square Register that was connected to the cash drawer..</param>
 /// <param name="Events">All of the events (payments, refunds, and so on) that involved the cash drawer during the shift..</param>
 public V1CashDrawerShift(string Id = default(string), EventTypeEnum?EventType = default(EventTypeEnum?), string OpenedAt = default(string), string EndedAt = default(string), string ClosedAt = default(string), List <string> EmployeeIds = default(List <string>), string OpeningEmployeeId = default(string), string EndingEmployeeId = default(string), string ClosingEmployeeId = default(string), string Description = default(string), V1Money StartingCashMoney = default(V1Money), V1Money CashPaymentMoney = default(V1Money), V1Money CashRefundsMoney = default(V1Money), V1Money CashPaidInMoney = default(V1Money), V1Money CashPaidOutMoney = default(V1Money), V1Money ExpectedCashMoney = default(V1Money), V1Money ClosedCashMoney = default(V1Money), Device Device = default(Device), List <V1CashDrawerEvent> Events = default(List <V1CashDrawerEvent>))
 {
     this.Id                = Id;
     this.EventType         = EventType;
     this.OpenedAt          = OpenedAt;
     this.EndedAt           = EndedAt;
     this.ClosedAt          = ClosedAt;
     this.EmployeeIds       = EmployeeIds;
     this.OpeningEmployeeId = OpeningEmployeeId;
     this.EndingEmployeeId  = EndingEmployeeId;
     this.ClosingEmployeeId = ClosingEmployeeId;
     this.Description       = Description;
     this.StartingCashMoney = StartingCashMoney;
     this.CashPaymentMoney  = CashPaymentMoney;
     this.CashRefundsMoney  = CashRefundsMoney;
     this.CashPaidInMoney   = CashPaidInMoney;
     this.CashPaidOutMoney  = CashPaidOutMoney;
     this.ExpectedCashMoney = ExpectedCashMoney;
     this.ClosedCashMoney   = ClosedCashMoney;
     this.Device            = Device;
     this.Events            = Events;
 }
Esempio n. 14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1Refund" /> class.
 /// </summary>
 /// <param name="Type">The type of refund .</param>
 /// <param name="Reason">The merchant-specified reason for the refund..</param>
 /// <param name="RefundedMoney">The amount of money refunded. This amount is always negative..</param>
 /// <param name="CreatedAt">The time when the merchant initiated the refund for Square to process, in ISO 8601 format..</param>
 /// <param name="ProcessedAt">The time when Square processed the refund on behalf of the merchant, in ISO 8601 format..</param>
 /// <param name="PaymentId">A Square-issued ID associated with the refund. For single-tender refunds, payment_id is the ID of the original payment ID. For split-tender refunds, payment_id is the ID of the original tender. For exchange-based refunds (is_exchange &#x3D;&#x3D; true), payment_id is the ID of the original payment ID even if the payment includes other tenders..</param>
 /// <param name="MerchantId">.</param>
 /// <param name="IsExchange">Indicates whether or not the refund is associated with an exchange. If is_exchange is true, the refund reflects the value of goods returned in the exchange not the total money refunded..</param>
 public V1Refund(TypeEnum?Type = default(TypeEnum?), string Reason = default(string), V1Money RefundedMoney = default(V1Money), string CreatedAt = default(string), string ProcessedAt = default(string), string PaymentId = default(string), string MerchantId = default(string), bool?IsExchange = default(bool?))
 {
     this.Type          = Type;
     this.Reason        = Reason;
     this.RefundedMoney = RefundedMoney;
     this.CreatedAt     = CreatedAt;
     this.ProcessedAt   = ProcessedAt;
     this.PaymentId     = PaymentId;
     this.MerchantId    = MerchantId;
     this.IsExchange    = IsExchange;
 }
Esempio n. 15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1Payment" /> class.
 /// </summary>
 /// <param name="Id">The payment&#39;s unique identifier..</param>
 /// <param name="MerchantId">The unique identifier of the merchant that took the payment..</param>
 /// <param name="CreatedAt">The time when the payment was created, in ISO 8601 format. Reflects the time of the first payment if the object represents an incomplete partial payment, and the time of the last or complete payment otherwise..</param>
 /// <param name="CreatorId">The unique identifier of the Square account that took the payment..</param>
 /// <param name="Device">The device that took the payment..</param>
 /// <param name="PaymentUrl">The URL of the payment&#39;s detail page in the merchant dashboard. The merchant must be signed in to the merchant dashboard to view this page..</param>
 /// <param name="ReceiptUrl">The URL of the receipt for the payment. Note that for split tender payments, this URL corresponds to the receipt for the first tender listed in the payment&#39;s tender field. Each Tender object has its own receipt_url field you can use to get the other receipts associated with a split tender payment..</param>
 /// <param name="InclusiveTaxMoney">The sum of all inclusive taxes associated with the payment..</param>
 /// <param name="AdditiveTaxMoney">The sum of all additive taxes associated with the payment..</param>
 /// <param name="TaxMoney">The total of all taxes applied to the payment. This is always the sum of inclusive_tax_money and additive_tax_money..</param>
 /// <param name="TipMoney">The total of all tips applied to the payment..</param>
 /// <param name="DiscountMoney">The total of all discounts applied to the payment..</param>
 /// <param name="TotalCollectedMoney">The total of all discounts applied to the payment..</param>
 /// <param name="ProcessingFeeMoney">The total of all processing fees collected by Square for the payment..</param>
 /// <param name="NetTotalMoney">The amount to be deposited into the merchant&#39;s bank account for the payment..</param>
 /// <param name="RefundedMoney">The total of all refunds applied to the payment..</param>
 /// <param name="SwedishRoundingMoney">The total of all sales, including any applicable taxes, rounded to the smallest legal unit of currency (e.g., the nearest penny in USD, the nearest nickel in CAD).</param>
 /// <param name="GrossSalesMoney">The total of all sales, including any applicable taxes..</param>
 /// <param name="NetSalesMoney">The total of all sales, minus any applicable taxes..</param>
 /// <param name="InclusiveTax">All of the inclusive taxes associated with the payment..</param>
 /// <param name="AdditiveTax">All of the additive taxes associated with the payment..</param>
 /// <param name="Tender">All of the additive taxes associated with the payment..</param>
 /// <param name="Refunds">All of the refunds applied to the payment. Note that the value of all refunds on a payment can exceed the value of all tenders if a merchant chooses to refund money to a tender after previously accepting returned goods as part of an exchange..</param>
 /// <param name="Itemizations">The items purchased in the payment..</param>
 /// <param name="SurchargeMoney">The total of all surcharges applied to the payment..</param>
 /// <param name="Surcharges">A list of all surcharges associated with the payment..</param>
 /// <param name="IsPartial">Indicates whether or not the payment is only partially paid for. If true, this payment will have the tenders collected so far, but the itemizations will be empty until the payment is completed..</param>
 public V1Payment(string Id = default(string), string MerchantId = default(string), string CreatedAt = default(string), string CreatorId = default(string), Device Device = default(Device), string PaymentUrl = default(string), string ReceiptUrl = default(string), V1Money InclusiveTaxMoney = default(V1Money), V1Money AdditiveTaxMoney = default(V1Money), V1Money TaxMoney = default(V1Money), V1Money TipMoney = default(V1Money), V1Money DiscountMoney = default(V1Money), V1Money TotalCollectedMoney = default(V1Money), V1Money ProcessingFeeMoney = default(V1Money), V1Money NetTotalMoney = default(V1Money), V1Money RefundedMoney = default(V1Money), V1Money SwedishRoundingMoney = default(V1Money), V1Money GrossSalesMoney = default(V1Money), V1Money NetSalesMoney = default(V1Money), List <V1PaymentTax> InclusiveTax = default(List <V1PaymentTax>), List <V1PaymentTax> AdditiveTax = default(List <V1PaymentTax>), List <V1Tender> Tender = default(List <V1Tender>), List <V1Refund> Refunds = default(List <V1Refund>), List <V1PaymentItemization> Itemizations = default(List <V1PaymentItemization>), V1Money SurchargeMoney = default(V1Money), List <V1PaymentSurcharge> Surcharges = default(List <V1PaymentSurcharge>), bool?IsPartial = default(bool?))
 {
     this.Id                   = Id;
     this.MerchantId           = MerchantId;
     this.CreatedAt            = CreatedAt;
     this.CreatorId            = CreatorId;
     this.Device               = Device;
     this.PaymentUrl           = PaymentUrl;
     this.ReceiptUrl           = ReceiptUrl;
     this.InclusiveTaxMoney    = InclusiveTaxMoney;
     this.AdditiveTaxMoney     = AdditiveTaxMoney;
     this.TaxMoney             = TaxMoney;
     this.TipMoney             = TipMoney;
     this.DiscountMoney        = DiscountMoney;
     this.TotalCollectedMoney  = TotalCollectedMoney;
     this.ProcessingFeeMoney   = ProcessingFeeMoney;
     this.NetTotalMoney        = NetTotalMoney;
     this.RefundedMoney        = RefundedMoney;
     this.SwedishRoundingMoney = SwedishRoundingMoney;
     this.GrossSalesMoney      = GrossSalesMoney;
     this.NetSalesMoney        = NetSalesMoney;
     this.InclusiveTax         = InclusiveTax;
     this.AdditiveTax          = AdditiveTax;
     this.Tender               = Tender;
     this.Refunds              = Refunds;
     this.Itemizations         = Itemizations;
     this.SurchargeMoney       = SurchargeMoney;
     this.Surcharges           = Surcharges;
     this.IsPartial            = IsPartial;
 }
Esempio n. 16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1CashDrawerEvent" /> class.
 /// </summary>
 /// <param name="Id">The event&#39;s unique ID..</param>
 /// <param name="EmployeeId">The ID of the employee that created the event..</param>
 /// <param name="EventType">The type of event that occurred. See [V1CashDrawerEventEventType](#type-v1cashdrawereventeventtype) for possible values.</param>
 /// <param name="EventMoney">The amount of money that was added to or removed from the cash drawer because of the event. This value can be positive (for added money) or negative (for removed money)..</param>
 /// <param name="CreatedAt">The time when the event occurred, in ISO 8601 format..</param>
 /// <param name="Description">An optional description of the event, entered by the employee that created it..</param>
 public V1CashDrawerEvent(string Id = default(string), string EmployeeId = default(string), string EventType = default(string), V1Money EventMoney = default(V1Money), string CreatedAt = default(string), string Description = default(string))
 {
     this.Id          = Id;
     this.EmployeeId  = EmployeeId;
     this.EventType   = EventType;
     this.EventMoney  = EventMoney;
     this.CreatedAt   = CreatedAt;
     this.Description = Description;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V1PaymentItemization" /> class.
 /// </summary>
 /// <param name="Name">The item&#39;s name..</param>
 /// <param name="Quantity">The quantity of the item purchased. This can be a decimal value..</param>
 /// <param name="ItemizationType">The type of purchase that the itemization represents, such as an ITEM or CUSTOM_AMOUNT See [V1PaymentItemizationItemizationType](#type-v1paymentitemizationitemizationtype) for possible values.</param>
 /// <param name="ItemDetail">Details of the item, including its unique identifier and the identifier of the item variation purchased..</param>
 /// <param name="Notes">Notes entered by the merchant about the item at the time of payment, if any..</param>
 /// <param name="ItemVariationName">The name of the item variation purchased, if any..</param>
 /// <param name="TotalMoney">The total cost of the item, including all taxes and discounts..</param>
 /// <param name="SingleQuantityMoney">The cost of a single unit of this item..</param>
 /// <param name="GrossSalesMoney">The total cost of the itemization and its modifiers, not including taxes or discounts..</param>
 /// <param name="DiscountMoney">The total of all discounts applied to the itemization. This value is always negative or zero..</param>
 /// <param name="NetSalesMoney">The sum of gross_sales_money and discount_money..</param>
 /// <param name="Taxes">All taxes applied to this itemization..</param>
 /// <param name="Discounts">All discounts applied to this itemization..</param>
 /// <param name="Modifiers">All modifier options applied to this itemization..</param>
 public V1PaymentItemization(string Name = default(string), decimal?Quantity = default(decimal?), string ItemizationType = default(string), V1PaymentItemDetail ItemDetail = default(V1PaymentItemDetail), string Notes = default(string), string ItemVariationName = default(string), V1Money TotalMoney = default(V1Money), V1Money SingleQuantityMoney = default(V1Money), V1Money GrossSalesMoney = default(V1Money), V1Money DiscountMoney = default(V1Money), V1Money NetSalesMoney = default(V1Money), List <V1PaymentTax> Taxes = default(List <V1PaymentTax>), List <V1PaymentDiscount> Discounts = default(List <V1PaymentDiscount>), List <V1PaymentModifier> Modifiers = default(List <V1PaymentModifier>))
 {
     this.Name                = Name;
     this.Quantity            = Quantity;
     this.ItemizationType     = ItemizationType;
     this.ItemDetail          = ItemDetail;
     this.Notes               = Notes;
     this.ItemVariationName   = ItemVariationName;
     this.TotalMoney          = TotalMoney;
     this.SingleQuantityMoney = SingleQuantityMoney;
     this.GrossSalesMoney     = GrossSalesMoney;
     this.DiscountMoney       = DiscountMoney;
     this.NetSalesMoney       = NetSalesMoney;
     this.Taxes               = Taxes;
     this.Discounts           = Discounts;
     this.Modifiers           = Modifiers;
 }
Esempio n. 18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1PaymentModifier" /> class.
 /// </summary>
 /// <param name="Name">The modifier option&#39;s name..</param>
 /// <param name="AppliedMoney">The amount of money that this modifier option adds to the payment..</param>
 /// <param name="ModifierOptionId">TThe ID of the applied modifier option, if available. Modifier options applied in older versions of Square Register might not have an ID..</param>
 public V1PaymentModifier(string Name = default(string), V1Money AppliedMoney = default(V1Money), string ModifierOptionId = default(string))
 {
     this.Name             = Name;
     this.AppliedMoney     = AppliedMoney;
     this.ModifierOptionId = ModifierOptionId;
 }