Skip to content

Commit

Permalink
Github integration demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ciltocruz committed Oct 13, 2021
1 parent 235f257 commit 75fa5c3
Show file tree
Hide file tree
Showing 411 changed files with 30,580 additions and 2,572 deletions.
279 changes: 0 additions & 279 deletions README.md

This file was deleted.

13 changes: 4 additions & 9 deletions docs/Api/BalanceApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,13 @@ Gets the balance of a product. Restricted.
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: paycometApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer');

$apiInstance = new Swagger\Client\Api\BalanceApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
new GuzzleHttp\Client()
);
$body = new \Swagger\Client\Model\Body6(); // \Swagger\Client\Model\Body6 |
$body = new \Swagger\Client\Model\V1BalanceBody(); // \Swagger\Client\Model\V1BalanceBody |
$paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Query privilege required)

try {
Expand All @@ -44,7 +39,7 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**\Swagger\Client\Model\Body6**](../Model/Body6.md)| | [optional]
**body** | [**\Swagger\Client\Model\V1BalanceBody**](../Model/V1BalanceBody.md)| | [optional]
**paycomet_api_token** | **string**| PAYCOMET API key (Query privilege required) | [optional]

### Return type
Expand All @@ -53,7 +48,7 @@ Name | Type | Description | Notes

### Authorization

[paycometApiKey](../../README.md#paycometApiKey)
No authorization required

### HTTP request headers

Expand Down
67 changes: 21 additions & 46 deletions docs/Api/CardsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,19 @@ Method | HTTP request | Description
Tokenizes a card. Either card number and CVC2 or jetToken are required. For you to send directly the card data you should be PCI certified or the accepting the requirement to submit quarterly SAQ-AEP and get ASV scans. For most users is strongly recommended getting the jetToken with JETIFRAME or using GET integration to register the cards instead of REST.

add_user
This method supposes the registration of the card in PAYCOMET, it is not valid for subsequent charges with the exception of MIT. To register the card against the processor for subsequent recurring charges, it is necessary to charge for a secure environment, regardless of the amount.

### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: paycometApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer');

$apiInstance = new Swagger\Client\Api\CardsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
new GuzzleHttp\Client()
);
$body = new \Swagger\Client\Model\Body1(); // \Swagger\Client\Model\Body1 |
$body = new \Swagger\Client\Model\V1CardsBody(); // \Swagger\Client\Model\V1CardsBody |
$paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Token actions privilege required)

try {
Expand All @@ -48,7 +43,7 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**\Swagger\Client\Model\Body1**](../Model/Body1.md)| | [optional]
**body** | [**\Swagger\Client\Model\V1CardsBody**](../Model/V1CardsBody.md)| | [optional]
**paycomet_api_token** | **string**| PAYCOMET API key (Token actions privilege required) | [optional]

### Return type
Expand All @@ -57,7 +52,7 @@ Name | Type | Description | Notes

### Authorization

[paycometApiKey](../../README.md#paycometApiKey)
No authorization required

### HTTP request headers

Expand All @@ -77,18 +72,13 @@ edit_user
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: paycometApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer');

$apiInstance = new Swagger\Client\Api\CardsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
new GuzzleHttp\Client()
);
$body = new \Swagger\Client\Model\Body4(); // \Swagger\Client\Model\Body4 |
$body = new \Swagger\Client\Model\CardsEditBody(); // \Swagger\Client\Model\CardsEditBody |
$paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Token actions privilege required)

try {
Expand All @@ -104,7 +94,7 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**\Swagger\Client\Model\Body4**](../Model/Body4.md)| | [optional]
**body** | [**\Swagger\Client\Model\CardsEditBody**](../Model/CardsEditBody.md)| | [optional]
**paycomet_api_token** | **string**| PAYCOMET API key (Token actions privilege required) | [optional]

### Return type
Expand All @@ -113,7 +103,7 @@ Name | Type | Description | Notes

### Authorization

[paycometApiKey](../../README.md#paycometApiKey)
No authorization required

### HTTP request headers

Expand All @@ -133,18 +123,13 @@ Info about an user card.
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: paycometApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer');

$apiInstance = new Swagger\Client\Api\CardsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
new GuzzleHttp\Client()
);
$body = new \Swagger\Client\Model\Body2(); // \Swagger\Client\Model\Body2 |
$body = new \Swagger\Client\Model\CardsInfoBody(); // \Swagger\Client\Model\CardsInfoBody |
$paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Query privilege required)

try {
Expand All @@ -160,7 +145,7 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**\Swagger\Client\Model\Body2**](../Model/Body2.md)| | [optional]
**body** | [**\Swagger\Client\Model\CardsInfoBody**](../Model/CardsInfoBody.md)| | [optional]
**paycomet_api_token** | **string**| PAYCOMET API key (Query privilege required) | [optional]

### Return type
Expand All @@ -169,7 +154,7 @@ Name | Type | Description | Notes

### Authorization

[paycometApiKey](../../README.md#paycometApiKey)
No authorization required

### HTTP request headers

Expand All @@ -189,18 +174,13 @@ cards_physical
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: paycometApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer');

$apiInstance = new Swagger\Client\Api\CardsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
new GuzzleHttp\Client()
);
$body = new \Swagger\Client\Model\Body5(); // \Swagger\Client\Model\Body5 |
$body = new \Swagger\Client\Model\CardsPhysicalBody(); // \Swagger\Client\Model\CardsPhysicalBody |
$paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Token actions privilege required)

try {
Expand All @@ -216,7 +196,7 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**\Swagger\Client\Model\Body5**](../Model/Body5.md)| | [optional]
**body** | [**\Swagger\Client\Model\CardsPhysicalBody**](../Model/CardsPhysicalBody.md)| | [optional]
**paycomet_api_token** | **string**| PAYCOMET API key (Token actions privilege required) | [optional]

