Skip to content

Commit

Permalink
v2.1.600
Browse files Browse the repository at this point in the history
  • Loading branch information
johnturnham committed May 17, 2024
1 parent f5f6e65 commit ebdd322
Show file tree
Hide file tree
Showing 7 changed files with 1,669 additions and 234 deletions.
3 changes: 3 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ docs/Model/SaveMerchantCreditPaymentDesignRequest.md
docs/Model/SaveTicketSettingsRequest.md
docs/Model/SaveTicketSettingsRequestPaymentDesignID.md
docs/Model/Service.md
docs/Model/SetDefaultPaymentMethodRequest.md
docs/Model/SimpleSMSBroadcast.md
docs/Model/SmsSubscriber.md
docs/Model/StaticVoucher.md
Expand Down Expand Up @@ -683,6 +684,7 @@ lib/Model/SaveMerchantCreditPaymentDesignRequest.php
lib/Model/SaveTicketSettingsRequest.php
lib/Model/SaveTicketSettingsRequestPaymentDesignID.php
lib/Model/Service.php
lib/Model/SetDefaultPaymentMethodRequest.php
lib/Model/SimpleSMSBroadcast.php
lib/Model/SmsSubscriber.php
lib/Model/StaticVoucher.php
Expand Down Expand Up @@ -862,3 +864,4 @@ lib/Model/WalletPageView.php
lib/Model/Webpage.php
lib/ObjectSerializer.php
phpunit.xml.dist
test/Model/SetDefaultPaymentMethodRequestTest.php
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,14 @@ Class | Method | HTTP request | Description
*BillingApi* | [**cancelPlan**](docs/Api/BillingApi.md#cancelplan) | **DELETE** /v2/billing/plan | Cancel billing plan and revert to default
*BillingApi* | [**changePlan**](docs/Api/BillingApi.md#changeplan) | **PUT** /v2/billing/plan | Change billing plan
*BillingApi* | [**fetchAddOns**](docs/Api/BillingApi.md#fetchaddons) | **GET** /v2/billing/products/addOns | Fetch add-on products, or 1-time purchase products (non-subscription products)
*BillingApi* | [**fetchCustomerPaymentMethods**](docs/Api/BillingApi.md#fetchcustomerpaymentmethods) | **GET** /v2/billing/paymentMethods/all | Fetch customer payment methods
*BillingApi* | [**fetchIndustry**](docs/Api/BillingApi.md#fetchindustry) | **GET** /v2/billing/industry | Fetch merchant's industry
*BillingApi* | [**fetchInvoices**](docs/Api/BillingApi.md#fetchinvoices) | **GET** /v2/billing/invoices/all | Fetch all invoices
*BillingApi* | [**fetchSpecialOffers**](docs/Api/BillingApi.md#fetchspecialoffers) | **GET** /v2/billing/products/specialOffers | Fetch special offer products
*BillingApi* | [**fetchSubscription**](docs/Api/BillingApi.md#fetchsubscription) | **GET** /v2/billing/subscription | Fetch subscription
*BillingApi* | [**fetchUsageSummary**](docs/Api/BillingApi.md#fetchusagesummary) | **GET** /v2/billing/summary | Fetch usage summary
*BillingApi* | [**savePaymentMethod**](docs/Api/BillingApi.md#savepaymentmethod) | **PUT** /v2/billing/paymentMethod | Save payment method
*BillingApi* | [**setDefaultPaymentMethod**](docs/Api/BillingApi.md#setdefaultpaymentmethod) | **POST** /v2/billing/paymentMethod/default | Verify payment method
*BillingApi* | [**upcomingInvoices**](docs/Api/BillingApi.md#upcominginvoices) | **GET** /v2/billing/invoices/upcoming | Fetch upcoming invoices
*BillingApi* | [**verifyPaymentMethod**](docs/Api/BillingApi.md#verifypaymentmethod) | **GET** /v2/billing/paymentMethod | Verify payment method
*ClubMembersPointsApi* | [**archiveMember**](docs/Api/ClubMembersPointsApi.md#archivemember) | **DELETE** /v2/membership/member/{id} | Archive member
Expand Down Expand Up @@ -793,6 +795,7 @@ Class | Method | HTTP request | Description
- [SaveTicketSettingsRequest](docs/Model/SaveTicketSettingsRequest.md)
- [SaveTicketSettingsRequestPaymentDesignID](docs/Model/SaveTicketSettingsRequestPaymentDesignID.md)
- [Service](docs/Model/Service.md)
- [SetDefaultPaymentMethodRequest](docs/Model/SetDefaultPaymentMethodRequest.md)
- [SimpleSMSBroadcast](docs/Model/SimpleSMSBroadcast.md)
- [SmsSubscriber](docs/Model/SmsSubscriber.md)
- [StaticVoucher](docs/Model/StaticVoucher.md)
Expand Down
107 changes: 107 additions & 0 deletions docs/Api/BillingApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ All URIs are relative to https://api.wall.et, except if the operation defines an
| [**cancelPlan()**](BillingApi.md#cancelPlan) | **DELETE** /v2/billing/plan | Cancel billing plan and revert to default |
| [**changePlan()**](BillingApi.md#changePlan) | **PUT** /v2/billing/plan | Change billing plan |
| [**fetchAddOns()**](BillingApi.md#fetchAddOns) | **GET** /v2/billing/products/addOns | Fetch add-on products, or 1-time purchase products (non-subscription products) |
| [**fetchCustomerPaymentMethods()**](BillingApi.md#fetchCustomerPaymentMethods) | **GET** /v2/billing/paymentMethods/all | Fetch customer payment methods |
| [**fetchIndustry()**](BillingApi.md#fetchIndustry) | **GET** /v2/billing/industry | Fetch merchant's industry |
| [**fetchInvoices()**](BillingApi.md#fetchInvoices) | **GET** /v2/billing/invoices/all | Fetch all invoices |
| [**fetchSpecialOffers()**](BillingApi.md#fetchSpecialOffers) | **GET** /v2/billing/products/specialOffers | Fetch special offer products |
| [**fetchSubscription()**](BillingApi.md#fetchSubscription) | **GET** /v2/billing/subscription | Fetch subscription |
| [**fetchUsageSummary()**](BillingApi.md#fetchUsageSummary) | **GET** /v2/billing/summary | Fetch usage summary |
| [**savePaymentMethod()**](BillingApi.md#savePaymentMethod) | **PUT** /v2/billing/paymentMethod | Save payment method |
| [**setDefaultPaymentMethod()**](BillingApi.md#setDefaultPaymentMethod) | **POST** /v2/billing/paymentMethod/default | Verify payment method |
| [**upcomingInvoices()**](BillingApi.md#upcomingInvoices) | **GET** /v2/billing/invoices/upcoming | Fetch upcoming invoices |
| [**verifyPaymentMethod()**](BillingApi.md#verifyPaymentMethod) | **GET** /v2/billing/paymentMethod | Verify payment method |

Expand Down Expand Up @@ -283,6 +285,57 @@ No authorization required
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `fetchCustomerPaymentMethods()`

```php
fetchCustomerPaymentMethods(): mixed
```

Fetch customer payment methods

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new OpenAPI\Client\Api\BillingApi(
// 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()
);

try {
$result = $apiInstance->fetchCustomerPaymentMethods();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BillingApi->fetchCustomerPaymentMethods: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

This endpoint does not need any parameter.

### Return type

**mixed**

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `fetchIndustry()`

```php
Expand Down Expand Up @@ -597,6 +650,60 @@ No authorization required
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `setDefaultPaymentMethod()`

```php
setDefaultPaymentMethod($set_default_payment_method_request): \OpenAPI\Client\Model\Merchant
```

Verify payment method

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new OpenAPI\Client\Api\BillingApi(
// 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()
);
$set_default_payment_method_request = new \OpenAPI\Client\Model\SetDefaultPaymentMethodRequest(); // \OpenAPI\Client\Model\SetDefaultPaymentMethodRequest

try {
$result = $apiInstance->setDefaultPaymentMethod($set_default_payment_method_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BillingApi->setDefaultPaymentMethod: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **set_default_payment_method_request** | [**\OpenAPI\Client\Model\SetDefaultPaymentMethodRequest**](../Model/SetDefaultPaymentMethodRequest.md)| | |

### Return type

[**\OpenAPI\Client\Model\Merchant**](../Model/Merchant.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: `application/json`
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `upcomingInvoices()`

```php
Expand Down
9 changes: 9 additions & 0 deletions docs/Model/SetDefaultPaymentMethodRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# # SetDefaultPaymentMethodRequest

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**payment_method_id** | **string** | |

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
Loading

0 comments on commit ebdd322

Please sign in to comment.