From 3cccea1103c76edd474cacef918ff59da3e84d7f Mon Sep 17 00:00:00 2001 From: woodser <13068859+woodser@users.noreply.github.com> Date: Thu, 19 Jun 2025 09:24:45 -0400 Subject: [PATCH] test alipay grpc api --- src/HavenoClient.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/HavenoClient.test.ts b/src/HavenoClient.test.ts index 5c83d137..7f77438a 100644 --- a/src/HavenoClient.test.ts +++ b/src/HavenoClient.test.ts @@ -4730,6 +4730,10 @@ function testPaymentAccount(account: PaymentAccount, form: PaymentAccountForm) { expect(account.getPaymentAccountPayload()!.getWeChatPayAccountPayload()!.getAccountNr()).toEqual(getFormField(form, PaymentAccountFormField.FieldId.ACCOUNT_NR).getValue()); expect(account.getTradeCurrenciesList().map(currency => currency.getCode()).join(",")).toEqual(getFormField(form, PaymentAccountFormField.FieldId.TRADE_CURRENCIES).getValue()); break; + case PaymentAccountForm.FormId.ALI_PAY: + expect(account.getPaymentAccountPayload()!.getAliPayAccountPayload()!.getAccountNr()).toEqual(getFormField(form, PaymentAccountFormField.FieldId.ACCOUNT_NR).getValue()); + expect(account.getTradeCurrenciesList().map(currency => currency.getCode()).join(",")).toEqual(getFormField(form, PaymentAccountFormField.FieldId.TRADE_CURRENCIES).getValue()); + break; default: throw new Error("Unhandled payment method type: " + form.getId()); }