PluginProbe ʕ •ᴥ•ʔ
WooCommerce Square / 2.2.5
WooCommerce Square v2.2.5
5.5.0 5.4.3 5.4.2 5.4.1 5.4.0 trunk 1.0.25 1.0.26 1.0.27 1.0.28 1.0.29 1.0.30 1.0.31 1.0.32 1.0.33 1.0.34 1.0.35 1.0.36 1.0.37 1.0.38 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.7.0 2.8.0 2.9.0 2.9.1 3.0.0 3.0.1 3.0.2 3.0.3 3.1.0 3.2.0 3.3.0 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.6.1 3.7.0 3.7.1 3.8.0 3.8.1 3.8.2 3.8.3 3.9.0 4.0.0 4.1.0 4.2.0 4.2.1 4.2.2 4.2.3 4.3.0 4.3.1 4.3.2 4.4.0 4.4.1 4.4.2 4.5.0 4.5.1 4.5.2 4.6.0 4.6.1 4.6.2 4.6.3 4.6.4 4.7.0 4.7.1 4.7.2 4.7.3 4.7.4 4.8.0 4.8.1 4.8.2 4.8.3 4.8.4 4.8.5 4.8.6 4.8.7 4.8.8 4.9.0 4.9.1 4.9.2 4.9.3 4.9.4 4.9.5 4.9.6 4.9.7 4.9.8 4.9.9 5.0.0 5.0.1 5.1.0 5.1.1 5.1.2 5.2.0 5.3.0 5.3.1 5.3.2 5.3.3
woocommerce-square / vendor / square / connect / lib / Model / OrderLineItem.php
woocommerce-square / vendor / square / connect / lib / Model Last commit date
AdditionalRecipient.php 7 years ago AdditionalRecipientReceivable.php 7 years ago AdditionalRecipientReceivableRefund.php 7 years ago Address.php 7 years ago BalancePaymentDetails.php 7 years ago BatchChangeInventoryRequest.php 7 years ago BatchChangeInventoryResponse.php 7 years ago BatchDeleteCatalogObjectsRequest.php 7 years ago BatchDeleteCatalogObjectsResponse.php 7 years ago BatchRetrieveCatalogObjectsRequest.php 7 years ago BatchRetrieveCatalogObjectsResponse.php 7 years ago BatchRetrieveInventoryChangesRequest.php 7 years ago BatchRetrieveInventoryChangesResponse.php 7 years ago BatchRetrieveInventoryCountsRequest.php 7 years ago BatchRetrieveInventoryCountsResponse.php 7 years ago BatchRetrieveOrdersRequest.php 7 years ago BatchRetrieveOrdersResponse.php 7 years ago BatchUpsertCatalogObjectsRequest.php 7 years ago BatchUpsertCatalogObjectsResponse.php 7 years ago BreakType.php 7 years ago BusinessHours.php 7 years ago BusinessHoursPeriod.php 7 years ago CancelPaymentByIdempotencyKeyRequest.php 7 years ago CancelPaymentByIdempotencyKeyResponse.php 7 years ago CancelPaymentRequest.php 7 years ago CancelPaymentResponse.php 7 years ago CaptureTransactionRequest.php 7 years ago CaptureTransactionResponse.php 7 years ago Card.php 7 years ago CardBrand.php 7 years ago CardPaymentDetails.php 7 years ago CatalogCategory.php 7 years ago CatalogDiscount.php 7 years ago CatalogDiscountType.php 7 years ago CatalogIdMapping.php 7 years ago CatalogImage.php 7 years ago CatalogInfoRequest.php 7 years ago CatalogInfoResponse.php 7 years ago CatalogInfoResponseLimits.php 7 years ago CatalogItem.php 7 years ago CatalogItemModifierListInfo.php 7 years ago CatalogItemOption.php 7 years ago CatalogItemOptionForItem.php 7 years ago CatalogItemOptionValue.php 7 years ago CatalogItemOptionValueForItemVariation.php 7 years ago CatalogItemProductType.php 7 years ago CatalogItemVariation.php 7 years ago CatalogMeasurementUnit.php 7 years ago CatalogModifier.php 7 years ago CatalogModifierList.php 7 years ago CatalogModifierListSelectionType.php 7 years ago CatalogModifierOverride.php 7 years ago CatalogObject.php 7 years ago CatalogObjectBatch.php 7 years ago CatalogObjectType.php 7 years ago CatalogPricingRule.php 7 years ago CatalogPricingType.php 7 years ago CatalogProductSet.php 7 years ago CatalogQuery.php 7 years ago CatalogQueryExact.php 7 years ago CatalogQueryItemVariationsForItemOptionValues.php 7 years ago CatalogQueryItemsForItemOptions.php 7 years ago CatalogQueryItemsForModifierList.php 7 years ago CatalogQueryItemsForTax.php 7 years ago CatalogQueryPrefix.php 7 years ago CatalogQueryRange.php 7 years ago CatalogQuerySortedAttribute.php 7 years ago CatalogQueryText.php 7 years ago CatalogTax.php 7 years ago CatalogTimePeriod.php 7 years ago CatalogV1Id.php 7 years ago ChargeRequest.php 7 years ago ChargeRequestAdditionalRecipient.php 7 years ago ChargeResponse.php 7 years ago Checkout.php 7 years ago CompletePaymentRequest.php 7 years ago CompletePaymentResponse.php 7 years ago Coordinates.php 7 years ago Country.php 7 years ago CreateBreakTypeRequest.php 7 years ago CreateBreakTypeResponse.php 7 years ago CreateCheckoutRequest.php 7 years ago CreateCheckoutResponse.php 7 years ago CreateCustomerCardRequest.php 7 years ago CreateCustomerCardResponse.php 7 years ago CreateCustomerRequest.php 7 years ago CreateCustomerResponse.php 7 years ago CreateMobileAuthorizationCodeRequest.php 7 years ago CreateMobileAuthorizationCodeResponse.php 7 years ago CreateOrderRequest.php 7 years ago CreateOrderRequestDiscount.php 7 years ago CreateOrderRequestLineItem.php 7 years ago CreateOrderRequestModifier.php 7 years ago CreateOrderRequestTax.php 7 years ago CreateOrderResponse.php 7 years ago CreatePaymentRequest.php 7 years ago CreatePaymentResponse.php 7 years ago CreateRefundRequest.php 7 years ago CreateRefundResponse.php 7 years ago CreateShiftRequest.php 7 years ago CreateShiftResponse.php 7 years ago Currency.php 7 years ago Customer.php 7 years ago CustomerCreationSource.php 7 years ago CustomerCreationSourceFilter.php 7 years ago CustomerFilter.php 7 years ago CustomerGroupInfo.php 7 years ago CustomerInclusionExclusion.php 7 years ago CustomerPreferences.php 7 years ago CustomerQuery.php 7 years ago CustomerSort.php 7 years ago CustomerSortField.php 7 years ago DateRange.php 7 years ago DayOfWeek.php 7 years ago DeleteBreakTypeRequest.php 7 years ago DeleteBreakTypeResponse.php 7 years ago DeleteCatalogObjectRequest.php 7 years ago DeleteCatalogObjectResponse.php 7 years ago DeleteCustomerCardRequest.php 7 years ago DeleteCustomerCardResponse.php 7 years ago DeleteCustomerRequest.php 7 years ago DeleteCustomerResponse.php 7 years ago DeleteShiftRequest.php 7 years ago DeleteShiftResponse.php 7 years ago Device.php 7 years ago Employee.php 7 years ago EmployeeStatus.php 7 years ago EmployeeWage.php 7 years ago Error.php 7 years ago ErrorCategory.php 7 years ago ErrorCode.php 7 years ago GetBreakTypeRequest.php 7 years ago GetBreakTypeResponse.php 7 years ago GetEmployeeWageRequest.php 7 years ago GetEmployeeWageResponse.php 7 years ago GetPaymentRefundRequest.php 7 years ago GetPaymentRefundResponse.php 7 years ago GetPaymentRequest.php 7 years ago GetPaymentResponse.php 7 years ago GetShiftRequest.php 7 years ago GetShiftResponse.php 7 years ago InventoryAdjustment.php 7 years ago InventoryAlertType.php 7 years ago InventoryChange.php 7 years ago InventoryChangeType.php 7 years ago InventoryCount.php 7 years ago InventoryPhysicalCount.php 7 years ago InventoryState.php 7 years ago InventoryTransfer.php 7 years ago ItemVariationLocationOverrides.php 7 years ago ListAdditionalRecipientReceivableRefundsRequest.php 7 years ago ListAdditionalRecipientReceivableRefundsResponse.php 7 years ago ListAdditionalRecipientReceivablesRequest.php 7 years ago ListAdditionalRecipientReceivablesResponse.php 7 years ago ListBreakTypesRequest.php 7 years ago ListBreakTypesResponse.php 7 years ago ListCatalogRequest.php 7 years ago ListCatalogResponse.php 7 years ago ListCustomersRequest.php 7 years ago ListCustomersResponse.php 7 years ago ListEmployeeWagesRequest.php 7 years ago ListEmployeeWagesResponse.php 7 years ago ListEmployeesRequest.php 7 years ago ListEmployeesResponse.php 7 years ago ListLocationsRequest.php 7 years ago ListLocationsResponse.php 7 years ago ListPaymentRefundsRequest.php 7 years ago ListPaymentRefundsResponse.php 7 years ago ListPaymentsRequest.php 7 years ago ListPaymentsResponse.php 7 years ago ListRefundsRequest.php 7 years ago ListRefundsResponse.php 7 years ago ListTransactionsRequest.php 7 years ago ListTransactionsResponse.php 7 years ago ListWorkweekConfigsRequest.php 7 years ago ListWorkweekConfigsResponse.php 7 years ago Location.php 7 years ago LocationCapability.php 7 years ago LocationStatus.php 7 years ago LocationType.php 7 years ago MeasurementUnit.php 7 years ago MeasurementUnitArea.php 7 years ago MeasurementUnitCustom.php 7 years ago MeasurementUnitGeneric.php 7 years ago MeasurementUnitLength.php 7 years ago MeasurementUnitUnitType.php 7 years ago MeasurementUnitVolume.php 7 years ago MeasurementUnitWeight.php 7 years ago ModelBreak.php 7 years ago Money.php 7 years ago ObtainTokenRequest.php 7 years ago ObtainTokenResponse.php 7 years ago Order.php 7 years ago OrderEntry.php 7 years ago OrderFulfillment.php 7 years ago OrderFulfillmentPickupDetails.php 7 years ago OrderFulfillmentPickupDetailsScheduleType.php 7 years ago OrderFulfillmentRecipient.php 7 years ago OrderFulfillmentShipmentDetails.php 7 years ago OrderFulfillmentState.php 7 years ago OrderFulfillmentType.php 7 years ago OrderLineItem.php 7 years ago OrderLineItemAppliedDiscount.php 7 years ago OrderLineItemAppliedTax.php 7 years ago OrderLineItemDiscount.php 7 years ago OrderLineItemDiscountScope.php 7 years ago OrderLineItemDiscountType.php 7 years ago OrderLineItemModifier.php 7 years ago OrderLineItemTax.php 7 years ago OrderLineItemTaxScope.php 7 years ago OrderLineItemTaxType.php 7 years ago OrderMoneyAmounts.php 7 years ago OrderQuantityUnit.php 7 years ago OrderReturn.php 7 years ago OrderReturnDiscount.php 7 years ago OrderReturnLineItem.php 7 years ago OrderReturnLineItemModifier.php 7 years ago OrderReturnServiceCharge.php 7 years ago OrderReturnTax.php 7 years ago OrderRoundingAdjustment.php 7 years ago OrderServiceCharge.php 7 years ago OrderServiceChargeCalculationPhase.php 7 years ago OrderSource.php 7 years ago OrderState.php 7 years ago PayOrderRequest.php 7 years ago PayOrderResponse.php 7 years ago Payment.php 7 years ago PaymentRefund.php 7 years ago ProcessingFee.php 7 years ago Product.php 7 years ago Refund.php 7 years ago RefundPaymentRequest.php 7 years ago RefundPaymentResponse.php 7 years ago RefundStatus.php 7 years ago RegisterDomainRequest.php 7 years ago RegisterDomainResponse.php 7 years ago RegisterDomainResponseStatus.php 7 years ago RenewTokenRequest.php 7 years ago RenewTokenResponse.php 7 years ago RetrieveCatalogObjectRequest.php 7 years ago RetrieveCatalogObjectResponse.php 7 years ago RetrieveCustomerRequest.php 7 years ago RetrieveCustomerResponse.php 7 years ago RetrieveEmployeeRequest.php 7 years ago RetrieveEmployeeResponse.php 7 years ago RetrieveInventoryAdjustmentRequest.php 7 years ago RetrieveInventoryAdjustmentResponse.php 7 years ago RetrieveInventoryChangesRequest.php 7 years ago RetrieveInventoryChangesResponse.php 7 years ago RetrieveInventoryCountRequest.php 7 years ago RetrieveInventoryCountResponse.php 7 years ago RetrieveInventoryPhysicalCountRequest.php 7 years ago RetrieveInventoryPhysicalCountResponse.php 7 years ago RetrieveLocationRequest.php 7 years ago RetrieveLocationResponse.php 7 years ago RetrieveTransactionRequest.php 7 years ago RetrieveTransactionResponse.php 7 years ago RevokeTokenRequest.php 7 years ago RevokeTokenResponse.php 7 years ago SearchCatalogObjectsRequest.php 7 years ago SearchCatalogObjectsResponse.php 7 years ago SearchCustomersRequest.php 7 years ago SearchCustomersResponse.php 7 years ago SearchOrdersCustomerFilter.php 7 years ago SearchOrdersDateTimeFilter.php 7 years ago SearchOrdersFilter.php 7 years ago SearchOrdersFulfillmentFilter.php 7 years ago SearchOrdersQuery.php 7 years ago SearchOrdersRequest.php 7 years ago SearchOrdersResponse.php 7 years ago SearchOrdersSort.php 7 years ago SearchOrdersSortField.php 7 years ago SearchOrdersSourceFilter.php 7 years ago SearchOrdersStateFilter.php 7 years ago SearchShiftsRequest.php 7 years ago SearchShiftsResponse.php 7 years ago Shift.php 7 years ago ShiftFilter.php 7 years ago ShiftFilterStatus.php 7 years ago ShiftQuery.php 7 years ago ShiftSort.php 7 years ago ShiftSortField.php 7 years ago ShiftStatus.php 7 years ago ShiftWage.php 7 years ago ShiftWorkday.php 7 years ago ShiftWorkdayMatcher.php 7 years ago SortOrder.php 7 years ago SourceApplication.php 7 years ago StandardUnitDescription.php 7 years ago StandardUnitDescriptionGroup.php 7 years ago TaxCalculationPhase.php 7 years ago TaxInclusionType.php 7 years ago Tender.php 7 years ago TenderCardDetails.php 7 years ago TenderCardDetailsEntryMethod.php 7 years ago TenderCardDetailsStatus.php 7 years ago TenderCashDetails.php 7 years ago TenderType.php 7 years ago TimeRange.php 7 years ago Transaction.php 7 years ago TransactionProduct.php 7 years ago UpdateBreakTypeRequest.php 7 years ago UpdateBreakTypeResponse.php 7 years ago UpdateCustomerRequest.php 7 years ago UpdateCustomerResponse.php 7 years ago UpdateItemModifierListsRequest.php 7 years ago UpdateItemModifierListsResponse.php 7 years ago UpdateItemTaxesRequest.php 7 years ago UpdateItemTaxesResponse.php 7 years ago UpdateOrderRequest.php 7 years ago UpdateOrderResponse.php 7 years ago UpdateShiftRequest.php 7 years ago UpdateShiftResponse.php 7 years ago UpdateWorkweekConfigRequest.php 7 years ago UpdateWorkweekConfigResponse.php 7 years ago UpsertCatalogObjectRequest.php 7 years ago UpsertCatalogObjectResponse.php 7 years ago V1AdjustInventoryRequest.php 7 years ago V1AdjustInventoryRequestAdjustmentType.php 7 years ago V1ApplyFeeRequest.php 7 years ago V1ApplyModifierListRequest.php 7 years ago V1BankAccount.php 7 years ago V1BankAccountType.php 7 years ago V1CashDrawerEvent.php 7 years ago V1CashDrawerEventEventType.php 7 years ago V1CashDrawerShift.php 7 years ago V1CashDrawerShiftEventType.php 7 years ago V1Category.php 7 years ago V1CreateCategoryRequest.php 7 years ago V1CreateDiscountRequest.php 7 years ago V1CreateEmployeeRoleRequest.php 7 years ago V1CreateFeeRequest.php 7 years ago V1CreateItemRequest.php 7 years ago V1CreateModifierListRequest.php 7 years ago V1CreateModifierOptionRequest.php 7 years ago V1CreatePageRequest.php 7 years ago V1CreateRefundRequest.php 7 years ago V1CreateRefundRequestType.php 7 years ago V1CreateVariationRequest.php 7 years ago V1DeleteCategoryRequest.php 7 years ago V1DeleteDiscountRequest.php 7 years ago V1DeleteFeeRequest.php 7 years ago V1DeleteItemRequest.php 7 years ago V1DeleteModifierListRequest.php 7 years ago V1DeleteModifierOptionRequest.php 7 years ago V1DeletePageCellRequest.php 7 years ago V1DeletePageRequest.php 7 years ago V1DeleteTimecardRequest.php 7 years ago V1DeleteTimecardResponse.php 7 years ago V1DeleteVariationRequest.php 7 years ago V1Discount.php 7 years ago V1DiscountColor.php 7 years ago V1DiscountDiscountType.php 7 years ago V1Employee.php 7 years ago V1EmployeeRole.php 7 years ago V1EmployeeRolePermissions.php 7 years ago V1EmployeeStatus.php 7 years ago V1Fee.php 7 years ago V1FeeAdjustmentType.php 7 years ago V1FeeCalculationPhase.php 7 years ago V1FeeInclusionType.php 7 years ago V1FeeType.php 7 years ago V1InventoryEntry.php 7 years ago V1Item.php 7 years ago V1ItemColor.php 7 years ago V1ItemImage.php 7 years ago V1ItemType.php 7 years ago V1ItemVisibility.php 7 years ago V1ListBankAccountsRequest.php 7 years ago V1ListBankAccountsResponse.php 7 years ago V1ListCashDrawerShiftsRequest.php 7 years ago V1ListCashDrawerShiftsResponse.php 7 years ago V1ListCategoriesRequest.php 7 years ago V1ListCategoriesResponse.php 7 years ago V1ListDiscountsRequest.php 7 years ago V1ListDiscountsResponse.php 7 years ago V1ListEmployeeRolesRequest.php 7 years ago V1ListEmployeeRolesResponse.php 7 years ago V1ListEmployeesRequest.php 7 years ago V1ListEmployeesRequestStatus.php 7 years ago V1ListEmployeesResponse.php 7 years ago V1ListFeesRequest.php 7 years ago V1ListFeesResponse.php 7 years ago V1ListInventoryRequest.php 7 years ago V1ListInventoryResponse.php 7 years ago V1ListItemsRequest.php 7 years ago V1ListItemsResponse.php 7 years ago V1ListLocationsRequest.php 7 years ago V1ListLocationsResponse.php 7 years ago V1ListModifierListsRequest.php 7 years ago V1ListModifierListsResponse.php 7 years ago V1ListOrdersRequest.php 7 years ago V1ListOrdersResponse.php 7 years ago V1ListPagesRequest.php 7 years ago V1ListPagesResponse.php 7 years ago V1ListPaymentsRequest.php 7 years ago V1ListPaymentsResponse.php 7 years ago V1ListRefundsRequest.php 7 years ago V1ListRefundsResponse.php 7 years ago V1ListSettlementsRequest.php 7 years ago V1ListSettlementsRequestStatus.php 7 years ago V1ListSettlementsResponse.php 7 years ago V1ListTimecardEventsRequest.php 7 years ago V1ListTimecardEventsResponse.php 7 years ago V1ListTimecardsRequest.php 7 years ago V1ListTimecardsResponse.php 7 years ago V1Merchant.php 7 years ago V1MerchantAccountType.php 7 years ago V1MerchantBusinessType.php 7 years ago V1MerchantLocationDetails.php 7 years ago V1ModifierList.php 7 years ago V1ModifierListSelectionType.php 7 years ago V1ModifierOption.php 7 years ago V1Money.php 7 years ago V1Order.php 7 years ago V1OrderHistoryEntry.php 7 years ago V1OrderHistoryEntryAction.php 7 years ago V1OrderState.php 7 years ago V1Page.php 7 years ago V1PageCell.php 7 years ago V1PageCellObjectType.php 7 years ago V1PageCellPlaceholderType.php 7 years ago V1Payment.php 7 years ago V1PaymentDiscount.php 7 years ago V1PaymentItemDetail.php 7 years ago V1PaymentItemization.php 7 years ago V1PaymentItemizationItemizationType.php 7 years ago V1PaymentModifier.php 7 years ago V1PaymentSurcharge.php 7 years ago V1PaymentSurchargeType.php 7 years ago V1PaymentTax.php 7 years ago V1PaymentTaxInclusionType.php 7 years ago V1PhoneNumber.php 7 years ago V1Refund.php 7 years ago V1RefundType.php 7 years ago V1RemoveFeeRequest.php 7 years ago V1RemoveModifierListRequest.php 7 years ago V1RetrieveBankAccountRequest.php 7 years ago V1RetrieveBusinessRequest.php 7 years ago V1RetrieveCashDrawerShiftRequest.php 7 years ago V1RetrieveEmployeeRequest.php 7 years ago V1RetrieveEmployeeRoleRequest.php 7 years ago V1RetrieveItemRequest.php 7 years ago V1RetrieveModifierListRequest.php 7 years ago V1RetrieveOrderRequest.php 7 years ago V1RetrievePaymentRequest.php 7 years ago V1RetrieveSettlementRequest.php 7 years ago V1RetrieveTimecardRequest.php 7 years ago V1Settlement.php 7 years ago V1SettlementEntry.php 7 years ago V1SettlementEntryType.php 7 years ago V1SettlementStatus.php 7 years ago V1Tender.php 7 years ago V1TenderCardBrand.php 7 years ago V1TenderEntryMethod.php 7 years ago V1TenderType.php 7 years ago V1Timecard.php 7 years ago V1TimecardEvent.php 7 years ago V1TimecardEventEventType.php 7 years ago V1UpdateCategoryRequest.php 7 years ago V1UpdateDiscountRequest.php 7 years ago V1UpdateEmployeeRequest.php 7 years ago V1UpdateEmployeeRoleRequest.php 7 years ago V1UpdateFeeRequest.php 7 years ago V1UpdateItemRequest.php 7 years ago V1UpdateModifierListRequest.php 7 years ago V1UpdateModifierListRequestSelectionType.php 7 years ago V1UpdateModifierOptionRequest.php 7 years ago V1UpdateOrderRequest.php 7 years ago V1UpdateOrderRequestAction.php 7 years ago V1UpdatePageCellRequest.php 7 years ago V1UpdatePageRequest.php 7 years ago V1UpdateTimecardRequest.php 7 years ago V1UpdateVariationRequest.php 7 years ago V1Variation.php 7 years ago V1VariationInventoryAlertType.php 7 years ago V1VariationPricingType.php 7 years ago VoidTransactionRequest.php 7 years ago VoidTransactionResponse.php 7 years ago WebhookEvents.php 7 years ago Weekday.php 7 years ago WorkweekConfig.php 7 years ago
OrderLineItem.php
708 lines
1 <?php
2 /**
3 * NOTE: This class is auto generated by the swagger code generator program.
4 * https://github.com/swagger-api/swagger-codegen
5 * Do not edit the class manually.
6 */
7
8 namespace SquareConnect\Model;
9
10 use \ArrayAccess;
11 /**
12 * OrderLineItem Class Doc Comment
13 *
14 * @category Class
15 * @package SquareConnect
16 * @author Square Inc.
17 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2
18 * @link https://squareup.com/developers
19 */
20 class OrderLineItem implements ArrayAccess
21 {
22 /**
23 * Array of property to type mappings. Used for (de)serialization
24 * @var string[]
25 */
26 static $swaggerTypes = array(
27 'uid' => 'string',
28 'name' => 'string',
29 'quantity' => 'string',
30 'quantity_unit' => '\SquareConnect\Model\OrderQuantityUnit',
31 'note' => 'string',
32 'catalog_object_id' => 'string',
33 'variation_name' => 'string',
34 'modifiers' => '\SquareConnect\Model\OrderLineItemModifier[]',
35 'taxes' => '\SquareConnect\Model\OrderLineItemTax[]',
36 'discounts' => '\SquareConnect\Model\OrderLineItemDiscount[]',
37 'applied_taxes' => '\SquareConnect\Model\OrderLineItemAppliedTax[]',
38 'applied_discounts' => '\SquareConnect\Model\OrderLineItemAppliedDiscount[]',
39 'base_price_money' => '\SquareConnect\Model\Money',
40 'variation_total_price_money' => '\SquareConnect\Model\Money',
41 'gross_sales_money' => '\SquareConnect\Model\Money',
42 'total_tax_money' => '\SquareConnect\Model\Money',
43 'total_discount_money' => '\SquareConnect\Model\Money',
44 'total_money' => '\SquareConnect\Model\Money'
45 );
46
47 /**
48 * Array of attributes where the key is the local name, and the value is the original name
49 * @var string[]
50 */
51 static $attributeMap = array(
52 'uid' => 'uid',
53 'name' => 'name',
54 'quantity' => 'quantity',
55 'quantity_unit' => 'quantity_unit',
56 'note' => 'note',
57 'catalog_object_id' => 'catalog_object_id',
58 'variation_name' => 'variation_name',
59 'modifiers' => 'modifiers',
60 'taxes' => 'taxes',
61 'discounts' => 'discounts',
62 'applied_taxes' => 'applied_taxes',
63 'applied_discounts' => 'applied_discounts',
64 'base_price_money' => 'base_price_money',
65 'variation_total_price_money' => 'variation_total_price_money',
66 'gross_sales_money' => 'gross_sales_money',
67 'total_tax_money' => 'total_tax_money',
68 'total_discount_money' => 'total_discount_money',
69 'total_money' => 'total_money'
70 );
71
72 /**
73 * Array of attributes to setter functions (for deserialization of responses)
74 * @var string[]
75 */
76 static $setters = array(
77 'uid' => 'setUid',
78 'name' => 'setName',
79 'quantity' => 'setQuantity',
80 'quantity_unit' => 'setQuantityUnit',
81 'note' => 'setNote',
82 'catalog_object_id' => 'setCatalogObjectId',
83 'variation_name' => 'setVariationName',
84 'modifiers' => 'setModifiers',
85 'taxes' => 'setTaxes',
86 'discounts' => 'setDiscounts',
87 'applied_taxes' => 'setAppliedTaxes',
88 'applied_discounts' => 'setAppliedDiscounts',
89 'base_price_money' => 'setBasePriceMoney',
90 'variation_total_price_money' => 'setVariationTotalPriceMoney',
91 'gross_sales_money' => 'setGrossSalesMoney',
92 'total_tax_money' => 'setTotalTaxMoney',
93 'total_discount_money' => 'setTotalDiscountMoney',
94 'total_money' => 'setTotalMoney'
95 );
96
97 /**
98 * Array of attributes to getter functions (for serialization of requests)
99 * @var string[]
100 */
101 static $getters = array(
102 'uid' => 'getUid',
103 'name' => 'getName',
104 'quantity' => 'getQuantity',
105 'quantity_unit' => 'getQuantityUnit',
106 'note' => 'getNote',
107 'catalog_object_id' => 'getCatalogObjectId',
108 'variation_name' => 'getVariationName',
109 'modifiers' => 'getModifiers',
110 'taxes' => 'getTaxes',
111 'discounts' => 'getDiscounts',
112 'applied_taxes' => 'getAppliedTaxes',
113 'applied_discounts' => 'getAppliedDiscounts',
114 'base_price_money' => 'getBasePriceMoney',
115 'variation_total_price_money' => 'getVariationTotalPriceMoney',
116 'gross_sales_money' => 'getGrossSalesMoney',
117 'total_tax_money' => 'getTotalTaxMoney',
118 'total_discount_money' => 'getTotalDiscountMoney',
119 'total_money' => 'getTotalMoney'
120 );
121
122 /**
123 * $uid Unique ID that identifies the line item only within this order.
124 * @var string
125 */
126 protected $uid;
127 /**
128 * $name The name of the line item.
129 * @var string
130 */
131 protected $name;
132 /**
133 * $quantity The quantity purchased, formatted as a decimal number. For example: `\"3\"`. Line items with a `quantity_unit` can have non-integer quantities. For example: `\"1.70000\"`.
134 * @var string
135 */
136 protected $quantity;
137 /**
138 * $quantity_unit The unit and precision that this line item's quantity is measured in.
139 * @var \SquareConnect\Model\OrderQuantityUnit
140 */
141 protected $quantity_unit;
142 /**
143 * $note The note of the line item.
144 * @var string
145 */
146 protected $note;
147 /**
148 * $catalog_object_id The [CatalogItemVariation](#type-catalogitemvariation) id applied to this line item.
149 * @var string
150 */
151 protected $catalog_object_id;
152 /**
153 * $variation_name The name of the variation applied to this line item.
154 * @var string
155 */
156 protected $variation_name;
157 /**
158 * $modifiers The [CatalogModifier](#type-catalogmodifier)s applied to this line item.
159 * @var \SquareConnect\Model\OrderLineItemModifier[]
160 */
161 protected $modifiers;
162 /**
163 * $taxes A list of taxes applied to this line item. On read or retrieve, this list includes both item-level taxes and any order-level taxes apportioned to this item. When creating an Order, set your item-level taxes in this list. This field has been deprecated in favour of `applied_taxes`. Usage of both this field and `applied_taxes` when creating an order will result in an error. Usage of this field when sending requests to the UpdateOrder endpoint will result in an error.
164 * @var \SquareConnect\Model\OrderLineItemTax[]
165 */
166 protected $taxes;
167 /**
168 * $discounts A list of discounts applied to this line item. On read or retrieve, this list includes both item-level discounts and any order-level discounts apportioned to this item. When creating an Order, set your item-level discounts in this list. This field has been deprecated in favour of `applied_discounts`. Usage of both this field and `applied_discounts` when creating an order will result in an error. Usage of this field when sending requests to the UpdateOrder endpoint will result in an error.
169 * @var \SquareConnect\Model\OrderLineItemDiscount[]
170 */
171 protected $discounts;
172 /**
173 * $applied_taxes The list of references to taxes applied to this line item. Each `OrderLineItemAppliedTax` has a `tax_uid` that references the `uid` of a top-level `OrderLineItemTax` applied to the line item. On reads, the amount applied is populated. An `OrderLineItemAppliedTax` will be automatically created on every line item for all `ORDER` scoped taxes added to the order. `OrderLineItemAppliedTax` records for `LINE_ITEM` scoped taxes must be added in requests for the tax to apply to any line items. To change the amount of a tax, modify the referenced top-level tax.
174 * @var \SquareConnect\Model\OrderLineItemAppliedTax[]
175 */
176 protected $applied_taxes;
177 /**
178 * $applied_discounts The list of references to discounts applied to this line item. Each `OrderLineItemAppliedDiscount` has a `discount_uid` that references the `uid` of a top-level `OrderLineItemDiscounts` applied to the line item. On reads, the amount applied is populated. An `OrderLineItemAppliedDiscount` will be automatically created on every line item for all `ORDER` scoped discounts that are added to the order. `OrderLineItemAppliedDiscount` records for `LINE_ITEM` scoped discounts must be added in requests for the discount to apply to any line items. To change the amount of a discount, modify the referenced top-level discount.
179 * @var \SquareConnect\Model\OrderLineItemAppliedDiscount[]
180 */
181 protected $applied_discounts;
182 /**
183 * $base_price_money The base price for a single unit of the line item.
184 * @var \SquareConnect\Model\Money
185 */
186 protected $base_price_money;
187 /**
188 * $variation_total_price_money The total price of all item variations sold in this line item. Calculated as `base_price_money` multiplied by `quantity`. Does not include modifiers.
189 * @var \SquareConnect\Model\Money
190 */
191 protected $variation_total_price_money;
192 /**
193 * $gross_sales_money The amount of money made in gross sales for this line item. Calculated as the sum of the variation's total price and each modifier's total price.
194 * @var \SquareConnect\Model\Money
195 */
196 protected $gross_sales_money;
197 /**
198 * $total_tax_money The total tax amount of money to collect for the line item.
199 * @var \SquareConnect\Model\Money
200 */
201 protected $total_tax_money;
202 /**
203 * $total_discount_money The total discount amount of money to collect for the line item.
204 * @var \SquareConnect\Model\Money
205 */
206 protected $total_discount_money;
207 /**
208 * $total_money The total amount of money to collect for this line item.
209 * @var \SquareConnect\Model\Money
210 */
211 protected $total_money;
212
213 /**
214 * Constructor
215 * @param mixed[] $data Associated array of property value initializing the model
216 */
217 public function __construct(array $data = null)
218 {
219 if ($data != null) {
220 if (isset($data["uid"])) {
221 $this->uid = $data["uid"];
222 } else {
223 $this->uid = null;
224 }
225 if (isset($data["name"])) {
226 $this->name = $data["name"];
227 } else {
228 $this->name = null;
229 }
230 if (isset($data["quantity"])) {
231 $this->quantity = $data["quantity"];
232 } else {
233 $this->quantity = null;
234 }
235 if (isset($data["quantity_unit"])) {
236 $this->quantity_unit = $data["quantity_unit"];
237 } else {
238 $this->quantity_unit = null;
239 }
240 if (isset($data["note"])) {
241 $this->note = $data["note"];
242 } else {
243 $this->note = null;
244 }
245 if (isset($data["catalog_object_id"])) {
246 $this->catalog_object_id = $data["catalog_object_id"];
247 } else {
248 $this->catalog_object_id = null;
249 }
250 if (isset($data["variation_name"])) {
251 $this->variation_name = $data["variation_name"];
252 } else {
253 $this->variation_name = null;
254 }
255 if (isset($data["modifiers"])) {
256 $this->modifiers = $data["modifiers"];
257 } else {
258 $this->modifiers = null;
259 }
260 if (isset($data["taxes"])) {
261 $this->taxes = $data["taxes"];
262 } else {
263 $this->taxes = null;
264 }
265 if (isset($data["discounts"])) {
266 $this->discounts = $data["discounts"];
267 } else {
268 $this->discounts = null;
269 }
270 if (isset($data["applied_taxes"])) {
271 $this->applied_taxes = $data["applied_taxes"];
272 } else {
273 $this->applied_taxes = null;
274 }
275 if (isset($data["applied_discounts"])) {
276 $this->applied_discounts = $data["applied_discounts"];
277 } else {
278 $this->applied_discounts = null;
279 }
280 if (isset($data["base_price_money"])) {
281 $this->base_price_money = $data["base_price_money"];
282 } else {
283 $this->base_price_money = null;
284 }
285 if (isset($data["variation_total_price_money"])) {
286 $this->variation_total_price_money = $data["variation_total_price_money"];
287 } else {
288 $this->variation_total_price_money = null;
289 }
290 if (isset($data["gross_sales_money"])) {
291 $this->gross_sales_money = $data["gross_sales_money"];
292 } else {
293 $this->gross_sales_money = null;
294 }
295 if (isset($data["total_tax_money"])) {
296 $this->total_tax_money = $data["total_tax_money"];
297 } else {
298 $this->total_tax_money = null;
299 }
300 if (isset($data["total_discount_money"])) {
301 $this->total_discount_money = $data["total_discount_money"];
302 } else {
303 $this->total_discount_money = null;
304 }
305 if (isset($data["total_money"])) {
306 $this->total_money = $data["total_money"];
307 } else {
308 $this->total_money = null;
309 }
310 }
311 }
312 /**
313 * Gets uid
314 * @return string
315 */
316 public function getUid()
317 {
318 return $this->uid;
319 }
320
321 /**
322 * Sets uid
323 * @param string $uid Unique ID that identifies the line item only within this order.
324 * @return $this
325 */
326 public function setUid($uid)
327 {
328 $this->uid = $uid;
329 return $this;
330 }
331 /**
332 * Gets name
333 * @return string
334 */
335 public function getName()
336 {
337 return $this->name;
338 }
339
340 /**
341 * Sets name
342 * @param string $name The name of the line item.
343 * @return $this
344 */
345 public function setName($name)
346 {
347 $this->name = $name;
348 return $this;
349 }
350 /**
351 * Gets quantity
352 * @return string
353 */
354 public function getQuantity()
355 {
356 return $this->quantity;
357 }
358
359 /**
360 * Sets quantity
361 * @param string $quantity The quantity purchased, formatted as a decimal number. For example: `\"3\"`. Line items with a `quantity_unit` can have non-integer quantities. For example: `\"1.70000\"`.
362 * @return $this
363 */
364 public function setQuantity($quantity)
365 {
366 $this->quantity = $quantity;
367 return $this;
368 }
369 /**
370 * Gets quantity_unit
371 * @return \SquareConnect\Model\OrderQuantityUnit
372 */
373 public function getQuantityUnit()
374 {
375 return $this->quantity_unit;
376 }
377
378 /**
379 * Sets quantity_unit
380 * @param \SquareConnect\Model\OrderQuantityUnit $quantity_unit The unit and precision that this line item's quantity is measured in.
381 * @return $this
382 */
383 public function setQuantityUnit($quantity_unit)
384 {
385 $this->quantity_unit = $quantity_unit;
386 return $this;
387 }
388 /**
389 * Gets note
390 * @return string
391 */
392 public function getNote()
393 {
394 return $this->note;
395 }
396
397 /**
398 * Sets note
399 * @param string $note The note of the line item.
400 * @return $this
401 */
402 public function setNote($note)
403 {
404 $this->note = $note;
405 return $this;
406 }
407 /**
408 * Gets catalog_object_id
409 * @return string
410 */
411 public function getCatalogObjectId()
412 {
413 return $this->catalog_object_id;
414 }
415
416 /**
417 * Sets catalog_object_id
418 * @param string $catalog_object_id The [CatalogItemVariation](#type-catalogitemvariation) id applied to this line item.
419 * @return $this
420 */
421 public function setCatalogObjectId($catalog_object_id)
422 {
423 $this->catalog_object_id = $catalog_object_id;
424 return $this;
425 }
426 /**
427 * Gets variation_name
428 * @return string
429 */
430 public function getVariationName()
431 {
432 return $this->variation_name;
433 }
434
435 /**
436 * Sets variation_name
437 * @param string $variation_name The name of the variation applied to this line item.
438 * @return $this
439 */
440 public function setVariationName($variation_name)
441 {
442 $this->variation_name = $variation_name;
443 return $this;
444 }
445 /**
446 * Gets modifiers
447 * @return \SquareConnect\Model\OrderLineItemModifier[]
448 */
449 public function getModifiers()
450 {
451 return $this->modifiers;
452 }
453
454 /**
455 * Sets modifiers
456 * @param \SquareConnect\Model\OrderLineItemModifier[] $modifiers The [CatalogModifier](#type-catalogmodifier)s applied to this line item.
457 * @return $this
458 */
459 public function setModifiers($modifiers)
460 {
461 $this->modifiers = $modifiers;
462 return $this;
463 }
464 /**
465 * Gets taxes
466 * @return \SquareConnect\Model\OrderLineItemTax[]
467 */
468 public function getTaxes()
469 {
470 return $this->taxes;
471 }
472
473 /**
474 * Sets taxes
475 * @param \SquareConnect\Model\OrderLineItemTax[] $taxes A list of taxes applied to this line item. On read or retrieve, this list includes both item-level taxes and any order-level taxes apportioned to this item. When creating an Order, set your item-level taxes in this list. This field has been deprecated in favour of `applied_taxes`. Usage of both this field and `applied_taxes` when creating an order will result in an error. Usage of this field when sending requests to the UpdateOrder endpoint will result in an error.
476 * @return $this
477 */
478 public function setTaxes($taxes)
479 {
480 $this->taxes = $taxes;
481 return $this;
482 }
483 /**
484 * Gets discounts
485 * @return \SquareConnect\Model\OrderLineItemDiscount[]
486 */
487 public function getDiscounts()
488 {
489 return $this->discounts;
490 }
491
492 /**
493 * Sets discounts
494 * @param \SquareConnect\Model\OrderLineItemDiscount[] $discounts A list of discounts applied to this line item. On read or retrieve, this list includes both item-level discounts and any order-level discounts apportioned to this item. When creating an Order, set your item-level discounts in this list. This field has been deprecated in favour of `applied_discounts`. Usage of both this field and `applied_discounts` when creating an order will result in an error. Usage of this field when sending requests to the UpdateOrder endpoint will result in an error.
495 * @return $this
496 */
497 public function setDiscounts($discounts)
498 {
499 $this->discounts = $discounts;
500 return $this;
501 }
502 /**
503 * Gets applied_taxes
504 * @return \SquareConnect\Model\OrderLineItemAppliedTax[]
505 */
506 public function getAppliedTaxes()
507 {
508 return $this->applied_taxes;
509 }
510
511 /**
512 * Sets applied_taxes
513 * @param \SquareConnect\Model\OrderLineItemAppliedTax[] $applied_taxes The list of references to taxes applied to this line item. Each `OrderLineItemAppliedTax` has a `tax_uid` that references the `uid` of a top-level `OrderLineItemTax` applied to the line item. On reads, the amount applied is populated. An `OrderLineItemAppliedTax` will be automatically created on every line item for all `ORDER` scoped taxes added to the order. `OrderLineItemAppliedTax` records for `LINE_ITEM` scoped taxes must be added in requests for the tax to apply to any line items. To change the amount of a tax, modify the referenced top-level tax.
514 * @return $this
515 */
516 public function setAppliedTaxes($applied_taxes)
517 {
518 $this->applied_taxes = $applied_taxes;
519 return $this;
520 }
521 /**
522 * Gets applied_discounts
523 * @return \SquareConnect\Model\OrderLineItemAppliedDiscount[]
524 */
525 public function getAppliedDiscounts()
526 {
527 return $this->applied_discounts;
528 }
529
530 /**
531 * Sets applied_discounts
532 * @param \SquareConnect\Model\OrderLineItemAppliedDiscount[] $applied_discounts The list of references to discounts applied to this line item. Each `OrderLineItemAppliedDiscount` has a `discount_uid` that references the `uid` of a top-level `OrderLineItemDiscounts` applied to the line item. On reads, the amount applied is populated. An `OrderLineItemAppliedDiscount` will be automatically created on every line item for all `ORDER` scoped discounts that are added to the order. `OrderLineItemAppliedDiscount` records for `LINE_ITEM` scoped discounts must be added in requests for the discount to apply to any line items. To change the amount of a discount, modify the referenced top-level discount.
533 * @return $this
534 */
535 public function setAppliedDiscounts($applied_discounts)
536 {
537 $this->applied_discounts = $applied_discounts;
538 return $this;
539 }
540 /**
541 * Gets base_price_money
542 * @return \SquareConnect\Model\Money
543 */
544 public function getBasePriceMoney()
545 {
546 return $this->base_price_money;
547 }
548
549 /**
550 * Sets base_price_money
551 * @param \SquareConnect\Model\Money $base_price_money The base price for a single unit of the line item.
552 * @return $this
553 */
554 public function setBasePriceMoney($base_price_money)
555 {
556 $this->base_price_money = $base_price_money;
557 return $this;
558 }
559 /**
560 * Gets variation_total_price_money
561 * @return \SquareConnect\Model\Money
562 */
563 public function getVariationTotalPriceMoney()
564 {
565 return $this->variation_total_price_money;
566 }
567
568 /**
569 * Sets variation_total_price_money
570 * @param \SquareConnect\Model\Money $variation_total_price_money The total price of all item variations sold in this line item. Calculated as `base_price_money` multiplied by `quantity`. Does not include modifiers.
571 * @return $this
572 */
573 public function setVariationTotalPriceMoney($variation_total_price_money)
574 {
575 $this->variation_total_price_money = $variation_total_price_money;
576 return $this;
577 }
578 /**
579 * Gets gross_sales_money
580 * @return \SquareConnect\Model\Money
581 */
582 public function getGrossSalesMoney()
583 {
584 return $this->gross_sales_money;
585 }
586
587 /**
588 * Sets gross_sales_money
589 * @param \SquareConnect\Model\Money $gross_sales_money The amount of money made in gross sales for this line item. Calculated as the sum of the variation's total price and each modifier's total price.
590 * @return $this
591 */
592 public function setGrossSalesMoney($gross_sales_money)
593 {
594 $this->gross_sales_money = $gross_sales_money;
595 return $this;
596 }
597 /**
598 * Gets total_tax_money
599 * @return \SquareConnect\Model\Money
600 */
601 public function getTotalTaxMoney()
602 {
603 return $this->total_tax_money;
604 }
605
606 /**
607 * Sets total_tax_money
608 * @param \SquareConnect\Model\Money $total_tax_money The total tax amount of money to collect for the line item.
609 * @return $this
610 */
611 public function setTotalTaxMoney($total_tax_money)
612 {
613 $this->total_tax_money = $total_tax_money;
614 return $this;
615 }
616 /**
617 * Gets total_discount_money
618 * @return \SquareConnect\Model\Money
619 */
620 public function getTotalDiscountMoney()
621 {
622 return $this->total_discount_money;
623 }
624
625 /**
626 * Sets total_discount_money
627 * @param \SquareConnect\Model\Money $total_discount_money The total discount amount of money to collect for the line item.
628 * @return $this
629 */
630 public function setTotalDiscountMoney($total_discount_money)
631 {
632 $this->total_discount_money = $total_discount_money;
633 return $this;
634 }
635 /**
636 * Gets total_money
637 * @return \SquareConnect\Model\Money
638 */
639 public function getTotalMoney()
640 {
641 return $this->total_money;
642 }
643
644 /**
645 * Sets total_money
646 * @param \SquareConnect\Model\Money $total_money The total amount of money to collect for this line item.
647 * @return $this
648 */
649 public function setTotalMoney($total_money)
650 {
651 $this->total_money = $total_money;
652 return $this;
653 }
654 /**
655 * Returns true if offset exists. False otherwise.
656 * @param integer $offset Offset
657 * @return boolean
658 */
659 public function offsetExists($offset)
660 {
661 return isset($this->$offset);
662 }
663
664 /**
665 * Gets offset.
666 * @param integer $offset Offset
667 * @return mixed
668 */
669 public function offsetGet($offset)
670 {
671 return $this->$offset;
672 }
673
674 /**
675 * Sets value based on offset.
676 * @param integer $offset Offset
677 * @param mixed $value Value to be set
678 * @return void
679 */
680 public function offsetSet($offset, $value)
681 {
682 $this->$offset = $value;
683 }
684
685 /**
686 * Unsets offset.
687 * @param integer $offset Offset
688 * @return void
689 */
690 public function offsetUnset($offset)
691 {
692 unset($this->$offset);
693 }
694
695 /**
696 * Gets the string presentation of the object
697 * @return string
698 */
699 public function __toString()
700 {
701 if (defined('JSON_PRETTY_PRINT')) {
702 return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
703 } else {
704 return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this));
705 }
706 }
707 }
708