From 2c8ea6a14c6832c9566e8f19db8cda30af76a94f Mon Sep 17 00:00:00 2001 From: Chagas Date: Thu, 29 Aug 2024 16:40:23 -0300 Subject: [PATCH] add more fields --- CHANGELOG.md | 2 ++ pkg/internal/httpclient/helper.go | 2 +- pkg/payment/response.go | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1700a36..842f7ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ ## VERSION 1.0.6 +Include `reference_id` in `DataResponse` in `PaymentMethodResponse` in `Payment`. Include `external_reference_id` in `DataResponse` in `PaymentMethodResponse` in `Payment`. +Include `external_resource_url` in `DataResponse` in `PaymentMethodResponse` in `Payment`. ## VERSION 1.0.5 diff --git a/pkg/internal/httpclient/helper.go b/pkg/internal/httpclient/helper.go index 41b4d6c..891f0d5 100644 --- a/pkg/internal/httpclient/helper.go +++ b/pkg/internal/httpclient/helper.go @@ -16,7 +16,7 @@ import ( ) const ( - currentSDKVersion string = "1.0.5" + currentSDKVersion string = "1.0.6" productID string = "CNITR48HSRV0CRPT3NI0" ) diff --git a/pkg/payment/response.go b/pkg/payment/response.go index 4505973..960d247 100644 --- a/pkg/payment/response.go +++ b/pkg/payment/response.go @@ -297,7 +297,9 @@ type PaymentMethodResponse struct { // DataResponse represents data within PaymentMethodResponse. type DataResponse struct { Rules RulesResponse `json:"rules"` + ReferenceID string `json:"reference_id"` ExternalReferenceID string `json:"external_reference_id"` + ExternalResourceUrl string `json:"external_resource_url"` } // RulesResponse represents payment rules.