feat: support paylinkks, compose and address. Added bitcart invoice as extensions

This commit is contained in:
Konrad Geletey 2024-09-05 22:40:11 +03:00
parent 3ca68c41e9
commit 9b9776f9ac
3 changed files with 51 additions and 2 deletions

View file

@ -1,8 +1,14 @@
type Spec = string import type { Compose } from "./compose.d.ts"
type Spec = string | Compose
export type Deployment = { export type Deployment = {
uuid: string
kind: string kind: string
spec: Spec spec: Spec
promocode?: string promocode?: string
} }
export type DeploymentResponse = Deployment & {
uuid: string
payLink: string
}

41
entities/extensions/bitcart.d.ts vendored Normal file
View file

@ -0,0 +1,41 @@
export type Invoice = {
metadata?: Object
created?: string
price: string
store_id: string
currency?: string
order_id?: string
notification_url?: string
redirect_url?: string
buyer_email?: string
promocode?: string
shipping_address?: string
notes?: string
status?: string
exception_status?: string
products?: string[] | Object[]
tx_hashes?: string[]
expiration?: number
sent_amount?: number
id: string
user_id: string
time_left: number
expiration_seconds: number
product_names?: Object
payments: Object[]
paid_date: string
payment_id: string
refund_id: string
paid_currency: string | null
discount: string | null
}
type TError = {
loc: string[] | number[]
msg: string
type: string
}
export type Errors = {
detail: TError[]
}

View file

@ -4,6 +4,8 @@ export type Provider = {
api: string api: string
description?: string description?: string
price: PriceTable price: PriceTable
/* address for receive payments */
address: string
} }
type Unit = { type Unit = {