Skip to content

Commit

Permalink
Merge pull request #303 from snake-eaterr/ndebit-in-userinfo
Browse files Browse the repository at this point in the history
userinfo includes ndebit
  • Loading branch information
shocknet-justin authored Sep 18, 2024
2 parents 91028c7 + bf384d5 commit 0f45a13
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Api/pub/autogenerated/ts/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2575,6 +2575,7 @@ export const UseInviteLinkRequestValidate = (o?: UseInviteLinkRequest, opts: Use
export type UserInfo = {
balance: number
max_withdrawable: number
ndebit: string
network_max_fee_bps: number
network_max_fee_fixed: number
noffer: string
Expand All @@ -2587,6 +2588,7 @@ export type UserInfoOptions = OptionsBaseMessage & {
checkOptionalsAreSet?: []
balance_CustomCheck?: (v: number) => boolean
max_withdrawable_CustomCheck?: (v: number) => boolean
ndebit_CustomCheck?: (v: string) => boolean
network_max_fee_bps_CustomCheck?: (v: number) => boolean
network_max_fee_fixed_CustomCheck?: (v: number) => boolean
noffer_CustomCheck?: (v: string) => boolean
Expand All @@ -2604,6 +2606,9 @@ export const UserInfoValidate = (o?: UserInfo, opts: UserInfoOptions = {}, path:
if (typeof o.max_withdrawable !== 'number') return new Error(`${path}.max_withdrawable: is not a number`)
if (opts.max_withdrawable_CustomCheck && !opts.max_withdrawable_CustomCheck(o.max_withdrawable)) return new Error(`${path}.max_withdrawable: custom check failed`)

if (typeof o.ndebit !== 'string') return new Error(`${path}.ndebit: is not a string`)
if (opts.ndebit_CustomCheck && !opts.ndebit_CustomCheck(o.ndebit)) return new Error(`${path}.ndebit: custom check failed`)

if (typeof o.network_max_fee_bps !== 'number') return new Error(`${path}.network_max_fee_bps: is not a number`)
if (opts.network_max_fee_bps_CustomCheck && !opts.network_max_fee_bps_CustomCheck(o.network_max_fee_bps)) return new Error(`${path}.network_max_fee_bps: custom check failed`)

Expand Down

0 comments on commit 0f45a13

Please sign in to comment.