chore(types,utils): fixes to TSDocs for HTTP types and payment provider (#12102)

This commit is contained in:
Shahed Nasser
2025-04-07 16:08:39 +03:00
committed by GitHub
parent 1377eaadcd
commit 2be03d0d39
2 changed files with 10 additions and 0 deletions

View File

@@ -486,6 +486,11 @@ export abstract class AbstractPaymentProvider<TConfig = Record<string, unknown>>
* ): Promise<UpdatePaymentOutput> {
* const { amount, currency_code, context } = input
* const externalId = input.data?.id
*
* // Validate context.customer
* if (!context || !context.customer) {
* throw new Error("Context must include a valid customer.");
* }
*
* // assuming you have a client that updates the payment
* const response = await this.client.update(