@@ -23,7 +23,7 @@ type PaymentAmount struct {
2323 Amount string `json:"amount"`
2424}
2525
26- //ChargeResponse : CoreAPI charge response struct when calling Midtrans API
26+ // ChargeResponse : CoreAPI charge response struct when calling Midtrans API
2727type ChargeResponse struct {
2828 TransactionID string `json:"transaction_id"`
2929 OrderID string `json:"order_id"`
@@ -63,22 +63,22 @@ type ChargeResponse struct {
6363 OnUs bool `json:"on_us"`
6464}
6565
66- //ApproveResponse : Approve response type when calling Midtrans approve transaction API
66+ // ApproveResponse : Approve response type when calling Midtrans approve transaction API
6767type ApproveResponse = ChargeResponse
6868
69- //DenyResponse : Deny response type when calling Midtrans deny transaction API
69+ // DenyResponse : Deny response type when calling Midtrans deny transaction API
7070type DenyResponse = ChargeResponse
7171
72- //CancelResponse : Cancel response type when calling Midtrans cancel transaction API
72+ // CancelResponse : Cancel response type when calling Midtrans cancel transaction API
7373type CancelResponse = ChargeResponse
7474
75- //ExpireResponse : Expire response type when calling Midtrans expire transaction API
75+ // ExpireResponse : Expire response type when calling Midtrans expire transaction API
7676type ExpireResponse = ChargeResponse
7777
78- //CaptureResponse : Capture response type when calling Midtrans API capture for credit card transaction
78+ // CaptureResponse : Capture response type when calling Midtrans API capture for credit card transaction
7979type CaptureResponse = ChargeResponse
8080
81- //TransactionStatusResponse : Status transaction response struct
81+ // TransactionStatusResponse : Status transaction response struct
8282type TransactionStatusResponse struct {
8383 TransactionTime string `json:"transaction_time"`
8484 GrossAmount string `json:"gross_amount"`
@@ -141,7 +141,7 @@ type RefundDetails struct {
141141 CreatedAt string `json:"created_at"`
142142}
143143
144- //RefundResponse : Refund response struct when calling Midtrans refund and direct refund API
144+ // RefundResponse : Refund response struct when calling Midtrans refund and direct refund API
145145type RefundResponse struct {
146146 StatusCode string `json:"status_code"`
147147 StatusMessage string `json:"status_message"`
@@ -225,7 +225,7 @@ type UpdateSubscriptionResponse struct {
225225type EnableSubscriptionResponse = UpdateSubscriptionResponse
226226type DisableSubscriptionResponse = UpdateSubscriptionResponse
227227
228- //ScheduleResponse Subscription schedule response object
228+ // ScheduleResponse Subscription schedule response object
229229type ScheduleResponse struct {
230230 Interval int `json:"interval"`
231231 IntervalUnit string `json:"interval_unit"`
@@ -265,3 +265,11 @@ type BalanceDetails struct {
265265 Value string `json:"value"`
266266 Currency string `json:"currency"`
267267}
268+
269+ type PointInquiryResponse struct {
270+ StatusCode string `json:"status_code"`
271+ StatusMessage string `json:"status_message"`
272+ PointBalance int `json:"point_balance"`
273+ TransactionTime string `json:"transaction_time"`
274+ PointBalanceAmount string `json:"point_balance_amount"`
275+ }
0 commit comments