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 / V1Order.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
V1Order.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 * V1Order 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 V1Order implements ArrayAccess
21 {
22 /**
23 * Array of property to type mappings. Used for (de)serialization
24 * @var string[]
25 */
26 static $swaggerTypes = array(
27 'errors' => '\SquareConnect\Model\Error[]',
28 'id' => 'string',
29 'buyer_email' => 'string',
30 'recipient_name' => 'string',
31 'recipient_phone_number' => 'string',
32 'state' => 'string',
33 'shipping_address' => '\SquareConnect\Model\Address',
34 'subtotal_money' => '\SquareConnect\Model\V1Money',
35 'total_shipping_money' => '\SquareConnect\Model\V1Money',
36 'total_tax_money' => '\SquareConnect\Model\V1Money',
37 'total_price_money' => '\SquareConnect\Model\V1Money',
38 'total_discount_money' => '\SquareConnect\Model\V1Money',
39 'created_at' => 'string',
40 'updated_at' => 'string',
41 'expires_at' => 'string',
42 'payment_id' => 'string',
43 'buyer_note' => 'string',
44 'completed_note' => 'string',
45 'refunded_note' => 'string',
46 'canceled_note' => 'string',
47 'tender' => '\SquareConnect\Model\V1Tender',
48 'order_history' => '\SquareConnect\Model\V1OrderHistoryEntry[]',
49 'promo_code' => 'string',
50 'btc_receive_address' => 'string',
51 'btc_price_satoshi' => 'float'
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 'errors' => 'errors',
60 'id' => 'id',
61 'buyer_email' => 'buyer_email',
62 'recipient_name' => 'recipient_name',
63 'recipient_phone_number' => 'recipient_phone_number',
64 'state' => 'state',
65 'shipping_address' => 'shipping_address',
66 'subtotal_money' => 'subtotal_money',
67 'total_shipping_money' => 'total_shipping_money',
68 'total_tax_money' => 'total_tax_money',
69 'total_price_money' => 'total_price_money',
70 'total_discount_money' => 'total_discount_money',
71 'created_at' => 'created_at',
72 'updated_at' => 'updated_at',
73 'expires_at' => 'expires_at',
74 'payment_id' => 'payment_id',
75 'buyer_note' => 'buyer_note',
76 'completed_note' => 'completed_note',
77 'refunded_note' => 'refunded_note',
78 'canceled_note' => 'canceled_note',
79 'tender' => 'tender',
80 'order_history' => 'order_history',
81 'promo_code' => 'promo_code',
82 'btc_receive_address' => 'btc_receive_address',
83 'btc_price_satoshi' => 'btc_price_satoshi'
84 );
85
86 /**
87 * Array of attributes to setter functions (for deserialization of responses)
88 * @var string[]
89 */
90 static $setters = array(
91 'errors' => 'setErrors',
92 'id' => 'setId',
93 'buyer_email' => 'setBuyerEmail',
94 'recipient_name' => 'setRecipientName',
95 'recipient_phone_number' => 'setRecipientPhoneNumber',
96 'state' => 'setState',
97 'shipping_address' => 'setShippingAddress',
98 'subtotal_money' => 'setSubtotalMoney',
99 'total_shipping_money' => 'setTotalShippingMoney',
100 'total_tax_money' => 'setTotalTaxMoney',
101 'total_price_money' => 'setTotalPriceMoney',
102 'total_discount_money' => 'setTotalDiscountMoney',
103 'created_at' => 'setCreatedAt',
104 'updated_at' => 'setUpdatedAt',
105 'expires_at' => 'setExpiresAt',
106 'payment_id' => 'setPaymentId',
107 'buyer_note' => 'setBuyerNote',
108 'completed_note' => 'setCompletedNote',
109 'refunded_note' => 'setRefundedNote',
110 'canceled_note' => 'setCanceledNote',
111 'tender' => 'setTender',
112 'order_history' => 'setOrderHistory',
113 'promo_code' => 'setPromoCode',
114 'btc_receive_address' => 'setBtcReceiveAddress',
115 'btc_price_satoshi' => 'setBtcPriceSatoshi'
116 );
117
118 /**
119 * Array of attributes to getter functions (for serialization of requests)
120 * @var string[]
121 */
122 static $getters = array(
123 'errors' => 'getErrors',
124 'id' => 'getId',
125 'buyer_email' => 'getBuyerEmail',
126 'recipient_name' => 'getRecipientName',
127 'recipient_phone_number' => 'getRecipientPhoneNumber',
128 'state' => 'getState',
129 'shipping_address' => 'getShippingAddress',
130 'subtotal_money' => 'getSubtotalMoney',
131 'total_shipping_money' => 'getTotalShippingMoney',
132 'total_tax_money' => 'getTotalTaxMoney',
133 'total_price_money' => 'getTotalPriceMoney',
134 'total_discount_money' => 'getTotalDiscountMoney',
135 'created_at' => 'getCreatedAt',
136 'updated_at' => 'getUpdatedAt',
137 'expires_at' => 'getExpiresAt',
138 'payment_id' => 'getPaymentId',
139 'buyer_note' => 'getBuyerNote',
140 'completed_note' => 'getCompletedNote',
141 'refunded_note' => 'getRefundedNote',
142 'canceled_note' => 'getCanceledNote',
143 'tender' => 'getTender',
144 'order_history' => 'getOrderHistory',
145 'promo_code' => 'getPromoCode',
146 'btc_receive_address' => 'getBtcReceiveAddress',
147 'btc_price_satoshi' => 'getBtcPriceSatoshi'
148 );
149
150 /**
151 * $errors Any errors that occurred during the request.
152 * @var \SquareConnect\Model\Error[]
153 */
154 protected $errors;
155 /**
156 * $id The order's unique identifier.
157 * @var string
158 */
159 protected $id;
160 /**
161 * $buyer_email The email address of the order's buyer.
162 * @var string
163 */
164 protected $buyer_email;
165 /**
166 * $recipient_name The name of the order's buyer.
167 * @var string
168 */
169 protected $recipient_name;
170 /**
171 * $recipient_phone_number The phone number to use for the order's delivery.
172 * @var string
173 */
174 protected $recipient_phone_number;
175 /**
176 * $state Whether the tax is an ADDITIVE tax or an INCLUSIVE tax. See [V1OrderState](#type-v1orderstate) for possible values
177 * @var string
178 */
179 protected $state;
180 /**
181 * $shipping_address The address to ship the order to.
182 * @var \SquareConnect\Model\Address
183 */
184 protected $shipping_address;
185 /**
186 * $subtotal_money The amount of all items purchased in the order, before taxes and shipping.
187 * @var \SquareConnect\Model\V1Money
188 */
189 protected $subtotal_money;
190 /**
191 * $total_shipping_money The shipping cost for the order.
192 * @var \SquareConnect\Model\V1Money
193 */
194 protected $total_shipping_money;
195 /**
196 * $total_tax_money The total of all taxes applied to the order.
197 * @var \SquareConnect\Model\V1Money
198 */
199 protected $total_tax_money;
200 /**
201 * $total_price_money The total cost of the order.
202 * @var \SquareConnect\Model\V1Money
203 */
204 protected $total_price_money;
205 /**
206 * $total_discount_money The total of all discounts applied to the order.
207 * @var \SquareConnect\Model\V1Money
208 */
209 protected $total_discount_money;
210 /**
211 * $created_at The time when the order was created, in ISO 8601 format.
212 * @var string
213 */
214 protected $created_at;
215 /**
216 * $updated_at The time when the order was last modified, in ISO 8601 format.
217 * @var string
218 */
219 protected $updated_at;
220 /**
221 * $expires_at The time when the order expires if no action is taken, in ISO 8601 format.
222 * @var string
223 */
224 protected $expires_at;
225 /**
226 * $payment_id The unique identifier of the payment associated with the order.
227 * @var string
228 */
229 protected $payment_id;
230 /**
231 * $buyer_note A note provided by the buyer when the order was created, if any.
232 * @var string
233 */
234 protected $buyer_note;
235 /**
236 * $completed_note A note provided by the merchant when the order's state was set to COMPLETED, if any
237 * @var string
238 */
239 protected $completed_note;
240 /**
241 * $refunded_note A note provided by the merchant when the order's state was set to REFUNDED, if any.
242 * @var string
243 */
244 protected $refunded_note;
245 /**
246 * $canceled_note A note provided by the merchant when the order's state was set to CANCELED, if any.
247 * @var string
248 */
249 protected $canceled_note;
250 /**
251 * $tender The tender used to pay for the order.
252 * @var \SquareConnect\Model\V1Tender
253 */
254 protected $tender;
255 /**
256 * $order_history The history of actions associated with the order.
257 * @var \SquareConnect\Model\V1OrderHistoryEntry[]
258 */
259 protected $order_history;
260 /**
261 * $promo_code The promo code provided by the buyer, if any.
262 * @var string
263 */
264 protected $promo_code;
265 /**
266 * $btc_receive_address For Bitcoin transactions, the address that the buyer sent Bitcoin to.
267 * @var string
268 */
269 protected $btc_receive_address;
270 /**
271 * $btc_price_satoshi For Bitcoin transactions, the price of the buyer's order in satoshi (100 million satoshi equals 1 BTC).
272 * @var float
273 */
274 protected $btc_price_satoshi;
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["errors"])) {
284 $this->errors = $data["errors"];
285 } else {
286 $this->errors = null;
287 }
288 if (isset($data["id"])) {
289 $this->id = $data["id"];
290 } else {
291 $this->id = null;
292 }
293 if (isset($data["buyer_email"])) {
294 $this->buyer_email = $data["buyer_email"];
295 } else {
296 $this->buyer_email = null;
297 }
298 if (isset($data["recipient_name"])) {
299 $this->recipient_name = $data["recipient_name"];
300 } else {
301 $this->recipient_name = null;
302 }
303 if (isset($data["recipient_phone_number"])) {
304 $this->recipient_phone_number = $data["recipient_phone_number"];
305 } else {
306 $this->recipient_phone_number = null;
307 }
308 if (isset($data["state"])) {
309 $this->state = $data["state"];
310 } else {
311 $this->state = null;
312 }
313 if (isset($data["shipping_address"])) {
314 $this->shipping_address = $data["shipping_address"];
315 } else {
316 $this->shipping_address = null;
317 }
318 if (isset($data["subtotal_money"])) {
319 $this->subtotal_money = $data["subtotal_money"];
320 } else {
321 $this->subtotal_money = null;
322 }
323 if (isset($data["total_shipping_money"])) {
324 $this->total_shipping_money = $data["total_shipping_money"];
325 } else {
326 $this->total_shipping_money = null;
327 }
328 if (isset($data["total_tax_money"])) {
329 $this->total_tax_money = $data["total_tax_money"];
330 } else {
331 $this->total_tax_money = null;
332 }
333 if (isset($data["total_price_money"])) {
334 $this->total_price_money = $data["total_price_money"];
335 } else {
336 $this->total_price_money = null;
337 }
338 if (isset($data["total_discount_money"])) {
339 $this->total_discount_money = $data["total_discount_money"];
340 } else {
341 $this->total_discount_money = null;
342 }
343 if (isset($data["created_at"])) {
344 $this->created_at = $data["created_at"];
345 } else {
346 $this->created_at = null;
347 }
348 if (isset($data["updated_at"])) {
349 $this->updated_at = $data["updated_at"];
350 } else {
351 $this->updated_at = null;
352 }
353 if (isset($data["expires_at"])) {
354 $this->expires_at = $data["expires_at"];
355 } else {
356 $this->expires_at = null;
357 }
358 if (isset($data["payment_id"])) {
359 $this->payment_id = $data["payment_id"];
360 } else {
361 $this->payment_id = null;
362 }
363 if (isset($data["buyer_note"])) {
364 $this->buyer_note = $data["buyer_note"];
365 } else {
366 $this->buyer_note = null;
367 }
368 if (isset($data["completed_note"])) {
369 $this->completed_note = $data["completed_note"];
370 } else {
371 $this->completed_note = null;
372 }
373 if (isset($data["refunded_note"])) {
374 $this->refunded_note = $data["refunded_note"];
375 } else {
376 $this->refunded_note = null;
377 }
378 if (isset($data["canceled_note"])) {
379 $this->canceled_note = $data["canceled_note"];
380 } else {
381 $this->canceled_note = null;
382 }
383 if (isset($data["tender"])) {
384 $this->tender = $data["tender"];
385 } else {
386 $this->tender = null;
387 }
388 if (isset($data["order_history"])) {
389 $this->order_history = $data["order_history"];
390 } else {
391 $this->order_history = null;
392 }
393 if (isset($data["promo_code"])) {
394 $this->promo_code = $data["promo_code"];
395 } else {
396 $this->promo_code = null;
397 }
398 if (isset($data["btc_receive_address"])) {
399 $this->btc_receive_address = $data["btc_receive_address"];
400 } else {
401 $this->btc_receive_address = null;
402 }
403 if (isset($data["btc_price_satoshi"])) {
404 $this->btc_price_satoshi = $data["btc_price_satoshi"];
405 } else {
406 $this->btc_price_satoshi = null;
407 }
408 }
409 }
410 /**
411 * Gets errors
412 * @return \SquareConnect\Model\Error[]
413 */
414 public function getErrors()
415 {
416 return $this->errors;
417 }
418
419 /**
420 * Sets errors
421 * @param \SquareConnect\Model\Error[] $errors Any errors that occurred during the request.
422 * @return $this
423 */
424 public function setErrors($errors)
425 {
426 $this->errors = $errors;
427 return $this;
428 }
429 /**
430 * Gets id
431 * @return string
432 */
433 public function getId()
434 {
435 return $this->id;
436 }
437
438 /**
439 * Sets id
440 * @param string $id The order's unique identifier.
441 * @return $this
442 */
443 public function setId($id)
444 {
445 $this->id = $id;
446 return $this;
447 }
448 /**
449 * Gets buyer_email
450 * @return string
451 */
452 public function getBuyerEmail()
453 {
454 return $this->buyer_email;
455 }
456
457 /**
458 * Sets buyer_email
459 * @param string $buyer_email The email address of the order's buyer.
460 * @return $this
461 */
462 public function setBuyerEmail($buyer_email)
463 {
464 $this->buyer_email = $buyer_email;
465 return $this;
466 }
467 /**
468 * Gets recipient_name
469 * @return string
470 */
471 public function getRecipientName()
472 {
473 return $this->recipient_name;
474 }
475
476 /**
477 * Sets recipient_name
478 * @param string $recipient_name The name of the order's buyer.
479 * @return $this
480 */
481 public function setRecipientName($recipient_name)
482 {
483 $this->recipient_name = $recipient_name;
484 return $this;
485 }
486 /**
487 * Gets recipient_phone_number
488 * @return string
489 */
490 public function getRecipientPhoneNumber()
491 {
492 return $this->recipient_phone_number;
493 }
494
495 /**
496 * Sets recipient_phone_number
497 * @param string $recipient_phone_number The phone number to use for the order's delivery.
498 * @return $this
499 */
500 public function setRecipientPhoneNumber($recipient_phone_number)
501 {
502 $this->recipient_phone_number = $recipient_phone_number;
503 return $this;
504 }
505 /**
506 * Gets state
507 * @return string
508 */
509 public function getState()
510 {
511 return $this->state;
512 }
513
514 /**
515 * Sets state
516 * @param string $state Whether the tax is an ADDITIVE tax or an INCLUSIVE tax. See [V1OrderState](#type-v1orderstate) for possible values
517 * @return $this
518 */
519 public function setState($state)
520 {
521 $this->state = $state;
522 return $this;
523 }
524 /**
525 * Gets shipping_address
526 * @return \SquareConnect\Model\Address
527 */
528 public function getShippingAddress()
529 {
530 return $this->shipping_address;
531 }
532
533 /**
534 * Sets shipping_address
535 * @param \SquareConnect\Model\Address $shipping_address The address to ship the order to.
536 * @return $this
537 */
538 public function setShippingAddress($shipping_address)
539 {
540 $this->shipping_address = $shipping_address;
541 return $this;
542 }
543 /**
544 * Gets subtotal_money
545 * @return \SquareConnect\Model\V1Money
546 */
547 public function getSubtotalMoney()
548 {
549 return $this->subtotal_money;
550 }
551
552 /**
553 * Sets subtotal_money
554 * @param \SquareConnect\Model\V1Money $subtotal_money The amount of all items purchased in the order, before taxes and shipping.
555 * @return $this
556 */
557 public function setSubtotalMoney($subtotal_money)
558 {
559 $this->subtotal_money = $subtotal_money;
560 return $this;
561 }
562 /**
563 * Gets total_shipping_money
564 * @return \SquareConnect\Model\V1Money
565 */
566 public function getTotalShippingMoney()
567 {
568 return $this->total_shipping_money;
569 }
570
571 /**
572 * Sets total_shipping_money
573 * @param \SquareConnect\Model\V1Money $total_shipping_money The shipping cost for the order.
574 * @return $this
575 */
576 public function setTotalShippingMoney($total_shipping_money)
577 {
578 $this->total_shipping_money = $total_shipping_money;
579 return $this;
580 }
581 /**
582 * Gets total_tax_money
583 * @return \SquareConnect\Model\V1Money
584 */
585 public function getTotalTaxMoney()
586 {
587 return $this->total_tax_money;
588 }
589
590 /**
591 * Sets total_tax_money
592 * @param \SquareConnect\Model\V1Money $total_tax_money The total of all taxes applied to the order.
593 * @return $this
594 */
595 public function setTotalTaxMoney($total_tax_money)
596 {
597 $this->total_tax_money = $total_tax_money;
598 return $this;
599 }
600 /**
601 * Gets total_price_money
602 * @return \SquareConnect\Model\V1Money
603 */
604 public function getTotalPriceMoney()
605 {
606 return $this->total_price_money;
607 }
608
609 /**
610 * Sets total_price_money
611 * @param \SquareConnect\Model\V1Money $total_price_money The total cost of the order.
612 * @return $this
613 */
614 public function setTotalPriceMoney($total_price_money)
615 {
616 $this->total_price_money = $total_price_money;
617 return $this;
618 }
619 /**
620 * Gets total_discount_money
621 * @return \SquareConnect\Model\V1Money
622 */
623 public function getTotalDiscountMoney()
624 {
625 return $this->total_discount_money;
626 }
627
628 /**
629 * Sets total_discount_money
630 * @param \SquareConnect\Model\V1Money $total_discount_money The total of all discounts applied to the order.
631 * @return $this
632 */
633 public function setTotalDiscountMoney($total_discount_money)
634 {
635 $this->total_discount_money = $total_discount_money;
636 return $this;
637 }
638 /**
639 * Gets created_at
640 * @return string
641 */
642 public function getCreatedAt()
643 {
644 return $this->created_at;
645 }
646
647 /**
648 * Sets created_at
649 * @param string $created_at The time when the order was created, in ISO 8601 format.
650 * @return $this
651 */
652 public function setCreatedAt($created_at)
653 {
654 $this->created_at = $created_at;
655 return $this;
656 }
657 /**
658 * Gets updated_at
659 * @return string
660 */
661 public function getUpdatedAt()
662 {
663 return $this->updated_at;
664 }
665
666 /**
667 * Sets updated_at
668 * @param string $updated_at The time when the order was last modified, in ISO 8601 format.
669 * @return $this
670 */
671 public function setUpdatedAt($updated_at)
672 {
673 $this->updated_at = $updated_at;
674 return $this;
675 }
676 /**
677 * Gets expires_at
678 * @return string
679 */
680 public function getExpiresAt()
681 {
682 return $this->expires_at;
683 }
684
685 /**
686 * Sets expires_at
687 * @param string $expires_at The time when the order expires if no action is taken, in ISO 8601 format.
688 * @return $this
689 */
690 public function setExpiresAt($expires_at)
691 {
692 $this->expires_at = $expires_at;
693 return $this;
694 }
695 /**
696 * Gets payment_id
697 * @return string
698 */
699 public function getPaymentId()
700 {
701 return $this->payment_id;
702 }
703
704 /**
705 * Sets payment_id
706 * @param string $payment_id The unique identifier of the payment associated with the order.
707 * @return $this
708 */
709 public function setPaymentId($payment_id)
710 {
711 $this->payment_id = $payment_id;
712 return $this;
713 }
714 /**
715 * Gets buyer_note
716 * @return string
717 */
718 public function getBuyerNote()
719 {
720 return $this->buyer_note;
721 }
722
723 /**
724 * Sets buyer_note
725 * @param string $buyer_note A note provided by the buyer when the order was created, if any.
726 * @return $this
727 */
728 public function setBuyerNote($buyer_note)
729 {
730 $this->buyer_note = $buyer_note;
731 return $this;
732 }
733 /**
734 * Gets completed_note
735 * @return string
736 */
737 public function getCompletedNote()
738 {
739 return $this->completed_note;
740 }
741
742 /**
743 * Sets completed_note
744 * @param string $completed_note A note provided by the merchant when the order's state was set to COMPLETED, if any
745 * @return $this
746 */
747 public function setCompletedNote($completed_note)
748 {
749 $this->completed_note = $completed_note;
750 return $this;
751 }
752 /**
753 * Gets refunded_note
754 * @return string
755 */
756 public function getRefundedNote()
757 {
758 return $this->refunded_note;
759 }
760
761 /**
762 * Sets refunded_note
763 * @param string $refunded_note A note provided by the merchant when the order's state was set to REFUNDED, if any.
764 * @return $this
765 */
766 public function setRefundedNote($refunded_note)
767 {
768 $this->refunded_note = $refunded_note;
769 return $this;
770 }
771 /**
772 * Gets canceled_note
773 * @return string
774 */
775 public function getCanceledNote()
776 {
777 return $this->canceled_note;
778 }
779
780 /**
781 * Sets canceled_note
782 * @param string $canceled_note A note provided by the merchant when the order's state was set to CANCELED, if any.
783 * @return $this
784 */
785 public function setCanceledNote($canceled_note)
786 {
787 $this->canceled_note = $canceled_note;
788 return $this;
789 }
790 /**
791 * Gets tender
792 * @return \SquareConnect\Model\V1Tender
793 */
794 public function getTender()
795 {
796 return $this->tender;
797 }
798
799 /**
800 * Sets tender
801 * @param \SquareConnect\Model\V1Tender $tender The tender used to pay for the order.
802 * @return $this
803 */
804 public function setTender($tender)
805 {
806 $this->tender = $tender;
807 return $this;
808 }
809 /**
810 * Gets order_history
811 * @return \SquareConnect\Model\V1OrderHistoryEntry[]
812 */
813 public function getOrderHistory()
814 {
815 return $this->order_history;
816 }
817
818 /**
819 * Sets order_history
820 * @param \SquareConnect\Model\V1OrderHistoryEntry[] $order_history The history of actions associated with the order.
821 * @return $this
822 */
823 public function setOrderHistory($order_history)
824 {
825 $this->order_history = $order_history;
826 return $this;
827 }
828 /**
829 * Gets promo_code
830 * @return string
831 */
832 public function getPromoCode()
833 {
834 return $this->promo_code;
835 }
836
837 /**
838 * Sets promo_code
839 * @param string $promo_code The promo code provided by the buyer, if any.
840 * @return $this
841 */
842 public function setPromoCode($promo_code)
843 {
844 $this->promo_code = $promo_code;
845 return $this;
846 }
847 /**
848 * Gets btc_receive_address
849 * @return string
850 */
851 public function getBtcReceiveAddress()
852 {
853 return $this->btc_receive_address;
854 }
855
856 /**
857 * Sets btc_receive_address
858 * @param string $btc_receive_address For Bitcoin transactions, the address that the buyer sent Bitcoin to.
859 * @return $this
860 */
861 public function setBtcReceiveAddress($btc_receive_address)
862 {
863 $this->btc_receive_address = $btc_receive_address;
864 return $this;
865 }
866 /**
867 * Gets btc_price_satoshi
868 * @return float
869 */
870 public function getBtcPriceSatoshi()
871 {
872 return $this->btc_price_satoshi;
873 }
874
875 /**
876 * Sets btc_price_satoshi
877 * @param float $btc_price_satoshi For Bitcoin transactions, the price of the buyer's order in satoshi (100 million satoshi equals 1 BTC).
878 * @return $this
879 */
880 public function setBtcPriceSatoshi($btc_price_satoshi)
881 {
882 $this->btc_price_satoshi = $btc_price_satoshi;
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