From 32b65a7e63a5cc7d73a334a99e8f332f3c42ac44 Mon Sep 17 00:00:00 2001 From: gabs Date: Mon, 25 Mar 2024 14:31:58 -0300 Subject: [PATCH] Adjust acronyms --- pkg/customer/response.go | 4 ++-- pkg/customercard/client_test.go | 20 ++++++++++---------- pkg/customercard/response.go | 4 ++-- pkg/preference/request.go | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/pkg/customer/response.go b/pkg/customer/response.go index ed464b17..6575551b 100644 --- a/pkg/customer/response.go +++ b/pkg/customer/response.go @@ -52,7 +52,7 @@ type CardResponse struct { ID string `json:"id"` CustomerID string `json:"customer_id"` - UserId string `json:"user_id"` + UserID string `json:"user_id"` FirstSixDigits string `json:"first_six_digits"` LastFourDigits string `json:"last_four_digits"` ExpirationMonth int `json:"expiration_month"` @@ -82,7 +82,7 @@ type IssuerResponse struct { type PaymentMethodResponse struct { ID string `json:"id"` Name string `json:"name"` - PaymentTypeId string `json:"payment_type_id"` + PaymentTypeID string `json:"payment_type_id"` Thumbnail string `json:"thumbnail"` SecureThumbnail string `json:"secure_thumbnail"` } diff --git a/pkg/customercard/client_test.go b/pkg/customercard/client_test.go index f7ba9e5d..d5816d02 100644 --- a/pkg/customercard/client_test.go +++ b/pkg/customercard/client_test.go @@ -102,8 +102,8 @@ func TestCreate(t *testing.T) { }, AdditionalInfo: AdditionalInfoResponse{ RequestPublic: "true", - ApiClientApplication: "traffic-layer", - ApiClientScope: "mapi-pci-tl", + APIClientApplication: "traffic-layer", + APIClientScope: "mapi-pci-tl", }, PaymentMethod: PaymentMethodResponse{ ID: "master", @@ -220,8 +220,8 @@ func TestUpdate(t *testing.T) { }, AdditionalInfo: AdditionalInfoResponse{ RequestPublic: "true", - ApiClientApplication: "traffic-layer", - ApiClientScope: "mapi-pci-tl", + APIClientApplication: "traffic-layer", + APIClientScope: "mapi-pci-tl", }, PaymentMethod: PaymentMethodResponse{ ID: "master", @@ -335,8 +335,8 @@ func TestGet(t *testing.T) { }, AdditionalInfo: AdditionalInfoResponse{ RequestPublic: "true", - ApiClientApplication: "traffic-layer", - ApiClientScope: "mapi-pci-tl", + APIClientApplication: "traffic-layer", + APIClientScope: "mapi-pci-tl", }, PaymentMethod: PaymentMethodResponse{ ID: "master", @@ -450,8 +450,8 @@ func TestDelete(t *testing.T) { }, AdditionalInfo: AdditionalInfoResponse{ RequestPublic: "true", - ApiClientApplication: "traffic-layer", - ApiClientScope: "mapi-pci-tl", + APIClientApplication: "traffic-layer", + APIClientScope: "mapi-pci-tl", }, PaymentMethod: PaymentMethodResponse{ ID: "master", @@ -564,8 +564,8 @@ func TestList(t *testing.T) { }, AdditionalInfo: AdditionalInfoResponse{ RequestPublic: "true", - ApiClientApplication: "traffic-layer", - ApiClientScope: "mapi-pci-tl", + APIClientApplication: "traffic-layer", + APIClientScope: "mapi-pci-tl", }, PaymentMethod: PaymentMethodResponse{ ID: "master", diff --git a/pkg/customercard/response.go b/pkg/customercard/response.go index c4de4fe1..b1666332 100644 --- a/pkg/customercard/response.go +++ b/pkg/customercard/response.go @@ -26,8 +26,8 @@ type Response struct { // AdditionalInfoResponse represents additional customer card information. type AdditionalInfoResponse struct { RequestPublic string `json:"request_public"` - ApiClientApplication string `json:"api_client_application"` - ApiClientScope string `json:"api_client_scope"` + APIClientApplication string `json:"api_client_application"` + APIClientScope string `json:"api_client_scope"` } // CardholderResponse represents information about the cardholder. diff --git a/pkg/preference/request.go b/pkg/preference/request.go index 00f1681c..3b6e0ce2 100644 --- a/pkg/preference/request.go +++ b/pkg/preference/request.go @@ -23,7 +23,7 @@ type Request struct { ExternalReference string `json:"external_reference,omitempty"` Marketplace string `json:"marketplace,omitempty"` OperationType string `json:"operation_type,omitempty"` - NotificationUrl string `json:"notification_url,omitempty"` + NotificationURL string `json:"notification_url,omitempty"` Purpose string `json:"purpose,omitempty"` StatementDescriptor string `json:"statement_descriptor,omitempty"` MarketplaceFee float64 `json:"marketplace_fee,omitempty"`