mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Upper-case for all methods
This is required by the fetch-api. GitOrigin-RevId: 641c63ad2fe6b9d01c48c28faf669051de8f3271
This commit is contained in:
parent
2477ac6c50
commit
8af5fa0378
2 changed files with 5 additions and 5 deletions
|
@ -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(
|
||||||
|
|
|
@ -378,7 +378,7 @@ describe('RecurlyWrapper', function () {
|
||||||
.stub(this.RecurlyWrapper.promises, 'apiRequest')
|
.stub(this.RecurlyWrapper.promises, 'apiRequest')
|
||||||
.callsFake(options => {
|
.callsFake(options => {
|
||||||
options.url.should.equal(`coupons/${this.coupon_code}/redeem`)
|
options.url.should.equal(`coupons/${this.coupon_code}/redeem`)
|
||||||
options.method.should.equal('post')
|
options.method.should.equal('POST')
|
||||||
return {}
|
return {}
|
||||||
})
|
})
|
||||||
await this.RecurlyWrapper.promises.redeemCoupon(
|
await this.RecurlyWrapper.promises.redeemCoupon(
|
||||||
|
|
Loading…
Reference in a new issue