Skip to content

Commit

Permalink
2.4.3 - Add merchant_category_code on CreateVoucherPaymentRequest (#93)
Browse files Browse the repository at this point in the history
Co-authored-by: Unknown <[email protected]>
  • Loading branch information
grazielcosta and samuelleitemundipagg authored May 15, 2023
1 parent c46adc4 commit ab77afd
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 53 deletions.
72 changes: 36 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,8 @@ function getUsages(
```php
$subscriptionId = 'subscription_id';
$itemId = 'item_id';
$page = 84;
$size = 84;
$page = 109;
$size = 109;
$code = 'code';
$group = 'group';
$usedSince = date("D M d, Y G:i");
Expand Down Expand Up @@ -852,8 +852,8 @@ function getSubscriptions(
#### Example Usage

```php
$page = 84;
$size = 84;
$page = 109;
$size = 109;
$code = 'code';
$billingType = 'billing_type';
$customerId = 'customer_id';
Expand Down Expand Up @@ -915,8 +915,8 @@ function getUsagesDetails(
```php
$subscriptionId = 'subscription_id';
$cycleId = 'cycle_id';
$size = 84;
$page = 84;
$size = 109;
$page = 109;
$itemId = 'item_id';
$group = 'group';

Expand Down Expand Up @@ -1006,8 +1006,8 @@ function getIncrements(

```php
$subscriptionId = 'subscription_id';
$page = 84;
$size = 84;
$page = 67;
$size = 67;

$result = $subscriptions->getIncrements($subscriptionId, $page, $size);

Expand Down Expand Up @@ -1330,8 +1330,8 @@ function getSubscriptionItems(

```php
$subscriptionId = 'subscription_id';
$page = 84;
$size = 84;
$page = 67;
$size = 67;
$name = 'name';
$code = 'code';
$status = 'status';
Expand Down Expand Up @@ -1520,8 +1520,8 @@ function getDiscounts(

```php
$subscriptionId = 'subscription_id';
$page = 84;
$size = 84;
$page = 67;
$size = 67;

$result = $subscriptions->getDiscounts($subscriptionId, $page, $size);

Expand Down Expand Up @@ -2210,8 +2210,8 @@ function getOrders(
#### Example Usage

```php
$page = 42;
$size = 42;
$page = 67;
$size = 67;
$code = 'code';
$status = 'status';
$createdSince = date("D M d, Y G:i");
Expand Down Expand Up @@ -2415,8 +2415,8 @@ function getPlans(
#### Example Usage

```php
$page = 42;
$size = 42;
$page = 67;
$size = 67;
$name = 'name';
$status = 'status';
$billingType = 'billing_type';
Expand Down Expand Up @@ -3110,8 +3110,8 @@ function getInvoices(
#### Example Usage

```php
$page = 42;
$size = 42;
$page = 158;
$size = 158;
$code = 'code';
$customerId = 'customer_id';
$subscriptionId = 'subscription_id';
Expand Down Expand Up @@ -3350,8 +3350,8 @@ function getCards(

```php
$customerId = 'customer_id';
$page = 134;
$size = 134;
$page = 158;
$size = 158;

$result = $customers->getCards($customerId, $page, $size);

Expand Down Expand Up @@ -3574,8 +3574,8 @@ function getAccessTokens(

```php
$customerId = 'customer_id';
$page = 134;
$size = 134;
$page = 158;
$size = 158;

$result = $customers->getAccessTokens($customerId, $page, $size);

Expand Down Expand Up @@ -3813,8 +3813,8 @@ function getAddresses(

```php
$customerId = 'customer_id';
$page = 134;
$size = 134;
$page = 158;
$size = 158;

$result = $customers->getAddresses($customerId, $page, $size);

Expand Down Expand Up @@ -4201,8 +4201,8 @@ function getCharges(
#### Example Usage

```php
$page = 134;
$size = 134;
$page = 158;
$size = 158;
$code = 'code';
$status = 'status';
$paymentMethod = 'payment_method';
Expand Down Expand Up @@ -4432,8 +4432,8 @@ function getChargeTransactions(

```php
$chargeId = 'charge_id';
$page = 134;
$size = 134;
$page = 250;
$size = 250;

$result = $charges->getChargeTransactions($chargeId, $page, $size);

Expand Down Expand Up @@ -4900,8 +4900,8 @@ function getWithdrawals(

```php
$recipientId = 'recipient_id';
$page = 134;
$size = 92;
$page = 250;
$size = 250;
$status = 'status';
$createdSince = date("D M d, Y G:i");
$createdUntil = date("D M d, Y G:i");
Expand Down Expand Up @@ -5342,8 +5342,8 @@ function getTransfers(

```php
$recipientId = 'recipient_id';
$page = 92;
$size = 92;
$page = 208;
$size = 208;
$status = 'status';
$createdSince = date("D M d, Y G:i");
$createdUntil = date("D M d, Y G:i");
Expand Down Expand Up @@ -5388,8 +5388,8 @@ function getRecipients(
#### Example Usage

```php
$page = 92;
$size = 92;
$page = 208;
$size = 208;

$result = $recipients->getRecipients($page, $size);

Expand Down Expand Up @@ -5446,8 +5446,8 @@ function getAnticipations(

```php
$recipientId = 'recipient_id';
$page = 92;
$size = 92;
$page = 208;
$size = 208;
$status = 'status';
$timeframe = 'timeframe';
$paymentDateSince = date("D M d, Y G:i");
Expand Down
2 changes: 1 addition & 1 deletion src/Controllers/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class BaseController
* User-agent to be sent with API calls
* @var string
*/
const USER_AGENT = 'MundiSDK - PHP 2.4.2';
const USER_AGENT = 'MundiSDK - PHP 2.4.3';

/**
* HttpCallBack instance associated with this controller
Expand Down
42 changes: 26 additions & 16 deletions src/Models/CreateVoucherPaymentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,31 @@ class CreateVoucherPaymentRequest implements JsonSerializable
*/
public $recurrencyCycle;

/**
* Customer business segment code
* @maps merchant_category_code
* @var integer|null $merchantCategoryCode public property
*/
public $merchantCategoryCode;

/**
* Constructor to set initial or default values of member properties
* @param string $statementDescriptor Initialization value for $this->statementDescriptor
* @param string $cardId Initialization value for $this->cardId
* @param string $cardToken Initialization value for $this->cardToken
* @param Card1 $card Initialization value for $this->card
* @param string $recurrencyCycle Initialization value for $this->recurrencyCycle
* @param string $statementDescriptor Initialization value for $this->statementDescriptor
* @param string $cardId Initialization value for $this->cardId
* @param string $cardToken Initialization value for $this->cardToken
* @param Card1 $card Initialization value for $this->card
* @param string $recurrencyCycle Initialization value for $this->recurrencyCycle
* @param integer $merchantCategoryCode Initialization value for $this->merchantCategoryCode
*/
public function __construct()
{
if (5 == func_num_args()) {
$this->statementDescriptor = func_get_arg(0);
$this->cardId = func_get_arg(1);
$this->cardToken = func_get_arg(2);
$this->card = func_get_arg(3);
$this->recurrencyCycle = func_get_arg(4);
if (6 == func_num_args()) {
$this->statementDescriptor = func_get_arg(0);
$this->cardId = func_get_arg(1);
$this->cardToken = func_get_arg(2);
$this->card = func_get_arg(3);
$this->recurrencyCycle = func_get_arg(4);
$this->merchantCategoryCode = func_get_arg(5);
}
}

Expand All @@ -75,11 +84,12 @@ public function __construct()
public function jsonSerialize()
{
$json = array();
$json['statement_descriptor'] = $this->statementDescriptor;
$json['card_id'] = $this->cardId;
$json['card_token'] = $this->cardToken;
$json['Card'] = $this->card;
$json['recurrency_cycle'] = $this->recurrencyCycle;
$json['statement_descriptor'] = $this->statementDescriptor;
$json['card_id'] = $this->cardId;
$json['card_token'] = $this->cardToken;
$json['Card'] = $this->card;
$json['recurrency_cycle'] = $this->recurrencyCycle;
$json['merchant_category_code'] = $this->merchantCategoryCode;

return $json;
}
Expand Down

0 comments on commit ab77afd

Please sign in to comment.