From e729663e35c43261dfdb436cf385410c657bb0f0 Mon Sep 17 00:00:00 2001 From: Paul Fauchon Date: Wed, 30 Nov 2022 11:36:12 +0800 Subject: [PATCH] init customer client on the API struct --- README.md | 1 + client/api.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 69c3b7e1..52d7e565 100644 --- a/README.md +++ b/README.md @@ -165,6 +165,7 @@ The following is a list of pointers to documentations for sub-packages of [xendi - [Payout](https://pkg.go.dev/github.com/xendit/xendit-go/payout) - [Recurring Payment](https://pkg.go.dev/github.com/xendit/xendit-go/recurringpayment) - [Cardless Credit](https://pkg.go.dev/github.com/xendit/xendit-go/cardlesscredit) +- [Customer](https://pkg.go.dev/github.com/xendit/xendit-go/customer) ## Contribute diff --git a/client/api.go b/client/api.go index ca17a8ad..54c8cc0e 100644 --- a/client/api.go +++ b/client/api.go @@ -8,6 +8,7 @@ import ( "github.com/xendit/xendit-go/balance" "github.com/xendit/xendit-go/card" "github.com/xendit/xendit-go/cardlesscredit" + "github.com/xendit/xendit-go/customer" "github.com/xendit/xendit-go/disbursement" "github.com/xendit/xendit-go/ewallet" "github.com/xendit/xendit-go/invoice" @@ -33,6 +34,7 @@ type API struct { CardlessCredit *cardlesscredit.Client Disbursement *disbursement.Client QRCode *qrcode.Client + Customer *customer.Client } func (a *API) init() { @@ -47,6 +49,7 @@ func (a *API) init() { a.CardlessCredit = &cardlesscredit.Client{Opt: &a.opt, APIRequester: a.apiRequester} a.Disbursement = &disbursement.Client{Opt: &a.opt, APIRequester: a.apiRequester} a.QRCode = &qrcode.Client{Opt: &a.opt, APIRequester: a.apiRequester} + a.Customer = &customer.Client{Opt: &a.opt, APIRequester: a.apiRequester} } // New creates a new Xendit API client