Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | /* tslint:disable */ /* eslint-disable */ /** * Octane API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; import { LineItems, LineItemsFromJSON, LineItemsFromJSONTyped, LineItemsToJSON, } from './LineItems'; /** * * @export * @interface Invoice */ export interface Invoice { /** * Tax amount applied to subtotal * @type {number} * @memberof Invoice */ taxAmount?: number; /** * * @type {string} * @memberof Invoice */ pdfUrl?: string; /** * Non-empty string if there was an error while processing payment * @type {string} * @memberof Invoice */ paymentError?: string; /** * The number of retries done to process the payment * @type {number} * @memberof Invoice */ paymentRetryAttempt?: number; /** * The number of retries done to send the invoice * @type {number} * @memberof Invoice */ invoiceRetryAttempt?: number; /** * Amount due before any credits are applied * @type {number} * @memberof Invoice */ subTotal?: number; /** * The id of the invoice created in the payment processor. * @type {string} * @memberof Invoice */ externalInvoiceId?: string; /** * The id of the payment created in the payment processor. * @type {string} * @memberof Invoice */ externalPaymentId?: string; /** * False if not approved * @type {boolean} * @memberof Invoice */ isApproved?: boolean; /** * * @type {Date} * @memberof Invoice */ latestPaymentAttemptAt?: Date; /** * * @type {Date} * @memberof Invoice */ dueDate?: Date; /** * Earliest start time of line items covered by the invoice * @type {Date} * @memberof Invoice */ minItemStartTime?: Date; /** * The potentially permanent state this invoice can live in (e.g., ISSUED if the invoice has been issued to the customer) * @type {string} * @memberof Invoice */ status?: string; /** * The date the invoice will be issued to the end customer or forwarded to the payment processor. * @type {Date} * @memberof Invoice */ issueDate?: Date; /** * Any discount credits applied to the invoice * @type {number} * @memberof Invoice */ discountCredit?: number; /** * * @type {Array<LineItems>} * @memberof Invoice */ lineItems?: Array<LineItems>; /** * If there is an error processing this invoice, this field contains the error message. * @type {string} * @memberof Invoice */ statusError?: string; /** * Non-empty string if there was an error while sending out invoice * @type {string} * @memberof Invoice */ invoicingError?: string; /** * Name of the customer this invoice is for. * @type {string} * @memberof Invoice */ customerName?: string; /** * * @type {Date} * @memberof Invoice */ latestInvoiceAttemptAt?: Date; /** * [DEPRECATED] End time of the cycle in which the invoice was generated * @type {Date} * @memberof Invoice */ endTime?: Date; /** * False if not paid yet * @type {boolean} * @memberof Invoice */ isPaid?: boolean; /** * False if invoice has not been sent to the customer * @type {boolean} * @memberof Invoice */ isInvoiced?: boolean; /** * Latest end time of line items covered by the invoice * @type {Date} * @memberof Invoice */ maxItemEndTime?: Date; /** * The number of the invoice created in the payment processor. * @type {string} * @memberof Invoice */ externalInvoiceNumber?: string; /** * Total amount due * @type {number} * @memberof Invoice */ amountDue?: number; /** * [DEPRECATED] Start time of the cycle in which the invoice was generated * @type {Date} * @memberof Invoice */ startTime?: Date; /** * External unique 'uuid' identifier for this Invoice. * @type {string} * @memberof Invoice */ id?: string; } export function InvoiceFromJSON(json: any): Invoice { return InvoiceFromJSONTyped(json, false); } export function InvoiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Invoice { if ((json === undefined) || (json === null)) { return json; } return { 'taxAmount': !exists(json, 'tax_amount') ? undefined : json['tax_amount'], 'pdfUrl': !exists(json, 'pdf_url') ? undefined : json['pdf_url'], 'paymentError': !exists(json, 'payment_error') ? undefined : json['payment_error'], 'paymentRetryAttempt': !exists(json, 'payment_retry_attempt') ? undefined : json['payment_retry_attempt'], 'invoiceRetryAttempt': !exists(json, 'invoice_retry_attempt') ? undefined : json['invoice_retry_attempt'], 'subTotal': !exists(json, 'sub_total') ? undefined : json['sub_total'], 'externalInvoiceId': !exists(json, 'external_invoice_id') ? undefined : json['external_invoice_id'], 'externalPaymentId': !exists(json, 'external_payment_id') ? undefined : json['external_payment_id'], 'isApproved': !exists(json, 'is_approved') ? undefined : json['is_approved'], 'latestPaymentAttemptAt': !exists(json, 'latest_payment_attempt_at') ? undefined : (new Date(json['latest_payment_attempt_at'])), 'dueDate': !exists(json, 'due_date') ? undefined : (new Date(json['due_date'])), 'minItemStartTime': !exists(json, 'min_item_start_time') ? undefined : (new Date(json['min_item_start_time'])), 'status': !exists(json, 'status') ? undefined : json['status'], 'issueDate': !exists(json, 'issue_date') ? undefined : (new Date(json['issue_date'])), 'discountCredit': !exists(json, 'discount_credit') ? undefined : json['discount_credit'], 'lineItems': !exists(json, 'line_items') ? undefined : ((json['line_items'] as Array<any>).map(LineItemsFromJSON)), 'statusError': !exists(json, 'status_error') ? undefined : json['status_error'], 'invoicingError': !exists(json, 'invoicing_error') ? undefined : json['invoicing_error'], 'customerName': !exists(json, 'customer_name') ? undefined : json['customer_name'], 'latestInvoiceAttemptAt': !exists(json, 'latest_invoice_attempt_at') ? undefined : (new Date(json['latest_invoice_attempt_at'])), 'endTime': !exists(json, 'end_time') ? undefined : (new Date(json['end_time'])), 'isPaid': !exists(json, 'is_paid') ? undefined : json['is_paid'], 'isInvoiced': !exists(json, 'is_invoiced') ? undefined : json['is_invoiced'], 'maxItemEndTime': !exists(json, 'max_item_end_time') ? undefined : (new Date(json['max_item_end_time'])), 'externalInvoiceNumber': !exists(json, 'external_invoice_number') ? undefined : json['external_invoice_number'], 'amountDue': !exists(json, 'amount_due') ? undefined : json['amount_due'], 'startTime': !exists(json, 'start_time') ? undefined : (new Date(json['start_time'])), 'id': !exists(json, 'id') ? undefined : json['id'], }; } export function InvoiceToJSON(value?: Invoice | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'tax_amount': value.taxAmount, 'pdf_url': value.pdfUrl, 'payment_error': value.paymentError, 'payment_retry_attempt': value.paymentRetryAttempt, 'invoice_retry_attempt': value.invoiceRetryAttempt, 'sub_total': value.subTotal, 'external_invoice_id': value.externalInvoiceId, 'external_payment_id': value.externalPaymentId, 'is_approved': value.isApproved, 'latest_payment_attempt_at': value.latestPaymentAttemptAt === undefined ? undefined : (value.latestPaymentAttemptAt.toISOString()), 'due_date': value.dueDate === undefined ? undefined : (value.dueDate.toISOString()), 'min_item_start_time': value.minItemStartTime === undefined ? undefined : (value.minItemStartTime.toISOString()), 'status': value.status, 'issue_date': value.issueDate === undefined ? undefined : (value.issueDate.toISOString()), 'discount_credit': value.discountCredit, 'line_items': value.lineItems === undefined ? undefined : ((value.lineItems as Array<any>).map(LineItemsToJSON)), 'status_error': value.statusError, 'invoicing_error': value.invoicingError, 'customer_name': value.customerName, 'latest_invoice_attempt_at': value.latestInvoiceAttemptAt === undefined ? undefined : (value.latestInvoiceAttemptAt.toISOString()), 'end_time': value.endTime === undefined ? undefined : (value.endTime.toISOString()), 'is_paid': value.isPaid, 'is_invoiced': value.isInvoiced, 'max_item_end_time': value.maxItemEndTime === undefined ? undefined : (value.maxItemEndTime.toISOString()), 'external_invoice_number': value.externalInvoiceNumber, 'amount_due': value.amountDue, 'start_time': value.startTime === undefined ? undefined : (value.startTime.toISOString()), 'id': value.id, }; } |