0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Renamed StripeService -> StripeAPI

no-issue

This module is going to encapsulate all of the Stripe related logic, so
I'm renaming this file to be a little more specific about what it
relates to. Essentially this module will export a Stripe Service, and
this file is just one part of that.
This commit is contained in:
Fabien "egg" O'Carroll 2022-01-11 18:47:59 +02:00
parent c120490a00
commit 00ec7157a6

View file

@ -16,7 +16,7 @@ const STRIPE_API_VERSION = '2020-08-27';
*/
/**
* @typedef {object} IStripeServiceConfig
* @typedef {object} IStripeAPIConfig
* @prop {string} secretKey
* @prop {string} publicKey
* @prop {object} appInfo
@ -27,12 +27,12 @@ const STRIPE_API_VERSION = '2020-08-27';
* @prop {boolean} enablePromoCodes
*/
module.exports = class StripeService {
module.exports = class StripeAPI {
/**
* StripeService
* StripeAPI
*
* @param {object} params
* @param {IStripeServiceConfig} params.config
* @param {IStripeAPIConfig} params.config
*/
constructor({config}) {
/** @type {Stripe} */
@ -52,7 +52,7 @@ module.exports = class StripeService {
}
/**
* @param {IStripeServiceConfig} config
* @param {IStripeAPIConfig} config
* @returns {void}
*/
configure(config) {