From fc3ffe5b609cc7971112dd6483366e06685123f2 Mon Sep 17 00:00:00 2001 From: uwevil <6716371+uwevil@users.noreply.github.com> Date: Fri, 25 Feb 2022 09:08:14 +0100 Subject: [PATCH] fix typing close #234 (#235) --- subscription.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subscription.go b/subscription.go index efdb7e4..8c5afa2 100644 --- a/subscription.go +++ b/subscription.go @@ -68,7 +68,7 @@ type ( SharedListResponse } - CaptureReqeust struct { + CaptureRequest struct { Note string `json:"note"` CaptureType CaptureType `json:"capture_type"` Amount Money `json:"amount"` @@ -151,7 +151,7 @@ func (c *Client) CancelSubscription(ctx context.Context, subscriptionId, cancelR // Captures an authorized payment from the subscriber on the subscription. // Doc: https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions_capture // Endpoint: POST /v1/billing/subscriptions/{id}/capture -func (c *Client) CaptureSubscription(ctx context.Context, subscriptionId string, request CaptureReqeust) (*SubscriptionCaptureResponse, error) { +func (c *Client) CaptureSubscription(ctx context.Context, subscriptionId string, request CaptureRequest) (*SubscriptionCaptureResponse, error) { req, err := c.NewRequest(ctx, http.MethodPost, fmt.Sprintf("%s/v1/billing/subscriptions/%s/capture", c.APIBase, subscriptionId), request) response := &SubscriptionCaptureResponse{} if err != nil {