chore(types,utils): fixes to TSDocs for HTTP types and payment provider (#12102)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user