Options
All
  • Public
  • Public/Protected
  • All
Menu

Main method to create a new account. If called as an API customer, you can only create a trial account. Card info can only ever be plugged in through the DappBot web interface.

Index

Interfaces

Type aliases

Variables

Functions

Interfaces

Args

Args:

The token here is produced by Stripe on dapp.bot and cannot be created by external API customers. If it is not provided, then the new account is automatically created with a two-week free trial that allows one standard dapp.

Optional coupon

coupon: undefined | string

email

email: string

Optional metadata

metadata: undefined | object

name

name: string

plans

Optional token

token: undefined | string

Result

Result:

stripeId

stripeId: string

subscriptionId

subscriptionId: string

user

user: UserData | null

Type aliases

Response

Response: ApiResponse<Result>

Variables

Const HTTP

HTTP: POST = "POST"

Const Path

Path: string = paymentBasePath

Functions

isArgs

  • isArgs(val: any): boolean

newArgs

  • Factory to produce an Args object with empty strings for auth and a trial stripe plan. Useful for getting the correct shape as a value.

    Returns Args

Generated using TypeDoc