From 9ba469fc73e8d1dc000046ce49a4ad4f0eb42064 Mon Sep 17 00:00:00 2001 From: VictorAvelar Date: Wed, 23 Mar 2022 17:54:07 +0100 Subject: [PATCH 1/2] Fix pagination links pointers --- mollie/common_types.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mollie/common_types.go b/mollie/common_types.go index 49fdf047..64db6962 100644 --- a/mollie/common_types.go +++ b/mollie/common_types.go @@ -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. From 9604de2ccb1dffe89d12ab3f4e13e621640f4cfd Mon Sep 17 00:00:00 2001 From: VictorAvelar Date: Wed, 23 Mar 2022 18:13:57 +0100 Subject: [PATCH 2/2] Update generated documentation and v3 release notes --- docs/README.md | 12 ++++++++---- docs/v3-upgrade.md | 1 + 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/README.md b/docs/README.md index d338118c..efbc8ab8 100644 --- a/docs/README.md +++ b/docs/README.md @@ -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" @@ -801,6 +803,7 @@ const ( Vvvdinercheque GiftCardIssuer = "vvvdinercheque" Vvvlekkerweg GiftCardIssuer = "vvvlekkerweg" Webshopgiftcard GiftCardIssuer = "webshopgiftcard" + Wijncadeukaart GiftCardIssuer = "wijncadeaukaart" Yourgift GiftCardIssuer = "yourgift" ) ``` @@ -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" @@ -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"` } ``` diff --git a/docs/v3-upgrade.md b/docs/v3-upgrade.md index 283689a7..6c8d51b7 100644 --- a/docs/v3-upgrade.md +++ b/docs/v3-upgrade.md @@ -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