Skip to content

Commit

Permalink
add more fields
Browse files Browse the repository at this point in the history
  • Loading branch information
vicorrea25 committed Aug 29, 2024
1 parent 93d6d45 commit 2c8ea6a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion pkg/internal/httpclient/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
)

const (
currentSDKVersion string = "1.0.5"
currentSDKVersion string = "1.0.6"
productID string = "CNITR48HSRV0CRPT3NI0"
)

Expand Down
2 changes: 2 additions & 0 deletions pkg/payment/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2c8ea6a

Please sign in to comment.