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 / CatalogObject.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
CatalogObject.php
906 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 * CatalogObject 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 CatalogObject implements ArrayAccess
21 {
22 /**
23 * Array of property to type mappings. Used for (de)serialization
24 * @var string[]
25 */
26 static $swaggerTypes = array(
27 'type' => 'string',
28 'id' => 'string',
29 'updated_at' => 'string',
30 'version' => 'int',
31 'is_deleted' => 'bool',
32 'catalog_v1_ids' => '\SquareConnect\Model\CatalogV1Id[]',
33 'present_at_all_locations' => 'bool',
34 'present_at_location_ids' => 'string[]',
35 'absent_at_location_ids' => 'string[]',
36 'image_id' => 'string',
37 'item_data' => '\SquareConnect\Model\CatalogItem',
38 'category_data' => '\SquareConnect\Model\CatalogCategory',
39 'item_variation_data' => '\SquareConnect\Model\CatalogItemVariation',
40 'tax_data' => '\SquareConnect\Model\CatalogTax',
41 'discount_data' => '\SquareConnect\Model\CatalogDiscount',
42 'modifier_list_data' => '\SquareConnect\Model\CatalogModifierList',
43 'modifier_data' => '\SquareConnect\Model\CatalogModifier',
44 'time_period_data' => '\SquareConnect\Model\CatalogTimePeriod',
45 'product_set_data' => '\SquareConnect\Model\CatalogProductSet',
46 'pricing_rule_data' => '\SquareConnect\Model\CatalogPricingRule',
47 'image_data' => '\SquareConnect\Model\CatalogImage',
48 'measurement_unit_data' => '\SquareConnect\Model\CatalogMeasurementUnit',
49 'item_option_data' => '\SquareConnect\Model\CatalogItemOption',
50 'item_option_value_data' => '\SquareConnect\Model\CatalogItemOptionValue'
51 );
52
53 /**
54 * Array of attributes where the key is the local name, and the value is the original name
55 * @var string[]
56 */
57 static $attributeMap = array(
58 'type' => 'type',
59 'id' => 'id',
60 'updated_at' => 'updated_at',
61 'version' => 'version',
62 'is_deleted' => 'is_deleted',
63 'catalog_v1_ids' => 'catalog_v1_ids',
64 'present_at_all_locations' => 'present_at_all_locations',
65 'present_at_location_ids' => 'present_at_location_ids',
66 'absent_at_location_ids' => 'absent_at_location_ids',
67 'image_id' => 'image_id',
68 'item_data' => 'item_data',
69 'category_data' => 'category_data',
70 'item_variation_data' => 'item_variation_data',
71 'tax_data' => 'tax_data',
72 'discount_data' => 'discount_data',
73 'modifier_list_data' => 'modifier_list_data',
74 'modifier_data' => 'modifier_data',
75 'time_period_data' => 'time_period_data',
76 'product_set_data' => 'product_set_data',
77 'pricing_rule_data' => 'pricing_rule_data',
78 'image_data' => 'image_data',
79 'measurement_unit_data' => 'measurement_unit_data',
80 'item_option_data' => 'item_option_data',
81 'item_option_value_data' => 'item_option_value_data'
82 );
83
84 /**
85 * Array of attributes to setter functions (for deserialization of responses)
86 * @var string[]
87 */
88 static $setters = array(
89 'type' => 'setType',
90 'id' => 'setId',
91 'updated_at' => 'setUpdatedAt',
92 'version' => 'setVersion',
93 'is_deleted' => 'setIsDeleted',
94 'catalog_v1_ids' => 'setCatalogV1Ids',
95 'present_at_all_locations' => 'setPresentAtAllLocations',
96 'present_at_location_ids' => 'setPresentAtLocationIds',
97 'absent_at_location_ids' => 'setAbsentAtLocationIds',
98 'image_id' => 'setImageId',
99 'item_data' => 'setItemData',
100 'category_data' => 'setCategoryData',
101 'item_variation_data' => 'setItemVariationData',
102 'tax_data' => 'setTaxData',
103 'discount_data' => 'setDiscountData',
104 'modifier_list_data' => 'setModifierListData',
105 'modifier_data' => 'setModifierData',
106 'time_period_data' => 'setTimePeriodData',
107 'product_set_data' => 'setProductSetData',
108 'pricing_rule_data' => 'setPricingRuleData',
109 'image_data' => 'setImageData',
110 'measurement_unit_data' => 'setMeasurementUnitData',
111 'item_option_data' => 'setItemOptionData',
112 'item_option_value_data' => 'setItemOptionValueData'
113 );
114
115 /**
116 * Array of attributes to getter functions (for serialization of requests)
117 * @var string[]
118 */
119 static $getters = array(
120 'type' => 'getType',
121 'id' => 'getId',
122 'updated_at' => 'getUpdatedAt',
123 'version' => 'getVersion',
124 'is_deleted' => 'getIsDeleted',
125 'catalog_v1_ids' => 'getCatalogV1Ids',
126 'present_at_all_locations' => 'getPresentAtAllLocations',
127 'present_at_location_ids' => 'getPresentAtLocationIds',
128 'absent_at_location_ids' => 'getAbsentAtLocationIds',
129 'image_id' => 'getImageId',
130 'item_data' => 'getItemData',
131 'category_data' => 'getCategoryData',
132 'item_variation_data' => 'getItemVariationData',
133 'tax_data' => 'getTaxData',
134 'discount_data' => 'getDiscountData',
135 'modifier_list_data' => 'getModifierListData',
136 'modifier_data' => 'getModifierData',
137 'time_period_data' => 'getTimePeriodData',
138 'product_set_data' => 'getProductSetData',
139 'pricing_rule_data' => 'getPricingRuleData',
140 'image_data' => 'getImageData',
141 'measurement_unit_data' => 'getMeasurementUnitData',
142 'item_option_data' => 'getItemOptionData',
143 'item_option_value_data' => 'getItemOptionValueData'
144 );
145
146 /**
147 * $type The type of this object. Each object type has expected properties expressed in a structured format within its corresponding `*_data` field below. See [CatalogObjectType](#type-catalogobjecttype) for possible values
148 * @var string
149 */
150 protected $type;
151 /**
152 * $id An identifier to reference this object in the catalog. When a new CatalogObject is inserted, the client should set the id to a temporary identifier starting with a `'#'` character. Other objects being inserted or updated within the same request may use this identifier to refer to the new object. When the server receives the new object, it will supply a unique identifier that replaces the temporary identifier for all future references.
153 * @var string
154 */
155 protected $id;
156 /**
157 * $updated_at Last modification [timestamp](#workingwithdates) in RFC 3339 format, e.g., `\"2016-08-15T23:59:33.123Z\"` would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds.
158 * @var string
159 */
160 protected $updated_at;
161 /**
162 * $version The version of the object. When updating an object, the version supplied must match the version in the database, otherwise the write will be rejected as conflicting.
163 * @var int
164 */
165 protected $version;
166 /**
167 * $is_deleted If `true`, the object has been deleted from the database. Must be `false` for new objects being inserted. When deleted, the `updated_at` field will equal the deletion time.
168 * @var bool
169 */
170 protected $is_deleted;
171 /**
172 * $catalog_v1_ids The Connect V1 IDs for this object at each [location](#type-location) where it is present, where they differ from the object's Connect V2 ID. The field will only be present for objects that have been created or modified by legacy APIs.
173 * @var \SquareConnect\Model\CatalogV1Id[]
174 */
175 protected $catalog_v1_ids;
176 /**
177 * $present_at_all_locations If `true`, this object is present at all locations (including future locations), except where specified in the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations), except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`.
178 * @var bool
179 */
180 protected $present_at_all_locations;
181 /**
182 * $present_at_location_ids A list of locations where the object is present, even if `present_at_all_locations` is `false`.
183 * @var string[]
184 */
185 protected $present_at_location_ids;
186 /**
187 * $absent_at_location_ids A list of locations where the object is not present, even if `present_at_all_locations` is `true`.
188 * @var string[]
189 */
190 protected $absent_at_location_ids;
191 /**
192 * $image_id Identifies the `CatalogImage` attached to this `CatalogObject`.
193 * @var string
194 */
195 protected $image_id;
196 /**
197 * $item_data Structured data for a [CatalogItem](#type-catalogitem), set for CatalogObjects of type `ITEM`.
198 * @var \SquareConnect\Model\CatalogItem
199 */
200 protected $item_data;
201 /**
202 * $category_data Structured data for a [CatalogCategory](#type-catalogcategory), set for CatalogObjects of type `CATEGORY`.
203 * @var \SquareConnect\Model\CatalogCategory
204 */
205 protected $category_data;
206 /**
207 * $item_variation_data Structured data for a [CatalogItemVariation](#type-catalogitemvariation), set for CatalogObjects of type `ITEM_VARIATION`.
208 * @var \SquareConnect\Model\CatalogItemVariation
209 */
210 protected $item_variation_data;
211 /**
212 * $tax_data Structured data for a [CatalogTax](#type-catalogtax), set for CatalogObjects of type `TAX`.
213 * @var \SquareConnect\Model\CatalogTax
214 */
215 protected $tax_data;
216 /**
217 * $discount_data Structured data for a [CatalogDiscount](#type-catalogdiscount), set for CatalogObjects of type `DISCOUNT`.
218 * @var \SquareConnect\Model\CatalogDiscount
219 */
220 protected $discount_data;
221 /**
222 * $modifier_list_data Structured data for a [CatalogModifierList](#type-catalogmodifierlist), set for CatalogObjects of type `MODIFIER_LIST`.
223 * @var \SquareConnect\Model\CatalogModifierList
224 */
225 protected $modifier_list_data;
226 /**
227 * $modifier_data Structured data for a [CatalogModifier](#type-catalogmodifier), set for CatalogObjects of type `MODIFIER`.
228 * @var \SquareConnect\Model\CatalogModifier
229 */
230 protected $modifier_data;
231 /**
232 * $time_period_data Structured data for a [CatalogTimePeriod](#type-catalogtimeperiod), set for CatalogObjects of type `TIME_PERIOD`.
233 * @var \SquareConnect\Model\CatalogTimePeriod
234 */
235 protected $time_period_data;
236 /**
237 * $product_set_data Structured data for a [CatalogProductSet](#type-catalogproductset), set for CatalogObjects of type `PRODUCT_SET`.
238 * @var \SquareConnect\Model\CatalogProductSet
239 */
240 protected $product_set_data;
241 /**
242 * $pricing_rule_data Structured data for a [CatalogPricingRule](#type-catalogpricingrule), set for CatalogObjects of type `PRICING_RULE`.
243 * @var \SquareConnect\Model\CatalogPricingRule
244 */
245 protected $pricing_rule_data;
246 /**
247 * $image_data Structured data for a [CatalogImage](#type-catalogimage), set for CatalogObjects of type `IMAGE`.
248 * @var \SquareConnect\Model\CatalogImage
249 */
250 protected $image_data;
251 /**
252 * $measurement_unit_data Structured data for a [CatalogMeasurementUnit](#type-catalogmeasurementunit), set for CatalogObjects of type `MEASUREMENT_UNIT`.
253 * @var \SquareConnect\Model\CatalogMeasurementUnit
254 */
255 protected $measurement_unit_data;
256 /**
257 * $item_option_data Structured data for a [CatalogItemOption](#type-catalogitemoption), set for CatalogObjects of type `ITEM_OPTION`.
258 * @var \SquareConnect\Model\CatalogItemOption
259 */
260 protected $item_option_data;
261 /**
262 * $item_option_value_data Structured data for a [CatalogItemOptionValue](#type-catalogitemoptionvalue), set for CatalogObjects of type `ITEM_OPTION_VAL`.
263 * @var \SquareConnect\Model\CatalogItemOptionValue
264 */
265 protected $item_option_value_data;
266
267 /**
268 * Constructor
269 * @param mixed[] $data Associated array of property value initializing the model
270 */
271 public function __construct(array $data = null)
272 {
273 if ($data != null) {
274 if (isset($data["type"])) {
275 $this->type = $data["type"];
276 } else {
277 $this->type = null;
278 }
279 if (isset($data["id"])) {
280 $this->id = $data["id"];
281 } else {
282 $this->id = null;
283 }
284 if (isset($data["updated_at"])) {
285 $this->updated_at = $data["updated_at"];
286 } else {
287 $this->updated_at = null;
288 }
289 if (isset($data["version"])) {
290 $this->version = $data["version"];
291 } else {
292 $this->version = null;
293 }
294 if (isset($data["is_deleted"])) {
295 $this->is_deleted = $data["is_deleted"];
296 } else {
297 $this->is_deleted = null;
298 }
299 if (isset($data["catalog_v1_ids"])) {
300 $this->catalog_v1_ids = $data["catalog_v1_ids"];
301 } else {
302 $this->catalog_v1_ids = null;
303 }
304 if (isset($data["present_at_all_locations"])) {
305 $this->present_at_all_locations = $data["present_at_all_locations"];
306 } else {
307 $this->present_at_all_locations = null;
308 }
309 if (isset($data["present_at_location_ids"])) {
310 $this->present_at_location_ids = $data["present_at_location_ids"];
311 } else {
312 $this->present_at_location_ids = null;
313 }
314 if (isset($data["absent_at_location_ids"])) {
315 $this->absent_at_location_ids = $data["absent_at_location_ids"];
316 } else {
317 $this->absent_at_location_ids = null;
318 }
319 if (isset($data["image_id"])) {
320 $this->image_id = $data["image_id"];
321 } else {
322 $this->image_id = null;
323 }
324 if (isset($data["item_data"])) {
325 $this->item_data = $data["item_data"];
326 } else {
327 $this->item_data = null;
328 }
329 if (isset($data["category_data"])) {
330 $this->category_data = $data["category_data"];
331 } else {
332 $this->category_data = null;
333 }
334 if (isset($data["item_variation_data"])) {
335 $this->item_variation_data = $data["item_variation_data"];
336 } else {
337 $this->item_variation_data = null;
338 }
339 if (isset($data["tax_data"])) {
340 $this->tax_data = $data["tax_data"];
341 } else {
342 $this->tax_data = null;
343 }
344 if (isset($data["discount_data"])) {
345 $this->discount_data = $data["discount_data"];
346 } else {
347 $this->discount_data = null;
348 }
349 if (isset($data["modifier_list_data"])) {
350 $this->modifier_list_data = $data["modifier_list_data"];
351 } else {
352 $this->modifier_list_data = null;
353 }
354 if (isset($data["modifier_data"])) {
355 $this->modifier_data = $data["modifier_data"];
356 } else {
357 $this->modifier_data = null;
358 }
359 if (isset($data["time_period_data"])) {
360 $this->time_period_data = $data["time_period_data"];
361 } else {
362 $this->time_period_data = null;
363 }
364 if (isset($data["product_set_data"])) {
365 $this->product_set_data = $data["product_set_data"];
366 } else {
367 $this->product_set_data = null;
368 }
369 if (isset($data["pricing_rule_data"])) {
370 $this->pricing_rule_data = $data["pricing_rule_data"];
371 } else {
372 $this->pricing_rule_data = null;
373 }
374 if (isset($data["image_data"])) {
375 $this->image_data = $data["image_data"];
376 } else {
377 $this->image_data = null;
378 }
379 if (isset($data["measurement_unit_data"])) {
380 $this->measurement_unit_data = $data["measurement_unit_data"];
381 } else {
382 $this->measurement_unit_data = null;
383 }
384 if (isset($data["item_option_data"])) {
385 $this->item_option_data = $data["item_option_data"];
386 } else {
387 $this->item_option_data = null;
388 }
389 if (isset($data["item_option_value_data"])) {
390 $this->item_option_value_data = $data["item_option_value_data"];
391 } else {
392 $this->item_option_value_data = null;
393 }
394 }
395 }
396 /**
397 * Gets type
398 * @return string
399 */
400 public function getType()
401 {
402 return $this->type;
403 }
404
405 /**
406 * Sets type
407 * @param string $type The type of this object. Each object type has expected properties expressed in a structured format within its corresponding `*_data` field below. See [CatalogObjectType](#type-catalogobjecttype) for possible values
408 * @return $this
409 */
410 public function setType($type)
411 {
412 $this->type = $type;
413 return $this;
414 }
415 /**
416 * Gets id
417 * @return string
418 */
419 public function getId()
420 {
421 return $this->id;
422 }
423
424 /**
425 * Sets id
426 * @param string $id An identifier to reference this object in the catalog. When a new CatalogObject is inserted, the client should set the id to a temporary identifier starting with a `'#'` character. Other objects being inserted or updated within the same request may use this identifier to refer to the new object. When the server receives the new object, it will supply a unique identifier that replaces the temporary identifier for all future references.
427 * @return $this
428 */
429 public function setId($id)
430 {
431 $this->id = $id;
432 return $this;
433 }
434 /**
435 * Gets updated_at
436 * @return string
437 */
438 public function getUpdatedAt()
439 {
440 return $this->updated_at;
441 }
442
443 /**
444 * Sets updated_at
445 * @param string $updated_at Last modification [timestamp](#workingwithdates) in RFC 3339 format, e.g., `\"2016-08-15T23:59:33.123Z\"` would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds.
446 * @return $this
447 */
448 public function setUpdatedAt($updated_at)
449 {
450 $this->updated_at = $updated_at;
451 return $this;
452 }
453 /**
454 * Gets version
455 * @return int
456 */
457 public function getVersion()
458 {
459 return $this->version;
460 }
461
462 /**
463 * Sets version
464 * @param int $version The version of the object. When updating an object, the version supplied must match the version in the database, otherwise the write will be rejected as conflicting.
465 * @return $this
466 */
467 public function setVersion($version)
468 {
469 $this->version = $version;
470 return $this;
471 }
472 /**
473 * Gets is_deleted
474 * @return bool
475 */
476 public function getIsDeleted()
477 {
478 return $this->is_deleted;
479 }
480
481 /**
482 * Sets is_deleted
483 * @param bool $is_deleted If `true`, the object has been deleted from the database. Must be `false` for new objects being inserted. When deleted, the `updated_at` field will equal the deletion time.
484 * @return $this
485 */
486 public function setIsDeleted($is_deleted)
487 {
488 $this->is_deleted = $is_deleted;
489 return $this;
490 }
491 /**
492 * Gets catalog_v1_ids
493 * @return \SquareConnect\Model\CatalogV1Id[]
494 */
495 public function getCatalogV1Ids()
496 {
497 return $this->catalog_v1_ids;
498 }
499
500 /**
501 * Sets catalog_v1_ids
502 * @param \SquareConnect\Model\CatalogV1Id[] $catalog_v1_ids The Connect V1 IDs for this object at each [location](#type-location) where it is present, where they differ from the object's Connect V2 ID. The field will only be present for objects that have been created or modified by legacy APIs.
503 * @return $this
504 */
505 public function setCatalogV1Ids($catalog_v1_ids)
506 {
507 $this->catalog_v1_ids = $catalog_v1_ids;
508 return $this;
509 }
510 /**
511 * Gets present_at_all_locations
512 * @return bool
513 */
514 public function getPresentAtAllLocations()
515 {
516 return $this->present_at_all_locations;
517 }
518
519 /**
520 * Sets present_at_all_locations
521 * @param bool $present_at_all_locations If `true`, this object is present at all locations (including future locations), except where specified in the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations), except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`.
522 * @return $this
523 */
524 public function setPresentAtAllLocations($present_at_all_locations)
525 {
526 $this->present_at_all_locations = $present_at_all_locations;
527 return $this;
528 }
529 /**
530 * Gets present_at_location_ids
531 * @return string[]
532 */
533 public function getPresentAtLocationIds()
534 {
535 return $this->present_at_location_ids;
536 }
537
538 /**
539 * Sets present_at_location_ids
540 * @param string[] $present_at_location_ids A list of locations where the object is present, even if `present_at_all_locations` is `false`.
541 * @return $this
542 */
543 public function setPresentAtLocationIds($present_at_location_ids)
544 {
545 $this->present_at_location_ids = $present_at_location_ids;
546 return $this;
547 }
548 /**
549 * Gets absent_at_location_ids
550 * @return string[]
551 */
552 public function getAbsentAtLocationIds()
553 {
554 return $this->absent_at_location_ids;
555 }
556
557 /**
558 * Sets absent_at_location_ids
559 * @param string[] $absent_at_location_ids A list of locations where the object is not present, even if `present_at_all_locations` is `true`.
560 * @return $this
561 */
562 public function setAbsentAtLocationIds($absent_at_location_ids)
563 {
564 $this->absent_at_location_ids = $absent_at_location_ids;
565 return $this;
566 }
567 /**
568 * Gets image_id
569 * @return string
570 */
571 public function getImageId()
572 {
573 return $this->image_id;
574 }
575
576 /**
577 * Sets image_id
578 * @param string $image_id Identifies the `CatalogImage` attached to this `CatalogObject`.
579 * @return $this
580 */
581 public function setImageId($image_id)
582 {
583 $this->image_id = $image_id;
584 return $this;
585 }
586 /**
587 * Gets item_data
588 * @return \SquareConnect\Model\CatalogItem
589 */
590 public function getItemData()
591 {
592 return $this->item_data;
593 }
594
595 /**
596 * Sets item_data
597 * @param \SquareConnect\Model\CatalogItem $item_data Structured data for a [CatalogItem](#type-catalogitem), set for CatalogObjects of type `ITEM`.
598 * @return $this
599 */
600 public function setItemData($item_data)
601 {
602 $this->item_data = $item_data;
603 return $this;
604 }
605 /**
606 * Gets category_data
607 * @return \SquareConnect\Model\CatalogCategory
608 */
609 public function getCategoryData()
610 {
611 return $this->category_data;
612 }
613
614 /**
615 * Sets category_data
616 * @param \SquareConnect\Model\CatalogCategory $category_data Structured data for a [CatalogCategory](#type-catalogcategory), set for CatalogObjects of type `CATEGORY`.
617 * @return $this
618 */
619 public function setCategoryData($category_data)
620 {
621 $this->category_data = $category_data;
622 return $this;
623 }
624 /**
625 * Gets item_variation_data
626 * @return \SquareConnect\Model\CatalogItemVariation
627 */
628 public function getItemVariationData()
629 {
630 return $this->item_variation_data;
631 }
632
633 /**
634 * Sets item_variation_data
635 * @param \SquareConnect\Model\CatalogItemVariation $item_variation_data Structured data for a [CatalogItemVariation](#type-catalogitemvariation), set for CatalogObjects of type `ITEM_VARIATION`.
636 * @return $this
637 */
638 public function setItemVariationData($item_variation_data)
639 {
640 $this->item_variation_data = $item_variation_data;
641 return $this;
642 }
643 /**
644 * Gets tax_data
645 * @return \SquareConnect\Model\CatalogTax
646 */
647 public function getTaxData()
648 {
649 return $this->tax_data;
650 }
651
652 /**
653 * Sets tax_data
654 * @param \SquareConnect\Model\CatalogTax $tax_data Structured data for a [CatalogTax](#type-catalogtax), set for CatalogObjects of type `TAX`.
655 * @return $this
656 */
657 public function setTaxData($tax_data)
658 {
659 $this->tax_data = $tax_data;
660 return $this;
661 }
662 /**
663 * Gets discount_data
664 * @return \SquareConnect\Model\CatalogDiscount
665 */
666 public function getDiscountData()
667 {
668 return $this->discount_data;
669 }
670
671 /**
672 * Sets discount_data
673 * @param \SquareConnect\Model\CatalogDiscount $discount_data Structured data for a [CatalogDiscount](#type-catalogdiscount), set for CatalogObjects of type `DISCOUNT`.
674 * @return $this
675 */
676 public function setDiscountData($discount_data)
677 {
678 $this->discount_data = $discount_data;
679 return $this;
680 }
681 /**
682 * Gets modifier_list_data
683 * @return \SquareConnect\Model\CatalogModifierList
684 */
685 public function getModifierListData()
686 {
687 return $this->modifier_list_data;
688 }
689
690 /**
691 * Sets modifier_list_data
692 * @param \SquareConnect\Model\CatalogModifierList $modifier_list_data Structured data for a [CatalogModifierList](#type-catalogmodifierlist), set for CatalogObjects of type `MODIFIER_LIST`.
693 * @return $this
694 */
695 public function setModifierListData($modifier_list_data)
696 {
697 $this->modifier_list_data = $modifier_list_data;
698 return $this;
699 }
700 /**
701 * Gets modifier_data
702 * @return \SquareConnect\Model\CatalogModifier
703 */
704 public function getModifierData()
705 {
706 return $this->modifier_data;
707 }
708
709 /**
710 * Sets modifier_data
711 * @param \SquareConnect\Model\CatalogModifier $modifier_data Structured data for a [CatalogModifier](#type-catalogmodifier), set for CatalogObjects of type `MODIFIER`.
712 * @return $this
713 */
714 public function setModifierData($modifier_data)
715 {
716 $this->modifier_data = $modifier_data;
717 return $this;
718 }
719 /**
720 * Gets time_period_data
721 * @return \SquareConnect\Model\CatalogTimePeriod
722 */
723 public function getTimePeriodData()
724 {
725 return $this->time_period_data;
726 }
727
728 /**
729 * Sets time_period_data
730 * @param \SquareConnect\Model\CatalogTimePeriod $time_period_data Structured data for a [CatalogTimePeriod](#type-catalogtimeperiod), set for CatalogObjects of type `TIME_PERIOD`.
731 * @return $this
732 */
733 public function setTimePeriodData($time_period_data)
734 {
735 $this->time_period_data = $time_period_data;
736 return $this;
737 }
738 /**
739 * Gets product_set_data
740 * @return \SquareConnect\Model\CatalogProductSet
741 */
742 public function getProductSetData()
743 {
744 return $this->product_set_data;
745 }
746
747 /**
748 * Sets product_set_data
749 * @param \SquareConnect\Model\CatalogProductSet $product_set_data Structured data for a [CatalogProductSet](#type-catalogproductset), set for CatalogObjects of type `PRODUCT_SET`.
750 * @return $this
751 */
752 public function setProductSetData($product_set_data)
753 {
754 $this->product_set_data = $product_set_data;
755 return $this;
756 }
757 /**
758 * Gets pricing_rule_data
759 * @return \SquareConnect\Model\CatalogPricingRule
760 */
761 public function getPricingRuleData()
762 {
763 return $this->pricing_rule_data;
764 }
765
766 /**
767 * Sets pricing_rule_data
768 * @param \SquareConnect\Model\CatalogPricingRule $pricing_rule_data Structured data for a [CatalogPricingRule](#type-catalogpricingrule), set for CatalogObjects of type `PRICING_RULE`.
769 * @return $this
770 */
771 public function setPricingRuleData($pricing_rule_data)
772 {
773 $this->pricing_rule_data = $pricing_rule_data;
774 return $this;
775 }
776 /**
777 * Gets image_data
778 * @return \SquareConnect\Model\CatalogImage
779 */
780 public function getImageData()
781 {
782 return $this->image_data;
783 }
784
785 /**
786 * Sets image_data
787 * @param \SquareConnect\Model\CatalogImage $image_data Structured data for a [CatalogImage](#type-catalogimage), set for CatalogObjects of type `IMAGE`.
788 * @return $this
789 */
790 public function setImageData($image_data)
791 {
792 $this->image_data = $image_data;
793 return $this;
794 }
795 /**
796 * Gets measurement_unit_data
797 * @return \SquareConnect\Model\CatalogMeasurementUnit
798 */
799 public function getMeasurementUnitData()
800 {
801 return $this->measurement_unit_data;
802 }
803
804 /**
805 * Sets measurement_unit_data
806 * @param \SquareConnect\Model\CatalogMeasurementUnit $measurement_unit_data Structured data for a [CatalogMeasurementUnit](#type-catalogmeasurementunit), set for CatalogObjects of type `MEASUREMENT_UNIT`.
807 * @return $this
808 */
809 public function setMeasurementUnitData($measurement_unit_data)
810 {
811 $this->measurement_unit_data = $measurement_unit_data;
812 return $this;
813 }
814 /**
815 * Gets item_option_data
816 * @return \SquareConnect\Model\CatalogItemOption
817 */
818 public function getItemOptionData()
819 {
820 return $this->item_option_data;
821 }
822
823 /**
824 * Sets item_option_data
825 * @param \SquareConnect\Model\CatalogItemOption $item_option_data Structured data for a [CatalogItemOption](#type-catalogitemoption), set for CatalogObjects of type `ITEM_OPTION`.
826 * @return $this
827 */
828 public function setItemOptionData($item_option_data)
829 {
830 $this->item_option_data = $item_option_data;
831 return $this;
832 }
833 /**
834 * Gets item_option_value_data
835 * @return \SquareConnect\Model\CatalogItemOptionValue
836 */
837 public function getItemOptionValueData()
838 {
839 return $this->item_option_value_data;
840 }
841
842 /**
843 * Sets item_option_value_data
844 * @param \SquareConnect\Model\CatalogItemOptionValue $item_option_value_data Structured data for a [CatalogItemOptionValue](#type-catalogitemoptionvalue), set for CatalogObjects of type `ITEM_OPTION_VAL`.
845 * @return $this
846 */
847 public function setItemOptionValueData($item_option_value_data)
848 {
849 $this->item_option_value_data = $item_option_value_data;
850 return $this;
851 }
852 /**
853 * Returns true if offset exists. False otherwise.
854 * @param integer $offset Offset
855 * @return boolean
856 */
857 public function offsetExists($offset)
858 {
859 return isset($this->$offset);
860 }
861
862 /**
863 * Gets offset.
864 * @param integer $offset Offset
865 * @return mixed
866 */
867 public function offsetGet($offset)
868 {
869 return $this->$offset;
870 }
871
872 /**
873 * Sets value based on offset.
874 * @param integer $offset Offset
875 * @param mixed $value Value to be set
876 * @return void
877 */
878 public function offsetSet($offset, $value)
879 {
880 $this->$offset = $value;
881 }
882
883 /**
884 * Unsets offset.
885 * @param integer $offset Offset
886 * @return void
887 */
888 public function offsetUnset($offset)
889 {
890 unset($this->$offset);
891 }
892
893 /**
894 * Gets the string presentation of the object
895 * @return string
896 */
897 public function __toString()
898 {
899 if (defined('JSON_PRETTY_PRINT')) {
900 return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
901 } else {
902 return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this));
903 }
904 }
905 }
906