|
@@ -579,7 +579,7 @@ const promises = {
|
|
|
async attemptInvoiceCollection(invoiceId) {
|
|
async attemptInvoiceCollection(invoiceId) {
|
|
|
return await RecurlyWrapper.promises.apiRequest({
|
|
return await RecurlyWrapper.promises.apiRequest({
|
|
|
url: `invoices/${invoiceId}/collect`,
|
|
url: `invoices/${invoiceId}/collect`,
|
|
|
- method: 'put',
|
|
|
|
|
|
|
+ method: 'PUT',
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -639,7 +639,7 @@ const promises = {
|
|
|
try {
|
|
try {
|
|
|
await RecurlyWrapper.promises.apiRequest({
|
|
await RecurlyWrapper.promises.apiRequest({
|
|
|
url: 'coupons',
|
|
url: 'coupons',
|
|
|
- method: 'post',
|
|
|
|
|
|
|
+ method: 'POST',
|
|
|
body: requestBody,
|
|
body: requestBody,
|
|
|
})
|
|
})
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
@@ -677,7 +677,7 @@ const promises = {
|
|
|
try {
|
|
try {
|
|
|
await RecurlyWrapper.promises.apiRequest({
|
|
await RecurlyWrapper.promises.apiRequest({
|
|
|
url: `coupons/${couponCode}/redeem`,
|
|
url: `coupons/${couponCode}/redeem`,
|
|
|
- method: 'post',
|
|
|
|
|
|
|
+ method: 'POST',
|
|
|
body: requestBody,
|
|
body: requestBody,
|
|
|
})
|
|
})
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
@@ -703,7 +703,7 @@ const promises = {
|
|
|
await RecurlyWrapper.promises.apiRequest({
|
|
await RecurlyWrapper.promises.apiRequest({
|
|
|
url: `subscriptions/${subscriptionId}/postpone`,
|
|
url: `subscriptions/${subscriptionId}/postpone`,
|
|
|
qs: { bulk: false, next_bill_date: nextRenewalDate },
|
|
qs: { bulk: false, next_bill_date: nextRenewalDate },
|
|
|
- method: 'put',
|
|
|
|
|
|
|
+ method: 'PUT',
|
|
|
})
|
|
})
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
logger.warn(
|
|
logger.warn(
|