Skip to content

Commit

Permalink
Adjust acronyms
Browse files Browse the repository at this point in the history
  • Loading branch information
gdeandradero committed Mar 25, 2024
1 parent bdf1592 commit 32b65a7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions pkg/customer/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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"`
}
Expand Down
20 changes: 10 additions & 10 deletions pkg/customercard/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions pkg/customercard/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pkg/preference/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 32b65a7

Please sign in to comment.