@bebapps/rapyd-sdk
Version:
An un-official [Rapyd](https://rapyd.net) SDK for Node.js.
23 lines (22 loc) • 762 B
text/typescript
export interface CreateSubscriptionRequest {
/**
* Determines the method of billing. For payout subscription, set to **pay_automatically**.
*/
billing: string;
/**
* Terminates the subscription at the end of the current billing period. Default is **false**.
*/
cancel_at_period_end?: boolean;
/**
* A JSON object defined by the client.
*/
metadata?: object;
/**
* Object containing fields of the Payout object. `amount` is taken from the plan. See also [Payout Object](ref:payout-object).
*/
payout_fields?: string;
/**
* An array containing one object that describes a subscription item. For details, see [Subscription Object - Disburse](ref:subscription-object-disburse).
*/
subscription_items?: string;
};