From 5e4bba9951507bdc190fc3bfde49e90fd6370c50 Mon Sep 17 00:00:00 2001 From: pelly ryu Date: Thu, 27 Jul 2023 18:43:20 +0900 Subject: [PATCH] Fix typos in type def --- README.md | 6 +++--- src/payment_method_v2/payment_method_v2.d.ts | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index d2d1295..772cd1f 100644 --- a/README.md +++ b/README.md @@ -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; @@ -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; diff --git a/src/payment_method_v2/payment_method_v2.d.ts b/src/payment_method_v2/payment_method_v2.d.ts index bb2380b..3c24526 100644 --- a/src/payment_method_v2/payment_method_v2.d.ts +++ b/src/payment_method_v2/payment_method_v2.d.ts @@ -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', } @@ -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; @@ -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; @@ -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;