Separate qs out from url

GitOrigin-RevId: 8a1c45d3d71240e63f78f2f1920b324577eb7e6d
This commit is contained in:
andrew rumble 2024-07-09 11:26:48 +01:00 committed by Copybot
parent 709982ac65
commit 67cb9fc1b3

View file

@ -570,7 +570,8 @@ const promises = {
async getAccountPastDueInvoices(accountId) {
const { body } = await RecurlyWrapper.promises.apiRequest({
url: `accounts/${accountId}/invoices?state=past_due`,
url: `accounts/${accountId}/invoices`,
qs: { state: 'past_due' },
})
return await RecurlyWrapper.promises._parseInvoicesXml(body)
},
@ -700,7 +701,8 @@ const promises = {
)
try {
await RecurlyWrapper.promises.apiRequest({
url: `/subscriptions/${subscriptionId}/postpone?next_bill_date=${nextRenewalDate}&bulk=false`,
url: `subscriptions/${subscriptionId}/postpone`,
qs: { bulk: false, next_bill_date: nextRenewalDate },
method: 'put',
})
} catch (error) {