|
@@ -32,6 +32,12 @@ class HasNoAdditionalLicenseWhenManuallyCollectedError extends OError {}
|
|
|
|
|
|
|
|
class InvalidTaxIdError extends OError {}
|
|
class InvalidTaxIdError extends OError {}
|
|
|
|
|
|
|
|
|
|
+class StripeClientIdempotencyKeyInUseError extends OError {
|
|
|
|
|
+ constructor() {
|
|
|
|
|
+ super('Stripe idempotency key was already in use')
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* @typedef {Object} PaymentActionRequiredInfo
|
|
* @typedef {Object} PaymentActionRequiredInfo
|
|
|
* @property {string} PaymentActionRequiredInfo.clientSecret
|
|
* @property {string} PaymentActionRequiredInfo.clientSecret
|
|
@@ -75,4 +81,5 @@ module.exports = {
|
|
|
HasPastDueInvoiceError,
|
|
HasPastDueInvoiceError,
|
|
|
HasNoAdditionalLicenseWhenManuallyCollectedError,
|
|
HasNoAdditionalLicenseWhenManuallyCollectedError,
|
|
|
InvalidTaxIdError,
|
|
InvalidTaxIdError,
|
|
|
|
|
+ StripeClientIdempotencyKeyInUseError,
|
|
|
}
|
|
}
|