|
| 1 | +// File generated from our OpenAPI spec |
| 2 | + |
| 3 | +declare module 'stripe' { |
| 4 | + namespace Stripe { |
| 5 | + namespace Billing { |
| 6 | + /** |
| 7 | + * The MeterErrorReport object. |
| 8 | + */ |
| 9 | + interface MeterErrorReport { |
| 10 | + /** |
| 11 | + * Unique identifier for the object. |
| 12 | + */ |
| 13 | + id: string; |
| 14 | + |
| 15 | + /** |
| 16 | + * String representing the object's type. Objects of the same type share the same value. |
| 17 | + */ |
| 18 | + object: 'billing.meter_error_report'; |
| 19 | + |
| 20 | + reason: MeterErrorReport.Reason; |
| 21 | + |
| 22 | + /** |
| 23 | + * The related objects about the error |
| 24 | + */ |
| 25 | + related_object: MeterErrorReport.RelatedObject | null; |
| 26 | + |
| 27 | + /** |
| 28 | + * Summary of invalid events |
| 29 | + */ |
| 30 | + summary: string; |
| 31 | + |
| 32 | + /** |
| 33 | + * Time when validation ended. Measured in seconds since the Unix epoch |
| 34 | + */ |
| 35 | + validation_end: number; |
| 36 | + |
| 37 | + /** |
| 38 | + * Time when validation started. Measured in seconds since the Unix epoch |
| 39 | + */ |
| 40 | + validation_start: number; |
| 41 | + } |
| 42 | + |
| 43 | + namespace MeterErrorReport { |
| 44 | + interface Reason { |
| 45 | + /** |
| 46 | + * The number of errors generated |
| 47 | + */ |
| 48 | + error_count: number; |
| 49 | + |
| 50 | + /** |
| 51 | + * More information about errors |
| 52 | + */ |
| 53 | + error_types: Array<Reason.ErrorType>; |
| 54 | + } |
| 55 | + |
| 56 | + namespace Reason { |
| 57 | + interface ErrorType { |
| 58 | + sample_errors: Array<ErrorType.SampleError>; |
| 59 | + } |
| 60 | + |
| 61 | + namespace ErrorType { |
| 62 | + interface SampleError { |
| 63 | + api_request: SampleError.ApiRequest | null; |
| 64 | + |
| 65 | + /** |
| 66 | + * message of the error |
| 67 | + */ |
| 68 | + error_message: string; |
| 69 | + } |
| 70 | + |
| 71 | + namespace SampleError { |
| 72 | + interface ApiRequest { |
| 73 | + /** |
| 74 | + * Unique identifier for the object. |
| 75 | + */ |
| 76 | + id: string; |
| 77 | + |
| 78 | + /** |
| 79 | + * idempotency_key of the request |
| 80 | + */ |
| 81 | + idempotency_key: string; |
| 82 | + } |
| 83 | + } |
| 84 | + } |
| 85 | + } |
| 86 | + |
| 87 | + interface RelatedObject { |
| 88 | + /** |
| 89 | + * Unique identifier for the object. |
| 90 | + */ |
| 91 | + id: string; |
| 92 | + |
| 93 | + /** |
| 94 | + * The type of meter error related object. Should be 'meter' |
| 95 | + */ |
| 96 | + object: string; |
| 97 | + |
| 98 | + /** |
| 99 | + * The url of the meter object |
| 100 | + */ |
| 101 | + url: string; |
| 102 | + } |
| 103 | + } |
| 104 | + } |
| 105 | + } |
| 106 | +} |
0 commit comments