├── .gitignore
├── tests
└── Integration
│ ├── testdata
│ └── image.jpeg
│ └── LocationsTest.php
├── src
├── Types
│ ├── SortOrder.php
│ ├── PayoutType.php
│ ├── ShiftStatus.php
│ ├── TimecardStatus.php
│ ├── ChannelStatus.php
│ ├── EmployeeStatus.php
│ ├── GiftCardGanSource.php
│ ├── GiftCardType.php
│ ├── LocationStatus.php
│ ├── LocationType.php
│ ├── MerchantStatus.php
│ ├── ShiftFilterStatus.php
│ ├── TransactionType.php
│ ├── VendorStatus.php
│ ├── TeamMemberStatus.php
│ ├── TimecardFilterStatus.php
│ ├── TaxInclusionType.php
│ ├── CustomerSortField.php
│ ├── InventoryAlertType.php
│ ├── LoyaltyEventSource.php
│ ├── LoyaltyProgramStatus.php
│ ├── PayoutStatus.php
│ ├── SubscriptionPricingType.php
│ ├── CatalogModifierListModifierType.php
│ ├── ChangeTiming.php
│ ├── CustomerInclusionExclusion.php
│ ├── OrderServiceChargeType.php
│ ├── PaymentOptionsDelayAction.php
│ ├── DeviceAttributesDeviceType.php
│ ├── ExcludeStrategy.php
│ ├── PayoutFeeType.php
│ ├── RegisterDomainResponseStatus.php
│ ├── SearchCatalogItemsRequestStockLevel.php
│ ├── SearchVendorsRequestSortField.php
│ ├── TransferOrderSortField.php
│ ├── VisibilityFilter.php
│ ├── CardCoBrand.php
│ ├── CardType.php
│ ├── CashDrawerShiftState.php
│ ├── CatalogModifierListSelectionType.php
│ ├── CatalogPricingType.php
│ ├── DataCollectionOptionsInputType.php
│ ├── FulfillmentType.php
│ ├── JobAssignmentPayType.php
│ ├── LoyaltyPromotionTriggerLimitInterval.php
│ ├── BookingCreatorDetailsCreatorType.php
│ ├── FulfillmentPickupDetailsScheduleType.php
│ ├── LoyaltyProgramAccrualRuleTaxMode.php
│ ├── LoyaltyRewardStatus.php
│ ├── TaxCalculationPhase.php
│ ├── TenderBuyNowPayLaterDetailsBrand.php
│ ├── InvoiceDeliveryMethod.php
│ ├── ListPaymentRefundsRequestSortField.php
│ ├── OrderFulfillmentType.php
│ ├── FulfillmentFulfillmentLineItemApplication.php
│ ├── InvoiceRequestType.php
│ ├── OrderFulfillmentPickupDetailsScheduleType.php
│ ├── ScheduledShiftFilterAssignmentStatus.php
│ ├── ScheduledShiftFilterScheduledShiftStatus.php
│ ├── ShiftWorkdayMatcher.php
│ ├── InvoiceCustomFieldPlacement.php
│ ├── OrderFulfillmentDeliveryDetailsScheduleType.php
│ ├── OrderLineItemItemType.php
│ ├── OrderLineItemTaxType.php
│ ├── OrderState.php
│ ├── TimecardWorkdayMatcher.php
│ ├── V1UpdateOrderRequestAction.php
│ ├── LoyaltyPromotionIncentiveType.php
│ ├── OrderFulfillmentFulfillmentLineItemApplication.php
│ ├── OrderLineItemTaxScope.php
│ ├── ScheduledShiftNotificationAudience.php
│ ├── SearchOrdersSortField.php
│ ├── TeamMemberInvitationStatus.php
│ ├── BusinessBookingProfileBookingPolicy.php
│ ├── CardPrepaidType.php
│ ├── CatalogQuickAmountsSettingsOption.php
│ ├── DeviceStatusCategory.php
│ ├── GiftCardActivityRedeemStatus.php
│ ├── InventoryChangeType.php
│ ├── InvoicePaymentReminderStatus.php
│ ├── RefundStatus.php
│ ├── TenderBankAccountDetailsStatus.php
│ ├── ActionCancelReason.php
│ ├── CatalogDiscountModifyTaxBasis.php
│ ├── CatalogQuickAmountType.php
│ ├── DeviceCodeStatus.php
│ ├── InvoiceAutomaticPaymentSource.php
│ ├── ScheduledShiftWorkdayMatcher.php
│ ├── BankAccountStatus.php
│ ├── CatalogItemFoodAndBeverageDetailsDietaryPreferenceType.php
│ ├── EcomVisibility.php
│ ├── GiftCardStatus.php
│ ├── ShiftSortField.php
│ ├── OrderLineItemDiscountScope.php
│ ├── OrderServiceChargeTreatmentType.php
│ ├── RiskEvaluationRiskLevel.php
│ ├── TimecardSortField.php
│ ├── CatalogCategoryType.php
│ ├── CheckoutLocationSettingsBrandingButtonShape.php
│ ├── LoyaltyPromotionStatus.php
│ ├── OrderServiceChargeScope.php
│ ├── ListPaymentsRequestSortField.php
│ ├── TenderCardDetailsStatus.php
│ ├── OauthAuthorizationRevokedEventRevokerType.php
│ ├── ScheduledShiftSortField.php
│ ├── Weekday.php
│ ├── BusinessAppointmentSettingsMaxAppointmentsPerDayLimitType.php
│ ├── DayOfWeek.php
│ ├── FulfillmentDeliveryDetailsOrderFulfillmentDeliveryDetailsScheduleType.php
│ ├── LoyaltyProgramAccrualRuleType.php
│ ├── TenderSquareAccountDetailsStatus.php
│ ├── BusinessBookingProfileCustomerTimezoneChoice.php
│ ├── CatalogCustomAttributeDefinitionType.php
│ ├── DestinationType.php
│ ├── LocationCapability.php
│ ├── TenderBuyNowPayLaterDetailsStatus.php
│ ├── ArchivedState.php
│ ├── BusinessAppointmentSettingsCancellationPolicy.php
│ ├── CheckoutLocationSettingsBrandingHeaderType.php
│ ├── GiftCardActivityAdjustIncrementReason.php
│ ├── GiftCardActivityClearBalanceReason.php
│ ├── TeamMemberAssignedLocationsAssignmentType.php
│ ├── BankAccountType.php
│ ├── TenderCardDetailsEntryMethod.php
│ ├── BookingBookingSource.php
│ ├── BusinessAppointmentSettingsBookingLocationType.php
│ ├── GiftCardActivityDeactivateReason.php
│ ├── TransferOrderStatus.php
│ ├── V1OrderState.php
│ ├── CatalogDiscountType.php
│ ├── CatalogCustomAttributeDefinitionSellerVisibility.php
│ ├── FulfillmentState.php
│ ├── BusinessAppointmentSettingsAlignmentTime.php
│ ├── CustomAttributeDefinitionVisibility.php
│ ├── SubscriptionStatus.php
│ ├── OrderFulfillmentState.php
│ ├── ComponentComponentType.php
│ ├── MeasurementUnitTime.php
│ ├── BookingStatus.php
│ ├── SubscriptionActionType.php
│ ├── DeviceComponentDetailsExternalPower.php
│ ├── CatalogCustomAttributeDefinitionAppVisibility.php
│ ├── MeasurementUnitUnitType.php
│ ├── V1TenderEntryMethod.php
│ ├── OrderServiceChargeCalculationPhase.php
│ ├── OrderLineItemDiscountType.php
│ ├── GiftCardActivityAdjustDecrementReason.php
│ ├── V1OrderHistoryEntryAction.php
│ ├── MeasurementUnitWeight.php
│ ├── V1TenderType.php
│ ├── TransactionProduct.php
│ ├── TerminalActionActionType.php
│ ├── DisputeState.php
│ ├── InvoiceRequestMethod.php
│ ├── SubscriptionEventInfoCode.php
│ ├── CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreference.php
│ ├── V1TenderCardBrand.php
│ ├── CheckoutOptionsPaymentType.php
│ ├── InvoiceStatus.php
│ ├── LoyaltyEventType.php
│ ├── Product.php
│ ├── TenderType.php
│ ├── MeasurementUnitLength.php
│ ├── DisputeReason.php
│ ├── ErrorCategory.php
│ ├── CatalogItemProductType.php
│ ├── SubscriptionEventSubscriptionEventType.php
│ ├── ApplicationDetailsExternalSquareProduct.php
│ ├── MeasurementUnitArea.php
│ ├── CashDrawerEventType.php
│ ├── CardBrand.php
│ ├── SubscriptionCadence.php
│ ├── CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient.php
│ ├── MeasurementUnitVolume.php
│ ├── GiftCardActivityType.php
│ ├── InventoryState.php
│ ├── ReferenceType.php
│ ├── CustomerCreationSource.php
│ └── CatalogObjectType.php
├── Legacy
│ ├── Models
│ │ ├── ProductType.php
│ │ ├── ApplicationType.php
│ │ ├── MeasurementUnitGeneric.php
│ │ ├── OrderServiceChargeType.php
│ │ ├── DeviceAttributesDeviceType.php
│ │ ├── TenderBuyNowPayLaterDetailsBrand.php
│ │ ├── TransactionType.php
│ │ ├── V1UpdateOrderRequestAction.php
│ │ ├── DeviceStatusCategory.php
│ │ ├── PaymentSortField.php
│ │ ├── LoyaltyAccountMappingType.php
│ │ ├── CheckoutLocationSettingsBrandingButtonShape.php
│ │ ├── CardCoBrand.php
│ │ ├── CardType.php
│ │ ├── CheckoutLocationSettingsBrandingHeaderType.php
│ │ ├── GiftCardType.php
│ │ ├── CardPrepaidType.php
│ │ ├── V1OrderState.php
│ │ ├── SearchEventsSortField.php
│ │ ├── GiftCardActivityUnblockReason.php
│ │ ├── SubscriptionPricingType.php
│ │ ├── GiftCardActivityBlockReason.php
│ │ ├── LocationType.php
│ │ ├── OrderServiceChargeTreatmentType.php
│ │ ├── SearchCatalogItemsRequestStockLevel.php
│ │ ├── ShiftStatus.php
│ │ ├── ShiftFilterStatus.php
│ │ ├── BookingCreatorDetailsCreatorType.php
│ │ ├── CatalogDiscountModifyTaxBasis.php
│ │ ├── V1TenderEntryMethod.php
│ │ ├── ComponentComponentType.php
│ │ ├── PayoutFeeType.php
│ │ ├── RegisterDomainResponseStatus.php
│ │ ├── ChangeTiming.php
│ │ ├── LoyaltyRewardStatus.php
│ │ ├── TaxCalculationPhase.php
│ │ ├── VendorStatus.php
│ │ ├── V1OrderHistoryEntryAction.php
│ │ ├── BusinessBookingProfileBookingPolicy.php
│ │ ├── CatalogModifierListModifierType.php
│ │ ├── SortOrder.php
│ │ ├── InventoryAlertType.php
│ │ ├── LocationStatus.php
│ │ ├── LoyaltyProgramStatus.php
│ │ ├── SearchVendorsRequestSortField.php
│ │ ├── V1TenderType.php
│ │ ├── CatalogItemFoodAndBeverageDetailsDietaryPreferenceType.php
│ │ ├── LoyaltyEventSource.php
│ │ ├── MerchantStatus.php
│ │ ├── CatalogQuickAmountType.php
│ │ ├── CatalogPricingType.php
│ │ ├── JobAssignmentPayType.php
│ │ ├── EmployeeStatus.php
│ │ ├── InvoiceSortField.php
│ │ ├── BusinessBookingProfileCustomerTimezoneChoice.php
│ │ ├── FulfillmentPickupDetailsScheduleType.php
│ │ ├── FulfillmentType.php
│ │ ├── OrderFulfillmentDeliveryDetailsScheduleType.php
│ │ ├── PayoutStatus.php
│ │ ├── OrderFulfillmentPickupDetailsScheduleType.php
│ │ ├── OrderFulfillmentType.php
│ │ ├── BusinessAppointmentSettingsMaxAppointmentsPerDayLimitType.php
│ │ ├── DataCollectionOptionsInputType.php
│ │ ├── TenderBankAccountDetailsStatus.php
│ │ ├── InvoiceCustomFieldPlacement.php
│ │ ├── TeamMemberStatus.php
│ │ ├── CatalogModifierListSelectionType.php
│ │ ├── FulfillmentFulfillmentLineItemApplication.php
│ │ ├── ActionCancelReason.php
│ │ ├── CatalogCategoryType.php
│ │ ├── OrderFulfillmentFulfillmentLineItemApplication.php
│ │ ├── FulfillmentDeliveryDetailsOrderFulfillmentDeliveryDetailsScheduleType.php
│ │ ├── RefundStatus.php
│ │ ├── ShiftWorkdayMatcher.php
│ │ ├── CatalogQuickAmountsSettingsOption.php
│ │ ├── PaymentOptionsDelayAction.php
│ │ ├── CashDrawerShiftState.php
│ │ ├── CustomerInclusionExclusion.php
│ │ ├── V1TenderCardBrand.php
│ │ ├── BusinessAppointmentSettingsBookingLocationType.php
│ │ ├── LocationCapability.php
│ │ ├── RiskEvaluationRiskLevel.php
│ │ ├── ShiftSortField.php
│ │ ├── TeamMemberInvitationStatus.php
│ │ ├── CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreference.php
│ │ ├── BusinessAppointmentSettingsCancellationPolicy.php
│ │ ├── DestinationType.php
│ │ ├── InventoryChangeType.php
│ │ ├── DeviceCodeStatus.php
│ │ ├── GiftCardActivityAdjustIncrementReason.php
│ │ ├── DeviceComponentDetailsExternalPower.php
│ │ ├── GiftCardGANSource.php
│ │ ├── LoyaltyProgramAccrualRuleTaxMode.php
│ │ ├── Weekday.php
│ │ ├── OrderLineItemTaxScope.php
│ │ ├── OrderLineItemItemType.php
│ │ ├── TenderSquareAccountDetailsStatus.php
│ │ ├── DayOfWeek.php
│ │ ├── LoyaltyProgramRewardDefinitionType.php
│ │ ├── SubscriptionStatus.php
│ │ ├── TenderBuyNowPayLaterDetailsStatus.php
│ │ ├── ApplicationDetailsExternalSquareProduct.php
│ │ ├── LoyaltyPromotionIncentiveType.php
│ │ ├── CatalogCustomAttributeDefinitionType.php
│ │ ├── OrderLineItemDiscountScope.php
│ │ ├── PayoutType.php
│ │ ├── TenderCardDetailsStatus.php
│ │ ├── TeamMemberAssignedLocationsAssignmentType.php
│ │ ├── CustomerSortField.php
│ │ ├── OrderServiceChargeScope.php
│ │ ├── EcomVisibility.php
│ │ ├── MeasurementUnitTime.php
│ │ ├── VisibilityFilter.php
│ │ ├── GiftCardActivityClearBalanceReason.php
│ │ ├── ArchivedState.php
│ │ ├── CatalogCustomAttributeDefinitionSellerVisibility.php
│ │ ├── TaxInclusionType.php
│ │ ├── CardBrand.php
│ │ ├── LoyaltyProgramRewardDefinitionScope.php
│ │ ├── BankAccountStatus.php
│ │ └── CatalogCustomAttributeDefinitionAppVisibility.php
│ ├── Server.php
│ ├── Http
│ │ ├── HttpResponse.php
│ │ ├── HttpRequest.php
│ │ ├── HttpCallBack.php
│ │ ├── HttpMethod.php
│ │ └── HttpContext.php
│ ├── Environment.php
│ ├── BearerAuthCredentials.php
│ └── Utils
│ │ └── FileWrapper.php
├── Core
│ ├── Client
│ │ ├── HttpMethod.php
│ │ └── BaseApiRequest.php
│ ├── Json
│ │ ├── JsonProperty.php
│ │ └── JsonEncoder.php
│ ├── Types
│ │ ├── Constant.php
│ │ ├── Date.php
│ │ └── ArrayType.php
│ └── Pagination
│ │ └── Pager.php
├── Environments.php
├── Exceptions
│ └── SquareException.php
├── GiftCards
│ └── Requests
│ │ └── GetGiftCardsRequest.php
├── Employees
│ └── Requests
│ │ └── GetEmployeesRequest.php
├── Labor
│ ├── Requests
│ │ ├── DeleteTimecardRequest.php
│ │ ├── RetrieveTimecardRequest.php
│ │ └── RetrieveScheduledShiftRequest.php
│ ├── Shifts
│ │ └── Requests
│ │ │ ├── GetShiftsRequest.php
│ │ │ └── DeleteShiftsRequest.php
│ ├── BreakTypes
│ │ └── Requests
│ │ │ ├── GetBreakTypesRequest.php
│ │ │ └── DeleteBreakTypesRequest.php
│ ├── EmployeeWages
│ │ └── Requests
│ │ │ └── GetEmployeeWagesRequest.php
│ └── TeamMemberWages
│ │ └── Requests
│ │ └── GetTeamMemberWagesRequest.php
├── Devices
│ ├── Codes
│ │ └── Requests
│ │ │ └── GetCodesRequest.php
│ └── Requests
│ │ └── GetDevicesRequest.php
├── Team
│ └── Requests
│ │ └── RetrieveJobRequest.php
├── Cards
│ └── Requests
│ │ ├── GetCardsRequest.php
│ │ └── DisableCardsRequest.php
├── Checkout
│ └── PaymentLinks
│ │ └── Requests
│ │ ├── GetPaymentLinksRequest.php
│ │ └── DeletePaymentLinksRequest.php
├── Orders
│ └── Requests
│ │ └── GetOrdersRequest.php
├── Channels
│ └── Requests
│ │ └── GetChannelsRequest.php
├── Snippets
│ └── Requests
│ │ ├── GetSnippetsRequest.php
│ │ └── DeleteSnippetsRequest.php
├── Merchants
│ └── Requests
│ │ └── ListMerchantsRequest.php
├── Customers
│ ├── Groups
│ │ └── Requests
│ │ │ ├── GetGroupsRequest.php
│ │ │ └── DeleteGroupsRequest.php
│ ├── Requests
│ │ └── GetCustomersRequest.php
│ └── Segments
│ │ └── Requests
│ │ └── GetSegmentsRequest.php
├── Invoices
│ └── Requests
│ │ └── GetInvoicesRequest.php
├── Payments
│ └── Requests
│ │ ├── GetPaymentsRequest.php
│ │ └── CancelPaymentsRequest.php
├── Refunds
│ └── Requests
│ │ └── GetRefundsRequest.php
├── Vendors
│ └── Requests
│ │ └── GetVendorsRequest.php
├── Payouts
│ └── Requests
│ │ └── GetPayoutsRequest.php
├── Disputes
│ └── Requests
│ │ ├── AcceptDisputesRequest.php
│ │ └── GetDisputesRequest.php
└── Terminal
│ └── Actions
│ └── Requests
│ ├── GetActionsRequest.php
│ └── CancelActionsRequest.php
├── phpstan.neon
├── .fernignore
├── phpunit.xml
└── .fern
└── metadata.json
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea
2 | .php-cs-fixer.cache
3 | .phpunit.result.cache
4 | composer.lock
5 | vendor/
--------------------------------------------------------------------------------
/tests/Integration/testdata/image.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/square/square-php-sdk/HEAD/tests/Integration/testdata/image.jpeg
--------------------------------------------------------------------------------
/src/Types/SortOrder.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | tests
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/Types/BookingCreatorDetailsCreatorType.php:
--------------------------------------------------------------------------------
1 | 'valueType'] for maps, or ['valueType'] for lists
12 | */
13 | public function __construct(public array $type)
14 | {
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/Types/GiftCardActivityAdjustDecrementReason.php:
--------------------------------------------------------------------------------
1 | request;
22 | }
23 |
24 | /**
25 | * Returns the HTTP Response
26 | *
27 | * @return HttpResponse response
28 | */
29 | public function getResponse(): HttpResponse
30 | {
31 | return $this->response;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/Legacy/Models/LocationCapability.php:
--------------------------------------------------------------------------------
1 | $headers Additional headers for the request (optional)
12 | * @param array $query Query parameters for the request (optional)
13 | */
14 | public function __construct(
15 | public readonly string $baseUrl,
16 | public readonly string $path,
17 | public readonly HttpMethod $method,
18 | public readonly array $headers = [],
19 | public readonly array $query = [],
20 | ) {
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/Legacy/Models/TeamMemberAssignedLocationsAssignmentType.php:
--------------------------------------------------------------------------------
1 | locations->list();
26 |
27 | $this->assertNotNull($response->getLocations());
28 | $this->assertGreaterThan(0, count($response->getLocations()));
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/Legacy/Models/CustomerSortField.php:
--------------------------------------------------------------------------------
1 | id = $values['id'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getId(): string
29 | {
30 | return $this->id;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setId(string $value): self
37 | {
38 | $this->id = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Employees/Requests/GetEmployeesRequest.php:
--------------------------------------------------------------------------------
1 | id = $values['id'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getId(): string
29 | {
30 | return $this->id;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setId(string $value): self
37 | {
38 | $this->id = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Labor/Requests/DeleteTimecardRequest.php:
--------------------------------------------------------------------------------
1 | id = $values['id'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getId(): string
29 | {
30 | return $this->id;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setId(string $value): self
37 | {
38 | $this->id = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Labor/Shifts/Requests/GetShiftsRequest.php:
--------------------------------------------------------------------------------
1 | id = $values['id'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getId(): string
29 | {
30 | return $this->id;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setId(string $value): self
37 | {
38 | $this->id = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Devices/Codes/Requests/GetCodesRequest.php:
--------------------------------------------------------------------------------
1 | id = $values['id'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getId(): string
29 | {
30 | return $this->id;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setId(string $value): self
37 | {
38 | $this->id = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Labor/Requests/RetrieveTimecardRequest.php:
--------------------------------------------------------------------------------
1 | id = $values['id'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getId(): string
29 | {
30 | return $this->id;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setId(string $value): self
37 | {
38 | $this->id = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Labor/Shifts/Requests/DeleteShiftsRequest.php:
--------------------------------------------------------------------------------
1 | id = $values['id'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getId(): string
29 | {
30 | return $this->id;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setId(string $value): self
37 | {
38 | $this->id = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Team/Requests/RetrieveJobRequest.php:
--------------------------------------------------------------------------------
1 | jobId = $values['jobId'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getJobId(): string
29 | {
30 | return $this->jobId;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setJobId(string $value): self
37 | {
38 | $this->jobId = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Cards/Requests/GetCardsRequest.php:
--------------------------------------------------------------------------------
1 | cardId = $values['cardId'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getCardId(): string
29 | {
30 | return $this->cardId;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setCardId(string $value): self
37 | {
38 | $this->cardId = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Legacy/Models/ArchivedState.php:
--------------------------------------------------------------------------------
1 | id = $values['id'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getId(): string
29 | {
30 | return $this->id;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setId(string $value): self
37 | {
38 | $this->id = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Cards/Requests/DisableCardsRequest.php:
--------------------------------------------------------------------------------
1 | cardId = $values['cardId'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getCardId(): string
29 | {
30 | return $this->cardId;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setCardId(string $value): self
37 | {
38 | $this->cardId = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Checkout/PaymentLinks/Requests/GetPaymentLinksRequest.php:
--------------------------------------------------------------------------------
1 | id = $values['id'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getId(): string
29 | {
30 | return $this->id;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setId(string $value): self
37 | {
38 | $this->id = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Labor/BreakTypes/Requests/GetBreakTypesRequest.php:
--------------------------------------------------------------------------------
1 | id = $values['id'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getId(): string
29 | {
30 | return $this->id;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setId(string $value): self
37 | {
38 | $this->id = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/.fern/metadata.json:
--------------------------------------------------------------------------------
1 | {
2 | "cliVersion": "2.8.1",
3 | "generatorName": "fernapi/fern-php-sdk",
4 | "generatorVersion": "1.22.3",
5 | "generatorConfig": {
6 | "clientName": "SquareClient",
7 | "namespace": "Square",
8 | "packageName": "square/square",
9 | "propertyAccess": "private",
10 | "inlinePathParameters": true,
11 | "composerJson": {
12 | "description": "Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management.",
13 | "author": {
14 | "name": "Square Developer Platform",
15 | "url": "https://developer.squareup.com",
16 | "email": "developers@squareup.com"
17 | },
18 | "homepage": "https://squareup.com/developers",
19 | "require": {
20 | "apimatic/unirest-php": "^4.0.0",
21 | "apimatic/core-interfaces": "~0.1.5",
22 | "apimatic/core": "~0.3.12"
23 | }
24 | }
25 | }
26 | }
--------------------------------------------------------------------------------
/src/Labor/BreakTypes/Requests/DeleteBreakTypesRequest.php:
--------------------------------------------------------------------------------
1 | id = $values['id'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getId(): string
29 | {
30 | return $this->id;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setId(string $value): self
37 | {
38 | $this->id = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Orders/Requests/GetOrdersRequest.php:
--------------------------------------------------------------------------------
1 | orderId = $values['orderId'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getOrderId(): string
29 | {
30 | return $this->orderId;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setOrderId(string $value): self
37 | {
38 | $this->orderId = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Channels/Requests/GetChannelsRequest.php:
--------------------------------------------------------------------------------
1 | channelId = $values['channelId'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getChannelId(): string
29 | {
30 | return $this->channelId;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setChannelId(string $value): self
37 | {
38 | $this->channelId = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Checkout/PaymentLinks/Requests/DeletePaymentLinksRequest.php:
--------------------------------------------------------------------------------
1 | id = $values['id'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getId(): string
29 | {
30 | return $this->id;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setId(string $value): self
37 | {
38 | $this->id = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Labor/EmployeeWages/Requests/GetEmployeeWagesRequest.php:
--------------------------------------------------------------------------------
1 | id = $values['id'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getId(): string
29 | {
30 | return $this->id;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setId(string $value): self
37 | {
38 | $this->id = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Snippets/Requests/GetSnippetsRequest.php:
--------------------------------------------------------------------------------
1 | siteId = $values['siteId'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getSiteId(): string
29 | {
30 | return $this->siteId;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setSiteId(string $value): self
37 | {
38 | $this->siteId = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Devices/Requests/GetDevicesRequest.php:
--------------------------------------------------------------------------------
1 | deviceId = $values['deviceId'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getDeviceId(): string
29 | {
30 | return $this->deviceId;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setDeviceId(string $value): self
37 | {
38 | $this->deviceId = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Labor/TeamMemberWages/Requests/GetTeamMemberWagesRequest.php:
--------------------------------------------------------------------------------
1 | id = $values['id'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getId(): string
29 | {
30 | return $this->id;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setId(string $value): self
37 | {
38 | $this->id = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Snippets/Requests/DeleteSnippetsRequest.php:
--------------------------------------------------------------------------------
1 | siteId = $values['siteId'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getSiteId(): string
29 | {
30 | return $this->siteId;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setSiteId(string $value): self
37 | {
38 | $this->siteId = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Legacy/Models/TaxInclusionType.php:
--------------------------------------------------------------------------------
1 | cursor = $values['cursor'] ?? null;
23 | }
24 |
25 | /**
26 | * @return ?int
27 | */
28 | public function getCursor(): ?int
29 | {
30 | return $this->cursor;
31 | }
32 |
33 | /**
34 | * @param ?int $value
35 | */
36 | public function setCursor(?int $value = null): self
37 | {
38 | $this->cursor = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Customers/Groups/Requests/GetGroupsRequest.php:
--------------------------------------------------------------------------------
1 | groupId = $values['groupId'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getGroupId(): string
29 | {
30 | return $this->groupId;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setGroupId(string $value): self
37 | {
38 | $this->groupId = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Invoices/Requests/GetInvoicesRequest.php:
--------------------------------------------------------------------------------
1 | invoiceId = $values['invoiceId'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getInvoiceId(): string
29 | {
30 | return $this->invoiceId;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setInvoiceId(string $value): self
37 | {
38 | $this->invoiceId = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Legacy/Models/CardBrand.php:
--------------------------------------------------------------------------------
1 | paymentId = $values['paymentId'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getPaymentId(): string
29 | {
30 | return $this->paymentId;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setPaymentId(string $value): self
37 | {
38 | $this->paymentId = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Refunds/Requests/GetRefundsRequest.php:
--------------------------------------------------------------------------------
1 | refundId = $values['refundId'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getRefundId(): string
29 | {
30 | return $this->refundId;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setRefundId(string $value): self
37 | {
38 | $this->refundId = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Vendors/Requests/GetVendorsRequest.php:
--------------------------------------------------------------------------------
1 | vendorId = $values['vendorId'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getVendorId(): string
29 | {
30 | return $this->vendorId;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setVendorId(string $value): self
37 | {
38 | $this->vendorId = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Customers/Groups/Requests/DeleteGroupsRequest.php:
--------------------------------------------------------------------------------
1 | groupId = $values['groupId'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getGroupId(): string
29 | {
30 | return $this->groupId;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setGroupId(string $value): self
37 | {
38 | $this->groupId = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Legacy/Models/LoyaltyProgramRewardDefinitionScope.php:
--------------------------------------------------------------------------------
1 | paymentId = $values['paymentId'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getPaymentId(): string
29 | {
30 | return $this->paymentId;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setPaymentId(string $value): self
37 | {
38 | $this->paymentId = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Payouts/Requests/GetPayoutsRequest.php:
--------------------------------------------------------------------------------
1 | payoutId = $values['payoutId'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getPayoutId(): string
29 | {
30 | return $this->payoutId;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setPayoutId(string $value): self
37 | {
38 | $this->payoutId = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Disputes/Requests/AcceptDisputesRequest.php:
--------------------------------------------------------------------------------
1 | disputeId = $values['disputeId'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getDisputeId(): string
29 | {
30 | return $this->disputeId;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setDisputeId(string $value): self
37 | {
38 | $this->disputeId = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Types/CatalogObjectType.php:
--------------------------------------------------------------------------------
1 |
14 | */
15 | abstract class Pager implements IteratorAggregate
16 | {
17 | /**
18 | * Enumerate the values a Page at a time. This may
19 | * make multiple service requests.
20 | *
21 | * @return Generator>
22 | */
23 | abstract public function getPages(): Generator;
24 |
25 | /**
26 | * Enumerate the values one at a time. This may make multiple service requests.
27 | *
28 | * @return Generator
29 | */
30 | public function getIterator(): Generator
31 | {
32 | foreach ($this->getPages() as $page) {
33 | yield from $page->getItems();
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/Customers/Requests/GetCustomersRequest.php:
--------------------------------------------------------------------------------
1 | customerId = $values['customerId'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getCustomerId(): string
29 | {
30 | return $this->customerId;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setCustomerId(string $value): self
37 | {
38 | $this->customerId = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Disputes/Requests/GetDisputesRequest.php:
--------------------------------------------------------------------------------
1 | disputeId = $values['disputeId'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getDisputeId(): string
29 | {
30 | return $this->disputeId;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setDisputeId(string $value): self
37 | {
38 | $this->disputeId = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Legacy/Models/BankAccountStatus.php:
--------------------------------------------------------------------------------
1 | actionId = $values['actionId'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getActionId(): string
29 | {
30 | return $this->actionId;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setActionId(string $value): self
37 | {
38 | $this->actionId = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Legacy/Models/CatalogCustomAttributeDefinitionAppVisibility.php:
--------------------------------------------------------------------------------
1 | actionId = $values['actionId'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getActionId(): string
29 | {
30 | return $this->actionId;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setActionId(string $value): self
37 | {
38 | $this->actionId = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Customers/Segments/Requests/GetSegmentsRequest.php:
--------------------------------------------------------------------------------
1 | segmentId = $values['segmentId'];
23 | }
24 |
25 | /**
26 | * @return string
27 | */
28 | public function getSegmentId(): string
29 | {
30 | return $this->segmentId;
31 | }
32 |
33 | /**
34 | * @param string $value
35 | */
36 | public function setSegmentId(string $value): self
37 | {
38 | $this->segmentId = $value;
39 | return $this;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------