Skip to content

Commit

Permalink
PHP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauricio Haygert committed Sep 16, 2022
1 parent 56535b6 commit 8bc7008
Show file tree
Hide file tree
Showing 211 changed files with 608 additions and 205 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
],
"require": {
"php": ">=5.4.0",
"php": ">=8.0",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
Expand Down
86 changes: 86 additions & 0 deletions src/Models/CancelSplitRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<?php
/*
* MundiAPILib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
*/

namespace MundiAPILib\Models;

use JsonSerializable;

/**
*Split
*/
class CancelSplitRequest implements JsonSerializable
{
/**
* Split type
* @required
* @var string $type public property
*/
public $type;

/**
* Amount
* @required
* @var integer $amount public property
*/
public $amount;

/**
* Recipient id
* @required
* @maps recipient_id
* @var string $recipientId public property
*/
public $recipientId;

/**
* The split options request
* @var \MundiAPILib\Models\CreateSplitOptionsRequest|null $options public property
*/
public $options;

/**
* Rule id
* @maps split_rule_id
* @var string|null $splitRuleId public property
*/
public $splitRuleId;

/**
* Constructor to set initial or default values of member properties
* @param string $type Initialization value for $this->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;
}
}
2 changes: 1 addition & 1 deletion src/Models/ClearSaleRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateAccessTokenRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateAddressRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateAnticipationRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateAntifraudRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateApplePayHeaderRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateApplePayRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateAutomaticAnticipationSettingsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateBankAccountRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateBankTransferPaymentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateBoletoPaymentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateCancelChargeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateCancelChargeSplitRulesRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateCancelSubscriptionRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateCaptureChargeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateCardOptionsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateCardPaymentContactlessPOIRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateCardPaymentContactlessRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateCardPaymentTokenRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateCardRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateCardTokenRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateCashPaymentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateChargeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateCheckoutBankTransferRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateCheckoutBoletoPaymentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateCheckoutCardInstallmentOptionRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateCheckoutCreditCardPaymentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateCheckoutDebitCardPaymentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateCheckoutPaymentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateClearSaleRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateConfirmPaymentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateCreditCardPaymentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/CreateCustomerRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading

0 comments on commit 8bc7008

Please sign in to comment.