From 8bc70084fb34ecbced76c82e51d3ac81b9a3bb8f Mon Sep 17 00:00:00 2001 From: Mauricio Haygert Date: Thu, 15 Sep 2022 22:23:47 -0300 Subject: [PATCH] PHP 8 --- composer.json | 2 +- src/Models/CancelSplitRequest.php | 86 +++++++++++++++++++ src/Models/ClearSaleRequest.php | 2 +- src/Models/CreateAccessTokenRequest.php | 2 +- src/Models/CreateAddressRequest.php | 2 +- src/Models/CreateAnticipationRequest.php | 2 +- src/Models/CreateAntifraudRequest.php | 2 +- src/Models/CreateApplePayHeaderRequest.php | 2 +- src/Models/CreateApplePayRequest.php | 2 +- ...teAutomaticAnticipationSettingsRequest.php | 2 +- src/Models/CreateBankAccountRequest.php | 2 +- .../CreateBankTransferPaymentRequest.php | 2 +- src/Models/CreateBoletoPaymentRequest.php | 2 +- src/Models/CreateCancelChargeRequest.php | 2 +- .../CreateCancelChargeSplitRulesRequest.php | 2 +- .../CreateCancelSubscriptionRequest.php | 2 +- src/Models/CreateCaptureChargeRequest.php | 2 +- src/Models/CreateCardOptionsRequest.php | 2 +- ...CreateCardPaymentContactlessPOIRequest.php | 2 +- .../CreateCardPaymentContactlessRequest.php | 2 +- src/Models/CreateCardPaymentTokenRequest.php | 2 +- src/Models/CreateCardRequest.php | 2 +- src/Models/CreateCardTokenRequest.php | 2 +- src/Models/CreateCashPaymentRequest.php | 2 +- src/Models/CreateChargeRequest.php | 2 +- .../CreateCheckoutBankTransferRequest.php | 2 +- .../CreateCheckoutBoletoPaymentRequest.php | 2 +- ...teCheckoutCardInstallmentOptionRequest.php | 2 +- ...CreateCheckoutCreditCardPaymentRequest.php | 2 +- .../CreateCheckoutDebitCardPaymentRequest.php | 2 +- src/Models/CreateCheckoutPaymentRequest.php | 2 +- src/Models/CreateClearSaleRequest.php | 2 +- src/Models/CreateConfirmPaymentRequest.php | 2 +- src/Models/CreateCreditCardPaymentRequest.php | 2 +- src/Models/CreateCustomerRequest.php | 2 +- src/Models/CreateDebitCardPaymentRequest.php | 2 +- src/Models/CreateDeviceRequest.php | 2 +- src/Models/CreateDiscountRequest.php | 2 +- src/Models/CreateEmvDataDecryptRequest.php | 2 +- .../CreateEmvDataDukptDecryptRequest.php | 2 +- src/Models/CreateEmvDataTlvDecryptRequest.php | 2 +- src/Models/CreateEmvDecryptRequest.php | 2 +- src/Models/CreateGooglePayHeaderRequest.php | 2 +- src/Models/CreateGooglePayRequest.php | 2 +- src/Models/CreateIncrementRequest.php | 2 +- src/Models/CreateInvoiceRequest.php | 2 +- src/Models/CreateLocationRequest.php | 2 +- src/Models/CreateOrderItemRequest.php | 2 +- src/Models/CreateOrderRequest.php | 2 +- .../CreatePaymentAuthenticationRequest.php | 2 +- src/Models/CreatePaymentRequest.php | 2 +- src/Models/CreatePeriodRequest.php | 2 +- src/Models/CreatePhoneRequest.php | 2 +- src/Models/CreatePhonesRequest.php | 2 +- src/Models/CreatePixPaymentRequest.php | 2 +- src/Models/CreatePlanItemRequest.php | 2 +- src/Models/CreatePlanRequest.php | 2 +- src/Models/CreatePriceBracketRequest.php | 2 +- src/Models/CreatePricingSchemeRequest.php | 2 +- .../CreatePrivateLabelPaymentRequest.php | 2 +- src/Models/CreateRecipientRequest.php | 2 +- src/Models/CreateSellerRequest.php | 2 +- src/Models/CreateSetupRequest.php | 2 +- src/Models/CreateShippingRequest.php | 2 +- src/Models/CreateSplitOptionsRequest.php | 2 +- src/Models/CreateSplitRequest.php | 2 +- src/Models/CreateSubMerchantRequest.php | 2 +- src/Models/CreateSubscriptionItemRequest.php | 2 +- src/Models/CreateSubscriptionRequest.php | 2 +- src/Models/CreateSubscriptionSplitRequest.php | 56 ++++++++++++ src/Models/CreateThreeDSecureRequest.php | 2 +- src/Models/CreateTokenRequest.php | 2 +- .../CreateTransactionReportFileRequest.php | 2 +- src/Models/CreateTransfer.php | 2 +- src/Models/CreateTransferRequest.php | 2 +- src/Models/CreateTransferSettingsRequest.php | 2 +- src/Models/CreateUsageRequest.php | 2 +- src/Models/CreateVoucherPaymentRequest.php | 2 +- src/Models/CreateWithdrawRequest.php | 2 +- src/Models/GetAccessTokenResponse.php | 2 +- src/Models/GetAddressResponse.php | 2 +- src/Models/GetAnticipationLimitResponse.php | 2 +- src/Models/GetAnticipationLimitsResponse.php | 2 +- src/Models/GetAnticipationResponse.php | 2 +- src/Models/GetAntifraudResponse.php | 2 +- .../GetAutomaticAnticipationResponse.php | 2 +- src/Models/GetBalanceResponse.php | 2 +- src/Models/GetBankAccountResponse.php | 2 +- .../GetBankTransferTransactionResponse.php | 2 +- src/Models/GetBillingAddressResponse.php | 2 +- src/Models/GetBoletoTransactionResponse.php | 2 +- src/Models/GetCardResponse.php | 2 +- src/Models/GetCardTokenResponse.php | 2 +- src/Models/GetCashTransactionResponse.php | 2 +- src/Models/GetChargeResponse.php | 2 +- src/Models/GetChargesSummaryResponse.php | 2 +- ...GetCheckoutBankTransferPaymentResponse.php | 2 +- .../GetCheckoutBoletoPaymentResponse.php | 2 +- ...CheckoutCardInstallmentOptionsResponse.php | 2 +- .../GetCheckoutCreditCardPaymentResponse.php | 2 +- .../GetCheckoutDebitCardPaymentResponse.php | 2 +- src/Models/GetCheckoutPaymentResponse.php | 2 +- .../GetCheckoutPaymentSettingsResponse.php | 2 +- .../GetCreditCardTransactionResponse.php | 2 +- src/Models/GetCustomerResponse.php | 2 +- .../GetDebitCardTransactionResponse.php | 2 +- src/Models/GetDeviceResponse.php | 2 +- src/Models/GetDiscountResponse.php | 2 +- src/Models/GetGatewayErrorResponse.php | 2 +- src/Models/GetGatewayRecipientResponse.php | 2 +- src/Models/GetGatewayResponseResponse.php | 2 +- src/Models/GetIncrementResponse.php | 2 +- src/Models/GetInvoiceItemResponse.php | 2 +- src/Models/GetInvoiceResponse.php | 2 +- src/Models/GetLocationResponse.php | 2 +- src/Models/GetOrderItemResponse.php | 2 +- src/Models/GetOrderResponse.php | 2 +- .../GetPaymentAuthenticationResponse.php | 2 +- src/Models/GetPeriodResponse.php | 2 +- src/Models/GetPhoneResponse.php | 2 +- src/Models/GetPhonesResponse.php | 2 +- src/Models/GetPixBankAccountResponse.php | 75 ++++++++++++++++ src/Models/GetPixPayerResponse.php | 74 ++++++++++++++++ src/Models/GetPixTransactionResponse.php | 2 +- src/Models/GetPlanItemResponse.php | 2 +- src/Models/GetPlanResponse.php | 2 +- src/Models/GetPriceBracketResponse.php | 2 +- src/Models/GetPricingSchemeResponse.php | 2 +- .../GetPrivateLabelTransactionResponse.php | 2 +- src/Models/GetRecipientResponse.php | 2 +- .../GetSafetyPayTransactionResponse.php | 2 +- src/Models/GetSellerResponse.php | 2 +- src/Models/GetSellersRequest.php | 2 +- src/Models/GetSetupResponse.php | 2 +- src/Models/GetShippingResponse.php | 2 +- src/Models/GetSplitOptionsResponse.php | 2 +- src/Models/GetSplitResponse.php | 2 +- src/Models/GetSubscriptionItemResponse.php | 2 +- src/Models/GetSubscriptionResponse.php | 2 +- src/Models/GetSubscriptionSplitResponse.php | 56 ++++++++++++ src/Models/GetThreeDSecureResponse.php | 2 +- src/Models/GetTokenResponse.php | 2 +- .../GetTransactionReportFileResponse.php | 2 +- src/Models/GetTransactionResponse.php | 2 +- src/Models/GetTransfer.php | 2 +- src/Models/GetTransferResponse.php | 2 +- src/Models/GetTransferSettingsResponse.php | 2 +- src/Models/GetTransferSourceResponse.php | 2 +- src/Models/GetTransferTargetResponse.php | 2 +- src/Models/GetUsageReportResponse.php | 2 +- src/Models/GetUsageResponse.php | 2 +- src/Models/GetUsagesDetailsResponse.php | 2 +- src/Models/GetVoucherTransactionResponse.php | 2 +- src/Models/GetWithdrawResponse.php | 2 +- src/Models/GetWithdrawSourceResponse.php | 2 +- src/Models/GetWithdrawTargetResponse.php | 2 +- src/Models/ListAccessTokensResponse.php | 2 +- src/Models/ListAddressesResponse.php | 2 +- src/Models/ListAnticipationResponse.php | 2 +- src/Models/ListCardsResponse.php | 2 +- src/Models/ListChargeTransactionsResponse.php | 2 +- src/Models/ListChargesResponse.php | 2 +- src/Models/ListCustomersResponse.php | 2 +- src/Models/ListCyclesResponse.php | 2 +- src/Models/ListDiscountsResponse.php | 2 +- src/Models/ListIncrementsResponse.php | 2 +- src/Models/ListInvoicesResponse.php | 2 +- src/Models/ListOrderResponse.php | 2 +- src/Models/ListPlansResponse.php | 2 +- src/Models/ListRecipientResponse.php | 2 +- src/Models/ListSellerResponse.php | 2 +- src/Models/ListSubscriptionItemsResponse.php | 2 +- src/Models/ListSubscriptionsResponse.php | 2 +- src/Models/ListTransactionsFilesResponse.php | 2 +- src/Models/ListTransactionsResponse.php | 2 +- src/Models/ListTransferResponse.php | 2 +- src/Models/ListTransfers.php | 2 +- src/Models/ListUsagesDetailsResponse.php | 2 +- src/Models/ListWithdrawals.php | 2 +- src/Models/PagingResponse.php | 2 +- src/Models/PixAdditionalInformation.php | 2 +- src/Models/UpdateAddressRequest.php | 2 +- ...teAutomaticAnticipationSettingsRequest.php | 2 +- src/Models/UpdateCardRequest.php | 2 +- src/Models/UpdateChargeCardRequest.php | 2 +- src/Models/UpdateChargeDueDateRequest.php | 2 +- .../UpdateChargePaymentMethodRequest.php | 2 +- .../UpdateCurrentCycleEndDateRequest.php | 2 +- .../UpdateCurrentCycleStatusRequest.php | 2 +- src/Models/UpdateCustomerRequest.php | 2 +- src/Models/UpdateInvoiceStatusRequest.php | 2 +- src/Models/UpdateMetadataRequest.php | 2 +- src/Models/UpdateOrderItemRequest.php | 2 +- src/Models/UpdateOrderStatusRequest.php | 2 +- src/Models/UpdatePlanItemRequest.php | 2 +- src/Models/UpdatePlanRequest.php | 2 +- src/Models/UpdatePriceBracketRequest.php | 2 +- src/Models/UpdatePricingSchemeRequest.php | 2 +- .../UpdateRecipientBankAccountRequest.php | 2 +- src/Models/UpdateRecipientRequest.php | 2 +- src/Models/UpdateSellerRequest.php | 2 +- ...UpdateSubscriptionAffiliationIdRequest.php | 2 +- .../UpdateSubscriptionBillingDateRequest.php | 2 +- src/Models/UpdateSubscriptionCardRequest.php | 2 +- .../UpdateSubscriptionDueDaysRequest.php | 2 +- src/Models/UpdateSubscriptionItemRequest.php | 2 +- .../UpdateSubscriptionMinimumPriceRequest.php | 2 +- ...UpdateSubscriptionPaymentMethodRequest.php | 2 +- src/Models/UpdateSubscriptionSplitRequest.php | 56 ++++++++++++ .../UpdateSubscriptionStartAtRequest.php | 2 +- src/Models/UpdateTransferSettingsRequest.php | 2 +- 211 files changed, 608 insertions(+), 205 deletions(-) create mode 100644 src/Models/CancelSplitRequest.php create mode 100644 src/Models/CreateSubscriptionSplitRequest.php create mode 100644 src/Models/GetPixBankAccountResponse.php create mode 100644 src/Models/GetPixPayerResponse.php create mode 100644 src/Models/GetSubscriptionSplitResponse.php create mode 100644 src/Models/UpdateSubscriptionSplitRequest.php diff --git a/composer.json b/composer.json index d06b2c3..9581621 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ } ], "require": { - "php": ">=5.4.0", + "php": ">=8.0", "ext-curl": "*", "ext-json": "*", "ext-mbstring": "*", diff --git a/src/Models/CancelSplitRequest.php b/src/Models/CancelSplitRequest.php new file mode 100644 index 0000000..355b89a --- /dev/null +++ b/src/Models/CancelSplitRequest.php @@ -0,0 +1,86 @@ +type + * @param integer $amount Initialization value for $this->amount + * @param string $recipientId Initialization value for $this->recipientId + * @param CreateSplitOptionsRequest $options Initialization value for $this->options + * @param string $splitRuleId Initialization value for $this->splitRuleId + */ + public function __construct() + { + if (5 == func_num_args()) { + $this->type = func_get_arg(0); + $this->amount = func_get_arg(1); + $this->recipientId = func_get_arg(2); + $this->options = func_get_arg(3); + $this->splitRuleId = func_get_arg(4); + } + } + + + /** + * Encode this object to JSON + */ + public function jsonSerialize() + { + $json = array(); + $json['type'] = $this->type; + $json['amount'] = $this->amount; + $json['recipient_id'] = $this->recipientId; + $json['options'] = $this->options; + $json['split_rule_id'] = $this->splitRuleId; + + return $json; + } +} diff --git a/src/Models/ClearSaleRequest.php b/src/Models/ClearSaleRequest.php index a4869bc..f38ebbd 100644 --- a/src/Models/ClearSaleRequest.php +++ b/src/Models/ClearSaleRequest.php @@ -37,7 +37,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['custom_sla'] = $this->customSla; diff --git a/src/Models/CreateAccessTokenRequest.php b/src/Models/CreateAccessTokenRequest.php index b5b8d9a..8cd946d 100644 --- a/src/Models/CreateAccessTokenRequest.php +++ b/src/Models/CreateAccessTokenRequest.php @@ -36,7 +36,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['expires_in'] = $this->expiresIn; diff --git a/src/Models/CreateAddressRequest.php b/src/Models/CreateAddressRequest.php index 7a79b41..98cd200 100644 --- a/src/Models/CreateAddressRequest.php +++ b/src/Models/CreateAddressRequest.php @@ -130,7 +130,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['street'] = $this->street; diff --git a/src/Models/CreateAnticipationRequest.php b/src/Models/CreateAnticipationRequest.php index 3a58872..ddf1995 100644 --- a/src/Models/CreateAnticipationRequest.php +++ b/src/Models/CreateAnticipationRequest.php @@ -57,7 +57,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['amount'] = $this->amount; diff --git a/src/Models/CreateAntifraudRequest.php b/src/Models/CreateAntifraudRequest.php index 332aeb4..0ec1c10 100644 --- a/src/Models/CreateAntifraudRequest.php +++ b/src/Models/CreateAntifraudRequest.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['type'] = $this->type; diff --git a/src/Models/CreateApplePayHeaderRequest.php b/src/Models/CreateApplePayHeaderRequest.php index 81a20b3..429d097 100644 --- a/src/Models/CreateApplePayHeaderRequest.php +++ b/src/Models/CreateApplePayHeaderRequest.php @@ -55,7 +55,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['public_key_hash'] = $this->publicKeyHash; diff --git a/src/Models/CreateApplePayRequest.php b/src/Models/CreateApplePayRequest.php index 13c3e55..56f1282 100644 --- a/src/Models/CreateApplePayRequest.php +++ b/src/Models/CreateApplePayRequest.php @@ -73,7 +73,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['version'] = $this->version; diff --git a/src/Models/CreateAutomaticAnticipationSettingsRequest.php b/src/Models/CreateAutomaticAnticipationSettingsRequest.php index b3b3958..7b94c81 100644 --- a/src/Models/CreateAutomaticAnticipationSettingsRequest.php +++ b/src/Models/CreateAutomaticAnticipationSettingsRequest.php @@ -73,7 +73,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['enabled'] = $this->enabled; diff --git a/src/Models/CreateBankAccountRequest.php b/src/Models/CreateBankAccountRequest.php index 8948d7a..c24b3e0 100644 --- a/src/Models/CreateBankAccountRequest.php +++ b/src/Models/CreateBankAccountRequest.php @@ -124,7 +124,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['holder_name'] = $this->holderName; diff --git a/src/Models/CreateBankTransferPaymentRequest.php b/src/Models/CreateBankTransferPaymentRequest.php index cd5d9e9..7d2d5e8 100644 --- a/src/Models/CreateBankTransferPaymentRequest.php +++ b/src/Models/CreateBankTransferPaymentRequest.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['bank'] = $this->bank; diff --git a/src/Models/CreateBoletoPaymentRequest.php b/src/Models/CreateBoletoPaymentRequest.php index 3fa5d86..5f48b0a 100644 --- a/src/Models/CreateBoletoPaymentRequest.php +++ b/src/Models/CreateBoletoPaymentRequest.php @@ -104,7 +104,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['retries'] = $this->retries; diff --git a/src/Models/CreateCancelChargeRequest.php b/src/Models/CreateCancelChargeRequest.php index e1d24ea..8174928 100644 --- a/src/Models/CreateCancelChargeRequest.php +++ b/src/Models/CreateCancelChargeRequest.php @@ -62,7 +62,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['amount'] = $this->amount; diff --git a/src/Models/CreateCancelChargeSplitRulesRequest.php b/src/Models/CreateCancelChargeSplitRulesRequest.php index 634612a..b45d442 100644 --- a/src/Models/CreateCancelChargeSplitRulesRequest.php +++ b/src/Models/CreateCancelChargeSplitRulesRequest.php @@ -55,7 +55,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/CreateCancelSubscriptionRequest.php b/src/Models/CreateCancelSubscriptionRequest.php index 077697f..329d1c1 100644 --- a/src/Models/CreateCancelSubscriptionRequest.php +++ b/src/Models/CreateCancelSubscriptionRequest.php @@ -43,7 +43,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['cancel_pending_invoices'] = $this->cancelPendingInvoices; diff --git a/src/Models/CreateCaptureChargeRequest.php b/src/Models/CreateCaptureChargeRequest.php index 54d7010..108d1d3 100644 --- a/src/Models/CreateCaptureChargeRequest.php +++ b/src/Models/CreateCaptureChargeRequest.php @@ -62,7 +62,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['code'] = $this->code; diff --git a/src/Models/CreateCardOptionsRequest.php b/src/Models/CreateCardOptionsRequest.php index c19220a..434a9b1 100644 --- a/src/Models/CreateCardOptionsRequest.php +++ b/src/Models/CreateCardOptionsRequest.php @@ -38,7 +38,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['verify_card'] = $this->verifyCard; diff --git a/src/Models/CreateCardPaymentContactlessPOIRequest.php b/src/Models/CreateCardPaymentContactlessPOIRequest.php index d60c03d..6885d06 100644 --- a/src/Models/CreateCardPaymentContactlessPOIRequest.php +++ b/src/Models/CreateCardPaymentContactlessPOIRequest.php @@ -75,7 +75,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['system_name'] = $this->systemName; diff --git a/src/Models/CreateCardPaymentContactlessRequest.php b/src/Models/CreateCardPaymentContactlessRequest.php index 983546a..a1da76a 100644 --- a/src/Models/CreateCardPaymentContactlessRequest.php +++ b/src/Models/CreateCardPaymentContactlessRequest.php @@ -62,7 +62,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['type'] = $this->type; diff --git a/src/Models/CreateCardPaymentTokenRequest.php b/src/Models/CreateCardPaymentTokenRequest.php index 4c56fcf..223b0af 100644 --- a/src/Models/CreateCardPaymentTokenRequest.php +++ b/src/Models/CreateCardPaymentTokenRequest.php @@ -56,7 +56,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['type'] = $this->type; diff --git a/src/Models/CreateCardRequest.php b/src/Models/CreateCardRequest.php index 9f52af5..c098003 100644 --- a/src/Models/CreateCardRequest.php +++ b/src/Models/CreateCardRequest.php @@ -181,7 +181,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['number'] = $this->number; diff --git a/src/Models/CreateCardTokenRequest.php b/src/Models/CreateCardTokenRequest.php index 4314a50..1fb372f 100644 --- a/src/Models/CreateCardTokenRequest.php +++ b/src/Models/CreateCardTokenRequest.php @@ -93,7 +93,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['number'] = $this->number; diff --git a/src/Models/CreateCashPaymentRequest.php b/src/Models/CreateCashPaymentRequest.php index 128f2cb..c7e0585 100644 --- a/src/Models/CreateCashPaymentRequest.php +++ b/src/Models/CreateCashPaymentRequest.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['description'] = $this->description; diff --git a/src/Models/CreateChargeRequest.php b/src/Models/CreateChargeRequest.php index c4153f5..e66c785 100644 --- a/src/Models/CreateChargeRequest.php +++ b/src/Models/CreateChargeRequest.php @@ -112,7 +112,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['code'] = $this->code; diff --git a/src/Models/CreateCheckoutBankTransferRequest.php b/src/Models/CreateCheckoutBankTransferRequest.php index b050ea4..8570311 100644 --- a/src/Models/CreateCheckoutBankTransferRequest.php +++ b/src/Models/CreateCheckoutBankTransferRequest.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['bank'] = $this->bank; diff --git a/src/Models/CreateCheckoutBoletoPaymentRequest.php b/src/Models/CreateCheckoutBoletoPaymentRequest.php index be2b269..aa58063 100644 --- a/src/Models/CreateCheckoutBoletoPaymentRequest.php +++ b/src/Models/CreateCheckoutBoletoPaymentRequest.php @@ -57,7 +57,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['bank'] = $this->bank; diff --git a/src/Models/CreateCheckoutCardInstallmentOptionRequest.php b/src/Models/CreateCheckoutCardInstallmentOptionRequest.php index 29fa92b..3a440dc 100644 --- a/src/Models/CreateCheckoutCardInstallmentOptionRequest.php +++ b/src/Models/CreateCheckoutCardInstallmentOptionRequest.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['number'] = $this->number; diff --git a/src/Models/CreateCheckoutCreditCardPaymentRequest.php b/src/Models/CreateCheckoutCreditCardPaymentRequest.php index 411c458..fb52388 100644 --- a/src/Models/CreateCheckoutCreditCardPaymentRequest.php +++ b/src/Models/CreateCheckoutCreditCardPaymentRequest.php @@ -61,7 +61,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['statement_descriptor'] = $this->statementDescriptor; diff --git a/src/Models/CreateCheckoutDebitCardPaymentRequest.php b/src/Models/CreateCheckoutDebitCardPaymentRequest.php index 6420f4c..b598d80 100644 --- a/src/Models/CreateCheckoutDebitCardPaymentRequest.php +++ b/src/Models/CreateCheckoutDebitCardPaymentRequest.php @@ -46,7 +46,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['statement_descriptor'] = $this->statementDescriptor; diff --git a/src/Models/CreateCheckoutPaymentRequest.php b/src/Models/CreateCheckoutPaymentRequest.php index 468f463..fbe6a41 100644 --- a/src/Models/CreateCheckoutPaymentRequest.php +++ b/src/Models/CreateCheckoutPaymentRequest.php @@ -173,7 +173,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['accepted_payment_methods'] = $this->acceptedPaymentMethods; diff --git a/src/Models/CreateClearSaleRequest.php b/src/Models/CreateClearSaleRequest.php index 4e911b0..5ea240b 100644 --- a/src/Models/CreateClearSaleRequest.php +++ b/src/Models/CreateClearSaleRequest.php @@ -37,7 +37,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['custom_sla'] = $this->customSla; diff --git a/src/Models/CreateConfirmPaymentRequest.php b/src/Models/CreateConfirmPaymentRequest.php index 15c6c06..ef00d8b 100644 --- a/src/Models/CreateConfirmPaymentRequest.php +++ b/src/Models/CreateConfirmPaymentRequest.php @@ -55,7 +55,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['description'] = $this->description; diff --git a/src/Models/CreateCreditCardPaymentRequest.php b/src/Models/CreateCreditCardPaymentRequest.php index 923ed9e..2b7cc47 100644 --- a/src/Models/CreateCreditCardPaymentRequest.php +++ b/src/Models/CreateCreditCardPaymentRequest.php @@ -159,7 +159,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['installments'] = $this->installments; diff --git a/src/Models/CreateCustomerRequest.php b/src/Models/CreateCustomerRequest.php index 44ca49e..7b56df2 100644 --- a/src/Models/CreateCustomerRequest.php +++ b/src/Models/CreateCustomerRequest.php @@ -116,7 +116,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['name'] = $this->name; diff --git a/src/Models/CreateDebitCardPaymentRequest.php b/src/Models/CreateDebitCardPaymentRequest.php index 22ef5ca..800ba17 100644 --- a/src/Models/CreateDebitCardPaymentRequest.php +++ b/src/Models/CreateDebitCardPaymentRequest.php @@ -87,7 +87,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['statement_descriptor'] = $this->statementDescriptor; diff --git a/src/Models/CreateDeviceRequest.php b/src/Models/CreateDeviceRequest.php index 4790dd6..8270edc 100644 --- a/src/Models/CreateDeviceRequest.php +++ b/src/Models/CreateDeviceRequest.php @@ -35,7 +35,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['platform'] = $this->platform; diff --git a/src/Models/CreateDiscountRequest.php b/src/Models/CreateDiscountRequest.php index b15f968..d3d51eb 100644 --- a/src/Models/CreateDiscountRequest.php +++ b/src/Models/CreateDiscountRequest.php @@ -72,7 +72,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['value'] = $this->value; diff --git a/src/Models/CreateEmvDataDecryptRequest.php b/src/Models/CreateEmvDataDecryptRequest.php index 760efed..3bc406c 100644 --- a/src/Models/CreateEmvDataDecryptRequest.php +++ b/src/Models/CreateEmvDataDecryptRequest.php @@ -53,7 +53,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['cipher'] = $this->cipher; diff --git a/src/Models/CreateEmvDataDukptDecryptRequest.php b/src/Models/CreateEmvDataDukptDecryptRequest.php index 2f251d1..53afc69 100644 --- a/src/Models/CreateEmvDataDukptDecryptRequest.php +++ b/src/Models/CreateEmvDataDukptDecryptRequest.php @@ -36,7 +36,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['ksn'] = $this->ksn; diff --git a/src/Models/CreateEmvDataTlvDecryptRequest.php b/src/Models/CreateEmvDataTlvDecryptRequest.php index e134292..9125aa2 100644 --- a/src/Models/CreateEmvDataTlvDecryptRequest.php +++ b/src/Models/CreateEmvDataTlvDecryptRequest.php @@ -54,7 +54,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['tag'] = $this->tag; diff --git a/src/Models/CreateEmvDecryptRequest.php b/src/Models/CreateEmvDecryptRequest.php index dfbe52d..ab275f9 100644 --- a/src/Models/CreateEmvDecryptRequest.php +++ b/src/Models/CreateEmvDecryptRequest.php @@ -65,7 +65,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['icc_data'] = $this->iccData; diff --git a/src/Models/CreateGooglePayHeaderRequest.php b/src/Models/CreateGooglePayHeaderRequest.php index 5806bcb..7b3d78a 100644 --- a/src/Models/CreateGooglePayHeaderRequest.php +++ b/src/Models/CreateGooglePayHeaderRequest.php @@ -37,7 +37,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['ephemeral_public_key'] = $this->ephemeralPublicKey; diff --git a/src/Models/CreateGooglePayRequest.php b/src/Models/CreateGooglePayRequest.php index e257880..94979b1 100644 --- a/src/Models/CreateGooglePayRequest.php +++ b/src/Models/CreateGooglePayRequest.php @@ -73,7 +73,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['version'] = $this->version; diff --git a/src/Models/CreateIncrementRequest.php b/src/Models/CreateIncrementRequest.php index dcec0a2..703d3bb 100644 --- a/src/Models/CreateIncrementRequest.php +++ b/src/Models/CreateIncrementRequest.php @@ -72,7 +72,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['value'] = $this->value; diff --git a/src/Models/CreateInvoiceRequest.php b/src/Models/CreateInvoiceRequest.php index 64830f2..7372fc5 100644 --- a/src/Models/CreateInvoiceRequest.php +++ b/src/Models/CreateInvoiceRequest.php @@ -36,7 +36,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['metadata'] = $this->metadata; diff --git a/src/Models/CreateLocationRequest.php b/src/Models/CreateLocationRequest.php index 642342c..d2d1d67 100644 --- a/src/Models/CreateLocationRequest.php +++ b/src/Models/CreateLocationRequest.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['latitude'] = $this->latitude; diff --git a/src/Models/CreateOrderItemRequest.php b/src/Models/CreateOrderItemRequest.php index eae9f85..b9b66d8 100644 --- a/src/Models/CreateOrderItemRequest.php +++ b/src/Models/CreateOrderItemRequest.php @@ -88,7 +88,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['amount'] = $this->amount; diff --git a/src/Models/CreateOrderRequest.php b/src/Models/CreateOrderRequest.php index ba70660..947a987 100644 --- a/src/Models/CreateOrderRequest.php +++ b/src/Models/CreateOrderRequest.php @@ -171,7 +171,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['items'] = $this->items; diff --git a/src/Models/CreatePaymentAuthenticationRequest.php b/src/Models/CreatePaymentAuthenticationRequest.php index 10ef213..6ade3de 100644 --- a/src/Models/CreatePaymentAuthenticationRequest.php +++ b/src/Models/CreatePaymentAuthenticationRequest.php @@ -46,7 +46,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['type'] = $this->type; diff --git a/src/Models/CreatePaymentRequest.php b/src/Models/CreatePaymentRequest.php index 8efbad8..9151959 100644 --- a/src/Models/CreatePaymentRequest.php +++ b/src/Models/CreatePaymentRequest.php @@ -173,7 +173,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['payment_method'] = $this->paymentMethod; diff --git a/src/Models/CreatePeriodRequest.php b/src/Models/CreatePeriodRequest.php index e695778..7296a10 100644 --- a/src/Models/CreatePeriodRequest.php +++ b/src/Models/CreatePeriodRequest.php @@ -38,7 +38,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['end_at'] = isset($this->endAt) ? diff --git a/src/Models/CreatePhoneRequest.php b/src/Models/CreatePhoneRequest.php index da0b13b..50421aa 100644 --- a/src/Models/CreatePhoneRequest.php +++ b/src/Models/CreatePhoneRequest.php @@ -53,7 +53,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['country_code'] = $this->countryCode; diff --git a/src/Models/CreatePhonesRequest.php b/src/Models/CreatePhonesRequest.php index f5133d4..eac0b96 100644 --- a/src/Models/CreatePhonesRequest.php +++ b/src/Models/CreatePhonesRequest.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['home_phone'] = $this->homePhone; diff --git a/src/Models/CreatePixPaymentRequest.php b/src/Models/CreatePixPaymentRequest.php index c3c2236..7c4fc68 100644 --- a/src/Models/CreatePixPaymentRequest.php +++ b/src/Models/CreatePixPaymentRequest.php @@ -56,7 +56,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['expires_at'] = isset($this->expiresAt) ? diff --git a/src/Models/CreatePlanItemRequest.php b/src/Models/CreatePlanItemRequest.php index fe2809c..506c973 100644 --- a/src/Models/CreatePlanItemRequest.php +++ b/src/Models/CreatePlanItemRequest.php @@ -80,7 +80,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['name'] = $this->name; diff --git a/src/Models/CreatePlanRequest.php b/src/Models/CreatePlanRequest.php index ea734af..dbcc1a7 100644 --- a/src/Models/CreatePlanRequest.php +++ b/src/Models/CreatePlanRequest.php @@ -194,7 +194,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['name'] = $this->name; diff --git a/src/Models/CreatePriceBracketRequest.php b/src/Models/CreatePriceBracketRequest.php index 6cbeeaa..4ef43bf 100644 --- a/src/Models/CreatePriceBracketRequest.php +++ b/src/Models/CreatePriceBracketRequest.php @@ -64,7 +64,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['start_quantity'] = $this->startQuantity; diff --git a/src/Models/CreatePricingSchemeRequest.php b/src/Models/CreatePricingSchemeRequest.php index 3693e4c..f78b35a 100644 --- a/src/Models/CreatePricingSchemeRequest.php +++ b/src/Models/CreatePricingSchemeRequest.php @@ -72,7 +72,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['scheme_type'] = $this->schemeType; diff --git a/src/Models/CreatePrivateLabelPaymentRequest.php b/src/Models/CreatePrivateLabelPaymentRequest.php index 2bf7e44..adac0f4 100644 --- a/src/Models/CreatePrivateLabelPaymentRequest.php +++ b/src/Models/CreatePrivateLabelPaymentRequest.php @@ -111,7 +111,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['installments'] = $this->installments; diff --git a/src/Models/CreateRecipientRequest.php b/src/Models/CreateRecipientRequest.php index 29b59cf..1ed8b72 100644 --- a/src/Models/CreateRecipientRequest.php +++ b/src/Models/CreateRecipientRequest.php @@ -100,7 +100,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['name'] = $this->name; diff --git a/src/Models/CreateSellerRequest.php b/src/Models/CreateSellerRequest.php index d88b379..a05dd85 100644 --- a/src/Models/CreateSellerRequest.php +++ b/src/Models/CreateSellerRequest.php @@ -85,7 +85,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['name'] = $this->name; diff --git a/src/Models/CreateSetupRequest.php b/src/Models/CreateSetupRequest.php index 58f47cf..76ddd54 100644 --- a/src/Models/CreateSetupRequest.php +++ b/src/Models/CreateSetupRequest.php @@ -55,7 +55,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['amount'] = $this->amount; diff --git a/src/Models/CreateShippingRequest.php b/src/Models/CreateShippingRequest.php index 2edc067..b491bef 100644 --- a/src/Models/CreateShippingRequest.php +++ b/src/Models/CreateShippingRequest.php @@ -114,7 +114,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['amount'] = $this->amount; diff --git a/src/Models/CreateSplitOptionsRequest.php b/src/Models/CreateSplitOptionsRequest.php index fec7790..6e025be 100644 --- a/src/Models/CreateSplitOptionsRequest.php +++ b/src/Models/CreateSplitOptionsRequest.php @@ -53,7 +53,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['liable'] = $this->liable; diff --git a/src/Models/CreateSplitRequest.php b/src/Models/CreateSplitRequest.php index 6abe5b1..32df9a3 100644 --- a/src/Models/CreateSplitRequest.php +++ b/src/Models/CreateSplitRequest.php @@ -63,7 +63,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['type'] = $this->type; diff --git a/src/Models/CreateSubMerchantRequest.php b/src/Models/CreateSubMerchantRequest.php index d254cb4..da93cb1 100644 --- a/src/Models/CreateSubMerchantRequest.php +++ b/src/Models/CreateSubMerchantRequest.php @@ -101,7 +101,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['payment_facilitator_code'] = $this->paymentFacilitatorCode; diff --git a/src/Models/CreateSubscriptionItemRequest.php b/src/Models/CreateSubscriptionItemRequest.php index a988795..3478363 100644 --- a/src/Models/CreateSubscriptionItemRequest.php +++ b/src/Models/CreateSubscriptionItemRequest.php @@ -108,7 +108,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['description'] = $this->description; diff --git a/src/Models/CreateSubscriptionRequest.php b/src/Models/CreateSubscriptionRequest.php index a8a64d7..667a050 100644 --- a/src/Models/CreateSubscriptionRequest.php +++ b/src/Models/CreateSubscriptionRequest.php @@ -308,7 +308,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['customer'] = $this->customer; diff --git a/src/Models/CreateSubscriptionSplitRequest.php b/src/Models/CreateSubscriptionSplitRequest.php new file mode 100644 index 0000000..a9869f1 --- /dev/null +++ b/src/Models/CreateSubscriptionSplitRequest.php @@ -0,0 +1,56 @@ +enabled + * @param array $rules Initialization value for $this->rules + */ + public function __construct() + { + if (2 == func_num_args()) { + $this->enabled = func_get_arg(0); + $this->rules = func_get_arg(1); + } + } + + + /** + * Encode this object to JSON + */ + public function jsonSerialize() + { + $json = array(); + $json['enabled'] = $this->enabled; + $json['rules'] = $this->rules; + + return $json; + } +} diff --git a/src/Models/CreateThreeDSecureRequest.php b/src/Models/CreateThreeDSecureRequest.php index d4ca0aa..8fcfbcb 100644 --- a/src/Models/CreateThreeDSecureRequest.php +++ b/src/Models/CreateThreeDSecureRequest.php @@ -87,7 +87,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['mpi'] = $this->mpi; diff --git a/src/Models/CreateTokenRequest.php b/src/Models/CreateTokenRequest.php index 153a662..0a0b4d0 100644 --- a/src/Models/CreateTokenRequest.php +++ b/src/Models/CreateTokenRequest.php @@ -51,7 +51,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['type'] = $this->type; diff --git a/src/Models/CreateTransactionReportFileRequest.php b/src/Models/CreateTransactionReportFileRequest.php index b89f8ca..3b3af6f 100644 --- a/src/Models/CreateTransactionReportFileRequest.php +++ b/src/Models/CreateTransactionReportFileRequest.php @@ -56,7 +56,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['name'] = $this->name; diff --git a/src/Models/CreateTransfer.php b/src/Models/CreateTransfer.php index b0e1f22..327bd2c 100644 --- a/src/Models/CreateTransfer.php +++ b/src/Models/CreateTransfer.php @@ -64,7 +64,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['amount'] = $this->amount; diff --git a/src/Models/CreateTransferRequest.php b/src/Models/CreateTransferRequest.php index 81674d7..06c83b6 100644 --- a/src/Models/CreateTransferRequest.php +++ b/src/Models/CreateTransferRequest.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['amount'] = $this->amount; diff --git a/src/Models/CreateTransferSettingsRequest.php b/src/Models/CreateTransferSettingsRequest.php index 9227d8e..2cf29d1 100644 --- a/src/Models/CreateTransferSettingsRequest.php +++ b/src/Models/CreateTransferSettingsRequest.php @@ -57,7 +57,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['transfer_enabled'] = $this->transferEnabled; diff --git a/src/Models/CreateUsageRequest.php b/src/Models/CreateUsageRequest.php index 22fc4d5..16f0c1c 100644 --- a/src/Models/CreateUsageRequest.php +++ b/src/Models/CreateUsageRequest.php @@ -81,7 +81,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['quantity'] = $this->quantity; diff --git a/src/Models/CreateVoucherPaymentRequest.php b/src/Models/CreateVoucherPaymentRequest.php index f53b158..422f3f8 100644 --- a/src/Models/CreateVoucherPaymentRequest.php +++ b/src/Models/CreateVoucherPaymentRequest.php @@ -63,7 +63,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['statement_descriptor'] = $this->statementDescriptor; diff --git a/src/Models/CreateWithdrawRequest.php b/src/Models/CreateWithdrawRequest.php index 99be10e..5c2fe30 100644 --- a/src/Models/CreateWithdrawRequest.php +++ b/src/Models/CreateWithdrawRequest.php @@ -44,7 +44,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['amount'] = $this->amount; diff --git a/src/Models/GetAccessTokenResponse.php b/src/Models/GetAccessTokenResponse.php index f3456ad..45328fb 100644 --- a/src/Models/GetAccessTokenResponse.php +++ b/src/Models/GetAccessTokenResponse.php @@ -74,7 +74,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetAddressResponse.php b/src/Models/GetAddressResponse.php index d94f720..989681e 100644 --- a/src/Models/GetAddressResponse.php +++ b/src/Models/GetAddressResponse.php @@ -188,7 +188,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetAnticipationLimitResponse.php b/src/Models/GetAnticipationLimitResponse.php index 55631b1..0f9b4d0 100644 --- a/src/Models/GetAnticipationLimitResponse.php +++ b/src/Models/GetAnticipationLimitResponse.php @@ -46,7 +46,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['amount'] = $this->amount; diff --git a/src/Models/GetAnticipationLimitsResponse.php b/src/Models/GetAnticipationLimitsResponse.php index cee5a9d..f26ec86 100644 --- a/src/Models/GetAnticipationLimitsResponse.php +++ b/src/Models/GetAnticipationLimitsResponse.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['max'] = $this->max; diff --git a/src/Models/GetAnticipationResponse.php b/src/Models/GetAnticipationResponse.php index cd367c4..c265d1e 100644 --- a/src/Models/GetAnticipationResponse.php +++ b/src/Models/GetAnticipationResponse.php @@ -125,7 +125,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetAntifraudResponse.php b/src/Models/GetAntifraudResponse.php index 6af9750..fb48fb1 100644 --- a/src/Models/GetAntifraudResponse.php +++ b/src/Models/GetAntifraudResponse.php @@ -75,7 +75,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['status'] = $this->status; diff --git a/src/Models/GetAutomaticAnticipationResponse.php b/src/Models/GetAutomaticAnticipationResponse.php index 995c64f..9da7c8a 100644 --- a/src/Models/GetAutomaticAnticipationResponse.php +++ b/src/Models/GetAutomaticAnticipationResponse.php @@ -73,7 +73,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['enabled'] = $this->enabled; diff --git a/src/Models/GetBalanceResponse.php b/src/Models/GetBalanceResponse.php index 9659be9..15366d8 100644 --- a/src/Models/GetBalanceResponse.php +++ b/src/Models/GetBalanceResponse.php @@ -74,7 +74,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['currency'] = $this->currency; diff --git a/src/Models/GetBankAccountResponse.php b/src/Models/GetBankAccountResponse.php index d29bf13..a4efa1b 100644 --- a/src/Models/GetBankAccountResponse.php +++ b/src/Models/GetBankAccountResponse.php @@ -174,7 +174,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetBankTransferTransactionResponse.php b/src/Models/GetBankTransferTransactionResponse.php index 8a23680..0f516bf 100644 --- a/src/Models/GetBankTransferTransactionResponse.php +++ b/src/Models/GetBankTransferTransactionResponse.php @@ -78,7 +78,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['url'] = $this->url; diff --git a/src/Models/GetBillingAddressResponse.php b/src/Models/GetBillingAddressResponse.php index c7645f1..ea7cae9 100644 --- a/src/Models/GetBillingAddressResponse.php +++ b/src/Models/GetBillingAddressResponse.php @@ -120,7 +120,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['street'] = $this->street; diff --git a/src/Models/GetBoletoTransactionResponse.php b/src/Models/GetBoletoTransactionResponse.php index 419e943..d2b0c5a 100644 --- a/src/Models/GetBoletoTransactionResponse.php +++ b/src/Models/GetBoletoTransactionResponse.php @@ -184,7 +184,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['url'] = $this->url; diff --git a/src/Models/GetCardResponse.php b/src/Models/GetCardResponse.php index 2e46229..f9bd411 100644 --- a/src/Models/GetCardResponse.php +++ b/src/Models/GetCardResponse.php @@ -192,7 +192,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetCardTokenResponse.php b/src/Models/GetCardTokenResponse.php index f04d42b..8321c05 100644 --- a/src/Models/GetCardTokenResponse.php +++ b/src/Models/GetCardTokenResponse.php @@ -104,7 +104,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['last_four_digits'] = $this->lastFourDigits; diff --git a/src/Models/GetCashTransactionResponse.php b/src/Models/GetCashTransactionResponse.php index 442a44b..241ee1e 100644 --- a/src/Models/GetCashTransactionResponse.php +++ b/src/Models/GetCashTransactionResponse.php @@ -39,7 +39,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['description'] = $this->description; diff --git a/src/Models/GetChargeResponse.php b/src/Models/GetChargeResponse.php index f6cd1c9..b662f26 100644 --- a/src/Models/GetChargeResponse.php +++ b/src/Models/GetChargeResponse.php @@ -208,7 +208,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetChargesSummaryResponse.php b/src/Models/GetChargesSummaryResponse.php index f46809b..a3bcbaa 100644 --- a/src/Models/GetChargesSummaryResponse.php +++ b/src/Models/GetChargesSummaryResponse.php @@ -36,7 +36,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['total'] = $this->total; diff --git a/src/Models/GetCheckoutBankTransferPaymentResponse.php b/src/Models/GetCheckoutBankTransferPaymentResponse.php index 7316256..3bc0a4f 100644 --- a/src/Models/GetCheckoutBankTransferPaymentResponse.php +++ b/src/Models/GetCheckoutBankTransferPaymentResponse.php @@ -36,7 +36,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['bank'] = $this->bank; diff --git a/src/Models/GetCheckoutBoletoPaymentResponse.php b/src/Models/GetCheckoutBoletoPaymentResponse.php index 1634090..032d4cd 100644 --- a/src/Models/GetCheckoutBoletoPaymentResponse.php +++ b/src/Models/GetCheckoutBoletoPaymentResponse.php @@ -48,7 +48,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['due_at'] = DateTimeHelper::toRfc3339DateTime($this->dueAt); diff --git a/src/Models/GetCheckoutCardInstallmentOptionsResponse.php b/src/Models/GetCheckoutCardInstallmentOptionsResponse.php index e9d6ac3..d0bce20 100644 --- a/src/Models/GetCheckoutCardInstallmentOptionsResponse.php +++ b/src/Models/GetCheckoutCardInstallmentOptionsResponse.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['number'] = $this->number; diff --git a/src/Models/GetCheckoutCreditCardPaymentResponse.php b/src/Models/GetCheckoutCreditCardPaymentResponse.php index be75968..e91e895 100644 --- a/src/Models/GetCheckoutCreditCardPaymentResponse.php +++ b/src/Models/GetCheckoutCreditCardPaymentResponse.php @@ -55,7 +55,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['statementDescriptor'] = $this->statementDescriptor; diff --git a/src/Models/GetCheckoutDebitCardPaymentResponse.php b/src/Models/GetCheckoutDebitCardPaymentResponse.php index 4e6ff5a..5cfb0f4 100644 --- a/src/Models/GetCheckoutDebitCardPaymentResponse.php +++ b/src/Models/GetCheckoutDebitCardPaymentResponse.php @@ -47,7 +47,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['statement_descriptor'] = $this->statementDescriptor; diff --git a/src/Models/GetCheckoutPaymentResponse.php b/src/Models/GetCheckoutPaymentResponse.php index f7be991..6b230ae 100644 --- a/src/Models/GetCheckoutPaymentResponse.php +++ b/src/Models/GetCheckoutPaymentResponse.php @@ -288,7 +288,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetCheckoutPaymentSettingsResponse.php b/src/Models/GetCheckoutPaymentSettingsResponse.php index f9022ed..894d6b8 100644 --- a/src/Models/GetCheckoutPaymentSettingsResponse.php +++ b/src/Models/GetCheckoutPaymentSettingsResponse.php @@ -100,7 +100,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['success_url'] = $this->successUrl; diff --git a/src/Models/GetCreditCardTransactionResponse.php b/src/Models/GetCreditCardTransactionResponse.php index 3854ae3..d504f82 100644 --- a/src/Models/GetCreditCardTransactionResponse.php +++ b/src/Models/GetCreditCardTransactionResponse.php @@ -147,7 +147,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['statement_descriptor'] = $this->statementDescriptor; diff --git a/src/Models/GetCustomerResponse.php b/src/Models/GetCustomerResponse.php index 6ab517e..01906ca 100644 --- a/src/Models/GetCustomerResponse.php +++ b/src/Models/GetCustomerResponse.php @@ -169,7 +169,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetDebitCardTransactionResponse.php b/src/Models/GetDebitCardTransactionResponse.php index b4becf5..5b01885 100644 --- a/src/Models/GetDebitCardTransactionResponse.php +++ b/src/Models/GetDebitCardTransactionResponse.php @@ -167,7 +167,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['statement_descriptor'] = $this->statementDescriptor; diff --git a/src/Models/GetDeviceResponse.php b/src/Models/GetDeviceResponse.php index 765fa0a..ecdcbe9 100644 --- a/src/Models/GetDeviceResponse.php +++ b/src/Models/GetDeviceResponse.php @@ -35,7 +35,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['platform'] = $this->platform; diff --git a/src/Models/GetDiscountResponse.php b/src/Models/GetDiscountResponse.php index 423fb7a..595f509 100644 --- a/src/Models/GetDiscountResponse.php +++ b/src/Models/GetDiscountResponse.php @@ -119,7 +119,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetGatewayErrorResponse.php b/src/Models/GetGatewayErrorResponse.php index 70f6911..57dfe38 100644 --- a/src/Models/GetGatewayErrorResponse.php +++ b/src/Models/GetGatewayErrorResponse.php @@ -36,7 +36,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['message'] = $this->message; diff --git a/src/Models/GetGatewayRecipientResponse.php b/src/Models/GetGatewayRecipientResponse.php index 3b1e6bd..69d5206 100644 --- a/src/Models/GetGatewayRecipientResponse.php +++ b/src/Models/GetGatewayRecipientResponse.php @@ -74,7 +74,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['gateway'] = $this->gateway; diff --git a/src/Models/GetGatewayResponseResponse.php b/src/Models/GetGatewayResponseResponse.php index ed5f16c..313fa28 100644 --- a/src/Models/GetGatewayResponseResponse.php +++ b/src/Models/GetGatewayResponseResponse.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['code'] = $this->code; diff --git a/src/Models/GetIncrementResponse.php b/src/Models/GetIncrementResponse.php index 4d0126c..8311c99 100644 --- a/src/Models/GetIncrementResponse.php +++ b/src/Models/GetIncrementResponse.php @@ -119,7 +119,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetInvoiceItemResponse.php b/src/Models/GetInvoiceItemResponse.php index 3c8018c..5c6711a 100644 --- a/src/Models/GetInvoiceItemResponse.php +++ b/src/Models/GetInvoiceItemResponse.php @@ -91,7 +91,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['amount'] = $this->amount; diff --git a/src/Models/GetInvoiceResponse.php b/src/Models/GetInvoiceResponse.php index 1f2810e..9cc7b45 100644 --- a/src/Models/GetInvoiceResponse.php +++ b/src/Models/GetInvoiceResponse.php @@ -242,7 +242,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetLocationResponse.php b/src/Models/GetLocationResponse.php index fb950b4..6e608f6 100644 --- a/src/Models/GetLocationResponse.php +++ b/src/Models/GetLocationResponse.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['latitude'] = $this->latitude; diff --git a/src/Models/GetOrderItemResponse.php b/src/Models/GetOrderItemResponse.php index 7e75e49..cfe36cb 100644 --- a/src/Models/GetOrderItemResponse.php +++ b/src/Models/GetOrderItemResponse.php @@ -90,7 +90,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetOrderResponse.php b/src/Models/GetOrderResponse.php index 8195b8d..9d320c1 100644 --- a/src/Models/GetOrderResponse.php +++ b/src/Models/GetOrderResponse.php @@ -190,7 +190,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetPaymentAuthenticationResponse.php b/src/Models/GetPaymentAuthenticationResponse.php index d277a4a..bef46c7 100644 --- a/src/Models/GetPaymentAuthenticationResponse.php +++ b/src/Models/GetPaymentAuthenticationResponse.php @@ -46,7 +46,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['type'] = $this->type; diff --git a/src/Models/GetPeriodResponse.php b/src/Models/GetPeriodResponse.php index 8000ad3..3427cf3 100644 --- a/src/Models/GetPeriodResponse.php +++ b/src/Models/GetPeriodResponse.php @@ -126,7 +126,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['start_at'] = DateTimeHelper::toRfc3339DateTime($this->startAt); diff --git a/src/Models/GetPhoneResponse.php b/src/Models/GetPhoneResponse.php index e68276d..c0b4aca 100644 --- a/src/Models/GetPhoneResponse.php +++ b/src/Models/GetPhoneResponse.php @@ -53,7 +53,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['country_code'] = $this->countryCode; diff --git a/src/Models/GetPhonesResponse.php b/src/Models/GetPhonesResponse.php index c440849..3f432e4 100644 --- a/src/Models/GetPhonesResponse.php +++ b/src/Models/GetPhonesResponse.php @@ -47,7 +47,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['home_phone'] = $this->homePhone; diff --git a/src/Models/GetPixBankAccountResponse.php b/src/Models/GetPixBankAccountResponse.php new file mode 100644 index 0000000..ddec5e5 --- /dev/null +++ b/src/Models/GetPixBankAccountResponse.php @@ -0,0 +1,75 @@ +bankName + * @param string $ispb Initialization value for $this->ispb + * @param string $branchCode Initialization value for $this->branchCode + * @param string $accountNumber Initialization value for $this->accountNumber + */ + public function __construct() + { + if (4 == func_num_args()) { + $this->bankName = func_get_arg(0); + $this->ispb = func_get_arg(1); + $this->branchCode = func_get_arg(2); + $this->accountNumber = func_get_arg(3); + } + } + + + /** + * Encode this object to JSON + */ + public function jsonSerialize() + { + $json = array(); + $json['bank_name'] = $this->bankName; + $json['ispb'] = $this->ispb; + $json['branch_code'] = $this->branchCode; + $json['account_number'] = $this->accountNumber; + + return $json; + } +} diff --git a/src/Models/GetPixPayerResponse.php b/src/Models/GetPixPayerResponse.php new file mode 100644 index 0000000..b838028 --- /dev/null +++ b/src/Models/GetPixPayerResponse.php @@ -0,0 +1,74 @@ +name + * @param string $document Initialization value for $this->document + * @param string $documentType Initialization value for $this->documentType + * @param GetPixBankAccountResponse $bankAccount Initialization value for $this->bankAccount + */ + public function __construct() + { + if (4 == func_num_args()) { + $this->name = func_get_arg(0); + $this->document = func_get_arg(1); + $this->documentType = func_get_arg(2); + $this->bankAccount = func_get_arg(3); + } + } + + + /** + * Encode this object to JSON + */ + public function jsonSerialize() + { + $json = array(); + $json['name'] = $this->name; + $json['document'] = $this->document; + $json['document_type'] = $this->documentType; + $json['bank_account'] = $this->bankAccount; + + return $json; + } +} diff --git a/src/Models/GetPixTransactionResponse.php b/src/Models/GetPixTransactionResponse.php index dda9dc7..cdea2cf 100644 --- a/src/Models/GetPixTransactionResponse.php +++ b/src/Models/GetPixTransactionResponse.php @@ -72,7 +72,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['qr_code'] = $this->qrCode; diff --git a/src/Models/GetPlanItemResponse.php b/src/Models/GetPlanItemResponse.php index 427a1fd..ea87f29 100644 --- a/src/Models/GetPlanItemResponse.php +++ b/src/Models/GetPlanItemResponse.php @@ -131,7 +131,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetPlanResponse.php b/src/Models/GetPlanResponse.php index 42412c0..abd937b 100644 --- a/src/Models/GetPlanResponse.php +++ b/src/Models/GetPlanResponse.php @@ -227,7 +227,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetPriceBracketResponse.php b/src/Models/GetPriceBracketResponse.php index 7850fc8..cf4b81b 100644 --- a/src/Models/GetPriceBracketResponse.php +++ b/src/Models/GetPriceBracketResponse.php @@ -64,7 +64,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['start_quantity'] = $this->startQuantity; diff --git a/src/Models/GetPricingSchemeResponse.php b/src/Models/GetPricingSchemeResponse.php index 8ea733c..59daeed 100644 --- a/src/Models/GetPricingSchemeResponse.php +++ b/src/Models/GetPricingSchemeResponse.php @@ -73,7 +73,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['price'] = $this->price; diff --git a/src/Models/GetPrivateLabelTransactionResponse.php b/src/Models/GetPrivateLabelTransactionResponse.php index 10d05e5..e339502 100644 --- a/src/Models/GetPrivateLabelTransactionResponse.php +++ b/src/Models/GetPrivateLabelTransactionResponse.php @@ -137,7 +137,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['statement_descriptor'] = $this->statementDescriptor; diff --git a/src/Models/GetRecipientResponse.php b/src/Models/GetRecipientResponse.php index 28ff19a..f12a02b 100644 --- a/src/Models/GetRecipientResponse.php +++ b/src/Models/GetRecipientResponse.php @@ -181,7 +181,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetSafetyPayTransactionResponse.php b/src/Models/GetSafetyPayTransactionResponse.php index 2d5b012..3062788 100644 --- a/src/Models/GetSafetyPayTransactionResponse.php +++ b/src/Models/GetSafetyPayTransactionResponse.php @@ -69,7 +69,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['url'] = $this->url; diff --git a/src/Models/GetSellerResponse.php b/src/Models/GetSellerResponse.php index e73bc78..f1f2c33 100644 --- a/src/Models/GetSellerResponse.php +++ b/src/Models/GetSellerResponse.php @@ -131,7 +131,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetSellersRequest.php b/src/Models/GetSellersRequest.php index cdb7f1a..8491175 100644 --- a/src/Models/GetSellersRequest.php +++ b/src/Models/GetSellersRequest.php @@ -90,7 +90,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['name'] = $this->name; diff --git a/src/Models/GetSetupResponse.php b/src/Models/GetSetupResponse.php index 38802d1..bf72462 100644 --- a/src/Models/GetSetupResponse.php +++ b/src/Models/GetSetupResponse.php @@ -63,7 +63,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetShippingResponse.php b/src/Models/GetShippingResponse.php index 71a0d17..1ae9fbf 100644 --- a/src/Models/GetShippingResponse.php +++ b/src/Models/GetShippingResponse.php @@ -104,7 +104,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['amount'] = $this->amount; diff --git a/src/Models/GetSplitOptionsResponse.php b/src/Models/GetSplitOptionsResponse.php index d5055b8..d59c6bf 100644 --- a/src/Models/GetSplitOptionsResponse.php +++ b/src/Models/GetSplitOptionsResponse.php @@ -56,7 +56,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['liable'] = $this->liable; diff --git a/src/Models/GetSplitResponse.php b/src/Models/GetSplitResponse.php index 49e07a6..0c0b0ed 100644 --- a/src/Models/GetSplitResponse.php +++ b/src/Models/GetSplitResponse.php @@ -80,7 +80,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['type'] = $this->type; diff --git a/src/Models/GetSubscriptionItemResponse.php b/src/Models/GetSubscriptionItemResponse.php index 65640e8..5792cae 100644 --- a/src/Models/GetSubscriptionItemResponse.php +++ b/src/Models/GetSubscriptionItemResponse.php @@ -149,7 +149,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetSubscriptionResponse.php b/src/Models/GetSubscriptionResponse.php index 420d04e..3e92532 100644 --- a/src/Models/GetSubscriptionResponse.php +++ b/src/Models/GetSubscriptionResponse.php @@ -282,7 +282,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetSubscriptionSplitResponse.php b/src/Models/GetSubscriptionSplitResponse.php new file mode 100644 index 0000000..6657a3d --- /dev/null +++ b/src/Models/GetSubscriptionSplitResponse.php @@ -0,0 +1,56 @@ +enabled + * @param array $rules Initialization value for $this->rules + */ + public function __construct() + { + if (2 == func_num_args()) { + $this->enabled = func_get_arg(0); + $this->rules = func_get_arg(1); + } + } + + + /** + * Encode this object to JSON + */ + public function jsonSerialize() + { + $json = array(); + $json['enabled'] = $this->enabled; + $json['rules'] = $this->rules; + + return $json; + } +} diff --git a/src/Models/GetThreeDSecureResponse.php b/src/Models/GetThreeDSecureResponse.php index 7c065a8..5838b73 100644 --- a/src/Models/GetThreeDSecureResponse.php +++ b/src/Models/GetThreeDSecureResponse.php @@ -74,7 +74,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['mpi'] = $this->mpi; diff --git a/src/Models/GetTokenResponse.php b/src/Models/GetTokenResponse.php index 8991c74..dd99703 100644 --- a/src/Models/GetTokenResponse.php +++ b/src/Models/GetTokenResponse.php @@ -76,7 +76,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetTransactionReportFileResponse.php b/src/Models/GetTransactionReportFileResponse.php index 64a978f..4b13d3b 100644 --- a/src/Models/GetTransactionReportFileResponse.php +++ b/src/Models/GetTransactionReportFileResponse.php @@ -47,7 +47,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['name'] = $this->name; diff --git a/src/Models/GetTransactionResponse.php b/src/Models/GetTransactionResponse.php index 8343423..0d0dab0 100644 --- a/src/Models/GetTransactionResponse.php +++ b/src/Models/GetTransactionResponse.php @@ -184,7 +184,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['gateway_id'] = $this->gatewayId; diff --git a/src/Models/GetTransfer.php b/src/Models/GetTransfer.php index 1c66b8b..0185c86 100644 --- a/src/Models/GetTransfer.php +++ b/src/Models/GetTransfer.php @@ -150,7 +150,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetTransferResponse.php b/src/Models/GetTransferResponse.php index a2f17d1..de99856 100644 --- a/src/Models/GetTransferResponse.php +++ b/src/Models/GetTransferResponse.php @@ -96,7 +96,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetTransferSettingsResponse.php b/src/Models/GetTransferSettingsResponse.php index 9d84216..4c6c43e 100644 --- a/src/Models/GetTransferSettingsResponse.php +++ b/src/Models/GetTransferSettingsResponse.php @@ -57,7 +57,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['transfer_enabled'] = $this->transferEnabled; diff --git a/src/Models/GetTransferSourceResponse.php b/src/Models/GetTransferSourceResponse.php index fec0781..eb73c72 100644 --- a/src/Models/GetTransferSourceResponse.php +++ b/src/Models/GetTransferSourceResponse.php @@ -46,7 +46,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['source_id'] = $this->sourceId; diff --git a/src/Models/GetTransferTargetResponse.php b/src/Models/GetTransferTargetResponse.php index 6ee6878..44c5846 100644 --- a/src/Models/GetTransferTargetResponse.php +++ b/src/Models/GetTransferTargetResponse.php @@ -46,7 +46,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['target_id'] = $this->targetId; diff --git a/src/Models/GetUsageReportResponse.php b/src/Models/GetUsageReportResponse.php index a086ae5..f217a32 100644 --- a/src/Models/GetUsageReportResponse.php +++ b/src/Models/GetUsageReportResponse.php @@ -56,7 +56,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['url'] = $this->url; diff --git a/src/Models/GetUsageResponse.php b/src/Models/GetUsageResponse.php index 5d3b403..6e39c4c 100644 --- a/src/Models/GetUsageResponse.php +++ b/src/Models/GetUsageResponse.php @@ -130,7 +130,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetUsagesDetailsResponse.php b/src/Models/GetUsagesDetailsResponse.php index 15cbf1f..0054c1c 100644 --- a/src/Models/GetUsagesDetailsResponse.php +++ b/src/Models/GetUsagesDetailsResponse.php @@ -84,7 +84,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['subscription_id'] = $this->subscriptionId; diff --git a/src/Models/GetVoucherTransactionResponse.php b/src/Models/GetVoucherTransactionResponse.php index 61aea81..6fb0bfc 100644 --- a/src/Models/GetVoucherTransactionResponse.php +++ b/src/Models/GetVoucherTransactionResponse.php @@ -129,7 +129,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['statement_descriptor'] = $this->statementDescriptor; diff --git a/src/Models/GetWithdrawResponse.php b/src/Models/GetWithdrawResponse.php index 1fdad4f..64c7bcb 100644 --- a/src/Models/GetWithdrawResponse.php +++ b/src/Models/GetWithdrawResponse.php @@ -150,7 +150,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['id'] = $this->id; diff --git a/src/Models/GetWithdrawSourceResponse.php b/src/Models/GetWithdrawSourceResponse.php index e0441e5..6739eb0 100644 --- a/src/Models/GetWithdrawSourceResponse.php +++ b/src/Models/GetWithdrawSourceResponse.php @@ -46,7 +46,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['source_id'] = $this->sourceId; diff --git a/src/Models/GetWithdrawTargetResponse.php b/src/Models/GetWithdrawTargetResponse.php index b9a6324..6da80ef 100644 --- a/src/Models/GetWithdrawTargetResponse.php +++ b/src/Models/GetWithdrawTargetResponse.php @@ -46,7 +46,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['target_id'] = $this->targetId; diff --git a/src/Models/ListAccessTokensResponse.php b/src/Models/ListAccessTokensResponse.php index 7d43f88..a2bd069 100644 --- a/src/Models/ListAccessTokensResponse.php +++ b/src/Models/ListAccessTokensResponse.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['data'] = $this->data; diff --git a/src/Models/ListAddressesResponse.php b/src/Models/ListAddressesResponse.php index 61f8e63..2fefdca 100644 --- a/src/Models/ListAddressesResponse.php +++ b/src/Models/ListAddressesResponse.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['data'] = $this->data; diff --git a/src/Models/ListAnticipationResponse.php b/src/Models/ListAnticipationResponse.php index 16bb239..5a2cfcd 100644 --- a/src/Models/ListAnticipationResponse.php +++ b/src/Models/ListAnticipationResponse.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['data'] = $this->data; diff --git a/src/Models/ListCardsResponse.php b/src/Models/ListCardsResponse.php index 54e529b..a19947f 100644 --- a/src/Models/ListCardsResponse.php +++ b/src/Models/ListCardsResponse.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['data'] = $this->data; diff --git a/src/Models/ListChargeTransactionsResponse.php b/src/Models/ListChargeTransactionsResponse.php index f46e090..1d8dd00 100644 --- a/src/Models/ListChargeTransactionsResponse.php +++ b/src/Models/ListChargeTransactionsResponse.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['data'] = $this->data; diff --git a/src/Models/ListChargesResponse.php b/src/Models/ListChargesResponse.php index 070a3fd..a1a1a6d 100644 --- a/src/Models/ListChargesResponse.php +++ b/src/Models/ListChargesResponse.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['data'] = $this->data; diff --git a/src/Models/ListCustomersResponse.php b/src/Models/ListCustomersResponse.php index 9d2e1c7..7351621 100644 --- a/src/Models/ListCustomersResponse.php +++ b/src/Models/ListCustomersResponse.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['data'] = $this->data; diff --git a/src/Models/ListCyclesResponse.php b/src/Models/ListCyclesResponse.php index e7572dc..8d4cc05 100644 --- a/src/Models/ListCyclesResponse.php +++ b/src/Models/ListCyclesResponse.php @@ -43,7 +43,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['data'] = $this->data; diff --git a/src/Models/ListDiscountsResponse.php b/src/Models/ListDiscountsResponse.php index eaf7d0a..3818430 100644 --- a/src/Models/ListDiscountsResponse.php +++ b/src/Models/ListDiscountsResponse.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['data'] = $this->data; diff --git a/src/Models/ListIncrementsResponse.php b/src/Models/ListIncrementsResponse.php index 720b055..87c001c 100644 --- a/src/Models/ListIncrementsResponse.php +++ b/src/Models/ListIncrementsResponse.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['data'] = $this->data; diff --git a/src/Models/ListInvoicesResponse.php b/src/Models/ListInvoicesResponse.php index 2e5c2a3..33fdd25 100644 --- a/src/Models/ListInvoicesResponse.php +++ b/src/Models/ListInvoicesResponse.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['data'] = $this->data; diff --git a/src/Models/ListOrderResponse.php b/src/Models/ListOrderResponse.php index 825a3b6..1c14a58 100644 --- a/src/Models/ListOrderResponse.php +++ b/src/Models/ListOrderResponse.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['data'] = $this->data; diff --git a/src/Models/ListPlansResponse.php b/src/Models/ListPlansResponse.php index f291fbb..4556e99 100644 --- a/src/Models/ListPlansResponse.php +++ b/src/Models/ListPlansResponse.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['data'] = $this->data; diff --git a/src/Models/ListRecipientResponse.php b/src/Models/ListRecipientResponse.php index b6ccd70..82f43bd 100644 --- a/src/Models/ListRecipientResponse.php +++ b/src/Models/ListRecipientResponse.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['data'] = $this->data; diff --git a/src/Models/ListSellerResponse.php b/src/Models/ListSellerResponse.php index 410b380..4f9ab2f 100644 --- a/src/Models/ListSellerResponse.php +++ b/src/Models/ListSellerResponse.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['data'] = $this->data; diff --git a/src/Models/ListSubscriptionItemsResponse.php b/src/Models/ListSubscriptionItemsResponse.php index 13648e3..d54ecf5 100644 --- a/src/Models/ListSubscriptionItemsResponse.php +++ b/src/Models/ListSubscriptionItemsResponse.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['data'] = $this->data; diff --git a/src/Models/ListSubscriptionsResponse.php b/src/Models/ListSubscriptionsResponse.php index b52823f..431eae4 100644 --- a/src/Models/ListSubscriptionsResponse.php +++ b/src/Models/ListSubscriptionsResponse.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['data'] = $this->data; diff --git a/src/Models/ListTransactionsFilesResponse.php b/src/Models/ListTransactionsFilesResponse.php index e9302ec..46abdaf 100644 --- a/src/Models/ListTransactionsFilesResponse.php +++ b/src/Models/ListTransactionsFilesResponse.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['data'] = $this->data; diff --git a/src/Models/ListTransactionsResponse.php b/src/Models/ListTransactionsResponse.php index 35e737b..663e9e9 100644 --- a/src/Models/ListTransactionsResponse.php +++ b/src/Models/ListTransactionsResponse.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['data'] = $this->data; diff --git a/src/Models/ListTransferResponse.php b/src/Models/ListTransferResponse.php index 89d10dc..d602c04 100644 --- a/src/Models/ListTransferResponse.php +++ b/src/Models/ListTransferResponse.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['data'] = $this->data; diff --git a/src/Models/ListTransfers.php b/src/Models/ListTransfers.php index 19f4065..0b44aff 100644 --- a/src/Models/ListTransfers.php +++ b/src/Models/ListTransfers.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['data'] = $this->data; diff --git a/src/Models/ListUsagesDetailsResponse.php b/src/Models/ListUsagesDetailsResponse.php index d8d5cb6..8d0df9e 100644 --- a/src/Models/ListUsagesDetailsResponse.php +++ b/src/Models/ListUsagesDetailsResponse.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['data'] = $this->data; diff --git a/src/Models/ListWithdrawals.php b/src/Models/ListWithdrawals.php index 1567870..a9a6c93 100644 --- a/src/Models/ListWithdrawals.php +++ b/src/Models/ListWithdrawals.php @@ -45,7 +45,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['data'] = $this->data; diff --git a/src/Models/PagingResponse.php b/src/Models/PagingResponse.php index 79fe6e1..0e74894 100644 --- a/src/Models/PagingResponse.php +++ b/src/Models/PagingResponse.php @@ -54,7 +54,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['total'] = $this->total; diff --git a/src/Models/PixAdditionalInformation.php b/src/Models/PixAdditionalInformation.php index bc34c1c..7ad279c 100644 --- a/src/Models/PixAdditionalInformation.php +++ b/src/Models/PixAdditionalInformation.php @@ -47,7 +47,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['Name'] = $this->name; diff --git a/src/Models/UpdateAddressRequest.php b/src/Models/UpdateAddressRequest.php index 4f4503a..0f6b0a0 100644 --- a/src/Models/UpdateAddressRequest.php +++ b/src/Models/UpdateAddressRequest.php @@ -64,7 +64,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['number'] = $this->number; diff --git a/src/Models/UpdateAutomaticAnticipationSettingsRequest.php b/src/Models/UpdateAutomaticAnticipationSettingsRequest.php index b4d851e..f571f0a 100644 --- a/src/Models/UpdateAutomaticAnticipationSettingsRequest.php +++ b/src/Models/UpdateAutomaticAnticipationSettingsRequest.php @@ -68,7 +68,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['enabled'] = $this->enabled; diff --git a/src/Models/UpdateCardRequest.php b/src/Models/UpdateCardRequest.php index f674bac..c46958f 100644 --- a/src/Models/UpdateCardRequest.php +++ b/src/Models/UpdateCardRequest.php @@ -95,7 +95,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['holder_name'] = $this->holderName; diff --git a/src/Models/UpdateChargeCardRequest.php b/src/Models/UpdateChargeCardRequest.php index f4ead28..6ba4cfb 100644 --- a/src/Models/UpdateChargeCardRequest.php +++ b/src/Models/UpdateChargeCardRequest.php @@ -65,7 +65,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['update_subscription'] = $this->updateSubscription; diff --git a/src/Models/UpdateChargeDueDateRequest.php b/src/Models/UpdateChargeDueDateRequest.php index ebfb455..a4e5b11 100644 --- a/src/Models/UpdateChargeDueDateRequest.php +++ b/src/Models/UpdateChargeDueDateRequest.php @@ -38,7 +38,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['due_at'] = isset($this->dueAt) ? diff --git a/src/Models/UpdateChargePaymentMethodRequest.php b/src/Models/UpdateChargePaymentMethodRequest.php index 9aaeef9..3641310 100644 --- a/src/Models/UpdateChargePaymentMethodRequest.php +++ b/src/Models/UpdateChargePaymentMethodRequest.php @@ -114,7 +114,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['update_subscription'] = $this->updateSubscription; diff --git a/src/Models/UpdateCurrentCycleEndDateRequest.php b/src/Models/UpdateCurrentCycleEndDateRequest.php index 0e2c9f0..fe05b80 100644 --- a/src/Models/UpdateCurrentCycleEndDateRequest.php +++ b/src/Models/UpdateCurrentCycleEndDateRequest.php @@ -38,7 +38,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['end_at'] = isset($this->endAt) ? diff --git a/src/Models/UpdateCurrentCycleStatusRequest.php b/src/Models/UpdateCurrentCycleStatusRequest.php index 40836c9..602fc77 100644 --- a/src/Models/UpdateCurrentCycleStatusRequest.php +++ b/src/Models/UpdateCurrentCycleStatusRequest.php @@ -36,7 +36,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['status'] = $this->status; diff --git a/src/Models/UpdateCustomerRequest.php b/src/Models/UpdateCustomerRequest.php index e7ec809..097cc98 100644 --- a/src/Models/UpdateCustomerRequest.php +++ b/src/Models/UpdateCustomerRequest.php @@ -108,7 +108,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['name'] = $this->name; diff --git a/src/Models/UpdateInvoiceStatusRequest.php b/src/Models/UpdateInvoiceStatusRequest.php index c7885ee..81ca0c6 100644 --- a/src/Models/UpdateInvoiceStatusRequest.php +++ b/src/Models/UpdateInvoiceStatusRequest.php @@ -36,7 +36,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['status'] = $this->status; diff --git a/src/Models/UpdateMetadataRequest.php b/src/Models/UpdateMetadataRequest.php index 8707250..0ab2f8e 100644 --- a/src/Models/UpdateMetadataRequest.php +++ b/src/Models/UpdateMetadataRequest.php @@ -36,7 +36,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['metadata'] = $this->metadata; diff --git a/src/Models/UpdateOrderItemRequest.php b/src/Models/UpdateOrderItemRequest.php index e2996a1..a0c09da 100644 --- a/src/Models/UpdateOrderItemRequest.php +++ b/src/Models/UpdateOrderItemRequest.php @@ -63,7 +63,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['amount'] = $this->amount; diff --git a/src/Models/UpdateOrderStatusRequest.php b/src/Models/UpdateOrderStatusRequest.php index b147297..d79b5e7 100644 --- a/src/Models/UpdateOrderStatusRequest.php +++ b/src/Models/UpdateOrderStatusRequest.php @@ -36,7 +36,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['status'] = $this->status; diff --git a/src/Models/UpdatePlanItemRequest.php b/src/Models/UpdatePlanItemRequest.php index f49c382..e7992f5 100644 --- a/src/Models/UpdatePlanItemRequest.php +++ b/src/Models/UpdatePlanItemRequest.php @@ -80,7 +80,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['name'] = $this->name; diff --git a/src/Models/UpdatePlanRequest.php b/src/Models/UpdatePlanRequest.php index 78c2cd9..3060b7c 100644 --- a/src/Models/UpdatePlanRequest.php +++ b/src/Models/UpdatePlanRequest.php @@ -167,7 +167,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['name'] = $this->name; diff --git a/src/Models/UpdatePriceBracketRequest.php b/src/Models/UpdatePriceBracketRequest.php index 2822942..b562d98 100644 --- a/src/Models/UpdatePriceBracketRequest.php +++ b/src/Models/UpdatePriceBracketRequest.php @@ -64,7 +64,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['start_quantity'] = $this->startQuantity; diff --git a/src/Models/UpdatePricingSchemeRequest.php b/src/Models/UpdatePricingSchemeRequest.php index 3a334bb..0fa0f1e 100644 --- a/src/Models/UpdatePricingSchemeRequest.php +++ b/src/Models/UpdatePricingSchemeRequest.php @@ -72,7 +72,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['scheme_type'] = $this->schemeType; diff --git a/src/Models/UpdateRecipientBankAccountRequest.php b/src/Models/UpdateRecipientBankAccountRequest.php index 79f8835..476b7c2 100644 --- a/src/Models/UpdateRecipientBankAccountRequest.php +++ b/src/Models/UpdateRecipientBankAccountRequest.php @@ -37,7 +37,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['bank_account'] = $this->bankAccount; diff --git a/src/Models/UpdateRecipientRequest.php b/src/Models/UpdateRecipientRequest.php index 32463ec..d33aeb8 100644 --- a/src/Models/UpdateRecipientRequest.php +++ b/src/Models/UpdateRecipientRequest.php @@ -81,7 +81,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['name'] = $this->name; diff --git a/src/Models/UpdateSellerRequest.php b/src/Models/UpdateSellerRequest.php index 43296af..9bfee80 100644 --- a/src/Models/UpdateSellerRequest.php +++ b/src/Models/UpdateSellerRequest.php @@ -99,7 +99,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['name'] = $this->name; diff --git a/src/Models/UpdateSubscriptionAffiliationIdRequest.php b/src/Models/UpdateSubscriptionAffiliationIdRequest.php index a6ee634..68ebcd3 100644 --- a/src/Models/UpdateSubscriptionAffiliationIdRequest.php +++ b/src/Models/UpdateSubscriptionAffiliationIdRequest.php @@ -37,7 +37,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['gateway_affiliation_id'] = $this->gatewayAffiliationId; diff --git a/src/Models/UpdateSubscriptionBillingDateRequest.php b/src/Models/UpdateSubscriptionBillingDateRequest.php index 8f0a4d8..22451c3 100644 --- a/src/Models/UpdateSubscriptionBillingDateRequest.php +++ b/src/Models/UpdateSubscriptionBillingDateRequest.php @@ -39,7 +39,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['next_billing_at'] = DateTimeHelper::toRfc3339DateTime($this->nextBillingAt); diff --git a/src/Models/UpdateSubscriptionCardRequest.php b/src/Models/UpdateSubscriptionCardRequest.php index 857c9dc..6b56117 100644 --- a/src/Models/UpdateSubscriptionCardRequest.php +++ b/src/Models/UpdateSubscriptionCardRequest.php @@ -46,7 +46,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['card'] = $this->card; diff --git a/src/Models/UpdateSubscriptionDueDaysRequest.php b/src/Models/UpdateSubscriptionDueDaysRequest.php index 48c7b94..059aeb3 100644 --- a/src/Models/UpdateSubscriptionDueDaysRequest.php +++ b/src/Models/UpdateSubscriptionDueDaysRequest.php @@ -37,7 +37,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['boleto_due_days'] = $this->boletoDueDays; diff --git a/src/Models/UpdateSubscriptionItemRequest.php b/src/Models/UpdateSubscriptionItemRequest.php index 08b5726..fab135c 100644 --- a/src/Models/UpdateSubscriptionItemRequest.php +++ b/src/Models/UpdateSubscriptionItemRequest.php @@ -89,7 +89,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['description'] = $this->description; diff --git a/src/Models/UpdateSubscriptionMinimumPriceRequest.php b/src/Models/UpdateSubscriptionMinimumPriceRequest.php index b2b7be8..ad9d67f 100644 --- a/src/Models/UpdateSubscriptionMinimumPriceRequest.php +++ b/src/Models/UpdateSubscriptionMinimumPriceRequest.php @@ -36,7 +36,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['minimum_price'] = $this->minimumPrice; diff --git a/src/Models/UpdateSubscriptionPaymentMethodRequest.php b/src/Models/UpdateSubscriptionPaymentMethodRequest.php index 60661b3..c2d093e 100644 --- a/src/Models/UpdateSubscriptionPaymentMethodRequest.php +++ b/src/Models/UpdateSubscriptionPaymentMethodRequest.php @@ -65,7 +65,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['payment_method'] = $this->paymentMethod; diff --git a/src/Models/UpdateSubscriptionSplitRequest.php b/src/Models/UpdateSubscriptionSplitRequest.php new file mode 100644 index 0000000..6094a01 --- /dev/null +++ b/src/Models/UpdateSubscriptionSplitRequest.php @@ -0,0 +1,56 @@ +enabled + * @param array $rules Initialization value for $this->rules + */ + public function __construct() + { + if (2 == func_num_args()) { + $this->enabled = func_get_arg(0); + $this->rules = func_get_arg(1); + } + } + + + /** + * Encode this object to JSON + */ + public function jsonSerialize() + { + $json = array(); + $json['enabled'] = $this->enabled; + $json['rules'] = $this->rules; + + return $json; + } +} diff --git a/src/Models/UpdateSubscriptionStartAtRequest.php b/src/Models/UpdateSubscriptionStartAtRequest.php index bace0fe..6c28219 100644 --- a/src/Models/UpdateSubscriptionStartAtRequest.php +++ b/src/Models/UpdateSubscriptionStartAtRequest.php @@ -39,7 +39,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['start_at'] = DateTimeHelper::toRfc3339DateTime($this->startAt); diff --git a/src/Models/UpdateTransferSettingsRequest.php b/src/Models/UpdateTransferSettingsRequest.php index 56e918f..99c6bd8 100644 --- a/src/Models/UpdateTransferSettingsRequest.php +++ b/src/Models/UpdateTransferSettingsRequest.php @@ -57,7 +57,7 @@ public function __construct() /** * Encode this object to JSON */ - public function jsonSerialize() + public function jsonSerialize(): mixed { $json = array(); $json['transfer_enabled'] = $this->transferEnabled;