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 / Order.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
Order.php
939 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 * Order 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 Order implements ArrayAccess
21 {
22 /**
23 * Array of property to type mappings. Used for (de)serialization
24 * @var string[]
25 */
26 static $swaggerTypes = array(
27 'id' => 'string',
28 'location_id' => 'string',
29 'reference_id' => 'string',
30 'source' => '\SquareConnect\Model\OrderSource',
31 'customer_id' => 'string',
32 'line_items' => '\SquareConnect\Model\OrderLineItem[]',
33 'taxes' => '\SquareConnect\Model\OrderLineItemTax[]',
34 'discounts' => '\SquareConnect\Model\OrderLineItemDiscount[]',
35 'service_charges' => '\SquareConnect\Model\OrderServiceCharge[]',
36 'fulfillments' => '\SquareConnect\Model\OrderFulfillment[]',
37 'returns' => '\SquareConnect\Model\OrderReturn[]',
38 'return_amounts' => '\SquareConnect\Model\OrderMoneyAmounts',
39 'net_amounts' => '\SquareConnect\Model\OrderMoneyAmounts',
40 'rounding_adjustment' => '\SquareConnect\Model\OrderRoundingAdjustment',
41 'tenders' => '\SquareConnect\Model\Tender[]',
42 'refunds' => '\SquareConnect\Model\Refund[]',
43 'created_at' => 'string',
44 'updated_at' => 'string',
45 'closed_at' => 'string',
46 'state' => 'string',
47 'version' => 'int',
48 'total_money' => '\SquareConnect\Model\Money',
49 'total_tax_money' => '\SquareConnect\Model\Money',
50 'total_discount_money' => '\SquareConnect\Model\Money',
51 'total_service_charge_money' => '\SquareConnect\Model\Money'
52 );
53
54 /**
55 * Array of attributes where the key is the local name, and the value is the original name
56 * @var string[]
57 */
58 static $attributeMap = array(
59 'id' => 'id',
60 'location_id' => 'location_id',
61 'reference_id' => 'reference_id',
62 'source' => 'source',
63 'customer_id' => 'customer_id',
64 'line_items' => 'line_items',
65 'taxes' => 'taxes',
66 'discounts' => 'discounts',
67 'service_charges' => 'service_charges',
68 'fulfillments' => 'fulfillments',
69 'returns' => 'returns',
70 'return_amounts' => 'return_amounts',
71 'net_amounts' => 'net_amounts',
72 'rounding_adjustment' => 'rounding_adjustment',
73 'tenders' => 'tenders',
74 'refunds' => 'refunds',
75 'created_at' => 'created_at',
76 'updated_at' => 'updated_at',
77 'closed_at' => 'closed_at',
78 'state' => 'state',
79 'version' => 'version',
80 'total_money' => 'total_money',
81 'total_tax_money' => 'total_tax_money',
82 'total_discount_money' => 'total_discount_money',
83 'total_service_charge_money' => 'total_service_charge_money'
84 );
85
86 /**
87 * Array of attributes to setter functions (for deserialization of responses)
88 * @var string[]
89 */
90 static $setters = array(
91 'id' => 'setId',
92 'location_id' => 'setLocationId',
93 'reference_id' => 'setReferenceId',
94 'source' => 'setSource',
95 'customer_id' => 'setCustomerId',
96 'line_items' => 'setLineItems',
97 'taxes' => 'setTaxes',
98 'discounts' => 'setDiscounts',
99 'service_charges' => 'setServiceCharges',
100 'fulfillments' => 'setFulfillments',
101 'returns' => 'setReturns',
102 'return_amounts' => 'setReturnAmounts',
103 'net_amounts' => 'setNetAmounts',
104 'rounding_adjustment' => 'setRoundingAdjustment',
105 'tenders' => 'setTenders',
106 'refunds' => 'setRefunds',
107 'created_at' => 'setCreatedAt',
108 'updated_at' => 'setUpdatedAt',
109 'closed_at' => 'setClosedAt',
110 'state' => 'setState',
111 'version' => 'setVersion',
112 'total_money' => 'setTotalMoney',
113 'total_tax_money' => 'setTotalTaxMoney',
114 'total_discount_money' => 'setTotalDiscountMoney',
115 'total_service_charge_money' => 'setTotalServiceChargeMoney'
116 );
117
118 /**
119 * Array of attributes to getter functions (for serialization of requests)
120 * @var string[]
121 */
122 static $getters = array(
123 'id' => 'getId',
124 'location_id' => 'getLocationId',
125 'reference_id' => 'getReferenceId',
126 'source' => 'getSource',
127 'customer_id' => 'getCustomerId',
128 'line_items' => 'getLineItems',
129 'taxes' => 'getTaxes',
130 'discounts' => 'getDiscounts',
131 'service_charges' => 'getServiceCharges',
132 'fulfillments' => 'getFulfillments',
133 'returns' => 'getReturns',
134 'return_amounts' => 'getReturnAmounts',
135 'net_amounts' => 'getNetAmounts',
136 'rounding_adjustment' => 'getRoundingAdjustment',
137 'tenders' => 'getTenders',
138 'refunds' => 'getRefunds',
139 'created_at' => 'getCreatedAt',
140 'updated_at' => 'getUpdatedAt',
141 'closed_at' => 'getClosedAt',
142 'state' => 'getState',
143 'version' => 'getVersion',
144 'total_money' => 'getTotalMoney',
145 'total_tax_money' => 'getTotalTaxMoney',
146 'total_discount_money' => 'getTotalDiscountMoney',
147 'total_service_charge_money' => 'getTotalServiceChargeMoney'
148 );
149
150 /**
151 * $id The order's unique ID.
152 * @var string
153 */
154 protected $id;
155 /**
156 * $location_id The ID of the merchant location this order is associated with.
157 * @var string
158 */
159 protected $location_id;
160 /**
161 * $reference_id A client specified identifier to associate an entity in another system with this order.
162 * @var string
163 */
164 protected $reference_id;
165 /**
166 * $source The origination details of the order.
167 * @var \SquareConnect\Model\OrderSource
168 */
169 protected $source;
170 /**
171 * $customer_id The [Customer](#type-customer) ID of the customer associated with the order.
172 * @var string
173 */
174 protected $customer_id;
175 /**
176 * $line_items The line items included in the order.
177 * @var \SquareConnect\Model\OrderLineItem[]
178 */
179 protected $line_items;
180 /**
181 * $taxes The list of all taxes associated with the order. Taxes can be scoped to either `ORDER` or `LINE_ITEM`. For taxes with `LINE_ITEM` scope, an `OrderLineItemAppliedTax` must be added to each line item that the tax applies to. For taxes with `ORDER` scope, the server will generate an `OrderLineItemAppliedTax` for every line item. On reads, each tax in the list will include the total amount of that tax applied to the order. __IMPORTANT__: If `LINE_ITEM` scope is set on any taxes in this field, usage of the deprecated `line_items.taxes` field will result in an error. Please use `line_items.applied_taxes` instead.
182 * @var \SquareConnect\Model\OrderLineItemTax[]
183 */
184 protected $taxes;
185 /**
186 * $discounts The list of all discounts associated with the order. Discounts can be scoped to either `ORDER` or `LINE_ITEM`. For discounts scoped to `LINE_ITEM`, an `OrderLineItemAppliedDiscount` must be added to each line item that the discount applies to. For discounts with `ORDER` scope, the server will generate an `OrderLineItemAppliedDiscount` for every line item. __IMPORTANT__: If `LINE_ITEM` scope is set on any discounts in this field, usage of the deprecated `line_items.discounts` field will result in an error. Please use `line_items.applied_discounts` instead.
187 * @var \SquareConnect\Model\OrderLineItemDiscount[]
188 */
189 protected $discounts;
190 /**
191 * $service_charges A list of service charges applied to the order.
192 * @var \SquareConnect\Model\OrderServiceCharge[]
193 */
194 protected $service_charges;
195 /**
196 * $fulfillments Details on order fulfillment. Orders can only be created with at most one fulfillment. However, orders returned by the API may contain multiple fulfillments.
197 * @var \SquareConnect\Model\OrderFulfillment[]
198 */
199 protected $fulfillments;
200 /**
201 * $returns Collection of items from sale Orders being returned in this one. Normally part of an Itemized Return or Exchange. There will be exactly one `Return` object per sale Order being referenced.
202 * @var \SquareConnect\Model\OrderReturn[]
203 */
204 protected $returns;
205 /**
206 * $return_amounts Rollup of returned money amounts.
207 * @var \SquareConnect\Model\OrderMoneyAmounts
208 */
209 protected $return_amounts;
210 /**
211 * $net_amounts Net money amounts (sale money - return money).
212 * @var \SquareConnect\Model\OrderMoneyAmounts
213 */
214 protected $net_amounts;
215 /**
216 * $rounding_adjustment A positive or negative rounding adjustment to the total of the order, commonly used to apply Cash Rounding when the minimum unit of account is smaller than the lowest physical denomination of currency.
217 * @var \SquareConnect\Model\OrderRoundingAdjustment
218 */
219 protected $rounding_adjustment;
220 /**
221 * $tenders The Tenders which were used to pay for the Order.
222 * @var \SquareConnect\Model\Tender[]
223 */
224 protected $tenders;
225 /**
226 * $refunds The Refunds that are part of this Order.
227 * @var \SquareConnect\Model\Refund[]
228 */
229 protected $refunds;
230 /**
231 * $created_at Timestamp for when the order was created. In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\".
232 * @var string
233 */
234 protected $created_at;
235 /**
236 * $updated_at Timestamp for when the order was last updated. In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\".
237 * @var string
238 */
239 protected $updated_at;
240 /**
241 * $closed_at Timestamp for when the order was closed. In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\".
242 * @var string
243 */
244 protected $closed_at;
245 /**
246 * $state The current state of the order. `OPEN`,`COMPLETED`,`CANCELED` See [OrderState](#type-orderstate) for possible values
247 * @var string
248 */
249 protected $state;
250 /**
251 * $version Version number which is incremented each time an update is committed to the order. Orders that were not created through the API will not include a version and thus cannot be updated. [Read more about working with versions](/orders-api/manage-orders#update-orders).
252 * @var int
253 */
254 protected $version;
255 /**
256 * $total_money The total amount of money to collect for the order.
257 * @var \SquareConnect\Model\Money
258 */
259 protected $total_money;
260 /**
261 * $total_tax_money The total tax amount of money to collect for the order.
262 * @var \SquareConnect\Model\Money
263 */
264 protected $total_tax_money;
265 /**
266 * $total_discount_money The total discount amount of money to collect for the order.
267 * @var \SquareConnect\Model\Money
268 */
269 protected $total_discount_money;
270 /**
271 * $total_service_charge_money The total amount of money collected in service charges for the order. Note: `total_service_charge_money` is the sum of `applied_money` fields for each individual service charge. Therefore, `total_service_charge_money` will only include inclusive tax amounts, not additive tax amounts.
272 * @var \SquareConnect\Model\Money
273 */
274 protected $total_service_charge_money;
275
276 /**
277 * Constructor
278 * @param mixed[] $data Associated array of property value initializing the model
279 */
280 public function __construct(array $data = null)
281 {
282 if ($data != null) {
283 if (isset($data["id"])) {
284 $this->id = $data["id"];
285 } else {
286 $this->id = null;
287 }
288 if (isset($data["location_id"])) {
289 $this->location_id = $data["location_id"];
290 } else {
291 $this->location_id = null;
292 }
293 if (isset($data["reference_id"])) {
294 $this->reference_id = $data["reference_id"];
295 } else {
296 $this->reference_id = null;
297 }
298 if (isset($data["source"])) {
299 $this->source = $data["source"];
300 } else {
301 $this->source = null;
302 }
303 if (isset($data["customer_id"])) {
304 $this->customer_id = $data["customer_id"];
305 } else {
306 $this->customer_id = null;
307 }
308 if (isset($data["line_items"])) {
309 $this->line_items = $data["line_items"];
310 } else {
311 $this->line_items = null;
312 }
313 if (isset($data["taxes"])) {
314 $this->taxes = $data["taxes"];
315 } else {
316 $this->taxes = null;
317 }
318 if (isset($data["discounts"])) {
319 $this->discounts = $data["discounts"];
320 } else {
321 $this->discounts = null;
322 }
323 if (isset($data["service_charges"])) {
324 $this->service_charges = $data["service_charges"];
325 } else {
326 $this->service_charges = null;
327 }
328 if (isset($data["fulfillments"])) {
329 $this->fulfillments = $data["fulfillments"];
330 } else {
331 $this->fulfillments = null;
332 }
333 if (isset($data["returns"])) {
334 $this->returns = $data["returns"];
335 } else {
336 $this->returns = null;
337 }
338 if (isset($data["return_amounts"])) {
339 $this->return_amounts = $data["return_amounts"];
340 } else {
341 $this->return_amounts = null;
342 }
343 if (isset($data["net_amounts"])) {
344 $this->net_amounts = $data["net_amounts"];
345 } else {
346 $this->net_amounts = null;
347 }
348 if (isset($data["rounding_adjustment"])) {
349 $this->rounding_adjustment = $data["rounding_adjustment"];
350 } else {
351 $this->rounding_adjustment = null;
352 }
353 if (isset($data["tenders"])) {
354 $this->tenders = $data["tenders"];
355 } else {
356 $this->tenders = null;
357 }
358 if (isset($data["refunds"])) {
359 $this->refunds = $data["refunds"];
360 } else {
361 $this->refunds = null;
362 }
363 if (isset($data["created_at"])) {
364 $this->created_at = $data["created_at"];
365 } else {
366 $this->created_at = null;
367 }
368 if (isset($data["updated_at"])) {
369 $this->updated_at = $data["updated_at"];
370 } else {
371 $this->updated_at = null;
372 }
373 if (isset($data["closed_at"])) {
374 $this->closed_at = $data["closed_at"];
375 } else {
376 $this->closed_at = null;
377 }
378 if (isset($data["state"])) {
379 $this->state = $data["state"];
380 } else {
381 $this->state = null;
382 }
383 if (isset($data["version"])) {
384 $this->version = $data["version"];
385 } else {
386 $this->version = null;
387 }
388 if (isset($data["total_money"])) {
389 $this->total_money = $data["total_money"];
390 } else {
391 $this->total_money = null;
392 }
393 if (isset($data["total_tax_money"])) {
394 $this->total_tax_money = $data["total_tax_money"];
395 } else {
396 $this->total_tax_money = null;
397 }
398 if (isset($data["total_discount_money"])) {
399 $this->total_discount_money = $data["total_discount_money"];
400 } else {
401 $this->total_discount_money = null;
402 }
403 if (isset($data["total_service_charge_money"])) {
404 $this->total_service_charge_money = $data["total_service_charge_money"];
405 } else {
406 $this->total_service_charge_money = null;
407 }
408 }
409 }
410 /**
411 * Gets id
412 * @return string
413 */
414 public function getId()
415 {
416 return $this->id;
417 }
418
419 /**
420 * Sets id
421 * @param string $id The order's unique ID.
422 * @return $this
423 */
424 public function setId($id)
425 {
426 $this->id = $id;
427 return $this;
428 }
429 /**
430 * Gets location_id
431 * @return string
432 */
433 public function getLocationId()
434 {
435 return $this->location_id;
436 }
437
438 /**
439 * Sets location_id
440 * @param string $location_id The ID of the merchant location this order is associated with.
441 * @return $this
442 */
443 public function setLocationId($location_id)
444 {
445 $this->location_id = $location_id;
446 return $this;
447 }
448 /**
449 * Gets reference_id
450 * @return string
451 */
452 public function getReferenceId()
453 {
454 return $this->reference_id;
455 }
456
457 /**
458 * Sets reference_id
459 * @param string $reference_id A client specified identifier to associate an entity in another system with this order.
460 * @return $this
461 */
462 public function setReferenceId($reference_id)
463 {
464 $this->reference_id = $reference_id;
465 return $this;
466 }
467 /**
468 * Gets source
469 * @return \SquareConnect\Model\OrderSource
470 */
471 public function getSource()
472 {
473 return $this->source;
474 }
475
476 /**
477 * Sets source
478 * @param \SquareConnect\Model\OrderSource $source The origination details of the order.
479 * @return $this
480 */
481 public function setSource($source)
482 {
483 $this->source = $source;
484 return $this;
485 }
486 /**
487 * Gets customer_id
488 * @return string
489 */
490 public function getCustomerId()
491 {
492 return $this->customer_id;
493 }
494
495 /**
496 * Sets customer_id
497 * @param string $customer_id The [Customer](#type-customer) ID of the customer associated with the order.
498 * @return $this
499 */
500 public function setCustomerId($customer_id)
501 {
502 $this->customer_id = $customer_id;
503 return $this;
504 }
505 /**
506 * Gets line_items
507 * @return \SquareConnect\Model\OrderLineItem[]
508 */
509 public function getLineItems()
510 {
511 return $this->line_items;
512 }
513
514 /**
515 * Sets line_items
516 * @param \SquareConnect\Model\OrderLineItem[] $line_items The line items included in the order.
517 * @return $this
518 */
519 public function setLineItems($line_items)
520 {
521 $this->line_items = $line_items;
522 return $this;
523 }
524 /**
525 * Gets taxes
526 * @return \SquareConnect\Model\OrderLineItemTax[]
527 */
528 public function getTaxes()
529 {
530 return $this->taxes;
531 }
532
533 /**
534 * Sets taxes
535 * @param \SquareConnect\Model\OrderLineItemTax[] $taxes The list of all taxes associated with the order. Taxes can be scoped to either `ORDER` or `LINE_ITEM`. For taxes with `LINE_ITEM` scope, an `OrderLineItemAppliedTax` must be added to each line item that the tax applies to. For taxes with `ORDER` scope, the server will generate an `OrderLineItemAppliedTax` for every line item. On reads, each tax in the list will include the total amount of that tax applied to the order. __IMPORTANT__: If `LINE_ITEM` scope is set on any taxes in this field, usage of the deprecated `line_items.taxes` field will result in an error. Please use `line_items.applied_taxes` instead.
536 * @return $this
537 */
538 public function setTaxes($taxes)
539 {
540 $this->taxes = $taxes;
541 return $this;
542 }
543 /**
544 * Gets discounts
545 * @return \SquareConnect\Model\OrderLineItemDiscount[]
546 */
547 public function getDiscounts()
548 {
549 return $this->discounts;
550 }
551
552 /**
553 * Sets discounts
554 * @param \SquareConnect\Model\OrderLineItemDiscount[] $discounts The list of all discounts associated with the order. Discounts can be scoped to either `ORDER` or `LINE_ITEM`. For discounts scoped to `LINE_ITEM`, an `OrderLineItemAppliedDiscount` must be added to each line item that the discount applies to. For discounts with `ORDER` scope, the server will generate an `OrderLineItemAppliedDiscount` for every line item. __IMPORTANT__: If `LINE_ITEM` scope is set on any discounts in this field, usage of the deprecated `line_items.discounts` field will result in an error. Please use `line_items.applied_discounts` instead.
555 * @return $this
556 */
557 public function setDiscounts($discounts)
558 {
559 $this->discounts = $discounts;
560 return $this;
561 }
562 /**
563 * Gets service_charges
564 * @return \SquareConnect\Model\OrderServiceCharge[]
565 */
566 public function getServiceCharges()
567 {
568 return $this->service_charges;
569 }
570
571 /**
572 * Sets service_charges
573 * @param \SquareConnect\Model\OrderServiceCharge[] $service_charges A list of service charges applied to the order.
574 * @return $this
575 */
576 public function setServiceCharges($service_charges)
577 {
578 $this->service_charges = $service_charges;
579 return $this;
580 }
581 /**
582 * Gets fulfillments
583 * @return \SquareConnect\Model\OrderFulfillment[]
584 */
585 public function getFulfillments()
586 {
587 return $this->fulfillments;
588 }
589
590 /**
591 * Sets fulfillments
592 * @param \SquareConnect\Model\OrderFulfillment[] $fulfillments Details on order fulfillment. Orders can only be created with at most one fulfillment. However, orders returned by the API may contain multiple fulfillments.
593 * @return $this
594 */
595 public function setFulfillments($fulfillments)
596 {
597 $this->fulfillments = $fulfillments;
598 return $this;
599 }
600 /**
601 * Gets returns
602 * @return \SquareConnect\Model\OrderReturn[]
603 */
604 public function getReturns()
605 {
606 return $this->returns;
607 }
608
609 /**
610 * Sets returns
611 * @param \SquareConnect\Model\OrderReturn[] $returns Collection of items from sale Orders being returned in this one. Normally part of an Itemized Return or Exchange. There will be exactly one `Return` object per sale Order being referenced.
612 * @return $this
613 */
614 public function setReturns($returns)
615 {
616 $this->returns = $returns;
617 return $this;
618 }
619 /**
620 * Gets return_amounts
621 * @return \SquareConnect\Model\OrderMoneyAmounts
622 */
623 public function getReturnAmounts()
624 {
625 return $this->return_amounts;
626 }
627
628 /**
629 * Sets return_amounts
630 * @param \SquareConnect\Model\OrderMoneyAmounts $return_amounts Rollup of returned money amounts.
631 * @return $this
632 */
633 public function setReturnAmounts($return_amounts)
634 {
635 $this->return_amounts = $return_amounts;
636 return $this;
637 }
638 /**
639 * Gets net_amounts
640 * @return \SquareConnect\Model\OrderMoneyAmounts
641 */
642 public function getNetAmounts()
643 {
644 return $this->net_amounts;
645 }
646
647 /**
648 * Sets net_amounts
649 * @param \SquareConnect\Model\OrderMoneyAmounts $net_amounts Net money amounts (sale money - return money).
650 * @return $this
651 */
652 public function setNetAmounts($net_amounts)
653 {
654 $this->net_amounts = $net_amounts;
655 return $this;
656 }
657 /**
658 * Gets rounding_adjustment
659 * @return \SquareConnect\Model\OrderRoundingAdjustment
660 */
661 public function getRoundingAdjustment()
662 {
663 return $this->rounding_adjustment;
664 }
665
666 /**
667 * Sets rounding_adjustment
668 * @param \SquareConnect\Model\OrderRoundingAdjustment $rounding_adjustment A positive or negative rounding adjustment to the total of the order, commonly used to apply Cash Rounding when the minimum unit of account is smaller than the lowest physical denomination of currency.
669 * @return $this
670 */
671 public function setRoundingAdjustment($rounding_adjustment)
672 {
673 $this->rounding_adjustment = $rounding_adjustment;
674 return $this;
675 }
676 /**
677 * Gets tenders
678 * @return \SquareConnect\Model\Tender[]
679 */
680 public function getTenders()
681 {
682 return $this->tenders;
683 }
684
685 /**
686 * Sets tenders
687 * @param \SquareConnect\Model\Tender[] $tenders The Tenders which were used to pay for the Order.
688 * @return $this
689 */
690 public function setTenders($tenders)
691 {
692 $this->tenders = $tenders;
693 return $this;
694 }
695 /**
696 * Gets refunds
697 * @return \SquareConnect\Model\Refund[]
698 */
699 public function getRefunds()
700 {
701 return $this->refunds;
702 }
703
704 /**
705 * Sets refunds
706 * @param \SquareConnect\Model\Refund[] $refunds The Refunds that are part of this Order.
707 * @return $this
708 */
709 public function setRefunds($refunds)
710 {
711 $this->refunds = $refunds;
712 return $this;
713 }
714 /**
715 * Gets created_at
716 * @return string
717 */
718 public function getCreatedAt()
719 {
720 return $this->created_at;
721 }
722
723 /**
724 * Sets created_at
725 * @param string $created_at Timestamp for when the order was created. In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\".
726 * @return $this
727 */
728 public function setCreatedAt($created_at)
729 {
730 $this->created_at = $created_at;
731 return $this;
732 }
733 /**
734 * Gets updated_at
735 * @return string
736 */
737 public function getUpdatedAt()
738 {
739 return $this->updated_at;
740 }
741
742 /**
743 * Sets updated_at
744 * @param string $updated_at Timestamp for when the order was last updated. In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\".
745 * @return $this
746 */
747 public function setUpdatedAt($updated_at)
748 {
749 $this->updated_at = $updated_at;
750 return $this;
751 }
752 /**
753 * Gets closed_at
754 * @return string
755 */
756 public function getClosedAt()
757 {
758 return $this->closed_at;
759 }
760
761 /**
762 * Sets closed_at
763 * @param string $closed_at Timestamp for when the order was closed. In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\".
764 * @return $this
765 */
766 public function setClosedAt($closed_at)
767 {
768 $this->closed_at = $closed_at;
769 return $this;
770 }
771 /**
772 * Gets state
773 * @return string
774 */
775 public function getState()
776 {
777 return $this->state;
778 }
779
780 /**
781 * Sets state
782 * @param string $state The current state of the order. `OPEN`,`COMPLETED`,`CANCELED` See [OrderState](#type-orderstate) for possible values
783 * @return $this
784 */
785 public function setState($state)
786 {
787 $this->state = $state;
788 return $this;
789 }
790 /**
791 * Gets version
792 * @return int
793 */
794 public function getVersion()
795 {
796 return $this->version;
797 }
798
799 /**
800 * Sets version
801 * @param int $version Version number which is incremented each time an update is committed to the order. Orders that were not created through the API will not include a version and thus cannot be updated. [Read more about working with versions](/orders-api/manage-orders#update-orders).
802 * @return $this
803 */
804 public function setVersion($version)
805 {
806 $this->version = $version;
807 return $this;
808 }
809 /**
810 * Gets total_money
811 * @return \SquareConnect\Model\Money
812 */
813 public function getTotalMoney()
814 {
815 return $this->total_money;
816 }
817
818 /**
819 * Sets total_money
820 * @param \SquareConnect\Model\Money $total_money The total amount of money to collect for the order.
821 * @return $this
822 */
823 public function setTotalMoney($total_money)
824 {
825 $this->total_money = $total_money;
826 return $this;
827 }
828 /**
829 * Gets total_tax_money
830 * @return \SquareConnect\Model\Money
831 */
832 public function getTotalTaxMoney()
833 {
834 return $this->total_tax_money;
835 }
836
837 /**
838 * Sets total_tax_money
839 * @param \SquareConnect\Model\Money $total_tax_money The total tax amount of money to collect for the order.
840 * @return $this
841 */
842 public function setTotalTaxMoney($total_tax_money)
843 {
844 $this->total_tax_money = $total_tax_money;
845 return $this;
846 }
847 /**
848 * Gets total_discount_money
849 * @return \SquareConnect\Model\Money
850 */
851 public function getTotalDiscountMoney()
852 {
853 return $this->total_discount_money;
854 }
855
856 /**
857 * Sets total_discount_money
858 * @param \SquareConnect\Model\Money $total_discount_money The total discount amount of money to collect for the order.
859 * @return $this
860 */
861 public function setTotalDiscountMoney($total_discount_money)
862 {
863 $this->total_discount_money = $total_discount_money;
864 return $this;
865 }
866 /**
867 * Gets total_service_charge_money
868 * @return \SquareConnect\Model\Money
869 */
870 public function getTotalServiceChargeMoney()
871 {
872 return $this->total_service_charge_money;
873 }
874
875 /**
876 * Sets total_service_charge_money
877 * @param \SquareConnect\Model\Money $total_service_charge_money The total amount of money collected in service charges for the order. Note: `total_service_charge_money` is the sum of `applied_money` fields for each individual service charge. Therefore, `total_service_charge_money` will only include inclusive tax amounts, not additive tax amounts.
878 * @return $this
879 */
880 public function setTotalServiceChargeMoney($total_service_charge_money)
881 {
882 $this->total_service_charge_money = $total_service_charge_money;
883 return $this;
884 }
885 /**
886 * Returns true if offset exists. False otherwise.
887 * @param integer $offset Offset
888 * @return boolean
889 */
890 public function offsetExists($offset)
891 {
892 return isset($this->$offset);
893 }
894
895 /**
896 * Gets offset.
897 * @param integer $offset Offset
898 * @return mixed
899 */
900 public function offsetGet($offset)
901 {
902 return $this->$offset;
903 }
904
905 /**
906 * Sets value based on offset.
907 * @param integer $offset Offset
908 * @param mixed $value Value to be set
909 * @return void
910 */
911 public function offsetSet($offset, $value)
912 {
913 $this->$offset = $value;
914 }
915
916 /**
917 * Unsets offset.
918 * @param integer $offset Offset
919 * @return void
920 */
921 public function offsetUnset($offset)
922 {
923 unset($this->$offset);
924 }
925
926 /**
927 * Gets the string presentation of the object
928 * @return string
929 */
930 public function __toString()
931 {
932 if (defined('JSON_PRETTY_PRINT')) {
933 return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
934 } else {
935 return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this));
936 }
937 }
938 }
939