@@ -324,14 +324,6 @@ func (c *v3Client) GetCustomerEntitlementAccess(customerID string) (int, *apiv3.
324324 return decodeTyped [apiv3.ListCustomerEntitlementAccessResponseData ](c , status , raw , problem , http .StatusOK )
325325}
326326
327- // CreateCreditGrant posts a credit grant for the given customer. customerID is
328- // the customer's ULID. Returns the decoded grant on 201, or (status, nil,
329- // problem) otherwise so error-path tests can assert the status and problem body.
330- func (c * v3Client ) CreateCreditGrant (customerID string , body apiv3.CreateCreditGrantRequest ) (int , * apiv3.BillingCreditGrant , * v3Problem ) {
331- status , raw , problem := c .do (http .MethodPost , "/customers/" + customerID + "/credits/grants" , body )
332- return decodeTyped [apiv3.BillingCreditGrant ](c , status , raw , problem , http .StatusCreated )
333- }
334-
335327// --- Subscriptions ---
336328
337329func (c * v3Client ) CreateSubscription (body apiv3.BillingSubscriptionCreate ) (int , * apiv3.BillingSubscription , * v3Problem ) {
@@ -365,6 +357,9 @@ func (c *v3Client) GetBillingInvoice(invoiceID string) (int, *apiv3.BillingInvoi
365357
366358// --- Credits ---
367359
360+ // CreateCreditGrant posts a credit grant for the given customer. customerID is
361+ // the customer's ULID. Returns the decoded grant on 201, or (status, nil,
362+ // problem) otherwise so error-path tests can assert the status and problem body.
368363func (c * v3Client ) CreateCreditGrant (customerID string , body apiv3.CreateCreditGrantRequest ) (int , * apiv3.BillingCreditGrant , * v3Problem ) {
369364 status , raw , problem := c .do (http .MethodPost , "/customers/" + customerID + "/credits/grants" , body )
370365 return decodeTyped [apiv3.BillingCreditGrant ](c , status , raw , problem , http .StatusCreated )
0 commit comments