Skip to content

Commit

Permalink
Merge pull request #203 from pelly-ryu/master
Browse files Browse the repository at this point in the history
Fix typos in type definition
  • Loading branch information
sekaranglila authored Aug 2, 2023
2 parents 1bfc0b9 + 5e4bba9 commit 63653b0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1765,10 +1765,10 @@ Refer to [Xendit API Reference](https://developers.xendit.co/api-reference/#paym
```ts
r.createPaymentMethodV2(data: {
type: PaymentMethodV2Types;
reusability: PaymentMenthodV2Reusabilities;
reusability: PaymentMethodV2Reusabilities;
reference_id?: string;
customer_id?: string;
country?: CreatePaymentMenthodV2Countries;
country?: CreatePaymentMethodV2Countries;
description?: string;
billing_information?: BillingInformationItems;
metadata?: object;
Expand Down Expand Up @@ -1826,7 +1826,7 @@ r.updatePaymentMethodV2(data: {
description?: string;
metadata?: object;
status?: string;
reusability?: PaymentMenthodV2Reusabilities;
reusability?: PaymentMethodV2Reusabilities;
over_the_counter?: UpdateOverTheCounterItems;
virtual_account?: UpdateVirtualAccountItems;
for_user_id?: string;
Expand Down
14 changes: 7 additions & 7 deletions src/payment_method_v2/payment_method_v2.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ enum PaymentMethodV2Types {
DirectDebit = 'DIRECT_DEBIT',
OverTheCounter = 'OVER_THE_COUNTER',
QRCODE = 'QR_CODE',
VitrualAccount = 'VIRTUAL_ACCOUNT',
VirtualAccount = 'VIRTUAL_ACCOUNT',
}

enum PaymentMenthodV2Reusabilities {
enum PaymentMethodV2Reusabilities {
OneTimeUse = 'ONE_TIME_USE',
MultipleUse = 'MULTIPLE_USE',
}

enum CreatePaymentMenthodV2Countries {
enum CreatePaymentMethodV2Countries {
ID = 'ID',
PH = 'PH',
}
Expand Down Expand Up @@ -165,10 +165,10 @@ export = class PaymentMethodV2 {
) => typeof PaymentMethodV2;
createPaymentMethodV2(data: {
type: PaymentMethodV2Types;
reusability: PaymentMenthodV2Reusabilities;
reusability: PaymentMethodV2Reusabilities;
reference_id?: string;
customer_id?: string;
country?: CreatePaymentMenthodV2Countries;
country?: CreatePaymentMethodV2Countries;
description?: string;
billing_information?: BillingInformationItems;
metadata?: object;
Expand All @@ -185,7 +185,7 @@ export = class PaymentMethodV2 {
listPaymentMethodV2(data: {
id: string;
type?: PaymentMethodV2Types;
reusability?: PaymentMenthodV2Reusabilities;
reusability?: PaymentMethodV2Reusabilities;
reference_id?: string;
customer_id?: string;
limit?: string;
Expand All @@ -212,7 +212,7 @@ export = class PaymentMethodV2 {
description?: string;
metadata?: object;
status?: string;
reusability?: PaymentMenthodV2Reusabilities;
reusability?: PaymentMethodV2Reusabilities;
over_the_counter?: UpdateOverTheCounterItems;
virtual_account?: UpdateVirtualAccountItems;
for_user_id?: string;
Expand Down

0 comments on commit 63653b0

Please sign in to comment.