Skip to content

Commit

Permalink
Merge pull request #179 from VictorAvelar/patch/make-pagination-links…
Browse files Browse the repository at this point in the history
…-pointers

Fix pagination links pointers
  • Loading branch information
VictorAvelar authored Mar 23, 2022
2 parents cab24a0 + 9604de2 commit 32b605b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
12 changes: 8 additions & 4 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -780,10 +780,12 @@ const (
DecaudeuKaart GiftCardIssuer = "decadeaukaart"
DelokaleDecauKaart GiftCardIssuer = "delokalecadeaukaart"
Dinercadeau GiftCardIssuer = "dinercadeau"
Doenkadotickets GiftCardIssuer = "doenkadotickets"
Fashioncheque GiftCardIssuer = "fashioncheque"
Festivalcadeau GiftCardIssuer = "festivalcadeau"
Good4fun GiftCardIssuer = "good4fun"
HuistuinCadeauKaart GiftCardIssuer = "huistuincadeaukaart"
JewelCard GiftCardIssuer = "jewelcard"
KlusCadeu GiftCardIssuer = "kluscadeau"
Kunstencultuurcadeaukaart GiftCardIssuer = "kunstencultuurcadeaukaart"
Nationalebioscoopbon GiftCardIssuer = "nationalebioscoopbon"
Expand All @@ -801,6 +803,7 @@ const (
Vvvdinercheque GiftCardIssuer = "vvvdinercheque"
Vvvlekkerweg GiftCardIssuer = "vvvlekkerweg"
Webshopgiftcard GiftCardIssuer = "webshopgiftcard"
Wijncadeukaart GiftCardIssuer = "wijncadeaukaart"
Yourgift GiftCardIssuer = "yourgift"
)
```
Expand Down Expand Up @@ -1016,6 +1019,7 @@ Locale represents a country and language in ISO-15897 format.
```go
const (
English Locale = "en_US"
EnglishGB Locale = "en_GB"
Dutch Locale = "nl_NL"
DutchBelgium Locale = "nl_BE"
French Locale = "fr_FR"
Expand Down Expand Up @@ -1806,10 +1810,10 @@ See: https://docs.mollie.com/reference/v2/organizations-api/get-partner

```go
type PaginationLinks struct {
Self URL `json:"self,omitempty"`
Previous URL `json:"previous,omitempty"`
Next URL `json:"next,omitempty"`
Documentation URL `json:"documentation,omitempty"`
Self *URL `json:"self,omitempty"`
Previous *URL `json:"previous,omitempty"`
Next *URL `json:"next,omitempty"`
Documentation *URL `json:"documentation,omitempty"`
}
```

Expand Down
1 change: 1 addition & 0 deletions docs/v3-upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
- Subscriptions
- Errors now use the `mollie.BaseError` type to provide better error reporting.
- The type `mollie.Error` is removed from the codebase.
- PaginationLinks changed to pointers.

## Other changes

Expand Down
8 changes: 4 additions & 4 deletions mollie/common_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ type URL struct {

// PaginationLinks describes the hal component of paginated responses.
type PaginationLinks struct {
Self URL `json:"self,omitempty"`
Previous URL `json:"previous,omitempty"`
Next URL `json:"next,omitempty"`
Documentation URL `json:"documentation,omitempty"`
Self *URL `json:"self,omitempty"`
Previous *URL `json:"previous,omitempty"`
Next *URL `json:"next,omitempty"`
Documentation *URL `json:"documentation,omitempty"`
}

// CategoryCode specifies an industry or category.
Expand Down

0 comments on commit 32b605b

Please sign in to comment.