Skip to content

Commit

Permalink
Generated Xendit node SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
xendit-devx-bot committed Sep 21, 2023
1 parent 91b842a commit 5d4cb5e
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
The official Xendit Node SDK provides a simple and convenient way to call Xendit's REST API
in applications written in Node.

* Package version: 3.0.0
* Package version: 3.1.0

# Getting Started

Expand Down
2 changes: 0 additions & 2 deletions docs/PaymentMethod.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,6 @@ const response: PaymentMethod = await xenditPaymentMethodClient.getPaymentMethod
| updatedGte| | Date |
| updatedLte| | Date |
| limit| | number |
| afterId| | string |
| beforeId| | string |
| idempotencyKey| | string |

### Usage Examples
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xendit-node",
"version": "3.0.0",
"version": "3.1.0",
"description": "OpenAPI client for xendit-node",
"author": "OpenAPI-Generator",
"repository": {
Expand Down
10 changes: 0 additions & 10 deletions payment_method/apis/PaymentMethod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ export interface GetPaymentsByPaymentMethodIdRequest {
updatedGte?: Date;
updatedLte?: Date;
limit?: number;
afterId?: string;
beforeId?: string;
idempotencyKey?: string;
}

Expand Down Expand Up @@ -469,14 +467,6 @@ export class PaymentMethodApi extends runtime.BaseAPI {
queryParameters['limit'] = requestParameters.limit;
}

if (requestParameters.afterId !== undefined) {
queryParameters['after_id'] = requestParameters.afterId;
}

if (requestParameters.beforeId !== undefined) {
queryParameters['before_id'] = requestParameters.beforeId;
}

const headerParameters: runtime.HTTPHeaders = {};
headerParameters["Authorization"] = "Basic " + btoa(this.secretKey + ":");

Expand Down
3 changes: 2 additions & 1 deletion payment_method/models/GetAllPaymentMethods400Response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export const GetAllPaymentMethods400ResponseErrorCodeEnum = {
InactivePaymentMethod: 'INACTIVE_PAYMENT_METHOD',
PaymentMethodNotSupported: 'PAYMENT_METHOD_NOT_SUPPORTED',
IncorrectAmount: 'INCORRECT_AMOUNT',
DuplicatedFixedPaymentInstrument: 'DUPLICATED_FIXED_PAYMENT_INSTRUMENT'
DuplicatedFixedPaymentInstrument: 'DUPLICATED_FIXED_PAYMENT_INSTRUMENT',
CurrencyMismatched: 'CURRENCY_MISMATCHED'
} as const;
export type GetAllPaymentMethods400ResponseErrorCodeEnum = typeof GetAllPaymentMethods400ResponseErrorCodeEnum[keyof typeof GetAllPaymentMethods400ResponseErrorCodeEnum];

Expand Down
2 changes: 1 addition & 1 deletion runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class BaseAPI {
const headers = Object.assign({}, this.configuration.headers, context.headers);
Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});
headers['xendit-lib'] = 'node';
headers['xendit-lib-ver'] = '3.0.0';
headers['xendit-lib-ver'] = '3.1.0';

const initParams = {
method: context.method,
Expand Down

0 comments on commit 5d4cb5e

Please sign in to comment.