getAccounts
Tüm ödeme hesaplarını dizi olarak al.
Açıklama
Bu yöntem, ödeme hesabını bir dizi olarak alır. Bir ödeme hesabı nesnesine çözülmekte olan bir Promise döner.
Ödemeler.getAccounts();
Örnekler
Minimal örnek
const response = await Payments.getAccounts();
Örnek yanıt
[
{
"id": 3,
"localizeInfos": {
"title": "Stripe"
},
"identifier": "stripe",
"type": "stripe",
"isVisible": true,
"isUsed": true
},
{
"id": 2,
"localizeInfos": {
"title": "PayPal"
},
"identifier": "paypal",
"type": "custom",
"isVisible": true,
"isUsed": false
},
{
"id": 1,
"localizeInfos": {
"title": "Nakit"
},
"identifier": "cash",
"type": "custom",
"isVisible": true,
"isUsed": true
}
]
Yanıt şeması
Şema: IAccountsEntity
id: number
Nesne tanımlayıcısı.
örnek: 12345
localizeInfos: ILocalizeInfo
Ödeme hesabı nesnesinin JSON tanımı.
identifier: string
Kayıt alanı için metin tanımlayıc ı.
örnek: "payment_12345"
type: 'stripe' | 'custom'
Tür 'stripe' veya 'custom' olabilir.
örnek: 'stripe'
isVisible: boolean
Ödeme hesabının görünürlük göstergesi.
örnek: true
isUsed: boolean
Ödeme hesabının kullanım göstergesi.
örnek: false