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 / V1Item.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
V1Item.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 * V1Item 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 V1Item 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 'name' => 'string',
29 'description' => 'string',
30 'type' => 'string',
31 'color' => 'string',
32 'abbreviation' => 'string',
33 'visibility' => 'string',
34 'available_online' => 'bool',
35 'master_image' => '\SquareConnect\Model\V1ItemImage',
36 'category' => '\SquareConnect\Model\V1Category',
37 'variations' => '\SquareConnect\Model\V1Variation[]',
38 'modifier_lists' => '\SquareConnect\Model\V1ModifierList[]',
39 'fees' => '\SquareConnect\Model\V1Fee[]',
40 'taxable' => 'bool',
41 'category_id' => 'string',
42 'available_for_pickup' => 'bool',
43 'v2_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 'name' => 'name',
53 'description' => 'description',
54 'type' => 'type',
55 'color' => 'color',
56 'abbreviation' => 'abbreviation',
57 'visibility' => 'visibility',
58 'available_online' => 'available_online',
59 'master_image' => 'master_image',
60 'category' => 'category',
61 'variations' => 'variations',
62 'modifier_lists' => 'modifier_lists',
63 'fees' => 'fees',
64 'taxable' => 'taxable',
65 'category_id' => 'category_id',
66 'available_for_pickup' => 'available_for_pickup',
67 'v2_id' => 'v2_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 'name' => 'setName',
77 'description' => 'setDescription',
78 'type' => 'setType',
79 'color' => 'setColor',
80 'abbreviation' => 'setAbbreviation',
81 'visibility' => 'setVisibility',
82 'available_online' => 'setAvailableOnline',
83 'master_image' => 'setMasterImage',
84 'category' => 'setCategory',
85 'variations' => 'setVariations',
86 'modifier_lists' => 'setModifierLists',
87 'fees' => 'setFees',
88 'taxable' => 'setTaxable',
89 'category_id' => 'setCategoryId',
90 'available_for_pickup' => 'setAvailableForPickup',
91 'v2_id' => 'setV2Id'
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 'name' => 'getName',
101 'description' => 'getDescription',
102 'type' => 'getType',
103 'color' => 'getColor',
104 'abbreviation' => 'getAbbreviation',
105 'visibility' => 'getVisibility',
106 'available_online' => 'getAvailableOnline',
107 'master_image' => 'getMasterImage',
108 'category' => 'getCategory',
109 'variations' => 'getVariations',
110 'modifier_lists' => 'getModifierLists',
111 'fees' => 'getFees',
112 'taxable' => 'getTaxable',
113 'category_id' => 'getCategoryId',
114 'available_for_pickup' => 'getAvailableForPickup',
115 'v2_id' => 'getV2Id'
116 );
117
118 /**
119 * $id The item's ID. Must be unique among all entity IDs ever provided on behalf of the merchant. You can never reuse an ID. This value can include alphanumeric characters, dashes (-), and underscores (_).
120 * @var string
121 */
122 protected $id;
123 /**
124 * $name The item's name.
125 * @var string
126 */
127 protected $name;
128 /**
129 * $description The item's description.
130 * @var string
131 */
132 protected $description;
133 /**
134 * $type The item's type. This value is NORMAL for almost all items. See [V1ItemType](#type-v1itemtype) for possible values
135 * @var string
136 */
137 protected $type;
138 /**
139 * $color The color of the discount's display label in Square Register, if not the default color. The default color is 9da2a6. See [V1ItemColor](#type-v1itemcolor) for possible values
140 * @var string
141 */
142 protected $color;
143 /**
144 * $abbreviation The text of the item's display label in Square Register. Only up to the first five characters of the string are used.
145 * @var string
146 */
147 protected $abbreviation;
148 /**
149 * $visibility Indicates whether the item is viewable from the merchant's online store (PUBLIC) or PRIVATE. See [V1ItemVisibility](#type-v1itemvisibility) for possible values
150 * @var string
151 */
152 protected $visibility;
153 /**
154 * $available_online If true, the item can be added to shipping orders from the merchant's online store.
155 * @var bool
156 */
157 protected $available_online;
158 /**
159 * $master_image The item's master image, if any.
160 * @var \SquareConnect\Model\V1ItemImage
161 */
162 protected $master_image;
163 /**
164 * $category The category the item belongs to, if any.
165 * @var \SquareConnect\Model\V1Category
166 */
167 protected $category;
168 /**
169 * $variations The item's variations. You must specify at least one variation.
170 * @var \SquareConnect\Model\V1Variation[]
171 */
172 protected $variations;
173 /**
174 * $modifier_lists The modifier lists that apply to the item, if any.
175 * @var \SquareConnect\Model\V1ModifierList[]
176 */
177 protected $modifier_lists;
178 /**
179 * $fees The fees that apply to the item, if any.
180 * @var \SquareConnect\Model\V1Fee[]
181 */
182 protected $fees;
183 /**
184 * $taxable Deprecated. This field is not used.
185 * @var bool
186 */
187 protected $taxable;
188 /**
189 * $category_id The ID of the item's category, if any.
190 * @var string
191 */
192 protected $category_id;
193 /**
194 * $available_for_pickup If true, the item can be added to pickup orders from the merchant's online store. Default value: false
195 * @var bool
196 */
197 protected $available_for_pickup;
198 /**
199 * $v2_id The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID.
200 * @var string
201 */
202 protected $v2_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["name"])) {
217 $this->name = $data["name"];
218 } else {
219 $this->name = null;
220 }
221 if (isset($data["description"])) {
222 $this->description = $data["description"];
223 } else {
224 $this->description = null;
225 }
226 if (isset($data["type"])) {
227 $this->type = $data["type"];
228 } else {
229 $this->type = null;
230 }
231 if (isset($data["color"])) {
232 $this->color = $data["color"];
233 } else {
234 $this->color = null;
235 }
236 if (isset($data["abbreviation"])) {
237 $this->abbreviation = $data["abbreviation"];
238 } else {
239 $this->abbreviation = null;
240 }
241 if (isset($data["visibility"])) {
242 $this->visibility = $data["visibility"];
243 } else {
244 $this->visibility = null;
245 }
246 if (isset($data["available_online"])) {
247 $this->available_online = $data["available_online"];
248 } else {
249 $this->available_online = null;
250 }
251 if (isset($data["master_image"])) {
252 $this->master_image = $data["master_image"];
253 } else {
254 $this->master_image = null;
255 }
256 if (isset($data["category"])) {
257 $this->category = $data["category"];
258 } else {
259 $this->category = null;
260 }
261 if (isset($data["variations"])) {
262 $this->variations = $data["variations"];
263 } else {
264 $this->variations = null;
265 }
266 if (isset($data["modifier_lists"])) {
267 $this->modifier_lists = $data["modifier_lists"];
268 } else {
269 $this->modifier_lists = null;
270 }
271 if (isset($data["fees"])) {
272 $this->fees = $data["fees"];
273 } else {
274 $this->fees = null;
275 }
276 if (isset($data["taxable"])) {
277 $this->taxable = $data["taxable"];
278 } else {
279 $this->taxable = null;
280 }
281 if (isset($data["category_id"])) {
282 $this->category_id = $data["category_id"];
283 } else {
284 $this->category_id = null;
285 }
286 if (isset($data["available_for_pickup"])) {
287 $this->available_for_pickup = $data["available_for_pickup"];
288 } else {
289 $this->available_for_pickup = null;
290 }
291 if (isset($data["v2_id"])) {
292 $this->v2_id = $data["v2_id"];
293 } else {
294 $this->v2_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 The item's ID. Must be unique among all entity IDs ever provided on behalf of the merchant. You can never reuse an ID. This value can include alphanumeric characters, dashes (-), and underscores (_).
310 * @return $this
311 */
312 public function setId($id)
313 {
314 $this->id = $id;
315 return $this;
316 }
317 /**
318 * Gets name
319 * @return string
320 */
321 public function getName()
322 {
323 return $this->name;
324 }
325
326 /**
327 * Sets name
328 * @param string $name The item's name.
329 * @return $this
330 */
331 public function setName($name)
332 {
333 $this->name = $name;
334 return $this;
335 }
336 /**
337 * Gets description
338 * @return string
339 */
340 public function getDescription()
341 {
342 return $this->description;
343 }
344
345 /**
346 * Sets description
347 * @param string $description The item's description.
348 * @return $this
349 */
350 public function setDescription($description)
351 {
352 $this->description = $description;
353 return $this;
354 }
355 /**
356 * Gets type
357 * @return string
358 */
359 public function getType()
360 {
361 return $this->type;
362 }
363
364 /**
365 * Sets type
366 * @param string $type The item's type. This value is NORMAL for almost all items. See [V1ItemType](#type-v1itemtype) for possible values
367 * @return $this
368 */
369 public function setType($type)
370 {
371 $this->type = $type;
372 return $this;
373 }
374 /**
375 * Gets color
376 * @return string
377 */
378 public function getColor()
379 {
380 return $this->color;
381 }
382
383 /**
384 * Sets color
385 * @param string $color The color of the discount's display label in Square Register, if not the default color. The default color is 9da2a6. See [V1ItemColor](#type-v1itemcolor) for possible values
386 * @return $this
387 */
388 public function setColor($color)
389 {
390 $this->color = $color;
391 return $this;
392 }
393 /**
394 * Gets abbreviation
395 * @return string
396 */
397 public function getAbbreviation()
398 {
399 return $this->abbreviation;
400 }
401
402 /**
403 * Sets abbreviation
404 * @param string $abbreviation The text of the item's display label in Square Register. Only up to the first five characters of the string are used.
405 * @return $this
406 */
407 public function setAbbreviation($abbreviation)
408 {
409 $this->abbreviation = $abbreviation;
410 return $this;
411 }
412 /**
413 * Gets visibility
414 * @return string
415 */
416 public function getVisibility()
417 {
418 return $this->visibility;
419 }
420
421 /**
422 * Sets visibility
423 * @param string $visibility Indicates whether the item is viewable from the merchant's online store (PUBLIC) or PRIVATE. See [V1ItemVisibility](#type-v1itemvisibility) for possible values
424 * @return $this
425 */
426 public function setVisibility($visibility)
427 {
428 $this->visibility = $visibility;
429 return $this;
430 }
431 /**
432 * Gets available_online
433 * @return bool
434 */
435 public function getAvailableOnline()
436 {
437 return $this->available_online;
438 }
439
440 /**
441 * Sets available_online
442 * @param bool $available_online If true, the item can be added to shipping orders from the merchant's online store.
443 * @return $this
444 */
445 public function setAvailableOnline($available_online)
446 {
447 $this->available_online = $available_online;
448 return $this;
449 }
450 /**
451 * Gets master_image
452 * @return \SquareConnect\Model\V1ItemImage
453 */
454 public function getMasterImage()
455 {
456 return $this->master_image;
457 }
458
459 /**
460 * Sets master_image
461 * @param \SquareConnect\Model\V1ItemImage $master_image The item's master image, if any.
462 * @return $this
463 */
464 public function setMasterImage($master_image)
465 {
466 $this->master_image = $master_image;
467 return $this;
468 }
469 /**
470 * Gets category
471 * @return \SquareConnect\Model\V1Category
472 */
473 public function getCategory()
474 {
475 return $this->category;
476 }
477
478 /**
479 * Sets category
480 * @param \SquareConnect\Model\V1Category $category The category the item belongs to, if any.
481 * @return $this
482 */
483 public function setCategory($category)
484 {
485 $this->category = $category;
486 return $this;
487 }
488 /**
489 * Gets variations
490 * @return \SquareConnect\Model\V1Variation[]
491 */
492 public function getVariations()
493 {
494 return $this->variations;
495 }
496
497 /**
498 * Sets variations
499 * @param \SquareConnect\Model\V1Variation[] $variations The item's variations. You must specify at least one variation.
500 * @return $this
501 */
502 public function setVariations($variations)
503 {
504 $this->variations = $variations;
505 return $this;
506 }
507 /**
508 * Gets modifier_lists
509 * @return \SquareConnect\Model\V1ModifierList[]
510 */
511 public function getModifierLists()
512 {
513 return $this->modifier_lists;
514 }
515
516 /**
517 * Sets modifier_lists
518 * @param \SquareConnect\Model\V1ModifierList[] $modifier_lists The modifier lists that apply to the item, if any.
519 * @return $this
520 */
521 public function setModifierLists($modifier_lists)
522 {
523 $this->modifier_lists = $modifier_lists;
524 return $this;
525 }
526 /**
527 * Gets fees
528 * @return \SquareConnect\Model\V1Fee[]
529 */
530 public function getFees()
531 {
532 return $this->fees;
533 }
534
535 /**
536 * Sets fees
537 * @param \SquareConnect\Model\V1Fee[] $fees The fees that apply to the item, if any.
538 * @return $this
539 */
540 public function setFees($fees)
541 {
542 $this->fees = $fees;
543 return $this;
544 }
545 /**
546 * Gets taxable
547 * @return bool
548 */
549 public function getTaxable()
550 {
551 return $this->taxable;
552 }
553
554 /**
555 * Sets taxable
556 * @param bool $taxable Deprecated. This field is not used.
557 * @return $this
558 */
559 public function setTaxable($taxable)
560 {
561 $this->taxable = $taxable;
562 return $this;
563 }
564 /**
565 * Gets category_id
566 * @return string
567 */
568 public function getCategoryId()
569 {
570 return $this->category_id;
571 }
572
573 /**
574 * Sets category_id
575 * @param string $category_id The ID of the item's category, if any.
576 * @return $this
577 */
578 public function setCategoryId($category_id)
579 {
580 $this->category_id = $category_id;
581 return $this;
582 }
583 /**
584 * Gets available_for_pickup
585 * @return bool
586 */
587 public function getAvailableForPickup()
588 {
589 return $this->available_for_pickup;
590 }
591
592 /**
593 * Sets available_for_pickup
594 * @param bool $available_for_pickup If true, the item can be added to pickup orders from the merchant's online store. Default value: false
595 * @return $this
596 */
597 public function setAvailableForPickup($available_for_pickup)
598 {
599 $this->available_for_pickup = $available_for_pickup;
600 return $this;
601 }
602 /**
603 * Gets v2_id
604 * @return string
605 */
606 public function getV2Id()
607 {
608 return $this->v2_id;
609 }
610
611 /**
612 * Sets v2_id
613 * @param string $v2_id The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID.
614 * @return $this
615 */
616 public function setV2Id($v2_id)
617 {
618 $this->v2_id = $v2_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