diff --git a/docs/README.md b/docs/README.md index bf1a087..d97f110 100644 --- a/docs/README.md +++ b/docs/README.md @@ -248,8 +248,10 @@ REST also implies a nice and clean structure for URLs or endpoints. This means y - [type PaymentLinksList](<#PaymentLinksList>) - [type PaymentLinksService](<#PaymentLinksService>) - [func \(pls \*PaymentLinksService\) Create\(ctx context.Context, p PaymentLink, opts \*PaymentLinkOptions\) \(res \*Response, np \*PaymentLink, err error\)](<#PaymentLinksService.Create>) + - [func \(pls \*PaymentLinksService\) Delete\(ctx context.Context, id string\) \(res \*Response, err error\)](<#PaymentLinksService.Delete>) - [func \(pls \*PaymentLinksService\) Get\(ctx context.Context, id string\) \(res \*Response, pl \*PaymentLink, err error\)](<#PaymentLinksService.Get>) - [func \(pls \*PaymentLinksService\) List\(ctx context.Context, opts \*PaymentLinkOptions\) \(res \*Response, pl \*PaymentLinksList, err error\)](<#PaymentLinksService.List>) + - [func \(pls \*PaymentLinksService\) Update\(ctx context.Context, id string, p UpdatePaymentLinks\) \(res \*Response, pl \*PaymentLink, err error\)](<#PaymentLinksService.Update>) - [type PaymentList](<#PaymentList>) - [type PaymentMethod](<#PaymentMethod>) - [type PaymentMethodDetails](<#PaymentMethodDetails>) @@ -383,6 +385,7 @@ REST also implies a nice and clean structure for URLs or endpoints. This means y - [type UpdateOrder](<#UpdateOrder>) - [type UpdateOrderLine](<#UpdateOrderLine>) - [type UpdatePayment](<#UpdatePayment>) +- [type UpdatePaymentLinks](<#UpdatePaymentLinks>) - [type UpdateShipment](<#UpdateShipment>) - [type UpdateSubscription](<#UpdateSubscription>) - [type UsedGiftCard](<#UsedGiftCard>) @@ -4178,7 +4181,7 @@ type PaymentLinksList struct { ``` -## type [PaymentLinksService]() +## type [PaymentLinksService]() PaymentLinksService operates over the payment link resource. @@ -4187,7 +4190,7 @@ type PaymentLinksService service ``` -### func \(\*PaymentLinksService\) [Create]() +### func \(\*PaymentLinksService\) [Create]() ```go func (pls *PaymentLinksService) Create(ctx context.Context, p PaymentLink, opts *PaymentLinkOptions) (res *Response, np *PaymentLink, err error) @@ -4197,8 +4200,19 @@ Create generates payment links that by default, unlike regular payments, do not See: https://docs.mollie.com/reference/v2/payment-links-api/create-payment-link + +### func \(\*PaymentLinksService\) [Delete]() + +```go +func (pls *PaymentLinksService) Delete(ctx context.Context, id string) (res *Response, err error) +``` + +Delete removes a payment link from the website profile. + +See: https://docs.mollie.com/reference/delete-payment-link + -### func \(\*PaymentLinksService\) [Get]() +### func \(\*PaymentLinksService\) [Get]() ```go func (pls *PaymentLinksService) Get(ctx context.Context, id string) (res *Response, pl *PaymentLink, err error) @@ -4209,7 +4223,7 @@ Get retrieves a single payment link object by its id/token. See: https://docs.mollie.com/reference/v2/payment-links-api/get-payment-link -### func \(\*PaymentLinksService\) [List]() +### func \(\*PaymentLinksService\) [List]() ```go func (pls *PaymentLinksService) List(ctx context.Context, opts *PaymentLinkOptions) (res *Response, pl *PaymentLinksList, err error) @@ -4219,6 +4233,17 @@ List retrieves all payments links created with the current website profile, orde See: https://docs.mollie.com/reference/v2/payment-links-api/list-payment-links + +### func \(\*PaymentLinksService\) [Update]() + +```go +func (pls *PaymentLinksService) Update(ctx context.Context, id string, p UpdatePaymentLinks) (res *Response, pl *PaymentLink, err error) +``` + +Update changes certain details of an existing payment link. + +See: https://docs.mollie.com/reference/update-payment-link + ## type [PaymentList]() @@ -6038,6 +6063,18 @@ type UpdatePayment struct { } ``` + +## type [UpdatePaymentLinks]() + +UpdatePaymentLinks describes certain details of an existing payment link that can be updated. + +```go +type UpdatePaymentLinks struct { + Description string `json:"description,omitempty"` + Archived bool `json:"archived,omitempty"` +} +``` + ## type [UpdateShipment]()