xendit/xendit-go

E-Wallet channel code as an enum

riskimidiw opened this issue · 1 comments

Hi, I see in this docs that E-Wallet channel code defined as

ID_OVO, ID_DANA, ID_LINKAJA, ID_SHOPEEPAY, ID_SAKUKU, PH_PAYMAYA,PH_GCASH, PH_GRABPAY

Code:

type EWalletCharge struct {

Docs: https://developers.xendit.co/api-reference/?bash#create-ewallet-charge

Can we make E-Wallet channel code as an enum? So we can easily compare this value using this library

type EWalletChannelCodeEnum string

const (
  EWalletChannelCodeOVO EWalletChannelCodeEnum = "ID_OVO"
  ...
)

Closing this as stale, but if you'd like to add this to our library we're happy to approve and release it~