Beispiel #1
0
        public async Task RecipientsUpdateUpdate()
        {
            var request = new UpdateRecipientRequest {
                Email       = "*****@*****.**",
                BankAccount = new BankAccountRequest {
                    Brand  = "kbank",
                    Number = "1234567890",
                    Name   = "SOMCHAI PRASERT",
                },
            };

            var recipient = await Client.Recipients.Update("recp_test_52yeov3bkjqpun3b4sm", request);

            Assert.AreEqual(request.BankAccount.Brand, recipient.BankAccount.Brand);
        }
        public BaseResponse <GetRecipientResponse, MundipaggErrorsResponse> UpdateRecipient(string recipientId, UpdateRecipientRequest request)
        {
            var method   = HttpMethod.Put;
            var endpoint = $"/recipients/{recipientId}";

            return(this.SendRequest <GetRecipientResponse>(method, endpoint, request));
        }