diff --git a/sdk/payments/entity.go b/sdk/payments/entity.go index 59db524..39f115e 100644 --- a/sdk/payments/entity.go +++ b/sdk/payments/entity.go @@ -13,7 +13,7 @@ type HistoryData struct { } type ResponseSearch struct { Source string `json:"source"` - PackageID int `json:"package_id"` - OrderID string `json:"order_id"` + PaymentID int `json:"payment_id"` + TrxID string `json:"trx_id"` History []HistoryData `json:"history"` } diff --git a/sdk/withdrawals/entity.go b/sdk/withdrawals/entity.go index a576fce..05b5302 100644 --- a/sdk/withdrawals/entity.go +++ b/sdk/withdrawals/entity.go @@ -12,8 +12,8 @@ type HistoryData struct { Data []map[string]interface{} `json:"data"` } type ResponseSearch struct { - Source string `json:"source"` - PackageID int `json:"package_id"` - OrderID string `json:"order_id"` - History []HistoryData `json:"history"` + Source string `json:"source"` + WithdrawalID int `json:"withdrawal_id"` + RefNum string `json:"ref_num"` + History []HistoryData `json:"history"` } diff --git a/sdk/withdrawals/payment.go b/sdk/withdrawals/withdrawal.go similarity index 100% rename from sdk/withdrawals/payment.go rename to sdk/withdrawals/withdrawal.go