### Return type
Expand All @@ -225,7 +205,7 @@ Name | Type | Description | Notes

### Authorization

[paycometApiKey](../../README.md#paycometApiKey)
No authorization required

### HTTP request headers

Expand All @@ -245,18 +225,13 @@ Deletes the user.
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: paycometApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer');

$apiInstance = new Swagger\Client\Api\CardsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
new GuzzleHttp\Client()
);
$body = new \Swagger\Client\Model\Body3(); // \Swagger\Client\Model\Body3 |
$body = new \Swagger\Client\Model\CardsDeleteBody(); // \Swagger\Client\Model\CardsDeleteBody |
$paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Token actions privilege required)

try {
Expand All @@ -272,7 +247,7 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**\Swagger\Client\Model\Body3**](../Model/Body3.md)| | [optional]
**body** | [**\Swagger\Client\Model\CardsDeleteBody**](../Model/CardsDeleteBody.md)| | [optional]
**paycomet_api_token** | **string**| PAYCOMET API key (Token actions privilege required) | [optional]

### Return type
Expand All @@ -281,7 +256,7 @@ Name | Type | Description | Notes

### Authorization

[paycometApiKey](../../README.md#paycometApiKey)
No authorization required

### HTTP request headers

Expand Down
34 changes: 12 additions & 22 deletions docs/Api/DccApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Method | HTTP request | Description
[**dccPurchaseCreate**](DccApi.md#dccpurchasecreate) | **POST** /v1/payments/dcc | Create an DCC payment

# **dccPurchaseConfirm**
> \Swagger\Client\Model\InlineResponse20023 dccPurchaseConfirm($paycomet_api_token, $order, $body)
> \Swagger\Client\Model\InlineResponse20024 dccPurchaseConfirm($paycomet_api_token, $order, $body)
Confirm previous DCC payment

Expand All @@ -18,20 +18,15 @@ confirm_purchase_dcc
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: paycometApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer');

$apiInstance = new Swagger\Client\Api\DccApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
new GuzzleHttp\Client()
);
$paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required)
$order = "order_example"; // string |
$body = new \Swagger\Client\Model\Body25(); // \Swagger\Client\Model\Body25 |
$body = new \Swagger\Client\Model\OrderConfirmBody(); // \Swagger\Client\Model\OrderConfirmBody |

try {
$result = $apiInstance->dccPurchaseConfirm($paycomet_api_token, $order, $body);
Expand All @@ -48,15 +43,15 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) |
**order** | **string**| |
**body** | [**\Swagger\Client\Model\Body25**](../Model/Body25.md)| | [optional]
**body** | [**\Swagger\Client\Model\OrderConfirmBody**](../Model/OrderConfirmBody.md)| | [optional]

### Return type

[**\Swagger\Client\Model\InlineResponse20023**](../Model/InlineResponse20023.md)
[**\Swagger\Client\Model\InlineResponse20024**](../Model/InlineResponse20024.md)

### Authorization

[paycometApiKey](../../README.md#paycometApiKey)
No authorization required

### HTTP request headers

Expand All @@ -66,7 +61,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **dccPurchaseCreate**
> \Swagger\Client\Model\InlineResponse20022 dccPurchaseCreate($paycomet_api_token, $body)
> \Swagger\Client\Model\InlineResponse20023 dccPurchaseCreate($paycomet_api_token, $body)
Create an DCC payment

Expand All @@ -76,19 +71,14 @@ execute_purchase_dcc
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: paycometApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer');

$apiInstance = new Swagger\Client\Api\DccApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
new GuzzleHttp\Client()
);
$paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required)
$body = new \Swagger\Client\Model\Body24(); // \Swagger\Client\Model\Body24 |
$body = new \Swagger\Client\Model\PaymentsDccBody(); // \Swagger\Client\Model\PaymentsDccBody |

try {
$result = $apiInstance->dccPurchaseCreate($paycomet_api_token, $body);
Expand All @@ -104,15 +94,15 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) |
**body** | [**\Swagger\Client\Model\Body24**](../Model/Body24.md)| | [optional]
**body** | [**\Swagger\Client\Model\PaymentsDccBody**](../Model/PaymentsDccBody.md)| | [optional]

### Return type

[**\Swagger\Client\Model\InlineResponse20022**](../Model/InlineResponse20022.md)
[**\Swagger\Client\Model\InlineResponse20023**](../Model/InlineResponse20023.md)

### Authorization

[paycometApiKey](../../README.md#paycometApiKey)
No authorization required

### HTTP request headers

Expand Down
13 changes: 4 additions & 9 deletions docs/Api/ErrorApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,13 @@ info_error
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: paycometApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer');

$apiInstance = new Swagger\Client\Api\ErrorApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
new GuzzleHttp\Client()
);
$body = new \Swagger\Client\Model\Body(); // \Swagger\Client\Model\Body |
$body = new \Swagger\Client\Model\V1ErrorsBody(); // \Swagger\Client\Model\V1ErrorsBody |
$paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Query privilege required)

try {
Expand All @@ -44,7 +39,7 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**\Swagger\Client\Model\Body**](../Model/Body.md)| | [optional]
**body** | [**\Swagger\Client\Model\V1ErrorsBody**](../Model/V1ErrorsBody.md)| | [optional]
**paycomet_api_token** | **string**| PAYCOMET API key (Query privilege required) | [optional]

### Return type
Expand All @@ -53,7 +48,7 @@ Name | Type | Description | Notes

### Authorization

[paycometApiKey](../../README.md#paycometApiKey)
No authorization required

### HTTP request headers

Expand Down
Loading

0 comments on commit 75fa5c3

Please sign in to comment.