Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust acronyms #48

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading