|
| 1 | +export namespace OutgoingPaymentsStatic { |
| 2 | + /** |
| 3 | + * Outgoing Payment Status |
| 4 | + */ |
| 5 | + export enum OutgoingPaymentStatus { |
| 6 | + DOWNLOADED = 'DOWNLOADED', |
| 7 | + OPEN = 'OPEN', |
| 8 | + RECONCILED = 'RECONCILED', |
| 9 | + CANCELLED = 'CANCELLED', |
| 10 | + UPLOADED = 'UPLOADED', |
| 11 | + REJECTED = 'REJECTED', |
| 12 | + } |
| 13 | + |
| 14 | + /** |
| 15 | + * Outgoing Payment Type |
| 16 | + */ |
| 17 | + export enum OutgoingPaymentType { |
| 18 | + IBAN = 'IBAN', |
| 19 | + MANUAL = 'MANUAL', |
| 20 | + CASH_DISCOUNT = 'CASH_DISCOUNT', |
| 21 | + QR = 'QR', |
| 22 | + } |
| 23 | + |
| 24 | + /** |
| 25 | + * Fee Type |
| 26 | + */ |
| 27 | + export enum FeeType { |
| 28 | + BY_SENDER = 'BY_SENDER', |
| 29 | + BY_RECEIVER = 'BY_RECEIVER', |
| 30 | + BREAKDOWN = 'BREAKDOWN', |
| 31 | + NO_FEE = 'NO_FEE', |
| 32 | + } |
| 33 | + |
| 34 | + /** |
| 35 | + * Outgoing Payment |
| 36 | + */ |
| 37 | + export interface OutgoingPayment { |
| 38 | + id: string; |
| 39 | + status: OutgoingPaymentStatus | string; |
| 40 | + created_at: string; |
| 41 | + bill_id: string; |
| 42 | + payment_type: OutgoingPaymentType | string; |
| 43 | + execution_date: string; |
| 44 | + amount: number; |
| 45 | + currency_code: string; |
| 46 | + exchange_rate: number; |
| 47 | + note?: string; |
| 48 | + sender_bank_account_id?: number; |
| 49 | + sender_iban?: string; |
| 50 | + sender_name?: string; |
| 51 | + sender_street?: string; |
| 52 | + sender_house_no?: string; |
| 53 | + sender_city?: string; |
| 54 | + sender_postcode?: string; |
| 55 | + sender_country_code?: string; |
| 56 | + sender_bc_no?: string; |
| 57 | + sender_bank_no?: string; |
| 58 | + sender_bank_name?: string; |
| 59 | + receiver_iban?: string; |
| 60 | + receiver_name?: string; |
| 61 | + receiver_street?: string; |
| 62 | + receiver_house_no?: string; |
| 63 | + receiver_city?: string; |
| 64 | + receiver_postcode?: string; |
| 65 | + receiver_country_code?: string; |
| 66 | + receiver_bc_no?: string; |
| 67 | + receiver_bank_no?: string; |
| 68 | + receiver_bank_name?: string; |
| 69 | + fee_type?: FeeType | string; |
| 70 | + is_salary_payment: boolean; |
| 71 | + reference_no?: string; |
| 72 | + message?: string; |
| 73 | + booking_text?: string; |
| 74 | + banking_payment_id?: string; |
| 75 | + banking_payment_entry_id?: string; |
| 76 | + transaction_id?: string; |
| 77 | + } |
| 78 | + |
| 79 | + /** |
| 80 | + * Outgoing Payment Create |
| 81 | + */ |
| 82 | + export interface OutgoingPaymentCreate { |
| 83 | + bill_id: string; |
| 84 | + payment_type: OutgoingPaymentType | string; |
| 85 | + execution_date: string; |
| 86 | + amount: number; |
| 87 | + currency_code: string; |
| 88 | + exchange_rate: number; |
| 89 | + note?: string; |
| 90 | + sender_bank_account_id?: number; |
| 91 | + sender_iban?: string; |
| 92 | + sender_name?: string; |
| 93 | + sender_street?: string; |
| 94 | + sender_house_no?: string; |
| 95 | + sender_city?: string; |
| 96 | + sender_postcode?: string; |
| 97 | + sender_country_code?: string; |
| 98 | + sender_bc_no?: string; |
| 99 | + sender_bank_no?: string; |
| 100 | + sender_bank_name?: string; |
| 101 | + receiver_iban?: string; |
| 102 | + receiver_name?: string; |
| 103 | + receiver_street?: string; |
| 104 | + receiver_house_no?: string; |
| 105 | + receiver_city?: string; |
| 106 | + receiver_postcode?: string; |
| 107 | + receiver_country_code?: string; |
| 108 | + receiver_bc_no?: string; |
| 109 | + receiver_bank_no?: string; |
| 110 | + receiver_bank_name?: string; |
| 111 | + fee_type?: FeeType | string; |
| 112 | + is_salary_payment: boolean; |
| 113 | + reference_no?: string; |
| 114 | + message?: string; |
| 115 | + booking_text?: string; |
| 116 | + } |
| 117 | + |
| 118 | + /** |
| 119 | + * Outgoing Payment Update |
| 120 | + */ |
| 121 | + export interface OutgoingPaymentUpdate { |
| 122 | + payment_id: string; |
| 123 | + execution_date: string; |
| 124 | + amount: number; |
| 125 | + fee_type?: FeeType | string; |
| 126 | + is_salary_payment: boolean; |
| 127 | + reference_no?: string | null; |
| 128 | + message?: string | null; |
| 129 | + receiver_iban?: string; |
| 130 | + receiver_name?: string; |
| 131 | + receiver_street?: string; |
| 132 | + receiver_house_no?: string; |
| 133 | + receiver_city?: string; |
| 134 | + receiver_postcode?: string; |
| 135 | + receiver_country_code?: string; |
| 136 | + } |
| 137 | + |
| 138 | + /** |
| 139 | + * List Options |
| 140 | + */ |
| 141 | + export interface ListOptions { |
| 142 | + bill_id: string; |
| 143 | + limit?: number; |
| 144 | + page?: number; |
| 145 | + order?: 'asc' | 'desc'; |
| 146 | + sort?: string; |
| 147 | + } |
| 148 | +} |
0 commit comments