diff --git a/reports.go b/reports.go index 77699a1..d789378 100644 --- a/reports.go +++ b/reports.go @@ -16,6 +16,13 @@ var ErrReportCreationLimitExceeded = &paddleerr.Error{ Type: paddleerr.ErrorTypeRequestError, } +// ErrConcurrentReportGenerationNotAllowed represents a `concurrent_report_generation_not_allowed` error. +// See https://developer.paddle.com/errors/reports/concurrent_report_generation_not_allowed for more information. +var ErrConcurrentReportGenerationNotAllowed = &paddleerr.Error{ + Code: "concurrent_report_generation_not_allowed", + Type: paddleerr.ErrorTypeRequestError, +} + // ErrReportNotReady represents a `report_not_ready` error. // See https://developer.paddle.com/errors/reports/report_not_ready for more information. var ErrReportNotReady = &paddleerr.Error{ diff --git a/shared.go b/shared.go index e39776f..2e54459 100644 --- a/shared.go +++ b/shared.go @@ -38,6 +38,13 @@ var ErrAuthenticationMalformed = &paddleerr.Error{ Type: paddleerr.ErrorTypeRequestError, } +// ErrInvalidClientToken represents a `invalid_client_token` error. +// See https://developer.paddle.com/errors/shared/invalid_client_token for more information. +var ErrInvalidClientToken = &paddleerr.Error{ + Code: "invalid_client_token", + Type: paddleerr.ErrorTypeRequestError, +} + // ErrInvalidToken represents a `invalid_token` error. // See https://developer.paddle.com/errors/shared/invalid_token for more information. var ErrInvalidToken = &paddleerr.Error{ diff --git a/subscriptions.go b/subscriptions.go index 1875755..4ad9b9d 100644 --- a/subscriptions.go +++ b/subscriptions.go @@ -366,6 +366,13 @@ var ErrSubscriptionArchivedDiscountApplicationAttempt = &paddleerr.Error{ Type: paddleerr.ErrorTypeRequestError, } +// ErrSubscriptionMaximumNumberOfLineItemsReached represents a `subscription_maximum_number_of_line_items_reached` error. +// See https://developer.paddle.com/errors/subscriptions/subscription_maximum_number_of_line_items_reached for more information. +var ErrSubscriptionMaximumNumberOfLineItemsReached = &paddleerr.Error{ + Code: "subscription_maximum_number_of_line_items_reached", + Type: paddleerr.ErrorTypeRequestError, +} + // SubscriptionStatus: Status of this subscription. Set automatically by Paddle. Use the pause subscription or cancel subscription operations to change.. type SubscriptionStatus string diff --git a/transactions.go b/transactions.go index f78c190..4c747ee 100644 --- a/transactions.go +++ b/transactions.go @@ -275,6 +275,20 @@ var ErrTransactionCannotBeRevisedWithInvalidTaxIdentifier = &paddleerr.Error{ Type: paddleerr.ErrorTypeRequestError, } +// ErrTransactionCannotBeRevisedWithTaxHigherThanGrandTotal represents a `transaction_cannot_be_revised_with_tax_higher_than_grand_total` error. +// See https://developer.paddle.com/errors/transactions/transaction_cannot_be_revised_with_tax_higher_than_grand_total for more information. +var ErrTransactionCannotBeRevisedWithTaxHigherThanGrandTotal = &paddleerr.Error{ + Code: "transaction_cannot_be_revised_with_tax_higher_than_grand_total", + Type: paddleerr.ErrorTypeRequestError, +} + +// ErrTransactionMaximumNumberOfLineItemsReached represents a `transaction_maximum_number_of_line_items_reached` error. +// See https://developer.paddle.com/errors/transactions/transaction_maximum_number_of_line_items_reached for more information. +var ErrTransactionMaximumNumberOfLineItemsReached = &paddleerr.Error{ + Code: "transaction_maximum_number_of_line_items_reached", + Type: paddleerr.ErrorTypeRequestError, +} + // AdjustmentTotalsBreakdown: Breakdown of the total adjustments by adjustment action. type AdjustmentTotalsBreakdown struct { // Credit: Total amount of credit adjustments.