forked from go-packages/paypal
change SharedListResponse TotalItems, TotalPages from string to int; Error: json: cannot unmarshal number into Go struct field ListSubscriptionPlansResponse.total_items of type string (#166)
Co-authored-by: Moo <mri@robin-data.io>
This commit is contained in:
parent
18b47a0652
commit
761c20a4ed
4
types.go
4
types.go
|
@ -1204,8 +1204,8 @@ type (
|
||||||
}
|
}
|
||||||
|
|
||||||
SharedListResponse struct {
|
SharedListResponse struct {
|
||||||
TotalItems string `json:"total_items,omitempty"`
|
TotalItems int `json:"total_items,omitempty"`
|
||||||
TotalPages string `json:"total_pages,omitempty"`
|
TotalPages int `json:"total_pages,omitempty"`
|
||||||
Links []Link `json:"links,omitempty"`
|
Links []Link `json:"links,omitempty"`
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user