// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../../core/resource'; import * as CardPaymentsAPI from '../card-payments'; import { APIPromise } from '../../core/api-promise'; import { RequestOptions } from '../../internal/request-options'; export class CardIncrements extends APIResource { /** * Simulates the increment of an authorization by a card acquirer. An authorization * can be incremented multiple times. * * @example * ```ts * const cardPayment = * await client.simulations.cardIncrements.create({ * amount: 500, * card_payment_id: 'card_payment_nd3k2kacrqjli8482ave', * }); * ``` */ create(body: CardIncrementCreateParams, options?: RequestOptions): APIPromise { return this._client.post('/simulations/card_increments', { body, ...options }); } } export interface CardIncrementCreateParams { /** * The amount of the increment in minor units in the card authorization's currency. */ amount: number; /** * The identifier of the Card Payment to create an increment on. */ card_payment_id: string; /** * The identifier of the Event Subscription to use. If provided, will override the * default real time event subscription. Because you can only create one real time * decision event subscription, you can use this field to route events to any * specified event subscription for testing purposes. */ event_subscription_id?: string; } export declare namespace CardIncrements { export { type CardIncrementCreateParams as CardIncrementCreateParams }; }