Skip to content

Commit

Permalink
[Fix] type card_id and user to int64 (#79)
Browse files Browse the repository at this point in the history
* fix type  card_id and user to int64

* ajuste
  • Loading branch information
VickieAranha authored Dec 19, 2024
1 parent 4d02060 commit 26db609
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 12 deletions.
6 changes: 4 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
repos:
# Websec hook is MANDATORY, DO NOT comment it.
- repo: https://github.com/melisource/fury_websec-git-hooks
rev: v1.1.0
rev: v2.0.0
hooks:
- id: pre_commit_hook
stages: [commit]
Expand All @@ -10,8 +10,10 @@ repos:

# Datasec hook is MANDATORY, DO NOT comment it.
- repo: https://github.com/melisource/fury_datasec-git-hooks
rev: 1.0.3
rev: 1.2.2
hooks:
- id: pre_commit_hook
stages: [commit]
verbose: true
- id: post_commit_hook
stages: [ post-commit ]
2 changes: 1 addition & 1 deletion pkg/customer/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type Response struct {
DefaultCard string `json:"default_card"`
DefaultAddress string `json:"default_address"`
Status string `json:"status"`
UserID int `json:"user_id"`
UserID int64 `json:"user_id"`
MerchantID int `json:"merchant_id"`
ClientID int `json:"client_id"`
LiveMode bool `json:"live_mode"`
Expand Down
2 changes: 1 addition & 1 deletion pkg/merchantorder/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ type ItemRequest struct {

// CollectorRequest represents seller information.
type CollectorRequest struct {
ID int `json:"id,omitempty"`
ID int64 `json:"id,omitempty"`
}
3 changes: 1 addition & 2 deletions pkg/payment/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ type Response struct {
Installments int `json:"installments"`
ID int `json:"id"`
SponsorID int `json:"sponsor_id"`
CollectorID int `json:"collector_id"`
CollectorID int64 `json:"collector_id"`
LiveMode bool `json:"live_mode"`
Captured bool `json:"captured"`
BinaryMode bool `json:"binary_mode"`
Expand Down Expand Up @@ -297,7 +297,6 @@ 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"`
Expand Down
6 changes: 3 additions & 3 deletions pkg/preapproval/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ type Response struct {
PreapprovalPlanID string `json:"preapproval_plan_id"`
PayerFirstName string `json:"payer_first_name"`
PayerLastName string `json:"payer_last_name"`
CardID int `json:"card_id"`
CardID string `json:"card_id"`
Version int `json:"version"`
PayerID int `json:"payer_id"`
CollectorID int `json:"collector_id"`
PayerID int64 `json:"payer_id"`
CollectorID int64 `json:"collector_id"`
ApplicationID int `json:"application_id"`
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/preapprovalplan/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type Response struct {
Reason string `json:"reason"`
Status string `json:"status"`
InitPoint string `json:"init_point"`
CollectorID int `json:"collector_id"`
CollectorID int64 `json:"collector_id"`
ApplicationID int `json:"application_id"`
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/preference/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type Response struct {
SandboxInitPoint string `json:"sandbox_init_point"`
SiteID string `json:"site_id"`
MarketplaceFee float64 `json:"marketplace_fee"`
CollectorID int `json:"collector_id"`
CollectorID int64 `json:"collector_id"`
Expires bool `json:"expires"`
BinaryMode bool `json:"binary_mode"`
ProcessingModes []string `json:"processing_modes"`
Expand Down
2 changes: 1 addition & 1 deletion pkg/preference/search_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type SearchResponse struct {
ProductID string `json:"product_id"`
Purpose string `json:"purpose"`
SiteID string `json:"site_id"`
CollectorID int `json:"collector_id"`
CollectorID int64 `json:"collector_id"`
SponsorID int `json:"sponsor_id"`
LiveMode bool `json:"live_mode"`
Expires bool `json:"expires"`
Expand Down

0 comments on commit 26db609

Please sign in to comment.