From b7e22565fa7e9e81fc01de0e7f551d6454821f4a Mon Sep 17 00:00:00 2001 From: Chagas Date: Thu, 22 Aug 2024 11:29:28 -0300 Subject: [PATCH] added sub type (#71) --- CHANGELOG.md | 6 +++++- pkg/internal/httpclient/helper.go | 2 +- pkg/payment/request.go | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cbc3e99..4c95424 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,4 +10,8 @@ Fix `differential_pricing_id` type. Now it is `int` instead of `string`. ## VERSION 1.0.3 -Include `sub_merchant` in `ForwardData` in `Payment`. \ No newline at end of file +Include `sub_merchant` in `ForwardData` in `Payment`. + +## VERSION 1.0.4 + +Include `sub_type` in `PointOfInteractionRequest` in `Payment`. \ No newline at end of file diff --git a/pkg/internal/httpclient/helper.go b/pkg/internal/httpclient/helper.go index fb02266..2f6c107 100644 --- a/pkg/internal/httpclient/helper.go +++ b/pkg/internal/httpclient/helper.go @@ -16,7 +16,7 @@ import ( ) const ( - currentSDKVersion string = "1.0.3" + currentSDKVersion string = "1.0.4" productID string = "CNITR48HSRV0CRPT3NI0" ) diff --git a/pkg/payment/request.go b/pkg/payment/request.go index e0b9006..e33a638 100644 --- a/pkg/payment/request.go +++ b/pkg/payment/request.go @@ -228,6 +228,7 @@ type PointOfInteractionRequest struct { LinkedTo string `json:"linked_to,omitempty"` Type string `json:"type,omitempty"` + SubType string `json:"sub_type,omitempty"` } type TransactionDataRequest struct {