feat: support paylinkks, compose and address. Added bitcart invoice as extensions
This commit is contained in:
parent
3ca68c41e9
commit
9b9776f9ac
3 changed files with 51 additions and 2 deletions
10
entities/deployment.d.ts
vendored
10
entities/deployment.d.ts
vendored
|
@ -1,8 +1,14 @@
|
|||
type Spec = string
|
||||
import type { Compose } from "./compose.d.ts"
|
||||
|
||||
type Spec = string | Compose
|
||||
|
||||
export type Deployment = {
|
||||
uuid: string
|
||||
kind: string
|
||||
spec: Spec
|
||||
promocode?: string
|
||||
}
|
||||
|
||||
export type DeploymentResponse = Deployment & {
|
||||
uuid: string
|
||||
payLink: string
|
||||
}
|
||||
|
|
41
entities/extensions/bitcart.d.ts
vendored
Normal file
41
entities/extensions/bitcart.d.ts
vendored
Normal 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[]
|
||||
}
|
2
entities/provider.d.ts
vendored
2
entities/provider.d.ts
vendored
|
@ -4,6 +4,8 @@ export type Provider = {
|
|||
api: string
|
||||
description?: string
|
||||
price: PriceTable
|
||||
/* address for receive payments */
|
||||
address: string
|
||||
}
|
||||
|
||||
type Unit = {
|
||||
|
|
Loading…
Reference in a new issue