diff --git a/.fern/metadata.json b/.fern/metadata.json
index fa36150e..f71cacb8 100644
--- a/.fern/metadata.json
+++ b/.fern/metadata.json
@@ -23,5 +23,5 @@
}
}
},
- "sdkVersion": "45.0.0.20260122"
+ "sdkVersion": "44.1.0.20260520"
}
\ No newline at end of file
diff --git a/.fern/replay.lock b/.fern/replay.lock
new file mode 100644
index 00000000..5cb1aff4
--- /dev/null
+++ b/.fern/replay.lock
@@ -0,0 +1,10 @@
+# DO NOT EDIT MANUALLY - Managed by Fern Replay
+version: "1.0"
+generations:
+ - commit_sha: d62b84d994b80d7a4e31128be4970c153b102e7c
+ tree_hash: 7f58b8d3c3e4612c20081a1ffa9b7d6ee721bec4
+ timestamp: 2026-05-19T21:15:19.797Z
+ cli_version: unknown
+ generator_versions: {}
+current_generation: d62b84d994b80d7a4e31128be4970c153b102e7c
+patches: []
diff --git a/.fernignore b/.fernignore
index ff44dfc3..74dd6751 100644
--- a/.fernignore
+++ b/.fernignore
@@ -6,4 +6,7 @@ phpstan.neon
src/Exceptions/SquareApiException.php
src/Legacy
src/Utils/WebhooksHelper.php
-tests/Integration
\ No newline at end of file
+tests/Integration
+.fern/replay.lock
+.fern/replay.yml
+.gitattributes
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 00000000..74928d6a
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+.fern/replay.lock linguist-generated=true
diff --git a/composer.json b/composer.json
index be214567..47154d17 100644
--- a/composer.json
+++ b/composer.json
@@ -1,6 +1,6 @@
{
"name": "square/square",
- "version": "45.0.0.20260122",
+ "version": "44.1.0.20260520",
"description": "Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management.",
"keywords": [
"square",
diff --git a/reference.md b/reference.md
index 324afb89..cfbcd0aa 100644
--- a/reference.md
+++ b/reference.md
@@ -10967,6 +10967,19 @@ For more information, see [Permissions](https://developer.squareup.com/docs/paym
-
+**$appFeeAllocations:** `?array`
+
+Details pertaining to recipients of the application fee. The sum of the amounts in the
+app_fee_allocations must equal the app_fee_money amount, if present. If populated, an
+allocation must be present for every party that expects to receive a portion of the application
+fee, including the application developer.
+
+
+
+
+
+-
+
**$delayDuration:** `?string`
The duration of time after the payment's creation when Square automatically
@@ -12172,6 +12185,19 @@ For more information, see [Permissions](https://developer.squareup.com/docs/paym
-
+**$appFeeAllocations:** `?array`
+
+Details pertaining to contributors to the refund of the application fee.
+The sum of the amounts in the app_fee_allocations must equal the app_fee_money amount, if
+present. If populated, an allocation must be present for every party that expects to contribute
+a portion of the refunded application fee, including the application developer.
+
+
+
+
+
+-
+
**$paymentId:** `?string`
The unique ID of the payment being refunded.
diff --git a/src/Payments/Requests/CreatePaymentRequest.php b/src/Payments/Requests/CreatePaymentRequest.php
index ffaac622..b05e4acf 100644
--- a/src/Payments/Requests/CreatePaymentRequest.php
+++ b/src/Payments/Requests/CreatePaymentRequest.php
@@ -5,6 +5,7 @@
use Square\Core\Json\JsonSerializableType;
use Square\Core\Json\JsonProperty;
use Square\Types\Money;
+use Square\Core\Types\ArrayType;
use Square\Types\Address;
use Square\Types\CashPaymentDetails;
use Square\Types\ExternalPaymentDetails;
@@ -98,6 +99,17 @@ class CreatePaymentRequest extends JsonSerializableType
#[JsonProperty('app_fee_money')]
private ?Money $appFeeMoney;
+ /**
+ * Details pertaining to recipients of the application fee. The sum of the amounts in the
+ * app_fee_allocations must equal the app_fee_money amount, if present. If populated, an
+ * allocation must be present for every party that expects to receive a portion of the application
+ * fee, including the application developer.
+ *
+ * @var ?array $appFeeAllocations
+ */
+ #[JsonProperty('app_fee_allocations'), ArrayType(['mixed'])]
+ private ?array $appFeeAllocations;
+
/**
* The duration of time after the payment's creation when Square automatically
* either completes or cancels the payment depending on the `delay_action` field value.
@@ -303,6 +315,7 @@ class CreatePaymentRequest extends JsonSerializableType
* amountMoney?: ?Money,
* tipMoney?: ?Money,
* appFeeMoney?: ?Money,
+ * appFeeAllocations?: ?array,
* delayDuration?: ?string,
* delayAction?: ?string,
* autocomplete?: ?bool,
@@ -333,6 +346,7 @@ public function __construct(
$this->amountMoney = $values['amountMoney'] ?? null;
$this->tipMoney = $values['tipMoney'] ?? null;
$this->appFeeMoney = $values['appFeeMoney'] ?? null;
+ $this->appFeeAllocations = $values['appFeeAllocations'] ?? null;
$this->delayDuration = $values['delayDuration'] ?? null;
$this->delayAction = $values['delayAction'] ?? null;
$this->autocomplete = $values['autocomplete'] ?? null;
@@ -445,6 +459,24 @@ public function setAppFeeMoney(?Money $value = null): self
return $this;
}
+ /**
+ * @return ?array
+ */
+ public function getAppFeeAllocations(): ?array
+ {
+ return $this->appFeeAllocations;
+ }
+
+ /**
+ * @param ?array $value
+ */
+ public function setAppFeeAllocations(?array $value = null): self
+ {
+ $this->appFeeAllocations = $value;
+ $this->_setField('appFeeAllocations');
+ return $this;
+ }
+
/**
* @return ?string
*/
diff --git a/src/Refunds/Requests/RefundPaymentRequest.php b/src/Refunds/Requests/RefundPaymentRequest.php
index f3858d0b..71febd2e 100644
--- a/src/Refunds/Requests/RefundPaymentRequest.php
+++ b/src/Refunds/Requests/RefundPaymentRequest.php
@@ -5,6 +5,7 @@
use Square\Core\Json\JsonSerializableType;
use Square\Core\Json\JsonProperty;
use Square\Types\Money;
+use Square\Core\Types\ArrayType;
use Square\Types\DestinationDetailsCashRefundDetails;
use Square\Types\DestinationDetailsExternalRefundDetails;
@@ -61,6 +62,17 @@ class RefundPaymentRequest extends JsonSerializableType
#[JsonProperty('app_fee_money')]
private ?Money $appFeeMoney;
+ /**
+ * Details pertaining to contributors to the refund of the application fee.
+ * The sum of the amounts in the app_fee_allocations must equal the app_fee_money amount, if
+ * present. If populated, an allocation must be present for every party that expects to contribute
+ * a portion of the refunded application fee, including the application developer.
+ *
+ * @var ?array $appFeeAllocations
+ */
+ #[JsonProperty('app_fee_allocations'), ArrayType(['mixed'])]
+ private ?array $appFeeAllocations;
+
/**
* The unique ID of the payment being refunded.
* Required when unlinked=false, otherwise must not be set.
@@ -157,6 +169,7 @@ class RefundPaymentRequest extends JsonSerializableType
* idempotencyKey: string,
* amountMoney: Money,
* appFeeMoney?: ?Money,
+ * appFeeAllocations?: ?array,
* paymentId?: ?string,
* destinationId?: ?string,
* unlinked?: ?bool,
@@ -175,6 +188,7 @@ public function __construct(
$this->idempotencyKey = $values['idempotencyKey'];
$this->amountMoney = $values['amountMoney'];
$this->appFeeMoney = $values['appFeeMoney'] ?? null;
+ $this->appFeeAllocations = $values['appFeeAllocations'] ?? null;
$this->paymentId = $values['paymentId'] ?? null;
$this->destinationId = $values['destinationId'] ?? null;
$this->unlinked = $values['unlinked'] ?? null;
@@ -241,6 +255,24 @@ public function setAppFeeMoney(?Money $value = null): self
return $this;
}
+ /**
+ * @return ?array
+ */
+ public function getAppFeeAllocations(): ?array
+ {
+ return $this->appFeeAllocations;
+ }
+
+ /**
+ * @param ?array $value
+ */
+ public function setAppFeeAllocations(?array $value = null): self
+ {
+ $this->appFeeAllocations = $value;
+ $this->_setField('appFeeAllocations');
+ return $this;
+ }
+
/**
* @return ?string
*/
diff --git a/src/SquareClient.php b/src/SquareClient.php
index dff99ca1..4d948bb4 100644
--- a/src/SquareClient.php
+++ b/src/SquareClient.php
@@ -253,11 +253,11 @@ public function __construct(
$token ??= $this->getFromEnvOrThrow('SQUARE_TOKEN', 'Please pass in token or set the environment variable SQUARE_TOKEN.');
$defaultHeaders = [
'Authorization' => "Bearer $token",
- 'Square-Version' => '2026-01-22',
+ 'Square-Version' => '2026-05-20',
'X-Fern-Language' => 'PHP',
'X-Fern-SDK-Name' => 'Square',
- 'X-Fern-SDK-Version' => '45.0.0.20260122',
- 'User-Agent' => 'square/square/45.0.0.20260122',
+ 'X-Fern-SDK-Version' => '44.1.0.20260520',
+ 'User-Agent' => 'square/square/44.1.0.20260520',
];
if ($version != null) {
$defaultHeaders['Square-Version'] = $version;
diff --git a/src/Types/CardPaymentDetails.php b/src/Types/CardPaymentDetails.php
index 34624c3f..d10bb2f9 100644
--- a/src/Types/CardPaymentDetails.php
+++ b/src/Types/CardPaymentDetails.php
@@ -140,6 +140,26 @@ class CardPaymentDetails extends JsonSerializableType
#[JsonProperty('errors'), ArrayType([Error::class])]
private ?array $errors;
+ /**
+ * @var ?CardSurchargeDetails $appliedCardSurchargeDetails Additional information about a card_surcharge on the payment.
+ */
+ #[JsonProperty('applied_card_surcharge_details')]
+ private ?CardSurchargeDetails $appliedCardSurchargeDetails;
+
+ /**
+ * The type of digital wallet used for this card payment, if applicable.
+ * Currently only populated for in-person Apple Pay payments. Detection has no false
+ * positives but may have false negatives (some Apple Pay payments may not be detected).
+ *
+ * For payments with `source_type` of `WALLET`, see `DigitalWalletDetails` instead.
+ *
+ * Values: `APPLE_PAY`
+ *
+ * @var ?string $walletType
+ */
+ #[JsonProperty('wallet_type')]
+ private ?string $walletType;
+
/**
* @param array{
* status?: ?string,
@@ -158,6 +178,8 @@ class CardPaymentDetails extends JsonSerializableType
* cardPaymentTimeline?: ?CardPaymentTimeline,
* refundRequiresCardPresence?: ?bool,
* errors?: ?array,
+ * appliedCardSurchargeDetails?: ?CardSurchargeDetails,
+ * walletType?: ?string,
* } $values
*/
public function __construct(
@@ -179,6 +201,8 @@ public function __construct(
$this->cardPaymentTimeline = $values['cardPaymentTimeline'] ?? null;
$this->refundRequiresCardPresence = $values['refundRequiresCardPresence'] ?? null;
$this->errors = $values['errors'] ?? null;
+ $this->appliedCardSurchargeDetails = $values['appliedCardSurchargeDetails'] ?? null;
+ $this->walletType = $values['walletType'] ?? null;
}
/**
@@ -469,6 +493,42 @@ public function setErrors(?array $value = null): self
return $this;
}
+ /**
+ * @return ?CardSurchargeDetails
+ */
+ public function getAppliedCardSurchargeDetails(): ?CardSurchargeDetails
+ {
+ return $this->appliedCardSurchargeDetails;
+ }
+
+ /**
+ * @param ?CardSurchargeDetails $value
+ */
+ public function setAppliedCardSurchargeDetails(?CardSurchargeDetails $value = null): self
+ {
+ $this->appliedCardSurchargeDetails = $value;
+ $this->_setField('appliedCardSurchargeDetails');
+ return $this;
+ }
+
+ /**
+ * @return ?string
+ */
+ public function getWalletType(): ?string
+ {
+ return $this->walletType;
+ }
+
+ /**
+ * @param ?string $value
+ */
+ public function setWalletType(?string $value = null): self
+ {
+ $this->walletType = $value;
+ $this->_setField('walletType');
+ return $this;
+ }
+
/**
* @return string
*/
diff --git a/src/Types/CardSurchargeDetails.php b/src/Types/CardSurchargeDetails.php
new file mode 100644
index 00000000..f4601e16
--- /dev/null
+++ b/src/Types/CardSurchargeDetails.php
@@ -0,0 +1,68 @@
+cardSurchargeMoney = $values['cardSurchargeMoney'] ?? null;
+ }
+
+ /**
+ * @return ?Money
+ */
+ public function getCardSurchargeMoney(): ?Money
+ {
+ return $this->cardSurchargeMoney;
+ }
+
+ /**
+ * @param ?Money $value
+ */
+ public function setCardSurchargeMoney(?Money $value = null): self
+ {
+ $this->cardSurchargeMoney = $value;
+ $this->_setField('cardSurchargeMoney');
+ return $this;
+ }
+
+ /**
+ * @return string
+ */
+ public function __toString(): string
+ {
+ return $this->toJson();
+ }
+}
diff --git a/src/Types/DigitalWalletDetails.php b/src/Types/DigitalWalletDetails.php
index 13b72b40..d5edba88 100644
--- a/src/Types/DigitalWalletDetails.php
+++ b/src/Types/DigitalWalletDetails.php
@@ -35,6 +35,12 @@ class DigitalWalletDetails extends JsonSerializableType
#[JsonProperty('cash_app_details')]
private ?CashAppDetails $cashAppDetails;
+ /**
+ * @var ?LightningDetails $lightningDetails Brand-specific details for payments with the `brand` of `LIGHTNING`.
+ */
+ #[JsonProperty('lightning_details')]
+ private ?LightningDetails $lightningDetails;
+
/**
* @var ?array $errors Information about errors encountered during the payment.
*/
@@ -46,6 +52,7 @@ class DigitalWalletDetails extends JsonSerializableType
* status?: ?string,
* brand?: ?string,
* cashAppDetails?: ?CashAppDetails,
+ * lightningDetails?: ?LightningDetails,
* errors?: ?array,
* } $values
*/
@@ -55,6 +62,7 @@ public function __construct(
$this->status = $values['status'] ?? null;
$this->brand = $values['brand'] ?? null;
$this->cashAppDetails = $values['cashAppDetails'] ?? null;
+ $this->lightningDetails = $values['lightningDetails'] ?? null;
$this->errors = $values['errors'] ?? null;
}
@@ -112,6 +120,24 @@ public function setCashAppDetails(?CashAppDetails $value = null): self
return $this;
}
+ /**
+ * @return ?LightningDetails
+ */
+ public function getLightningDetails(): ?LightningDetails
+ {
+ return $this->lightningDetails;
+ }
+
+ /**
+ * @param ?LightningDetails $value
+ */
+ public function setLightningDetails(?LightningDetails $value = null): self
+ {
+ $this->lightningDetails = $value;
+ $this->_setField('lightningDetails');
+ return $this;
+ }
+
/**
* @return ?array
*/
diff --git a/src/Types/ElectronicMoneyDetails.php b/src/Types/ElectronicMoneyDetails.php
new file mode 100644
index 00000000..ca3e8efe
--- /dev/null
+++ b/src/Types/ElectronicMoneyDetails.php
@@ -0,0 +1,55 @@
+felicaDetails = $values['felicaDetails'] ?? null;
+ }
+
+ /**
+ * @return ?FelicaDetails
+ */
+ public function getFelicaDetails(): ?FelicaDetails
+ {
+ return $this->felicaDetails;
+ }
+
+ /**
+ * @param ?FelicaDetails $value
+ */
+ public function setFelicaDetails(?FelicaDetails $value = null): self
+ {
+ $this->felicaDetails = $value;
+ $this->_setField('felicaDetails');
+ return $this;
+ }
+
+ /**
+ * @return string
+ */
+ public function __toString(): string
+ {
+ return $this->toJson();
+ }
+}
diff --git a/src/Types/FelicaDetails.php b/src/Types/FelicaDetails.php
new file mode 100644
index 00000000..53279228
--- /dev/null
+++ b/src/Types/FelicaDetails.php
@@ -0,0 +1,110 @@
+ $felicaBrand
+ */
+ #[JsonProperty('felica_brand')]
+ private ?string $felicaBrand;
+
+ /**
+ * @param array{
+ * terminalId?: ?string,
+ * felicaMaskedCardNumber?: ?string,
+ * felicaBrand?: ?value-of,
+ * } $values
+ */
+ public function __construct(
+ array $values = [],
+ ) {
+ $this->terminalId = $values['terminalId'] ?? null;
+ $this->felicaMaskedCardNumber = $values['felicaMaskedCardNumber'] ?? null;
+ $this->felicaBrand = $values['felicaBrand'] ?? null;
+ }
+
+ /**
+ * @return ?string
+ */
+ public function getTerminalId(): ?string
+ {
+ return $this->terminalId;
+ }
+
+ /**
+ * @param ?string $value
+ */
+ public function setTerminalId(?string $value = null): self
+ {
+ $this->terminalId = $value;
+ $this->_setField('terminalId');
+ return $this;
+ }
+
+ /**
+ * @return ?string
+ */
+ public function getFelicaMaskedCardNumber(): ?string
+ {
+ return $this->felicaMaskedCardNumber;
+ }
+
+ /**
+ * @param ?string $value
+ */
+ public function setFelicaMaskedCardNumber(?string $value = null): self
+ {
+ $this->felicaMaskedCardNumber = $value;
+ $this->_setField('felicaMaskedCardNumber');
+ return $this;
+ }
+
+ /**
+ * @return ?value-of
+ */
+ public function getFelicaBrand(): ?string
+ {
+ return $this->felicaBrand;
+ }
+
+ /**
+ * @param ?value-of $value
+ */
+ public function setFelicaBrand(?string $value = null): self
+ {
+ $this->felicaBrand = $value;
+ $this->_setField('felicaBrand');
+ return $this;
+ }
+
+ /**
+ * @return string
+ */
+ public function __toString(): string
+ {
+ return $this->toJson();
+ }
+}
diff --git a/src/Types/FelicaDetailsFelicaBrand.php b/src/Types/FelicaDetailsFelicaBrand.php
new file mode 100644
index 00000000..af38f326
--- /dev/null
+++ b/src/Types/FelicaDetailsFelicaBrand.php
@@ -0,0 +1,11 @@
+paymentUrl = $values['paymentUrl'] ?? null;
+ }
+
+ /**
+ * @return ?string
+ */
+ public function getPaymentUrl(): ?string
+ {
+ return $this->paymentUrl;
+ }
+
+ /**
+ * @param ?string $value
+ */
+ public function setPaymentUrl(?string $value = null): self
+ {
+ $this->paymentUrl = $value;
+ $this->_setField('paymentUrl');
+ return $this;
+ }
+
+ /**
+ * @return string
+ */
+ public function __toString(): string
+ {
+ return $this->toJson();
+ }
+}
diff --git a/src/Types/Payment.php b/src/Types/Payment.php
index b3f97366..a22ae4bd 100644
--- a/src/Types/Payment.php
+++ b/src/Types/Payment.php
@@ -82,6 +82,12 @@ class Payment extends JsonSerializableType
#[JsonProperty('app_fee_money')]
private ?Money $appFeeMoney;
+ /**
+ * @var ?array $appFeeAllocations Details pertaining to recipients of the application fee.
+ */
+ #[JsonProperty('app_fee_allocations'), ArrayType(['mixed'])]
+ private ?array $appFeeAllocations;
+
/**
* The amount of money approved for this payment. This value may change if Square chooses to
* obtain reauthorization as part of a call to [UpdatePayment](api-endpoint:Payments-UpdatePayment).
@@ -188,6 +194,12 @@ class Payment extends JsonSerializableType
#[JsonProperty('bank_account_details')]
private ?BankAccountPaymentDetails $bankAccountDetails;
+ /**
+ * @var ?ElectronicMoneyDetails $electronicMoneyDetails Details specific to electronic money payments.
+ */
+ #[JsonProperty('electronic_money_details')]
+ private ?ElectronicMoneyDetails $electronicMoneyDetails;
+
/**
* Details about an external payment. The details are only populated
* if the `source_type` is `EXTERNAL`.
@@ -384,6 +396,12 @@ class Payment extends JsonSerializableType
#[JsonProperty('application_details')]
private ?ApplicationDetails $applicationDetails;
+ /**
+ * @var mixed $buyerCurrencyExchange
+ */
+ #[JsonProperty('buyer_currency_exchange')]
+ private mixed $buyerCurrencyExchange;
+
/**
* @var ?bool $isOfflinePayment Whether or not this payment was taken offline.
*/
@@ -414,6 +432,7 @@ class Payment extends JsonSerializableType
* tipMoney?: ?Money,
* totalMoney?: ?Money,
* appFeeMoney?: ?Money,
+ * appFeeAllocations?: ?array,
* approvedMoney?: ?Money,
* processingFee?: ?array,
* refundedMoney?: ?Money,
@@ -425,6 +444,7 @@ class Payment extends JsonSerializableType
* cardDetails?: ?CardPaymentDetails,
* cashDetails?: ?CashPaymentDetails,
* bankAccountDetails?: ?BankAccountPaymentDetails,
+ * electronicMoneyDetails?: ?ElectronicMoneyDetails,
* externalDetails?: ?ExternalPaymentDetails,
* walletDetails?: ?DigitalWalletDetails,
* buyNowPayLaterDetails?: ?BuyNowPayLaterDetails,
@@ -448,6 +468,7 @@ class Payment extends JsonSerializableType
* receiptUrl?: ?string,
* deviceDetails?: ?DeviceDetails,
* applicationDetails?: ?ApplicationDetails,
+ * buyerCurrencyExchange?: mixed,
* isOfflinePayment?: ?bool,
* offlinePaymentDetails?: ?OfflinePaymentDetails,
* versionToken?: ?string,
@@ -463,6 +484,7 @@ public function __construct(
$this->tipMoney = $values['tipMoney'] ?? null;
$this->totalMoney = $values['totalMoney'] ?? null;
$this->appFeeMoney = $values['appFeeMoney'] ?? null;
+ $this->appFeeAllocations = $values['appFeeAllocations'] ?? null;
$this->approvedMoney = $values['approvedMoney'] ?? null;
$this->processingFee = $values['processingFee'] ?? null;
$this->refundedMoney = $values['refundedMoney'] ?? null;
@@ -474,6 +496,7 @@ public function __construct(
$this->cardDetails = $values['cardDetails'] ?? null;
$this->cashDetails = $values['cashDetails'] ?? null;
$this->bankAccountDetails = $values['bankAccountDetails'] ?? null;
+ $this->electronicMoneyDetails = $values['electronicMoneyDetails'] ?? null;
$this->externalDetails = $values['externalDetails'] ?? null;
$this->walletDetails = $values['walletDetails'] ?? null;
$this->buyNowPayLaterDetails = $values['buyNowPayLaterDetails'] ?? null;
@@ -497,6 +520,7 @@ public function __construct(
$this->receiptUrl = $values['receiptUrl'] ?? null;
$this->deviceDetails = $values['deviceDetails'] ?? null;
$this->applicationDetails = $values['applicationDetails'] ?? null;
+ $this->buyerCurrencyExchange = $values['buyerCurrencyExchange'] ?? null;
$this->isOfflinePayment = $values['isOfflinePayment'] ?? null;
$this->offlinePaymentDetails = $values['offlinePaymentDetails'] ?? null;
$this->versionToken = $values['versionToken'] ?? null;
@@ -628,6 +652,24 @@ public function setAppFeeMoney(?Money $value = null): self
return $this;
}
+ /**
+ * @return ?array
+ */
+ public function getAppFeeAllocations(): ?array
+ {
+ return $this->appFeeAllocations;
+ }
+
+ /**
+ * @param ?array $value
+ */
+ public function setAppFeeAllocations(?array $value = null): self
+ {
+ $this->appFeeAllocations = $value;
+ $this->_setField('appFeeAllocations');
+ return $this;
+ }
+
/**
* @return ?Money
*/
@@ -826,6 +868,24 @@ public function setBankAccountDetails(?BankAccountPaymentDetails $value = null):
return $this;
}
+ /**
+ * @return ?ElectronicMoneyDetails
+ */
+ public function getElectronicMoneyDetails(): ?ElectronicMoneyDetails
+ {
+ return $this->electronicMoneyDetails;
+ }
+
+ /**
+ * @param ?ElectronicMoneyDetails $value
+ */
+ public function setElectronicMoneyDetails(?ElectronicMoneyDetails $value = null): self
+ {
+ $this->electronicMoneyDetails = $value;
+ $this->_setField('electronicMoneyDetails');
+ return $this;
+ }
+
/**
* @return ?ExternalPaymentDetails
*/
@@ -1240,6 +1300,24 @@ public function setApplicationDetails(?ApplicationDetails $value = null): self
return $this;
}
+ /**
+ * @return mixed
+ */
+ public function getBuyerCurrencyExchange(): mixed
+ {
+ return $this->buyerCurrencyExchange;
+ }
+
+ /**
+ * @param mixed $value
+ */
+ public function setBuyerCurrencyExchange(mixed $value = null): self
+ {
+ $this->buyerCurrencyExchange = $value;
+ $this->_setField('buyerCurrencyExchange');
+ return $this;
+ }
+
/**
* @return ?bool
*/
diff --git a/src/Types/PaymentRefund.php b/src/Types/PaymentRefund.php
index f4b66342..0e4376de 100644
--- a/src/Types/PaymentRefund.php
+++ b/src/Types/PaymentRefund.php
@@ -82,6 +82,12 @@ class PaymentRefund extends JsonSerializableType
#[JsonProperty('app_fee_money')]
private ?Money $appFeeMoney;
+ /**
+ * @var ?array $appFeeAllocations Details pertaining to contributors to the refund of the application fee.
+ */
+ #[JsonProperty('app_fee_allocations'), ArrayType(['mixed'])]
+ private ?array $appFeeAllocations;
+
/**
* @var ?array $processingFee Processing fees and fee adjustments assessed by Square for this refund.
*/
@@ -140,6 +146,7 @@ class PaymentRefund extends JsonSerializableType
* destinationType?: ?string,
* destinationDetails?: ?DestinationDetails,
* appFeeMoney?: ?Money,
+ * appFeeAllocations?: ?array,
* processingFee?: ?array,
* paymentId?: ?string,
* orderId?: ?string,
@@ -161,6 +168,7 @@ public function __construct(
$this->destinationDetails = $values['destinationDetails'] ?? null;
$this->amountMoney = $values['amountMoney'];
$this->appFeeMoney = $values['appFeeMoney'] ?? null;
+ $this->appFeeAllocations = $values['appFeeAllocations'] ?? null;
$this->processingFee = $values['processingFee'] ?? null;
$this->paymentId = $values['paymentId'] ?? null;
$this->orderId = $values['orderId'] ?? null;
@@ -315,6 +323,24 @@ public function setAppFeeMoney(?Money $value = null): self
return $this;
}
+ /**
+ * @return ?array
+ */
+ public function getAppFeeAllocations(): ?array
+ {
+ return $this->appFeeAllocations;
+ }
+
+ /**
+ * @param ?array $value
+ */
+ public function setAppFeeAllocations(?array $value = null): self
+ {
+ $this->appFeeAllocations = $value;
+ $this->_setField('appFeeAllocations');
+ return $this;
+ }
+
/**
* @return ?array
*/
diff --git a/src/Types/SearchOrdersSourceFilter.php b/src/Types/SearchOrdersSourceFilter.php
index 2f991fe1..53777f6e 100644
--- a/src/Types/SearchOrdersSourceFilter.php
+++ b/src/Types/SearchOrdersSourceFilter.php
@@ -22,41 +22,15 @@ class SearchOrdersSourceFilter extends JsonSerializableType
#[JsonProperty('source_names'), ArrayType(['string'])]
private ?array $sourceNames;
- /**
- * Filters by the [Source](entity:OrderSource) `applicationId`. The filter returns any orders
- * with a `source.applicationId` that matches any of the listed source applicationIds.
- *
- * Max: 100 source applicationIds.
- *
- * @var ?array $sourceApplicationIds
- */
- #[JsonProperty('source_application_ids'), ArrayType(['string'])]
- private ?array $sourceApplicationIds;
-
- /**
- * Filters by the [Source](entity:OrderSource) `clientOu`. The filter returns any orders
- * with a `source.clientOu` that matches any of the listed source clientOus.
- *
- * Max: 100 source clientOus.
- *
- * @var ?array $sourceClientOus
- */
- #[JsonProperty('source_client_ous'), ArrayType(['string'])]
- private ?array $sourceClientOus;
-
/**
* @param array{
* sourceNames?: ?array,
- * sourceApplicationIds?: ?array,
- * sourceClientOus?: ?array,
* } $values
*/
public function __construct(
array $values = [],
) {
$this->sourceNames = $values['sourceNames'] ?? null;
- $this->sourceApplicationIds = $values['sourceApplicationIds'] ?? null;
- $this->sourceClientOus = $values['sourceClientOus'] ?? null;
}
/**
@@ -77,42 +51,6 @@ public function setSourceNames(?array $value = null): self
return $this;
}
- /**
- * @return ?array
- */
- public function getSourceApplicationIds(): ?array
- {
- return $this->sourceApplicationIds;
- }
-
- /**
- * @param ?array $value
- */
- public function setSourceApplicationIds(?array $value = null): self
- {
- $this->sourceApplicationIds = $value;
- $this->_setField('sourceApplicationIds');
- return $this;
- }
-
- /**
- * @return ?array
- */
- public function getSourceClientOus(): ?array
- {
- return $this->sourceClientOus;
- }
-
- /**
- * @param ?array $value
- */
- public function setSourceClientOus(?array $value = null): self
- {
- $this->sourceClientOus = $value;
- $this->_setField('sourceClientOus');
- return $this;
- }
-
/**
* @return string
*/