/// <summary>
 /// Initializes a new instance of the <see cref="InventoryTransfer" /> class.
 /// </summary>
 /// <param name="Id">A unique ID generated by Square for the [InventoryTransfer](#type-inventorytransfer)..</param>
 /// <param name="ReferenceId">An optional ID provided by the application to tie the [InventoryTransfer](#type-inventorytransfer) to an external system..</param>
 /// <param name="State">The [InventoryState](#type-inventorystate) for the quantity of items being transfered. See [InventoryState](#type-inventorystate) for possible values.</param>
 /// <param name="FromLocationId">The Square ID of the [Location](#type-location) where the related quantity of items were tracked before the transfer..</param>
 /// <param name="ToLocationId">The Square ID of the [Location](#type-location) where the related quantity of items were tracked after the transfer..</param>
 /// <param name="CatalogObjectId">The Square generated ID of the [CatalogObject](#type-catalogobject) being tracked..</param>
 /// <param name="CatalogObjectType">The [CatalogObjectType](#type-catalogobjecttype) of the [CatalogObject](#type-catalogobject) being tracked.Tracking is only supported for the &#x60;ITEM_VARIATION&#x60; type..</param>
 /// <param name="Quantity">The number of items affected by the transfer as a decimal string. Can support up to 5 digits after the decimal point.  _Important_: The Point of Sale app and Dashboard do not currently support decimal quantities. If a Point of Sale app or Dashboard attempts to read a decimal quantity on inventory counts or adjustments, the quantity will be rounded down to the nearest integer. For example, &#x60;2.5&#x60; will become &#x60;2&#x60;, and &#x60;-2.5&#x60; will become &#x60;-3&#x60;.  Read [Decimal Quantities (BETA)](/orders-api/what-it-does#decimal-quantities) for more information..</param>
 /// <param name="OccurredAt">A client-generated timestamp in RFC 3339 format that indicates when the transfer took place. For write actions, the &#x60;occurred_at&#x60; timestamp cannot be older than 24 hours or in the future relative to the time of the request..</param>
 /// <param name="CreatedAt">A read-only timestamp in RFC 3339 format that indicates when Square received the transfer request..</param>
 /// <param name="Source">Read-only information about the application that initiated the inventory transfer..</param>
 /// <param name="EmployeeId">The Square ID of the [Employee](#type-employee) responsible for the inventory transfer..</param>
 public InventoryTransfer(string Id = default(string), string ReferenceId = default(string), string State = default(string), string FromLocationId = default(string), string ToLocationId = default(string), string CatalogObjectId = default(string), string CatalogObjectType = default(string), string Quantity = default(string), string OccurredAt = default(string), string CreatedAt = default(string), SourceApplication Source = default(SourceApplication), string EmployeeId = default(string))
 {
     this.Id                = Id;
     this.ReferenceId       = ReferenceId;
     this.State             = State;
     this.FromLocationId    = FromLocationId;
     this.ToLocationId      = ToLocationId;
     this.CatalogObjectId   = CatalogObjectId;
     this.CatalogObjectType = CatalogObjectType;
     this.Quantity          = Quantity;
     this.OccurredAt        = OccurredAt;
     this.CreatedAt         = CreatedAt;
     this.Source            = Source;
     this.EmployeeId        = EmployeeId;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InventoryAdjustment" /> class.
 /// </summary>
 /// <param name="Id">A unique ID generated by Square for the [InventoryAdjustment](#type-inventoryadjustment)..</param>
 /// <param name="ReferenceId">An optional ID provided by the application to tie the [InventoryAdjustment](#type-inventoryadjustment) to an external system..</param>
 /// <param name="FromState">The [InventoryState](#type-inventorystate) of the related quantity of items before the adjustment..</param>
 /// <param name="ToState">The [InventoryState](#type-inventorystate) of the related quantity of items after the adjustment..</param>
 /// <param name="LocationId">The Square ID of the [Location](#type-location) where the related quantity of items are being tracked..</param>
 /// <param name="CatalogObjectId">The Square generated ID of the [CatalogObject](#type-catalogobject) being tracked..</param>
 /// <param name="CatalogObjectType">The [CatalogObjectType](#type-catalogobjecttype) of the [CatalogObject](#type-catalogobject) being tracked. Tracking is only supported for the &#x60;ITEM_VARIATION&#x60; type..</param>
 /// <param name="Quantity">The number of items affected by the adjustment as a decimal string. Fractional quantities are not supported..</param>
 /// <param name="TotalPriceMoney">The read-only total price paid for goods associated with the adjustment. Present if and only if &#x60;to_state&#x60; is &#x60;SOLD&#x60;. Always non-negative..</param>
 /// <param name="OccurredAt">A client-generated timestamp in RFC 3339 format that indicates when the adjustment took place. For write actions, the &#x60;occurred_at&#x60; timestamp cannot be older than 24 hours or in the future relative to the time of the request..</param>
 /// <param name="CreatedAt">A read-only timestamp in RFC 3339 format that indicates when Square received the adjustment..</param>
 /// <param name="Source">Read-only information about the application that caused the inventory adjustment..</param>
 /// <param name="EmployeeId">The Square ID of the [Employee](#type-employee) responsible for the inventory adjustment..</param>
 /// <param name="TransactionId">The read-only Square ID of the [Transaction][#type-transaction] that caused the adjustment. Only relevant for payment-related state transitions..</param>
 /// <param name="RefundId">The read-only Square ID of the [Refund][#type-refund] that caused the adjustment. Only relevant for refund-related state transitions..</param>
 /// <param name="PurchaseOrderId">The read-only Square ID of the purchase order that caused the adjustment. Only relevant for state transitions from the Square for Retail app..</param>
 /// <param name="GoodsReceiptId">The read-only Square ID of the Square goods receipt that caused the adjustment. Only relevant for state transitions from the Square for Retail app..</param>
 public InventoryAdjustment(string Id = default(string), string ReferenceId = default(string), FromStateEnum?FromState = default(FromStateEnum?), ToStateEnum?ToState = default(ToStateEnum?), string LocationId = default(string), string CatalogObjectId = default(string), string CatalogObjectType = default(string), string Quantity = default(string), Money TotalPriceMoney = default(Money), string OccurredAt = default(string), string CreatedAt = default(string), SourceApplication Source = default(SourceApplication), string EmployeeId = default(string), string TransactionId = default(string), string RefundId = default(string), string PurchaseOrderId = default(string), string GoodsReceiptId = default(string))
 {
     this.Id                = Id;
     this.ReferenceId       = ReferenceId;
     this.FromState         = FromState;
     this.ToState           = ToState;
     this.LocationId        = LocationId;
     this.CatalogObjectId   = CatalogObjectId;
     this.CatalogObjectType = CatalogObjectType;
     this.Quantity          = Quantity;
     this.TotalPriceMoney   = TotalPriceMoney;
     this.OccurredAt        = OccurredAt;
     this.CreatedAt         = CreatedAt;
     this.Source            = Source;
     this.EmployeeId        = EmployeeId;
     this.TransactionId     = TransactionId;
     this.RefundId          = RefundId;
     this.PurchaseOrderId   = PurchaseOrderId;
     this.GoodsReceiptId    = GoodsReceiptId;
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InventoryPhysicalCount" /> class.
 /// </summary>
 /// <param name="Id">A unique ID generated by Square for the [InventoryPhysicalCount](#type-inventoryphysicalcount)..</param>
 /// <param name="ReferenceId">An optional ID provided by the application to tie the [InventoryPhysicalCount](#type-inventoryphysicalcount) to an external system..</param>
 /// <param name="CatalogObjectId">The Square generated ID of the [CatalogObject](#type-catalogobject) being tracked..</param>
 /// <param name="CatalogObjectType">The [CatalogObjectType](#type-catalogobjecttype) of the [CatalogObject](#type-catalogobject) being tracked. Tracking is only supported for the &#x60;ITEM_VARIATION&#x60; type..</param>
 /// <param name="State">The current [InventoryState](#type-inventorystate) for the related quantity of items. See [InventoryState](#type-inventorystate) for possible values.</param>
 /// <param name="LocationId">The Square ID of the [Location](#type-location) where the related quantity of items are being tracked..</param>
 /// <param name="Quantity">The number of items affected by the physical count as a decimal string. Fractional quantities are not supported..</param>
 /// <param name="Source">Read-only information about the application that submitted the physical count..</param>
 /// <param name="EmployeeId">The Square ID of the [Employee](#type-employee) responsible for the physical count..</param>
 /// <param name="OccurredAt">A client-generated timestamp in RFC 3339 format that indicates when the physical count took place. For write actions, the &#x60;occurred_at&#x60; timestamp cannot be older than 24 hours or in the future relative to the time of the request..</param>
 /// <param name="CreatedAt">A read-only timestamp in RFC 3339 format that indicates when Square received the physical count..</param>
 public InventoryPhysicalCount(string Id = default(string), string ReferenceId = default(string), string CatalogObjectId = default(string), string CatalogObjectType = default(string), StateEnum?State = default(StateEnum?), string LocationId = default(string), string Quantity = default(string), SourceApplication Source = default(SourceApplication), string EmployeeId = default(string), string OccurredAt = default(string), string CreatedAt = default(string))
 {
     this.Id                = Id;
     this.ReferenceId       = ReferenceId;
     this.CatalogObjectId   = CatalogObjectId;
     this.CatalogObjectType = CatalogObjectType;
     this.State             = State;
     this.LocationId        = LocationId;
     this.Quantity          = Quantity;
     this.Source            = Source;
     this.EmployeeId        = EmployeeId;
     this.OccurredAt        = OccurredAt;
     this.CreatedAt         = CreatedAt;
 }