Download the PHP package signativa/mundiapi without Composer
On this page you can find all versions of the php package signativa/mundiapi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download signativa/mundiapi
More information about signativa/mundiapi
Files in signativa/mundiapi
Package mundiapi
Short Description Mundipagg API
License MIT
Homepage https://apimatic.io
Informations about the package mundiapi
Getting started
Mundipagg API
How to Build
The generated code has dependencies over external libraries like UniRest. These dependencies are defined in the file that comes with the SDK. To resolve these dependencies, we use the Composer package manager which requires PHP greater than 5.3.2 installed in your system. Visit https://getcomposer.org/download/ to download the installer file for Composer and run it in your system. Open command prompt and type . This should display the current version of the Composer installed if the installation was successful.
- Using command line, navigate to the directory containing the generated files (including ) for the SDK.
- Run the command . This should install all the required dependencies and create the directory in your project directory.
[For Windows Users Only] Configuring CURL Certificate Path in php.ini
CURL used to include a list of accepted CAs, but no longer bundles ANY CA certs. So by default it will reject all SSL certificates as unverifiable. You will have to get your CA's cert and point curl at it. The steps are as follows:
- Download the certificate bundle (.pem file) from https://curl.haxx.se/docs/caextract.html on to your system.
- Add curl.cainfo = "PATH_TO/cacert.pem" to your php.ini file located in your php installation. “PATH_TO” must be an absolute path containing the .pem file.
How to Use
The following section explains how to use the MundiAPI library in a new project.
1. Open Project in an IDE
Open an IDE for PHP like PhpStorm. The basic workflow presented here is also applicable if you prefer using a different editor or IDE.
Click on in PhpStorm to browse to your generated SDK directory and then click .
2. Add a new Test Project
Create a new directory by right clicking on the solution name as shown below:
Name the directory as "test"
Add a PHP file to this project
Name it "testSDK"
Depending on your project setup, you might need to include composer's autoloader in your PHP code to enable auto loading of classes.
It is important that the path inside require_once correctly points to the file inside the vendor directory created during dependency installations.
After this you can add code to initialize the client library and acquire the instance of a Controller class. Sample code to initialize the client library and using controller methods is given in the subsequent sections.
3. Run the Test Project
To run your project you must set the Interpreter for your project. Interpreter is the PHP engine installed on your computer.
Open from menu.
Select from within
Browse for Interpreters near the option and choose your interpreter.
Once the interpreter is selected, click
To run your project, right click on your PHP file inside your Test project and click on
How to Test
Unit tests in this SDK can be run using PHPUnit.
- First install the dependencies using composer including the
require-dev
dependencies. - Run
vendor\bin\phpunit --verbose
from commandline to execute tests. If you have installed PHPUnit globally, run tests usingphpunit --verbose
instead.
You can change the PHPUnit test configuration in the phpunit.xml
file.
Initialization
Authentication
In order to setup authentication and initialization of the API client, you need the following information.
Parameter | Description |
---|---|
basicAuthUserName | The username to use with basic authentication |
basicAuthPassword | The password to use with basic authentication |
API client can be initialized as following.
Class Reference
List of Controllers
- CustomersController
- ChargesController
- RecipientsController
- SubscriptionsController
- InvoicesController
- OrdersController
- TokensController
- PlansController
- TransactionsController
- TransfersController
CustomersController
Get singleton instance
The singleton instance of the class can be accessed from the API Client.
createAccessToken
Creates a access token for a customer
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Customer Id | |
request | Request for creating a access token | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
updateCustomer
Updates a customer
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Customer id | |
request | Request for updating a customer | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
deleteAccessTokens
Delete a Customer's access tokens
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Customer Id |
Example Usage
getCustomer
Get a customer
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Customer Id |
Example Usage
getAddresses
Gets all adressess from a customer
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Customer id | |
page | Page number | |
size | Page size |
Example Usage
getAccessToken
Get a Customer's access token
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Customer Id | |
tokenId | Token Id |
Example Usage
getAddress
Get a customer's address
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Customer id | |
addressId | Address Id |
Example Usage
createCard
Creates a new card for a customer
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Customer id | |
request | Request for creating a card | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
renewCard
Renew a card
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Customer id | |
cardId | Card Id | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
createCustomer
Creates a new customer
Parameters
Parameter | Tags | Description |
---|---|---|
request | Request for creating a customer | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
updateAddress
Updates an address
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Customer Id | |
addressId | Address Id | |
request | Request for updating an address | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
getAccessTokens
Get all access tokens from a customer
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Customer Id | |
page | Page number | |
size | Page size |
Example Usage
updateCustomerMetadata
Updates the metadata a customer
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | The customer id | |
request | Request for updating the customer metadata | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
deleteAddress
Delete a Customer's address
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Customer Id | |
addressId | Address Id | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
updateCard
Updates a card
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Customer Id | |
cardId | Card id | |
request | Request for updating a card | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
getCards
Get all cards from a customer
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Customer Id | |
page | Page number | |
size | Page size |
Example Usage
deleteCard
Delete a customer's card
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Customer Id | |
cardId | Card Id | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
getCustomers
Get all Customers
Parameters
Parameter | Tags | Description |
---|---|---|
name | Name of the Customer | |
document | Document of the Customer | |
page | Current page the the search | |
size | Quantity pages of the search | |
Customer's email | ||
code | Customer's code |
Example Usage
deleteAccessToken
Delete a customer's access token
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Customer Id | |
tokenId | Token Id | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
createAddress
Creates a new address for a customer
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Customer Id | |
request | Request for creating an address | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
getCard
Get a customer's card
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Customer id | |
cardId | Card id |
Example Usage
Back to List of Controllers
ChargesController
Get singleton instance
The singleton instance of the class can be accessed from the API Client.
getCharge
Get a charge from its id
Parameters
Parameter | Tags | Description |
---|---|---|
chargeId | Charge id |
Example Usage
confirmPayment
TODO: Add a method description
Parameters
Parameter | Tags | Description |
---|---|---|
chargeId | TODO: Add a parameter description | |
request | Request for confirm payment | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
updateChargeCard
Updates the card from a charge
Parameters
Parameter | Tags | Description |
---|---|---|
chargeId | Charge id | |
request | Request for updating a charge's card | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
getCharges
Lists all charges
Parameters
Parameter | Tags | Description |
---|---|---|
page | Page number | |
size | Page size | |
code | Filter for charge's code | |
status | Filter for charge's status | |
paymentMethod | Filter for charge's payment method | |
customerId | Filter for charge's customer id | |
orderId | Filter for charge's order id | |
createdSince | Filter for the beginning of the range for charge's creation | |
createdUntil | Filter for the end of the range for charge's creation |
Example Usage
cancelCharge
Cancel a charge
Parameters
Parameter | Tags | Description |
---|---|---|
chargeId | Charge id | |
request | Request for cancelling a charge | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
retryCharge
Retries a charge
Parameters
Parameter | Tags | Description |
---|---|---|
chargeId | Charge id | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
updateChargePaymentMethod
Updates a charge's payment method
Parameters
Parameter | Tags | Description |
---|---|---|
chargeId | Required |
Charge id |
request | Required |
Request for updating the payment method from a charge |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
updateChargeMetadata
Updates the metadata from a charge
Parameters
Parameter | Tags | Description |
---|---|---|
chargeId | Required |
The charge id |
request | Required |
Request for updating the charge metadata |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
captureCharge
Captures a charge
Parameters
Parameter | Tags | Description |
---|---|---|
chargeId | Required |
Charge id |
request | Optional |
Request for capturing a charge |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
updateChargeDueDate
Updates the due date from a charge
Parameters
Parameter | Tags | Description |
---|---|---|
chargeId | Required |
Charge Id |
request | Required |
Request for updating the due date |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
createCharge
Creates a new charge
Parameters
Parameter | Tags | Description |
---|---|---|
request | Required |
Request for creating a charge |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
getChargeTransactions
TODO: Add a method description
Parameters
Parameter | Tags | Description |
---|---|---|
chargeId | Required |
Charge Id |
page | Optional |
Page number |
size | Optional |
Page size |
Example Usage
getChargesSummary
TODO: Add a method description
Parameters
Parameter | Tags | Description |
---|---|---|
status | Required |
TODO: Add a parameter description |
createdSince | Optional |
TODO: Add a parameter description |
createdUntil | Optional |
TODO: Add a parameter description |
Example Usage
Back to List of Controllers
RecipientsController
Get singleton instance
The singleton instance of the RecipientsController
class can be accessed from the API Client.
updateRecipientMetadata
Updates recipient metadata
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient id |
request | Required |
Metadata |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
updateRecipientTransferSettings
TODO: Add a method description
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient Identificator |
request | Required |
TODO: Add a parameter description |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
getAnticipation
Gets an anticipation
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient id |
anticipationId | Required |
Anticipation id |
Example Usage
getRecipients
Retrieves paginated recipients information
Parameters
Parameter | Tags | Description |
---|---|---|
page | Optional |
Page number |
size | Optional |
Page size |
Example Usage
getBalance
Get balance information for a recipient
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient id |
Example Usage
getAnticipations
Retrieves a paginated list of anticipations from a recipient
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient id |
page | Optional |
Page number |
size | Optional |
Page size |
status | Optional |
Filter for anticipation status |
timeframe | Optional |
Filter for anticipation timeframe |
paymentDateSince | Optional |
Filter for start range for anticipation payment date |
paymentDateUntil | Optional |
Filter for end range for anticipation payment date |
createdSince | Optional |
Filter for start range for anticipation creation date |
createdUntil | Optional |
Filter for end range for anticipation creation date |
Example Usage
createAnticipation
Creates an anticipation
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient id |
request | Required |
Anticipation data |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
updateRecipientDefaultBankAccount
Updates the default bank account from a recipient
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient id |
request | Required |
Bank account data |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
getRecipient
Retrieves recipient information
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipiend id |
Example Usage
getTransfer
Gets a transfer
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient id |
transferId | Required |
Transfer id |
Example Usage
getTransfers
Gets a paginated list of transfers for the recipient
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient id |
page | Optional |
Page number |
size | Optional |
Page size |
status | Optional |
Filter for transfer status |
createdSince | Optional |
Filter for start range of transfer creation date |
createdUntil | Optional |
Filter for end range of transfer creation date |
Example Usage
updateRecipient
Updates a recipient
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient id |
request | Required |
Recipient data |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
createRecipient
Creates a new recipient
Parameters
Parameter | Tags | Description |
---|---|---|
request | Required |
Recipient data |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
createTransfer
Creates a transfer for a recipient
function createTransfer(
$recipientId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient Id |
request | Required |
Transfer data |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$recipientId = 'recipient_id';
$request = new CreateTransferRequest();
$idempotencyKey = 'idempotency-key';
$result = $recipients->createTransfer($recipientId, $request, $idempotencyKey);
getAnticipationLimits
Gets the anticipation limits for a recipient
function getAnticipationLimits(
$recipientId,
$timeframe,
$paymentDate)
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient id |
timeframe | Required |
Timeframe |
paymentDate | Required |
Anticipation payment date |
Example Usage
$recipientId = 'recipient_id';
$timeframe = 'timeframe';
$paymentDate = date("D M d, Y G:i");
$result = $recipients->getAnticipationLimits($recipientId, $timeframe, $paymentDate);
createWithdraw
TODO: Add a method description
function createWithdraw(
$recipientId,
$request)
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
TODO: Add a parameter description |
request | Required |
TODO: Add a parameter description |
Example Usage
$recipientId = 'recipient_id';
$request = new CreateWithdrawRequest();
$result = $recipients->createWithdraw($recipientId, $request);
getWithdrawById
TODO: Add a method description
function getWithdrawById(
$recipientId,
$withdrawalId)
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
TODO: Add a parameter description |
withdrawalId | Required |
TODO: Add a parameter description |
Example Usage
$recipientId = 'recipient_id';
$withdrawalId = 'withdrawal_id';
$result = $recipients->getWithdrawById($recipientId, $withdrawalId);
getWithdrawals
Gets a paginated list of transfers for the recipient
function getWithdrawals(
$recipientId,
$page = null,
$size = null,
$status = null,
$createdSince = null,
$createdUntil = null)
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
TODO: Add a parameter description |
page | Optional |
TODO: Add a parameter description |
size | Optional |
TODO: Add a parameter description |
status | Optional |
TODO: Add a parameter description |
createdSince | Optional |
TODO: Add a parameter description |
createdUntil | Optional |
TODO: Add a parameter description |
Example Usage
$recipientId = 'recipient_id';
$page = 144;
$size = 144;
$status = 'status';
$createdSince = date("D M d, Y G:i");
$createdUntil = date("D M d, Y G:i");
$result = $recipients->getWithdrawals($recipientId, $page, $size, $status, $createdSince, $createdUntil);
updateAutomaticAnticipationSettings
Updates recipient metadata
function updateAutomaticAnticipationSettings(
$recipientId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient id |
request | Required |
Metadata |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$recipientId = 'recipient_id';
$request = new UpdateAutomaticAnticipationSettingsRequest();
$idempotencyKey = 'idempotency-key';
$result = $recipients->updateAutomaticAnticipationSettings($recipientId, $request, $idempotencyKey);
getRecipientByCode
Retrieves recipient information
function getRecipientByCode($code)
Parameters
Parameter | Tags | Description |
---|---|---|
code | Required |
Recipient code |
Example Usage
$code = 'code';
$result = $recipients->getRecipientByCode($code);
Back to List of Controllers
SubscriptionsController
Get singleton instance
The singleton instance of the SubscriptionsController
class can be accessed from the API Client.
$subscriptions = $client->getSubscriptions();
createDiscount
Creates a discount
function createDiscount(
$subscriptionId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription id |
request | Required |
Request for creating a discount |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$request = new CreateDiscountRequest();
$idempotencyKey = 'idempotency-key';
$result = $subscriptions->createDiscount($subscriptionId, $request, $idempotencyKey);
getSubscriptionItem
Get Subscription Item
function getSubscriptionItem(
$subscriptionId,
$itemId)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription Id |
itemId | Required |
Item id |
Example Usage
$subscriptionId = 'subscription_id';
$itemId = 'item_id';
$result = $subscriptions->getSubscriptionItem($subscriptionId, $itemId);
deleteUsage
Deletes a usage
function deleteUsage(
$subscriptionId,
$itemId,
$usageId,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
The subscription id |
itemId | Required |
The subscription item id |
usageId | Required |
The usage id |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$itemId = 'item_id';
$usageId = 'usage_id';
$idempotencyKey = 'idempotency-key';
$result = $subscriptions->deleteUsage($subscriptionId, $itemId, $usageId, $idempotencyKey);
cancelSubscription
Cancels a subscription
function cancelSubscription(
$subscriptionId,
$request = null,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription id |
request | Optional |
Request for cancelling a subscription |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$request = new CreateCancelSubscriptionRequest();
$idempotencyKey = 'idempotency-key';
$result = $subscriptions->cancelSubscription($subscriptionId, $request, $idempotencyKey);
deleteIncrement
Deletes a increment
function deleteIncrement(
$subscriptionId,
$incrementId,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription id |
incrementId | Required |
Increment id |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$incrementId = 'increment_id';
$idempotencyKey = 'idempotency-key';
$result = $subscriptions->deleteIncrement($subscriptionId, $incrementId, $idempotencyKey);
getSubscriptionCycleById
TODO: Add a method description
function getSubscriptionCycleById(
$subscriptionId,
$cycleId)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
The subscription id |
cycleId | Required |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$cycleId = 'cycleId';
$result = $subscriptions->getSubscriptionCycleById($subscriptionId, $cycleId);
updateSubscriptionStartAt
Updates the start at date from a subscription
function updateSubscriptionStartAt(
$subscriptionId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
The subscription id |
request | Required |
Request for updating the subscription start date |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$request = new UpdateSubscriptionStartAtRequest();
$idempotencyKey = 'idempotency-key';
$result = $subscriptions->updateSubscriptionStartAt($subscriptionId, $request, $idempotencyKey);
updateSubscriptionPaymentMethod
Updates the payment method from a subscription
function updateSubscriptionPaymentMethod(
$subscriptionId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription id |
request | Required |
Request for updating the paymentmethod from a subscription |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$request = new UpdateSubscriptionPaymentMethodRequest();
$idempotencyKey = 'idempotency-key';
$result = $subscriptions->updateSubscriptionPaymentMethod($subscriptionId, $request, $idempotencyKey);
updateCurrentCycleStatus
TODO: Add a method description
function updateCurrentCycleStatus(
$subscriptionId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription Id |
request | Required |
Request for updating the end date of the subscription current status |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$request = new UpdateCurrentCycleStatusRequest();
$idempotencyKey = 'idempotency-key';
$subscriptions->updateCurrentCycleStatus($subscriptionId, $request, $idempotencyKey);
createSubscription
Creates a new subscription
function createSubscription(
$body,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
body | Required |
Request for creating a subscription |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$body = new CreateSubscriptionRequest();
$idempotencyKey = 'idempotency-key';
$result = $subscriptions->createSubscription($body, $idempotencyKey);
getUsagesDetails
TODO: Add a method description
function getUsagesDetails(
$subscriptionId,
$cycleId = null,
$size = null,
$page = null,
$itemId = null,
$group = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription Identifier |
cycleId | Optional |
Cycle id |
size | Optional |
Page size |
page | Optional |
Page number |
itemId | Optional |
Identificador do item |
group | Optional |
identificador da loja (account) de cada item |
Example Usage
$subscriptionId = 'subscription_id';
$cycleId = 'cycle_id';
$size = 144;
$page = 144;
$itemId = 'item_id';
$group = 'group';
$result = $subscriptions->getUsagesDetails($subscriptionId, $cycleId, $size, $page, $itemId, $group);
renewSubscription
TODO: Add a method description
function renewSubscription(
$subscriptionId,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
TODO: Add a parameter description |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$idempotencyKey = 'idempotency-key';
$result = $subscriptions->renewSubscription($subscriptionId, $idempotencyKey);
updateSubscriptionItem
Updates a subscription item
function updateSubscriptionItem(
$subscriptionId,
$itemId,
$body,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription Id |
itemId | Required |
Item id |
body | Required |
Request for updating a subscription item |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$itemId = 'item_id';
$body = new UpdateSubscriptionItemRequest();
$idempotencyKey = 'idempotency-key';
$result = $subscriptions->updateSubscriptionItem($subscriptionId, $itemId, $body, $idempotencyKey);
createAnUsage
Create Usage
function createAnUsage(
$subscriptionId,
$itemId,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription id |
itemId | Required |
Item id |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$itemId = 'item_id';
$idempotencyKey = 'idempotency-key';
$result = $subscriptions->createAnUsage($subscriptionId, $itemId, $idempotencyKey);
getIncrementById
TODO: Add a method description
function getIncrementById(
$subscriptionId,
$incrementId)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
The subscription Id |
incrementId | Required |
The increment Id |
Example Usage
$subscriptionId = 'subscription_id';
$incrementId = 'increment_id';
$result = $subscriptions->getIncrementById($subscriptionId, $incrementId);
deleteDiscount
Deletes a discount
function deleteDiscount(
$subscriptionId,
$discountId,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription id |
discountId | Required |
Discount Id |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$discountId = 'discount_id';
$idempotencyKey = 'idempotency-key';
$result = $subscriptions->deleteDiscount($subscriptionId, $discountId, $idempotencyKey);
getIncrements
TODO: Add a method description
function getIncrements(
$subscriptionId,
$page = null,
$size = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
The subscription id |
page | Optional |
Page number |
size | Optional |
Page size |
Example Usage
$subscriptionId = 'subscription_id';
$page = 144;
$size = 144;
$result = $subscriptions->getIncrements($subscriptionId, $page, $size);
createUsage
Creates a usage
function createUsage(
$subscriptionId,
$itemId,
$body,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription Id |
itemId | Required |
Item id |
body | Required |
Request for creating a usage |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$itemId = 'item_id';
$body = new CreateUsageRequest();
$idempotencyKey = 'idempotency-key';
$result = $subscriptions->createUsage($subscriptionId, $itemId, $body, $idempotencyKey);
createSubscriptionItem
Creates a new Subscription item
function createSubscriptionItem(
$subscriptionId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription id |
request | Required |
Request for creating a subscription item |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$request = new CreateSubscriptionItemRequest();
$idempotencyKey = 'idempotency-key';
$result = $subscriptions->createSubscriptionItem($subscriptionId, $request, $idempotencyKey);
getUsages
Lists all usages from a subscription item
function getUsages(
$subscriptionId,
$itemId,
$page = null,
$size = null,
$code = null,
$group = null,
$usedSince = null,
$usedUntil = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
The subscription id |
itemId | Required |
The subscription item id |
page | Optional |
Page number |
size | Optional |
Page size |
code | Optional |
Identification code in the client system |
group | Optional |
Identification group in the client system |
usedSince | Optional |
TODO: Add a parameter description |
usedUntil | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$itemId = 'item_id';
$page = 144;
$size = 144;
$code = 'code';
$group = 'group';
$usedSince = date("D M d, Y G:i");
$usedUntil = date("D M d, Y G:i");
$result = $subscriptions->getUsages($subscriptionId, $itemId, $page, $size, $code, $group, $usedSince, $usedUntil);
updateSubscriptionBillingDate
Updates the billing date from a subscription
function updateSubscriptionBillingDate(
$subscriptionId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
The subscription id |
request | Required |
Request for updating the subscription billing date |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$request = new UpdateSubscriptionBillingDateRequest();
$idempotencyKey = 'idempotency-key';
$result = $subscriptions->updateSubscriptionBillingDate($subscriptionId, $request, $idempotencyKey);
updateLatestPeriodEndAt
TODO: Add a method description
function updateLatestPeriodEndAt(
$subscriptionId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
TODO: Add a parameter description |
request | Required |
Request for updating the end date of the current signature cycle |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$request = new UpdateCurrentCycleEndDateRequest();
$idempotencyKey = 'idempotency-key';
$result = $subscriptions->updateLatestPeriodEndAt($subscriptionId, $request, $idempotencyKey);
getSubscriptionCycles
TODO: Add a method description
function getSubscriptionCycles(
$subscriptionId,
$page,
$size)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription Id |
page | Required |
Page number |
size | Required |
Page size |
Example Usage
$subscriptionId = 'subscription_id';
$page = 'page';
$size = 'size';
$result = $subscriptions->getSubscriptionCycles($subscriptionId, $page, $size);
getSubscription
Gets a subscription
function getSubscription($subscriptionId)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription id |
Example Usage
$subscriptionId = 'subscription_id';
$result = $subscriptions->getSubscription($subscriptionId);
updateSubscriptionAffiliationId
TODO: Add a method description
function updateSubscriptionAffiliationId(
$subscriptionId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
TODO: Add a parameter description |
request | Required |
Request for updating a subscription affiliation id |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$request = new UpdateSubscriptionAffiliationIdRequest();
$idempotencyKey = 'idempotency-key';
$result = $subscriptions->updateSubscriptionAffiliationId($subscriptionId, $request, $idempotencyKey);
deleteSubscriptionItem
Deletes a subscription item
function deleteSubscriptionItem(
$subscriptionId,
$subscriptionItemId,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription id |
subscriptionItemId | Required |
Subscription item id |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$subscriptionItemId = 'subscription_item_id';
$idempotencyKey = 'idempotency-key';
$result = $subscriptions->deleteSubscriptionItem($subscriptionId, $subscriptionItemId, $idempotencyKey);
updateSubscriptionCard
Updates the credit card from a subscription
function updateSubscriptionCard(
$subscriptionId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription id |
request | Required |
Request for updating a card |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$request = new UpdateSubscriptionCardRequest();
$idempotencyKey = 'idempotency-key';
$result = $subscriptions->updateSubscriptionCard($subscriptionId, $request, $idempotencyKey);
updateSubscriptionMetadata
Updates the metadata from a subscription
function updateSubscriptionMetadata(
$subscriptionId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
The subscription id |
request | Required |
Request for updating the subscrption metadata |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$request = new UpdateMetadataRequest();
$idempotencyKey = 'idempotency-key';
$result = $subscriptions->updateSubscriptionMetadata($subscriptionId, $request, $idempotencyKey);
updateSubscriptionDueDays
Updates the boleto due days from a subscription
function updateSubscriptionDueDays(
$subscriptionId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription Id |
request | Required |
TODO: Add a parameter description |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$request = new UpdateSubscriptionDueDaysRequest();
$idempotencyKey = 'idempotency-key';
$result = $subscriptions->updateSubscriptionDueDays($subscriptionId, $request, $idempotencyKey);
getDiscounts
TODO: Add a method description
function getDiscounts(
$subscriptionId,
$page,
$size)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
The subscription id |
page | Required |
Page number |
size | Required |
Page size |
Example Usage
$subscriptionId = 'subscription_id';
$page = 235;
$size = 235;
$result = $subscriptions->getDiscounts($subscriptionId, $page, $size);
createIncrement
Creates a increment
function createIncrement(
$subscriptionId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription id |
request | Required |
Request for creating a increment |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$request = new CreateIncrementRequest();
$idempotencyKey = 'idempotency-key';
$result = $subscriptions->createIncrement($subscriptionId, $request, $idempotencyKey);
getSubscriptions
Gets all subscriptions
function getSubscriptions(
$page = null,
$size = null,
$code = null,
$billingType = null,
$customerId = null,
$planId = null,
$cardId = null,
$status = null,
$nextBillingSince = null,
$nextBillingUntil = null,
$createdSince = null,
$createdUntil = null)
Parameters
Parameter | Tags | Description |
---|---|---|
page | Optional |
Page number |
size | Optional |
Page size |
code | Optional |
Filter for subscription's code |
billingType | Optional |
Filter for subscription's billing type |
customerId | Optional |
Filter for subscription's customer id |
planId | Optional |
Filter for subscription's plan id |
cardId | Optional |
Filter for subscription's card id |
status | Optional |
Filter for subscription's status |
nextBillingSince | Optional |
Filter for subscription's next billing date start range |
nextBillingUntil | Optional |
Filter for subscription's next billing date end range |
createdSince | Optional |
Filter for subscription's creation date start range |
createdUntil | Optional |
Filter for subscriptions creation date end range |
Example Usage
$page = 235;
$size = 235;
$code = 'code';
$billingType = 'billing_type';
$customerId = 'customer_id';
$planId = 'plan_id';
$cardId = 'card_id';
$status = 'status';
$nextBillingSince = date("D M d, Y G:i");
$nextBillingUntil = date("D M d, Y G:i");
$createdSince = date("D M d, Y G:i");
$createdUntil = date("D M d, Y G:i");
$result = $subscriptions->getSubscriptions($page, $size, $code, $billingType, $customerId, $planId, $cardId, $status, $nextBillingSince, $nextBillingUntil, $createdSince, $createdUntil);
getDiscountById
TODO: Add a method description
function getDiscountById(
$subscriptionId,
$discountId)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
The subscription id |
discountId | Required |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$discountId = 'discountId';
$result = $subscriptions->getDiscountById($subscriptionId, $discountId);
getSubscriptionItems
Get Subscription Items
function getSubscriptionItems(
$subscriptionId,
$page = null,
$size = null,
$name = null,
$code = null,
$status = null,
$description = null,
$createdSince = null,
$createdUntil = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
The subscription id |
page | Optional |
Page number |
size | Optional |
Page size |
name | Optional |
The item name |
code | Optional |
Identification code in the client system |
status | Optional |
The item statis |
description | Optional |
The item description |
createdSince | Optional |
Filter for item's creation date start range |
createdUntil | Optional |
Filter for item's creation date end range |
Example Usage
$subscriptionId = 'subscription_id';
$page = 235;
$size = 235;
$name = 'name';
$code = 'code';
$status = 'status';
$description = 'description';
$createdSince = 'created_since';
$createdUntil = 'created_until';
$result = $subscriptions->getSubscriptionItems($subscriptionId, $page, $size, $name, $code, $status, $description, $createdSince, $createdUntil);
updateSubscriptionMiniumPrice
Atualização do valor mínimo da assinatura
function updateSubscriptionMiniumPrice(
$subscriptionId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription Id |
request | Required |
Request da requisição com o valor mínimo que será configurado |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$request = new UpdateSubscriptionMinimumPriceRequest();
$idempotencyKey = 'idempotency-key';
$result = $subscriptions->updateSubscriptionMiniumPrice($subscriptionId, $request, $idempotencyKey);
getUsageReport
TODO: Add a method description
function getUsageReport(
$subscriptionId,
$periodId)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
The subscription Id |
periodId | Required |
The period Id |
Example Usage
$subscriptionId = 'subscription_id';
$periodId = 'period_id';
$result = $subscriptions->getUsageReport($subscriptionId, $periodId);
updateSplitSubscription
TODO: Add a method description
function updateSplitSubscription(
$id,
$request)
Parameters
Parameter | Tags | Description |
---|---|---|
id | Required |
Subscription's id |
request | Required |
TODO: Add a parameter description |
Example Usage
$id = 'id';
$request = new UpdateSubscriptionSplitRequest();
$result = $subscriptions->updateSplitSubscription($id, $request);
Back to List of Controllers
InvoicesController
Get singleton instance
The singleton instance of the InvoicesController
class can be accessed from the API Client.
$invoices = $client->getInvoices();
createInvoice
Create an Invoice
function createInvoice(
$subscriptionId,
$cycleId,
$request = null,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription Id |
cycleId | Required |
Cycle Id |
request | Optional |
TODO: Add a parameter description |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$cycleId = 'cycle_id';
$request = new CreateInvoiceRequest();
$idempotencyKey = 'idempotency-key';
$result = $invoices->createInvoice($subscriptionId, $cycleId, $request, $idempotencyKey);
getPartialInvoice
TODO: Add a method description
function getPartialInvoice($subscriptionId)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription Id |
Example Usage
$subscriptionId = 'subscription_id';
$result = $invoices->getPartialInvoice($subscriptionId);
updateInvoiceStatus
Updates the status from an invoice
function updateInvoiceStatus(
$invoiceId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
invoiceId | Required |
Invoice Id |
request | Required |
Request for updating an invoice's status |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$invoiceId = 'invoice_id';
$request = new UpdateInvoiceStatusRequest();
$idempotencyKey = 'idempotency-key';
$result = $invoices->updateInvoiceStatus($invoiceId, $request, $idempotencyKey);
getInvoice
Gets an invoice
function getInvoice($invoiceId)
Parameters
Parameter | Tags | Description |
---|---|---|
invoiceId | Required |
Invoice Id |
Example Usage
$invoiceId = 'invoice_id';
$result = $invoices->getInvoice($invoiceId);
updateInvoiceMetadata
Updates the metadata from an invoice
function updateInvoiceMetadata(
$invoiceId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
invoiceId | Required |
The invoice id |
request | Required |
Request for updating the invoice metadata |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$invoiceId = 'invoice_id';
$request = new UpdateMetadataRequest();
$idempotencyKey = 'idempotency-key';
$result = $invoices->updateInvoiceMetadata($invoiceId, $request, $idempotencyKey);
cancelInvoice
Cancels an invoice
function cancelInvoice(
$invoiceId,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
invoiceId | Required |
Invoice id |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$invoiceId = 'invoice_id';
$idempotencyKey = 'idempotency-key';
$result = $invoices->cancelInvoice($invoiceId, $idempotencyKey);
getInvoices
Gets all invoices
function getInvoices(
$page = null,
$size = null,
$code = null,
$customerId = null,
$subscriptionId = null,
$createdSince = null,
$createdUntil = null,
$status = null,
$dueSince = null,
$dueUntil = null,
$customerDocument = null)
Parameters
Parameter | Tags | Description |
---|---|---|
page | Optional |
Page number |
size | Optional |
Page size |
code | Optional |
Filter for Invoice's code |
customerId | Optional |
Filter for Invoice's customer id |
subscriptionId | Optional |
Filter for Invoice's subscription id |
createdSince | Optional |
Filter for Invoice's creation date start range |
createdUntil | Optional |
Filter for Invoices creation date end range |
status | Optional |
Filter for Invoice's status |
dueSince | Optional |
Filter for Invoice's due date start range |
dueUntil | Optional |
Filter for Invoice's due date end range |
customerDocument | Optional |
Fillter for invoice's document |
Example Usage
$page = 235;
$size = 235;
$code = 'code';
$customerId = 'customer_id';
$subscriptionId = 'subscription_id';
$createdSince = date("D M d, Y G:i");
$createdUntil = date("D M d, Y G:i");
$status = 'status';
$dueSince = date("D M d, Y G:i");
$dueUntil = date("D M d, Y G:i");
$customerDocument = 'customer_document';
$result = $invoices->getInvoices($page, $size, $code, $customerId, $subscriptionId, $createdSince, $createdUntil, $status, $dueSince, $dueUntil, $customerDocument);
Back to List of Controllers
OrdersController
Get singleton instance
The singleton instance of the OrdersController
class can be accessed from the API Client.
$orders = $client->getOrders();
updateOrderStatus
TODO: Add a method description
function updateOrderStatus(
$id,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
id | Required |
Order Id |
request | Required |
Update Order Model |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$id = 'id';
$request = new UpdateOrderStatusRequest();
$idempotencyKey = 'idempotency-key';
$result = $orders->updateOrderStatus($id, $request, $idempotencyKey);
deleteAllOrderItems
TODO: Add a method description
function deleteAllOrderItems(
$orderId,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
orderId | Required |
Order Id |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$orderId = 'orderId';
$idempotencyKey = 'idempotency-key';
$result = $orders->deleteAllOrderItems($orderId, $idempotencyKey);
updateOrderMetadata
Updates the metadata from an order
function updateOrderMetadata(
$orderId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
orderId | Required |
The order id |
request | Required |
Request for updating the order metadata |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$orderId = 'order_id';
$request = new UpdateMetadataRequest();
$idempotencyKey = 'idempotency-key';
$result = $orders->updateOrderMetadata($orderId, $request, $idempotencyKey);
getOrders
Gets all orders
function getOrders(
$page = null,
$size = null,
$code = null,
$status = null,
$createdSince = null,
$createdUntil = null,
$customerId = null)
Parameters
Parameter | Tags | Description |
---|---|---|
page | Optional |
Page number |
size | Optional |
Page size |
code | Optional |
Filter for order's code |
status | Optional |
Filter for order's status |
createdSince | Optional |
Filter for order's creation date start range |
createdUntil | Optional |
Filter for order's creation date end range |
customerId | Optional |
Filter for order's customer id |
Example Usage
$page = 235;
$size = 235;
$code = 'code';
$status = 'status';
$createdSince = date("D M d, Y G:i");
$createdUntil = date("D M d, Y G:i");
$customerId = 'customer_id';
$result = $orders->getOrders($page, $size, $code, $status, $createdSince, $createdUntil, $customerId);
createOrderItem
TODO: Add a method description
function createOrderItem(
$orderId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
orderId | Required |
Order Id |
request | Required |
Order Item Model |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$orderId = 'orderId';
$request = new CreateOrderItemRequest();
$idempotencyKey = 'idempotency-key';
$result = $orders->createOrderItem($orderId, $request, $idempotencyKey);
deleteOrderItem
TODO: Add a method description
function deleteOrderItem(
$orderId,
$itemId,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
orderId | Required |
Order Id |
itemId | Required |
Item Id |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$orderId = 'orderId';
$itemId = 'itemId';
$idempotencyKey = 'idempotency-key';
$result = $orders->deleteOrderItem($orderId, $itemId, $idempotencyKey);
getOrder
Gets an order
function getOrder($orderId)
Parameters
Parameter | Tags | Description |
---|---|---|
orderId | Required |
Order id |
Example Usage
$orderId = 'order_id';
$result = $orders->getOrder($orderId);
createOrder
Creates a new Order
function createOrder(
$body,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
body | Required |
Request for creating an order |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$body = new CreateOrderRequest();
$idempotencyKey = 'idempotency-key';
$result = $orders->createOrder($body, $idempotencyKey);
getOrderItem
TODO: Add a method description
function getOrderItem(
$orderId,
$itemId)
Parameters
Parameter | Tags | Description |
---|---|---|
orderId | Required |
Order Id |
itemId | Required |
Item Id |
Example Usage
$orderId = 'orderId';
$itemId = 'itemId';
$result = $orders->getOrderItem($orderId, $itemId);
updateOrderItem
TODO: Add a method description
function updateOrderItem(
$orderId,
$itemId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
orderId | Required |
Order Id |
itemId | Required |
Item Id |
request | Required |
Item Model |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$orderId = 'orderId';
$itemId = 'itemId';
$request = new UpdateOrderItemRequest();
$idempotencyKey = 'idempotency-key';
$result = $orders->updateOrderItem($orderId, $itemId, $request, $idempotencyKey);
Back to List of Controllers
TokensController
Get singleton instance
The singleton instance of the TokensController
class can be accessed from the API Client.
$tokens = $client->getTokens();
createToken
Tags:
Skips Authentication
TODO: Add a method description
function createToken(
$publicKey,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
publicKey | Required |
Public key |
request | Required |
Request for creating a token |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$publicKey = 'public_key';
$request = new CreateTokenRequest();
$idempotencyKey = 'idempotency-key';
$result = $tokens->createToken($publicKey, $request, $idempotencyKey);
getToken
Tags:
Skips Authentication
Gets a token from its id
function getToken(
$id,
$publicKey)
Parameters
Parameter | Tags | Description |
---|---|---|
id | Required |
Token id |
publicKey | Required |
Public key |
Example Usage
$id = 'id';
$publicKey = 'public_key';
$result = $tokens->getToken($id, $publicKey);
Back to List of Controllers
PlansController
Get singleton instance
The singleton instance of the PlansController
class can be accessed from the API Client.
$plans = $client->getPlans();
updatePlanItem
Updates a plan item
function updatePlanItem(
$planId,
$planItemId,
$body,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
planId | Required |
Plan id |
planItemId | Required |
Plan item id |
body | Required |
Request for updating the plan item |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$planId = 'plan_id';
$planItemId = 'plan_item_id';
$body = new UpdatePlanItemRequest();
$idempotencyKey = 'idempotency-key';
$result = $plans->updatePlanItem($planId, $planItemId, $body, $idempotencyKey);
createPlanItem
Adds a new item to a plan
function createPlanItem(
$planId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
planId | Required |
Plan id |
request | Required |
Request for creating a plan item |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$planId = 'plan_id';
$request = new CreatePlanItemRequest();
$idempotencyKey = 'idempotency-key';
$result = $plans->createPlanItem($planId, $request, $idempotencyKey);
getPlans
Gets all plans
function getPlans(
$page = null,
$size = null,
$name = null,
$status = null,
$billingType = null,
$createdSince = null,
$createdUntil = null)
Parameters
Parameter | Tags | Description |
---|---|---|
page | Optional |
Page number |
size | Optional |
Page size |
name | Optional |
Filter for Plan's name |
status | Optional |
Filter for Plan's status |
billingType | Optional |
Filter for plan's billing type |
createdSince | Optional |
Filter for plan's creation date start range |
createdUntil | Optional |
Filter for plan's creation date end range |
Example Usage
$page = 235;
$size = 235;
$name = 'name';
$status = 'status';
$billingType = 'billing_type';
$createdSince = date("D M d, Y G:i");
$createdUntil = date("D M d, Y G:i");
$result = $plans->getPlans($page, $size, $name, $status, $billingType, $createdSince, $createdUntil);
getPlan
Gets a plan
function getPlan($planId)
Parameters
Parameter | Tags | Description |
---|---|---|
planId | Required |
Plan id |
Example Usage
$planId = 'plan_id';
$result = $plans->getPlan($planId);
updatePlan
Updates a plan
function updatePlan(
$planId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
planId | Required |
Plan id |
request | Required |
Request for updating a plan |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$planId = 'plan_id';
$request = new UpdatePlanRequest();
$idempotencyKey = 'idempotency-key';
$result = $plans->updatePlan($planId, $request, $idempotencyKey);
updatePlanMetadata
Updates the metadata from a plan
function updatePlanMetadata(
$planId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
planId | Required |
The plan id |
request | Required |
Request for updating the plan metadata |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$planId = 'plan_id';
$request = new UpdateMetadataRequest();
$idempotencyKey = 'idempotency-key';
$result = $plans->updatePlanMetadata($planId, $request, $idempotencyKey);
createPlan
Creates a new plan
function createPlan(
$body,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
body | Required |
Request for creating a plan |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$body = new CreatePlanRequest();
$idempotencyKey = 'idempotency-key';
$result = $plans->createPlan($body, $idempotencyKey);
deletePlanItem
Removes an item from a plan
function deletePlanItem(
$planId,
$planItemId,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
planId | Required |
Plan id |
planItemId | Required |
Plan item id |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$planId = 'plan_id';
$planItemId = 'plan_item_id';
$idempotencyKey = 'idempotency-key';
$result = $plans->deletePlanItem($planId, $planItemId, $idempotencyKey);
getPlanItem
Gets a plan item
function getPlanItem(
$planId,
$planItemId)
Parameters
Parameter | Tags | Description |
---|---|---|
planId | Required |
Plan id |
planItemId | Required |
Plan item id |
Example Usage
$planId = 'plan_id';
$planItemId = 'plan_item_id';
$result = $plans->getPlanItem($planId, $planItemId);
deletePlan
Deletes a plan
function deletePlan(
$planId,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
planId | Required |
Plan id |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$planId = 'plan_id';
$idempotencyKey = 'idempotency-key';
$result = $plans->deletePlan($planId, $idempotencyKey);
Back to List of Controllers
TransactionsController
Get singleton instance
The singleton instance of the TransactionsController
class can be accessed from the API Client.
$transactions = $client->getTransactions();
getTransaction
TODO: Add a method description
function getTransaction($transactionId)
Parameters
Parameter | Tags | Description |
---|---|---|
transactionId | Required |
TODO: Add a parameter description |
Example Usage
$transactionId = 'transaction_id';
$result = $transactions->getTransaction($transactionId);
Back to List of Controllers
TransfersController
Get singleton instance
The singleton instance of the TransfersController
class can be accessed from the API Client.
$transfers = $client->getTransfers();
createTransfer
TODO: Add a method description
function createTransfer($request)
Parameters
Parameter | Tags | Description |
---|---|---|
request | Required |
TODO: Add a parameter description |
Example Usage
$request = new CreateTransfer();
$result = $transfers->createTransfer($request);
getTransferById
TODO: Add a method description
function getTransferById($transferId)
Parameters
Parameter | Tags | Description |
---|---|---|
transferId | Required |
TODO: Add a parameter description |
Example Usage
$transferId = 'transfer_id';
$result = $transfers->getTransferById($transferId);
getTransfers
Gets all transfers
function getTransfers()
Example Usage
$result = $transfers->getTransfers();
Back to List of Controllers
All versions of mundiapi with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
apimatic/unirest-php Version *
apimatic/jsonmapper Version *