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
InventoryAdjustment.php
675 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 | * InventoryAdjustment 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 InventoryAdjustment 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 | 'reference_id' => 'string', |
| 29 | 'from_state' => 'string', |
| 30 | 'to_state' => 'string', |
| 31 | 'location_id' => 'string', |
| 32 | 'catalog_object_id' => 'string', |
| 33 | 'catalog_object_type' => 'string', |
| 34 | 'quantity' => 'string', |
| 35 | 'total_price_money' => '\SquareConnect\Model\Money', |
| 36 | 'occurred_at' => 'string', |
| 37 | 'created_at' => 'string', |
| 38 | 'source' => '\SquareConnect\Model\SourceApplication', |
| 39 | 'employee_id' => 'string', |
| 40 | 'transaction_id' => 'string', |
| 41 | 'refund_id' => 'string', |
| 42 | 'purchase_order_id' => 'string', |
| 43 | 'goods_receipt_id' => 'string' |
| 44 | ); |
| 45 | |
| 46 | /** |
| 47 | * Array of attributes where the key is the local name, and the value is the original name |
| 48 | * @var string[] |
| 49 | */ |
| 50 | static $attributeMap = array( |
| 51 | 'id' => 'id', |
| 52 | 'reference_id' => 'reference_id', |
| 53 | 'from_state' => 'from_state', |
| 54 | 'to_state' => 'to_state', |
| 55 | 'location_id' => 'location_id', |
| 56 | 'catalog_object_id' => 'catalog_object_id', |
| 57 | 'catalog_object_type' => 'catalog_object_type', |
| 58 | 'quantity' => 'quantity', |
| 59 | 'total_price_money' => 'total_price_money', |
| 60 | 'occurred_at' => 'occurred_at', |
| 61 | 'created_at' => 'created_at', |
| 62 | 'source' => 'source', |
| 63 | 'employee_id' => 'employee_id', |
| 64 | 'transaction_id' => 'transaction_id', |
| 65 | 'refund_id' => 'refund_id', |
| 66 | 'purchase_order_id' => 'purchase_order_id', |
| 67 | 'goods_receipt_id' => 'goods_receipt_id' |
| 68 | ); |
| 69 | |
| 70 | /** |
| 71 | * Array of attributes to setter functions (for deserialization of responses) |
| 72 | * @var string[] |
| 73 | */ |
| 74 | static $setters = array( |
| 75 | 'id' => 'setId', |
| 76 | 'reference_id' => 'setReferenceId', |
| 77 | 'from_state' => 'setFromState', |
| 78 | 'to_state' => 'setToState', |
| 79 | 'location_id' => 'setLocationId', |
| 80 | 'catalog_object_id' => 'setCatalogObjectId', |
| 81 | 'catalog_object_type' => 'setCatalogObjectType', |
| 82 | 'quantity' => 'setQuantity', |
| 83 | 'total_price_money' => 'setTotalPriceMoney', |
| 84 | 'occurred_at' => 'setOccurredAt', |
| 85 | 'created_at' => 'setCreatedAt', |
| 86 | 'source' => 'setSource', |
| 87 | 'employee_id' => 'setEmployeeId', |
| 88 | 'transaction_id' => 'setTransactionId', |
| 89 | 'refund_id' => 'setRefundId', |
| 90 | 'purchase_order_id' => 'setPurchaseOrderId', |
| 91 | 'goods_receipt_id' => 'setGoodsReceiptId' |
| 92 | ); |
| 93 | |
| 94 | /** |
| 95 | * Array of attributes to getter functions (for serialization of requests) |
| 96 | * @var string[] |
| 97 | */ |
| 98 | static $getters = array( |
| 99 | 'id' => 'getId', |
| 100 | 'reference_id' => 'getReferenceId', |
| 101 | 'from_state' => 'getFromState', |
| 102 | 'to_state' => 'getToState', |
| 103 | 'location_id' => 'getLocationId', |
| 104 | 'catalog_object_id' => 'getCatalogObjectId', |
| 105 | 'catalog_object_type' => 'getCatalogObjectType', |
| 106 | 'quantity' => 'getQuantity', |
| 107 | 'total_price_money' => 'getTotalPriceMoney', |
| 108 | 'occurred_at' => 'getOccurredAt', |
| 109 | 'created_at' => 'getCreatedAt', |
| 110 | 'source' => 'getSource', |
| 111 | 'employee_id' => 'getEmployeeId', |
| 112 | 'transaction_id' => 'getTransactionId', |
| 113 | 'refund_id' => 'getRefundId', |
| 114 | 'purchase_order_id' => 'getPurchaseOrderId', |
| 115 | 'goods_receipt_id' => 'getGoodsReceiptId' |
| 116 | ); |
| 117 | |
| 118 | /** |
| 119 | * $id A unique ID generated by Square for the [InventoryAdjustment](#type-inventoryadjustment). |
| 120 | * @var string |
| 121 | */ |
| 122 | protected $id; |
| 123 | /** |
| 124 | * $reference_id An optional ID provided by the application to tie the [InventoryAdjustment](#type-inventoryadjustment) to an external system. |
| 125 | * @var string |
| 126 | */ |
| 127 | protected $reference_id; |
| 128 | /** |
| 129 | * $from_state The [InventoryState](#type-inventorystate) of the related quantity of items before the adjustment. See [InventoryState](#type-inventorystate) for possible values |
| 130 | * @var string |
| 131 | */ |
| 132 | protected $from_state; |
| 133 | /** |
| 134 | * $to_state The [InventoryState](#type-inventorystate) of the related quantity of items after the adjustment. See [InventoryState](#type-inventorystate) for possible values |
| 135 | * @var string |
| 136 | */ |
| 137 | protected $to_state; |
| 138 | /** |
| 139 | * $location_id The Square ID of the [Location](#type-location) where the related quantity of items are being tracked. |
| 140 | * @var string |
| 141 | */ |
| 142 | protected $location_id; |
| 143 | /** |
| 144 | * $catalog_object_id The Square generated ID of the [CatalogObject](#type-catalogobject) being tracked. |
| 145 | * @var string |
| 146 | */ |
| 147 | protected $catalog_object_id; |
| 148 | /** |
| 149 | * $catalog_object_type The [CatalogObjectType](#type-catalogobjecttype) of the [CatalogObject](#type-catalogobject) being tracked. Tracking is only supported for the `ITEM_VARIATION` type. |
| 150 | * @var string |
| 151 | */ |
| 152 | protected $catalog_object_type; |
| 153 | /** |
| 154 | * $quantity The number of items affected by the adjustment as a decimal string. Can support up to 5 digits after the decimal point. _Important_: The Point of Sale app and Dashboard do not currently support decimal quantities. If a Point of Sale app or Dashboard attempts to read a decimal quantity on inventory counts or adjustments, the quantity will be rounded down to the nearest integer. For example, `2.5` will become `2`, and `-2.5` will become `-3`. Read [Decimal Quantities (BETA)](/orders-api/what-it-does#decimal-quantities) for more information. |
| 155 | * @var string |
| 156 | */ |
| 157 | protected $quantity; |
| 158 | /** |
| 159 | * $total_price_money The read-only total price paid for goods associated with the adjustment. Present if and only if `to_state` is `SOLD`. Always non-negative. |
| 160 | * @var \SquareConnect\Model\Money |
| 161 | */ |
| 162 | protected $total_price_money; |
| 163 | /** |
| 164 | * $occurred_at A client-generated timestamp in RFC 3339 format that indicates when the adjustment took place. For write actions, the `occurred_at` timestamp cannot be older than 24 hours or in the future relative to the time of the request. |
| 165 | * @var string |
| 166 | */ |
| 167 | protected $occurred_at; |
| 168 | /** |
| 169 | * $created_at A read-only timestamp in RFC 3339 format that indicates when Square received the adjustment. |
| 170 | * @var string |
| 171 | */ |
| 172 | protected $created_at; |
| 173 | /** |
| 174 | * $source Read-only information about the application that caused the inventory adjustment. |
| 175 | * @var \SquareConnect\Model\SourceApplication |
| 176 | */ |
| 177 | protected $source; |
| 178 | /** |
| 179 | * $employee_id The Square ID of the [Employee](#type-employee) responsible for the inventory adjustment. |
| 180 | * @var string |
| 181 | */ |
| 182 | protected $employee_id; |
| 183 | /** |
| 184 | * $transaction_id The read-only Square ID of the [Transaction][#type-transaction] that caused the adjustment. Only relevant for payment-related state transitions. |
| 185 | * @var string |
| 186 | */ |
| 187 | protected $transaction_id; |
| 188 | /** |
| 189 | * $refund_id The read-only Square ID of the [Refund][#type-refund] that caused the adjustment. Only relevant for refund-related state transitions. |
| 190 | * @var string |
| 191 | */ |
| 192 | protected $refund_id; |
| 193 | /** |
| 194 | * $purchase_order_id The read-only Square ID of the purchase order that caused the adjustment. Only relevant for state transitions from the Square for Retail app. |
| 195 | * @var string |
| 196 | */ |
| 197 | protected $purchase_order_id; |
| 198 | /** |
| 199 | * $goods_receipt_id The read-only Square ID of the Square goods receipt that caused the adjustment. Only relevant for state transitions from the Square for Retail app. |
| 200 | * @var string |
| 201 | */ |
| 202 | protected $goods_receipt_id; |
| 203 | |
| 204 | /** |
| 205 | * Constructor |
| 206 | * @param mixed[] $data Associated array of property value initializing the model |
| 207 | */ |
| 208 | public function __construct(array $data = null) |
| 209 | { |
| 210 | if ($data != null) { |
| 211 | if (isset($data["id"])) { |
| 212 | $this->id = $data["id"]; |
| 213 | } else { |
| 214 | $this->id = null; |
| 215 | } |
| 216 | if (isset($data["reference_id"])) { |
| 217 | $this->reference_id = $data["reference_id"]; |
| 218 | } else { |
| 219 | $this->reference_id = null; |
| 220 | } |
| 221 | if (isset($data["from_state"])) { |
| 222 | $this->from_state = $data["from_state"]; |
| 223 | } else { |
| 224 | $this->from_state = null; |
| 225 | } |
| 226 | if (isset($data["to_state"])) { |
| 227 | $this->to_state = $data["to_state"]; |
| 228 | } else { |
| 229 | $this->to_state = null; |
| 230 | } |
| 231 | if (isset($data["location_id"])) { |
| 232 | $this->location_id = $data["location_id"]; |
| 233 | } else { |
| 234 | $this->location_id = null; |
| 235 | } |
| 236 | if (isset($data["catalog_object_id"])) { |
| 237 | $this->catalog_object_id = $data["catalog_object_id"]; |
| 238 | } else { |
| 239 | $this->catalog_object_id = null; |
| 240 | } |
| 241 | if (isset($data["catalog_object_type"])) { |
| 242 | $this->catalog_object_type = $data["catalog_object_type"]; |
| 243 | } else { |
| 244 | $this->catalog_object_type = null; |
| 245 | } |
| 246 | if (isset($data["quantity"])) { |
| 247 | $this->quantity = $data["quantity"]; |
| 248 | } else { |
| 249 | $this->quantity = null; |
| 250 | } |
| 251 | if (isset($data["total_price_money"])) { |
| 252 | $this->total_price_money = $data["total_price_money"]; |
| 253 | } else { |
| 254 | $this->total_price_money = null; |
| 255 | } |
| 256 | if (isset($data["occurred_at"])) { |
| 257 | $this->occurred_at = $data["occurred_at"]; |
| 258 | } else { |
| 259 | $this->occurred_at = null; |
| 260 | } |
| 261 | if (isset($data["created_at"])) { |
| 262 | $this->created_at = $data["created_at"]; |
| 263 | } else { |
| 264 | $this->created_at = null; |
| 265 | } |
| 266 | if (isset($data["source"])) { |
| 267 | $this->source = $data["source"]; |
| 268 | } else { |
| 269 | $this->source = null; |
| 270 | } |
| 271 | if (isset($data["employee_id"])) { |
| 272 | $this->employee_id = $data["employee_id"]; |
| 273 | } else { |
| 274 | $this->employee_id = null; |
| 275 | } |
| 276 | if (isset($data["transaction_id"])) { |
| 277 | $this->transaction_id = $data["transaction_id"]; |
| 278 | } else { |
| 279 | $this->transaction_id = null; |
| 280 | } |
| 281 | if (isset($data["refund_id"])) { |
| 282 | $this->refund_id = $data["refund_id"]; |
| 283 | } else { |
| 284 | $this->refund_id = null; |
| 285 | } |
| 286 | if (isset($data["purchase_order_id"])) { |
| 287 | $this->purchase_order_id = $data["purchase_order_id"]; |
| 288 | } else { |
| 289 | $this->purchase_order_id = null; |
| 290 | } |
| 291 | if (isset($data["goods_receipt_id"])) { |
| 292 | $this->goods_receipt_id = $data["goods_receipt_id"]; |
| 293 | } else { |
| 294 | $this->goods_receipt_id = null; |
| 295 | } |
| 296 | } |
| 297 | } |
| 298 | /** |
| 299 | * Gets id |
| 300 | * @return string |
| 301 | */ |
| 302 | public function getId() |
| 303 | { |
| 304 | return $this->id; |
| 305 | } |
| 306 | |
| 307 | /** |
| 308 | * Sets id |
| 309 | * @param string $id A unique ID generated by Square for the [InventoryAdjustment](#type-inventoryadjustment). |
| 310 | * @return $this |
| 311 | */ |
| 312 | public function setId($id) |
| 313 | { |
| 314 | $this->id = $id; |
| 315 | return $this; |
| 316 | } |
| 317 | /** |
| 318 | * Gets reference_id |
| 319 | * @return string |
| 320 | */ |
| 321 | public function getReferenceId() |
| 322 | { |
| 323 | return $this->reference_id; |
| 324 | } |
| 325 | |
| 326 | /** |
| 327 | * Sets reference_id |
| 328 | * @param string $reference_id An optional ID provided by the application to tie the [InventoryAdjustment](#type-inventoryadjustment) to an external system. |
| 329 | * @return $this |
| 330 | */ |
| 331 | public function setReferenceId($reference_id) |
| 332 | { |
| 333 | $this->reference_id = $reference_id; |
| 334 | return $this; |
| 335 | } |
| 336 | /** |
| 337 | * Gets from_state |
| 338 | * @return string |
| 339 | */ |
| 340 | public function getFromState() |
| 341 | { |
| 342 | return $this->from_state; |
| 343 | } |
| 344 | |
| 345 | /** |
| 346 | * Sets from_state |
| 347 | * @param string $from_state The [InventoryState](#type-inventorystate) of the related quantity of items before the adjustment. See [InventoryState](#type-inventorystate) for possible values |
| 348 | * @return $this |
| 349 | */ |
| 350 | public function setFromState($from_state) |
| 351 | { |
| 352 | $this->from_state = $from_state; |
| 353 | return $this; |
| 354 | } |
| 355 | /** |
| 356 | * Gets to_state |
| 357 | * @return string |
| 358 | */ |
| 359 | public function getToState() |
| 360 | { |
| 361 | return $this->to_state; |
| 362 | } |
| 363 | |
| 364 | /** |
| 365 | * Sets to_state |
| 366 | * @param string $to_state The [InventoryState](#type-inventorystate) of the related quantity of items after the adjustment. See [InventoryState](#type-inventorystate) for possible values |
| 367 | * @return $this |
| 368 | */ |
| 369 | public function setToState($to_state) |
| 370 | { |
| 371 | $this->to_state = $to_state; |
| 372 | return $this; |
| 373 | } |
| 374 | /** |
| 375 | * Gets location_id |
| 376 | * @return string |
| 377 | */ |
| 378 | public function getLocationId() |
| 379 | { |
| 380 | return $this->location_id; |
| 381 | } |
| 382 | |
| 383 | /** |
| 384 | * Sets location_id |
| 385 | * @param string $location_id The Square ID of the [Location](#type-location) where the related quantity of items are being tracked. |
| 386 | * @return $this |
| 387 | */ |
| 388 | public function setLocationId($location_id) |
| 389 | { |
| 390 | $this->location_id = $location_id; |
| 391 | return $this; |
| 392 | } |
| 393 | /** |
| 394 | * Gets catalog_object_id |
| 395 | * @return string |
| 396 | */ |
| 397 | public function getCatalogObjectId() |
| 398 | { |
| 399 | return $this->catalog_object_id; |
| 400 | } |
| 401 | |
| 402 | /** |
| 403 | * Sets catalog_object_id |
| 404 | * @param string $catalog_object_id The Square generated ID of the [CatalogObject](#type-catalogobject) being tracked. |
| 405 | * @return $this |
| 406 | */ |
| 407 | public function setCatalogObjectId($catalog_object_id) |
| 408 | { |
| 409 | $this->catalog_object_id = $catalog_object_id; |
| 410 | return $this; |
| 411 | } |
| 412 | /** |
| 413 | * Gets catalog_object_type |
| 414 | * @return string |
| 415 | */ |
| 416 | public function getCatalogObjectType() |
| 417 | { |
| 418 | return $this->catalog_object_type; |
| 419 | } |
| 420 | |
| 421 | /** |
| 422 | * Sets catalog_object_type |
| 423 | * @param string $catalog_object_type The [CatalogObjectType](#type-catalogobjecttype) of the [CatalogObject](#type-catalogobject) being tracked. Tracking is only supported for the `ITEM_VARIATION` type. |
| 424 | * @return $this |
| 425 | */ |
| 426 | public function setCatalogObjectType($catalog_object_type) |
| 427 | { |
| 428 | $this->catalog_object_type = $catalog_object_type; |
| 429 | return $this; |
| 430 | } |
| 431 | /** |
| 432 | * Gets quantity |
| 433 | * @return string |
| 434 | */ |
| 435 | public function getQuantity() |
| 436 | { |
| 437 | return $this->quantity; |
| 438 | } |
| 439 | |
| 440 | /** |
| 441 | * Sets quantity |
| 442 | * @param string $quantity The number of items affected by the adjustment as a decimal string. Can support up to 5 digits after the decimal point. _Important_: The Point of Sale app and Dashboard do not currently support decimal quantities. If a Point of Sale app or Dashboard attempts to read a decimal quantity on inventory counts or adjustments, the quantity will be rounded down to the nearest integer. For example, `2.5` will become `2`, and `-2.5` will become `-3`. Read [Decimal Quantities (BETA)](/orders-api/what-it-does#decimal-quantities) for more information. |
| 443 | * @return $this |
| 444 | */ |
| 445 | public function setQuantity($quantity) |
| 446 | { |
| 447 | $this->quantity = $quantity; |
| 448 | return $this; |
| 449 | } |
| 450 | /** |
| 451 | * Gets total_price_money |
| 452 | * @return \SquareConnect\Model\Money |
| 453 | */ |
| 454 | public function getTotalPriceMoney() |
| 455 | { |
| 456 | return $this->total_price_money; |
| 457 | } |
| 458 | |
| 459 | /** |
| 460 | * Sets total_price_money |
| 461 | * @param \SquareConnect\Model\Money $total_price_money The read-only total price paid for goods associated with the adjustment. Present if and only if `to_state` is `SOLD`. Always non-negative. |
| 462 | * @return $this |
| 463 | */ |
| 464 | public function setTotalPriceMoney($total_price_money) |
| 465 | { |
| 466 | $this->total_price_money = $total_price_money; |
| 467 | return $this; |
| 468 | } |
| 469 | /** |
| 470 | * Gets occurred_at |
| 471 | * @return string |
| 472 | */ |
| 473 | public function getOccurredAt() |
| 474 | { |
| 475 | return $this->occurred_at; |
| 476 | } |
| 477 | |
| 478 | /** |
| 479 | * Sets occurred_at |
| 480 | * @param string $occurred_at A client-generated timestamp in RFC 3339 format that indicates when the adjustment took place. For write actions, the `occurred_at` timestamp cannot be older than 24 hours or in the future relative to the time of the request. |
| 481 | * @return $this |
| 482 | */ |
| 483 | public function setOccurredAt($occurred_at) |
| 484 | { |
| 485 | $this->occurred_at = $occurred_at; |
| 486 | return $this; |
| 487 | } |
| 488 | /** |
| 489 | * Gets created_at |
| 490 | * @return string |
| 491 | */ |
| 492 | public function getCreatedAt() |
| 493 | { |
| 494 | return $this->created_at; |
| 495 | } |
| 496 | |
| 497 | /** |
| 498 | * Sets created_at |
| 499 | * @param string $created_at A read-only timestamp in RFC 3339 format that indicates when Square received the adjustment. |
| 500 | * @return $this |
| 501 | */ |
| 502 | public function setCreatedAt($created_at) |
| 503 | { |
| 504 | $this->created_at = $created_at; |
| 505 | return $this; |
| 506 | } |
| 507 | /** |
| 508 | * Gets source |
| 509 | * @return \SquareConnect\Model\SourceApplication |
| 510 | */ |
| 511 | public function getSource() |
| 512 | { |
| 513 | return $this->source; |
| 514 | } |
| 515 | |
| 516 | /** |
| 517 | * Sets source |
| 518 | * @param \SquareConnect\Model\SourceApplication $source Read-only information about the application that caused the inventory adjustment. |
| 519 | * @return $this |
| 520 | */ |
| 521 | public function setSource($source) |
| 522 | { |
| 523 | $this->source = $source; |
| 524 | return $this; |
| 525 | } |
| 526 | /** |
| 527 | * Gets employee_id |
| 528 | * @return string |
| 529 | */ |
| 530 | public function getEmployeeId() |
| 531 | { |
| 532 | return $this->employee_id; |
| 533 | } |
| 534 | |
| 535 | /** |
| 536 | * Sets employee_id |
| 537 | * @param string $employee_id The Square ID of the [Employee](#type-employee) responsible for the inventory adjustment. |
| 538 | * @return $this |
| 539 | */ |
| 540 | public function setEmployeeId($employee_id) |
| 541 | { |
| 542 | $this->employee_id = $employee_id; |
| 543 | return $this; |
| 544 | } |
| 545 | /** |
| 546 | * Gets transaction_id |
| 547 | * @return string |
| 548 | */ |
| 549 | public function getTransactionId() |
| 550 | { |
| 551 | return $this->transaction_id; |
| 552 | } |
| 553 | |
| 554 | /** |
| 555 | * Sets transaction_id |
| 556 | * @param string $transaction_id The read-only Square ID of the [Transaction][#type-transaction] that caused the adjustment. Only relevant for payment-related state transitions. |
| 557 | * @return $this |
| 558 | */ |
| 559 | public function setTransactionId($transaction_id) |
| 560 | { |
| 561 | $this->transaction_id = $transaction_id; |
| 562 | return $this; |
| 563 | } |
| 564 | /** |
| 565 | * Gets refund_id |
| 566 | * @return string |
| 567 | */ |
| 568 | public function getRefundId() |
| 569 | { |
| 570 | return $this->refund_id; |
| 571 | } |
| 572 | |
| 573 | /** |
| 574 | * Sets refund_id |
| 575 | * @param string $refund_id The read-only Square ID of the [Refund][#type-refund] that caused the adjustment. Only relevant for refund-related state transitions. |
| 576 | * @return $this |
| 577 | */ |
| 578 | public function setRefundId($refund_id) |
| 579 | { |
| 580 | $this->refund_id = $refund_id; |
| 581 | return $this; |
| 582 | } |
| 583 | /** |
| 584 | * Gets purchase_order_id |
| 585 | * @return string |
| 586 | */ |
| 587 | public function getPurchaseOrderId() |
| 588 | { |
| 589 | return $this->purchase_order_id; |
| 590 | } |
| 591 | |
| 592 | /** |
| 593 | * Sets purchase_order_id |
| 594 | * @param string $purchase_order_id The read-only Square ID of the purchase order that caused the adjustment. Only relevant for state transitions from the Square for Retail app. |
| 595 | * @return $this |
| 596 | */ |
| 597 | public function setPurchaseOrderId($purchase_order_id) |
| 598 | { |
| 599 | $this->purchase_order_id = $purchase_order_id; |
| 600 | return $this; |
| 601 | } |
| 602 | /** |
| 603 | * Gets goods_receipt_id |
| 604 | * @return string |
| 605 | */ |
| 606 | public function getGoodsReceiptId() |
| 607 | { |
| 608 | return $this->goods_receipt_id; |
| 609 | } |
| 610 | |
| 611 | /** |
| 612 | * Sets goods_receipt_id |
| 613 | * @param string $goods_receipt_id The read-only Square ID of the Square goods receipt that caused the adjustment. Only relevant for state transitions from the Square for Retail app. |
| 614 | * @return $this |
| 615 | */ |
| 616 | public function setGoodsReceiptId($goods_receipt_id) |
| 617 | { |
| 618 | $this->goods_receipt_id = $goods_receipt_id; |
| 619 | return $this; |
| 620 | } |
| 621 | /** |
| 622 | * Returns true if offset exists. False otherwise. |
| 623 | * @param integer $offset Offset |
| 624 | * @return boolean |
| 625 | */ |
| 626 | public function offsetExists($offset) |
| 627 | { |
| 628 | return isset($this->$offset); |
| 629 | } |
| 630 | |
| 631 | /** |
| 632 | * Gets offset. |
| 633 | * @param integer $offset Offset |
| 634 | * @return mixed |
| 635 | */ |
| 636 | public function offsetGet($offset) |
| 637 | { |
| 638 | return $this->$offset; |
| 639 | } |
| 640 | |
| 641 | /** |
| 642 | * Sets value based on offset. |
| 643 | * @param integer $offset Offset |
| 644 | * @param mixed $value Value to be set |
| 645 | * @return void |
| 646 | */ |
| 647 | public function offsetSet($offset, $value) |
| 648 | { |
| 649 | $this->$offset = $value; |
| 650 | } |
| 651 | |
| 652 | /** |
| 653 | * Unsets offset. |
| 654 | * @param integer $offset Offset |
| 655 | * @return void |
| 656 | */ |
| 657 | public function offsetUnset($offset) |
| 658 | { |
| 659 | unset($this->$offset); |
| 660 | } |
| 661 | |
| 662 | /** |
| 663 | * Gets the string presentation of the object |
| 664 | * @return string |
| 665 | */ |
| 666 | public function __toString() |
| 667 | { |
| 668 | if (defined('JSON_PRETTY_PRINT')) { |
| 669 | return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); |
| 670 | } else { |
| 671 | return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); |
| 672 | } |
| 673 | } |
| 674 | } |
| 675 |