getAccounts
احصل على جميع حسابات الدفع كمصفوفة.
الوصف
تقوم هذه الطريقة بالحصول على حساب الدفع كمصفوفة. إنها تعيد Promise يتم حله إلى كائن حساب الدفع.
Payments.getAccounts();
أمثلة
مثال بسيط
const response = await Payments.getAccounts();
مثال على الاستجابة
[
{
"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": "Cash"
},
"identifier": "cash",
"type": "custom",
"isVisible": true,
"isUsed": true
}
]
مخطط الاستجابة
ا لمخطط: IAccountsEntity
id: number
معرف الكائن.
مثال: 12345
localizeInfos: ILocalizeInfo
وصف Json لكائن حساب الدفع.
identifier: string
معرف نصي لحقل التسجيل.
مثال: "payment_12345"
type: 'stripe' | 'custom'
يمكن أن يكون النوع 'stripe' أو 'custom'.
مثال: 'stripe'
isVisible: boolean
مؤشر الرؤية لحساب الدفع.
مثال: true
isUsed: boolean
مؤشر الاستخدام لحساب الدفع.
مثال: false