@_henriquewilson/gabirubi-domain 1.4.21 → 1.4.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/model/integrada/order.d.mts +28 -28
- package/dist/model/integrada/order.d.ts +28 -28
- package/dist/model/iugu/iugu-invoice.d.mts +36 -36
- package/dist/model/iugu/iugu-invoice.d.ts +36 -36
- package/dist/model/journey.d.mts +109 -77
- package/dist/model/journey.d.ts +109 -77
- package/dist/model/journey.js +16 -11
- package/dist/model/journey.js.map +1 -1
- package/dist/model/journey.mjs +13 -12
- package/dist/model/journey.mjs.map +1 -1
- package/dist/model/melhorenvio/calculate.d.mts +8 -8
- package/dist/model/melhorenvio/calculate.d.ts +8 -8
- package/dist/model/melhorenvio/order.d.mts +2 -2
- package/dist/model/melhorenvio/order.d.ts +2 -2
- package/dist/model/store/shipping.d.mts +10 -10
- package/dist/model/store/shipping.d.ts +10 -10
- package/dist/model/subscription.model.d.mts +216 -216
- package/dist/model/subscription.model.d.ts +216 -216
- package/dist/model/user.model.d.mts +2 -2
- package/dist/model/user.model.d.ts +2 -2
- package/dist/test/activity.test.js +12 -11
- package/dist/test/activity.test.js.map +1 -1
- package/dist/test/activity.test.mjs +12 -11
- package/dist/test/activity.test.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -74,13 +74,13 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
74
74
|
}, "strip", z.ZodTypeAny, {
|
|
75
75
|
id: string;
|
|
76
76
|
description: string;
|
|
77
|
-
created_at: string;
|
|
78
77
|
notes: string;
|
|
78
|
+
created_at: string;
|
|
79
79
|
}, {
|
|
80
80
|
id: string;
|
|
81
81
|
description: string;
|
|
82
|
-
created_at: string;
|
|
83
82
|
notes: string;
|
|
83
|
+
created_at: string;
|
|
84
84
|
}>, "many">>>>;
|
|
85
85
|
credit_card_transaction: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
86
86
|
account_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -208,35 +208,29 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
208
208
|
id?: string | null | undefined;
|
|
209
209
|
description?: string | null | undefined;
|
|
210
210
|
price?: string | null | undefined;
|
|
211
|
-
quantity?: number | null | undefined;
|
|
212
|
-
created_at?: string | null | undefined;
|
|
213
211
|
updated_at?: string | null | undefined;
|
|
212
|
+
created_at?: string | null | undefined;
|
|
214
213
|
price_cents?: number | null | undefined;
|
|
214
|
+
quantity?: number | null | undefined;
|
|
215
215
|
}, {
|
|
216
216
|
id?: string | null | undefined;
|
|
217
217
|
description?: string | null | undefined;
|
|
218
218
|
price?: string | null | undefined;
|
|
219
|
-
quantity?: number | null | undefined;
|
|
220
|
-
created_at?: string | null | undefined;
|
|
221
219
|
updated_at?: string | null | undefined;
|
|
220
|
+
created_at?: string | null | undefined;
|
|
222
221
|
price_cents?: number | null | undefined;
|
|
222
|
+
quantity?: number | null | undefined;
|
|
223
223
|
}>>>>, "many">>>>;
|
|
224
224
|
early_payment_discounts: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>>>;
|
|
225
225
|
split_rules: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
226
226
|
}, "strip", z.ZodTypeAny, {
|
|
227
227
|
id: string;
|
|
228
|
-
status?: "pending" | "
|
|
229
|
-
discount?: string | null | undefined;
|
|
228
|
+
status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
|
|
230
229
|
email?: string | null | undefined;
|
|
231
|
-
|
|
232
|
-
total?: string | null | undefined;
|
|
233
|
-
created_at?: string | null | undefined;
|
|
234
|
-
updated_at?: string | null | undefined;
|
|
235
|
-
paid_at?: string | null | undefined;
|
|
236
|
-
canceled_at?: string | null | undefined;
|
|
237
|
-
expired_at?: string | null | undefined;
|
|
230
|
+
discount?: string | null | undefined;
|
|
238
231
|
paid?: string | null | undefined;
|
|
239
232
|
due_date?: string | null | undefined;
|
|
233
|
+
currency?: string | null | undefined;
|
|
240
234
|
discount_cents?: string | null | undefined;
|
|
241
235
|
items_total_cents?: number | null | undefined;
|
|
242
236
|
notification_url?: string | null | undefined;
|
|
@@ -245,6 +239,7 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
245
239
|
total_cents?: number | null | undefined;
|
|
246
240
|
total_paid_cents?: number | null | undefined;
|
|
247
241
|
taxes_paid_cents?: string | null | undefined;
|
|
242
|
+
paid_at?: string | null | undefined;
|
|
248
243
|
paid_cents?: number | null | undefined;
|
|
249
244
|
cc_emails?: string | null | undefined;
|
|
250
245
|
financial_return_date?: string | null | undefined;
|
|
@@ -277,6 +272,7 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
277
272
|
commission_cents?: string | null | undefined;
|
|
278
273
|
early_payment_discount?: boolean | null | undefined;
|
|
279
274
|
order_id?: string | null | undefined;
|
|
275
|
+
updated_at?: string | null | undefined;
|
|
280
276
|
credit_card_brand?: string | null | undefined;
|
|
281
277
|
credit_card_bin?: string | null | undefined;
|
|
282
278
|
credit_card_last_4?: string | null | undefined;
|
|
@@ -309,11 +305,12 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
309
305
|
variable: string;
|
|
310
306
|
}[] | null | undefined;
|
|
311
307
|
custom_variables?: any[] | null | undefined;
|
|
308
|
+
created_at?: string | null | undefined;
|
|
312
309
|
logs?: {
|
|
313
310
|
id: string;
|
|
314
311
|
description: string;
|
|
315
|
-
created_at: string;
|
|
316
312
|
notes: string;
|
|
313
|
+
created_at: string;
|
|
317
314
|
}[] | null | undefined;
|
|
318
315
|
credit_card_transaction?: string | null | undefined;
|
|
319
316
|
account_id?: string | null | undefined;
|
|
@@ -326,6 +323,7 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
326
323
|
customer_ref?: string | null | undefined;
|
|
327
324
|
customer_name?: string | null | undefined;
|
|
328
325
|
user_id?: string | null | undefined;
|
|
326
|
+
total?: string | null | undefined;
|
|
329
327
|
taxes_paid?: string | null | undefined;
|
|
330
328
|
total_paid?: string | null | undefined;
|
|
331
329
|
total_overpaid?: string | null | undefined;
|
|
@@ -350,9 +348,11 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
350
348
|
created_at_iso?: string | null | undefined;
|
|
351
349
|
authorized_at?: string | null | undefined;
|
|
352
350
|
authorized_at_iso?: string | null | undefined;
|
|
351
|
+
expired_at?: string | null | undefined;
|
|
353
352
|
expired_at_iso?: string | null | undefined;
|
|
354
353
|
refunded_at?: string | null | undefined;
|
|
355
354
|
refunded_at_iso?: string | null | undefined;
|
|
355
|
+
canceled_at?: string | null | undefined;
|
|
356
356
|
canceled_at_iso?: string | null | undefined;
|
|
357
357
|
protested_at?: string | null | undefined;
|
|
358
358
|
protested_at_iso?: string | null | undefined;
|
|
@@ -368,27 +368,21 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
368
368
|
id?: string | null | undefined;
|
|
369
369
|
description?: string | null | undefined;
|
|
370
370
|
price?: string | null | undefined;
|
|
371
|
-
quantity?: number | null | undefined;
|
|
372
|
-
created_at?: string | null | undefined;
|
|
373
371
|
updated_at?: string | null | undefined;
|
|
372
|
+
created_at?: string | null | undefined;
|
|
374
373
|
price_cents?: number | null | undefined;
|
|
374
|
+
quantity?: number | null | undefined;
|
|
375
375
|
} | null | undefined)[] | null | undefined;
|
|
376
376
|
early_payment_discounts?: unknown[] | null | undefined;
|
|
377
377
|
split_rules?: string | null | undefined;
|
|
378
378
|
}, {
|
|
379
379
|
id: string;
|
|
380
|
-
status?: "pending" | "
|
|
381
|
-
discount?: string | null | undefined;
|
|
380
|
+
status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
|
|
382
381
|
email?: string | null | undefined;
|
|
383
|
-
|
|
384
|
-
total?: string | null | undefined;
|
|
385
|
-
created_at?: string | null | undefined;
|
|
386
|
-
updated_at?: string | null | undefined;
|
|
387
|
-
paid_at?: string | null | undefined;
|
|
388
|
-
canceled_at?: string | null | undefined;
|
|
389
|
-
expired_at?: string | null | undefined;
|
|
382
|
+
discount?: string | null | undefined;
|
|
390
383
|
paid?: string | null | undefined;
|
|
391
384
|
due_date?: string | null | undefined;
|
|
385
|
+
currency?: string | null | undefined;
|
|
392
386
|
discount_cents?: string | null | undefined;
|
|
393
387
|
items_total_cents?: number | null | undefined;
|
|
394
388
|
notification_url?: string | null | undefined;
|
|
@@ -397,6 +391,7 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
397
391
|
total_cents?: number | null | undefined;
|
|
398
392
|
total_paid_cents?: number | null | undefined;
|
|
399
393
|
taxes_paid_cents?: string | null | undefined;
|
|
394
|
+
paid_at?: string | null | undefined;
|
|
400
395
|
paid_cents?: number | null | undefined;
|
|
401
396
|
cc_emails?: string | null | undefined;
|
|
402
397
|
financial_return_date?: string | null | undefined;
|
|
@@ -429,6 +424,7 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
429
424
|
commission_cents?: string | null | undefined;
|
|
430
425
|
early_payment_discount?: boolean | null | undefined;
|
|
431
426
|
order_id?: string | null | undefined;
|
|
427
|
+
updated_at?: string | null | undefined;
|
|
432
428
|
credit_card_brand?: string | null | undefined;
|
|
433
429
|
credit_card_bin?: string | null | undefined;
|
|
434
430
|
credit_card_last_4?: string | null | undefined;
|
|
@@ -461,11 +457,12 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
461
457
|
variable: string;
|
|
462
458
|
}[] | null | undefined;
|
|
463
459
|
custom_variables?: any[] | null | undefined;
|
|
460
|
+
created_at?: string | null | undefined;
|
|
464
461
|
logs?: {
|
|
465
462
|
id: string;
|
|
466
463
|
description: string;
|
|
467
|
-
created_at: string;
|
|
468
464
|
notes: string;
|
|
465
|
+
created_at: string;
|
|
469
466
|
}[] | null | undefined;
|
|
470
467
|
credit_card_transaction?: string | null | undefined;
|
|
471
468
|
account_id?: string | null | undefined;
|
|
@@ -478,6 +475,7 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
478
475
|
customer_ref?: string | null | undefined;
|
|
479
476
|
customer_name?: string | null | undefined;
|
|
480
477
|
user_id?: string | null | undefined;
|
|
478
|
+
total?: string | null | undefined;
|
|
481
479
|
taxes_paid?: string | null | undefined;
|
|
482
480
|
total_paid?: string | null | undefined;
|
|
483
481
|
total_overpaid?: string | null | undefined;
|
|
@@ -502,9 +500,11 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
502
500
|
created_at_iso?: string | null | undefined;
|
|
503
501
|
authorized_at?: string | null | undefined;
|
|
504
502
|
authorized_at_iso?: string | null | undefined;
|
|
503
|
+
expired_at?: string | null | undefined;
|
|
505
504
|
expired_at_iso?: string | null | undefined;
|
|
506
505
|
refunded_at?: string | null | undefined;
|
|
507
506
|
refunded_at_iso?: string | null | undefined;
|
|
507
|
+
canceled_at?: string | null | undefined;
|
|
508
508
|
canceled_at_iso?: string | null | undefined;
|
|
509
509
|
protested_at?: string | null | undefined;
|
|
510
510
|
protested_at_iso?: string | null | undefined;
|
|
@@ -520,10 +520,10 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
520
520
|
id?: string | null | undefined;
|
|
521
521
|
description?: string | null | undefined;
|
|
522
522
|
price?: string | null | undefined;
|
|
523
|
-
quantity?: number | null | undefined;
|
|
524
|
-
created_at?: string | null | undefined;
|
|
525
523
|
updated_at?: string | null | undefined;
|
|
524
|
+
created_at?: string | null | undefined;
|
|
526
525
|
price_cents?: number | null | undefined;
|
|
526
|
+
quantity?: number | null | undefined;
|
|
527
527
|
} | null | undefined)[] | null | undefined;
|
|
528
528
|
early_payment_discounts?: unknown[] | null | undefined;
|
|
529
529
|
split_rules?: string | null | undefined;
|
|
@@ -536,15 +536,15 @@ declare const IuguInvoiceVariablesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
536
536
|
plan: z.ZodString;
|
|
537
537
|
plan_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
538
538
|
}, "strip", z.ZodTypeAny, {
|
|
539
|
-
product: string;
|
|
540
539
|
product_id: string | number;
|
|
540
|
+
product: string;
|
|
541
541
|
recurrency: number;
|
|
542
542
|
plan: string;
|
|
543
543
|
plan_id: string | number;
|
|
544
544
|
coupon?: string | undefined;
|
|
545
545
|
}, {
|
|
546
|
-
product: string;
|
|
547
546
|
product_id: string | number;
|
|
547
|
+
product: string;
|
|
548
548
|
recurrency: number;
|
|
549
549
|
plan: string;
|
|
550
550
|
plan_id: string | number;
|
|
@@ -557,8 +557,8 @@ declare const IuguInvoiceVariablesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
557
557
|
plan: string;
|
|
558
558
|
planId: string | number;
|
|
559
559
|
}, {
|
|
560
|
-
product: string;
|
|
561
560
|
product_id: string | number;
|
|
561
|
+
product: string;
|
|
562
562
|
recurrency: number;
|
|
563
563
|
plan: string;
|
|
564
564
|
plan_id: string | number;
|
|
@@ -572,15 +572,15 @@ declare const PureIuguInvoiceVariablesSchema: z.ZodEffects<z.ZodEffects<z.ZodObj
|
|
|
572
572
|
plan: z.ZodString;
|
|
573
573
|
plan_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
574
574
|
}, "strip", z.ZodTypeAny, {
|
|
575
|
-
product: string;
|
|
576
575
|
product_id: string | number;
|
|
576
|
+
product: string;
|
|
577
577
|
recurrency: number;
|
|
578
578
|
plan: string;
|
|
579
579
|
plan_id: string | number;
|
|
580
580
|
coupon?: string | undefined;
|
|
581
581
|
}, {
|
|
582
|
-
product: string;
|
|
583
582
|
product_id: string | number;
|
|
583
|
+
product: string;
|
|
584
584
|
recurrency: number;
|
|
585
585
|
plan: string;
|
|
586
586
|
plan_id: string | number;
|
|
@@ -593,8 +593,8 @@ declare const PureIuguInvoiceVariablesSchema: z.ZodEffects<z.ZodEffects<z.ZodObj
|
|
|
593
593
|
plan: string;
|
|
594
594
|
planId: string | number;
|
|
595
595
|
}, {
|
|
596
|
-
product: string;
|
|
597
596
|
product_id: string | number;
|
|
597
|
+
product: string;
|
|
598
598
|
recurrency: number;
|
|
599
599
|
plan: string;
|
|
600
600
|
plan_id: string | number;
|
|
@@ -74,13 +74,13 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
74
74
|
}, "strip", z.ZodTypeAny, {
|
|
75
75
|
id: string;
|
|
76
76
|
description: string;
|
|
77
|
-
created_at: string;
|
|
78
77
|
notes: string;
|
|
78
|
+
created_at: string;
|
|
79
79
|
}, {
|
|
80
80
|
id: string;
|
|
81
81
|
description: string;
|
|
82
|
-
created_at: string;
|
|
83
82
|
notes: string;
|
|
83
|
+
created_at: string;
|
|
84
84
|
}>, "many">>>>;
|
|
85
85
|
credit_card_transaction: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
86
86
|
account_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -208,35 +208,29 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
208
208
|
id?: string | null | undefined;
|
|
209
209
|
description?: string | null | undefined;
|
|
210
210
|
price?: string | null | undefined;
|
|
211
|
-
quantity?: number | null | undefined;
|
|
212
|
-
created_at?: string | null | undefined;
|
|
213
211
|
updated_at?: string | null | undefined;
|
|
212
|
+
created_at?: string | null | undefined;
|
|
214
213
|
price_cents?: number | null | undefined;
|
|
214
|
+
quantity?: number | null | undefined;
|
|
215
215
|
}, {
|
|
216
216
|
id?: string | null | undefined;
|
|
217
217
|
description?: string | null | undefined;
|
|
218
218
|
price?: string | null | undefined;
|
|
219
|
-
quantity?: number | null | undefined;
|
|
220
|
-
created_at?: string | null | undefined;
|
|
221
219
|
updated_at?: string | null | undefined;
|
|
220
|
+
created_at?: string | null | undefined;
|
|
222
221
|
price_cents?: number | null | undefined;
|
|
222
|
+
quantity?: number | null | undefined;
|
|
223
223
|
}>>>>, "many">>>>;
|
|
224
224
|
early_payment_discounts: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>>>;
|
|
225
225
|
split_rules: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
226
226
|
}, "strip", z.ZodTypeAny, {
|
|
227
227
|
id: string;
|
|
228
|
-
status?: "pending" | "
|
|
229
|
-
discount?: string | null | undefined;
|
|
228
|
+
status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
|
|
230
229
|
email?: string | null | undefined;
|
|
231
|
-
|
|
232
|
-
total?: string | null | undefined;
|
|
233
|
-
created_at?: string | null | undefined;
|
|
234
|
-
updated_at?: string | null | undefined;
|
|
235
|
-
paid_at?: string | null | undefined;
|
|
236
|
-
canceled_at?: string | null | undefined;
|
|
237
|
-
expired_at?: string | null | undefined;
|
|
230
|
+
discount?: string | null | undefined;
|
|
238
231
|
paid?: string | null | undefined;
|
|
239
232
|
due_date?: string | null | undefined;
|
|
233
|
+
currency?: string | null | undefined;
|
|
240
234
|
discount_cents?: string | null | undefined;
|
|
241
235
|
items_total_cents?: number | null | undefined;
|
|
242
236
|
notification_url?: string | null | undefined;
|
|
@@ -245,6 +239,7 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
245
239
|
total_cents?: number | null | undefined;
|
|
246
240
|
total_paid_cents?: number | null | undefined;
|
|
247
241
|
taxes_paid_cents?: string | null | undefined;
|
|
242
|
+
paid_at?: string | null | undefined;
|
|
248
243
|
paid_cents?: number | null | undefined;
|
|
249
244
|
cc_emails?: string | null | undefined;
|
|
250
245
|
financial_return_date?: string | null | undefined;
|
|
@@ -277,6 +272,7 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
277
272
|
commission_cents?: string | null | undefined;
|
|
278
273
|
early_payment_discount?: boolean | null | undefined;
|
|
279
274
|
order_id?: string | null | undefined;
|
|
275
|
+
updated_at?: string | null | undefined;
|
|
280
276
|
credit_card_brand?: string | null | undefined;
|
|
281
277
|
credit_card_bin?: string | null | undefined;
|
|
282
278
|
credit_card_last_4?: string | null | undefined;
|
|
@@ -309,11 +305,12 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
309
305
|
variable: string;
|
|
310
306
|
}[] | null | undefined;
|
|
311
307
|
custom_variables?: any[] | null | undefined;
|
|
308
|
+
created_at?: string | null | undefined;
|
|
312
309
|
logs?: {
|
|
313
310
|
id: string;
|
|
314
311
|
description: string;
|
|
315
|
-
created_at: string;
|
|
316
312
|
notes: string;
|
|
313
|
+
created_at: string;
|
|
317
314
|
}[] | null | undefined;
|
|
318
315
|
credit_card_transaction?: string | null | undefined;
|
|
319
316
|
account_id?: string | null | undefined;
|
|
@@ -326,6 +323,7 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
326
323
|
customer_ref?: string | null | undefined;
|
|
327
324
|
customer_name?: string | null | undefined;
|
|
328
325
|
user_id?: string | null | undefined;
|
|
326
|
+
total?: string | null | undefined;
|
|
329
327
|
taxes_paid?: string | null | undefined;
|
|
330
328
|
total_paid?: string | null | undefined;
|
|
331
329
|
total_overpaid?: string | null | undefined;
|
|
@@ -350,9 +348,11 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
350
348
|
created_at_iso?: string | null | undefined;
|
|
351
349
|
authorized_at?: string | null | undefined;
|
|
352
350
|
authorized_at_iso?: string | null | undefined;
|
|
351
|
+
expired_at?: string | null | undefined;
|
|
353
352
|
expired_at_iso?: string | null | undefined;
|
|
354
353
|
refunded_at?: string | null | undefined;
|
|
355
354
|
refunded_at_iso?: string | null | undefined;
|
|
355
|
+
canceled_at?: string | null | undefined;
|
|
356
356
|
canceled_at_iso?: string | null | undefined;
|
|
357
357
|
protested_at?: string | null | undefined;
|
|
358
358
|
protested_at_iso?: string | null | undefined;
|
|
@@ -368,27 +368,21 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
368
368
|
id?: string | null | undefined;
|
|
369
369
|
description?: string | null | undefined;
|
|
370
370
|
price?: string | null | undefined;
|
|
371
|
-
quantity?: number | null | undefined;
|
|
372
|
-
created_at?: string | null | undefined;
|
|
373
371
|
updated_at?: string | null | undefined;
|
|
372
|
+
created_at?: string | null | undefined;
|
|
374
373
|
price_cents?: number | null | undefined;
|
|
374
|
+
quantity?: number | null | undefined;
|
|
375
375
|
} | null | undefined)[] | null | undefined;
|
|
376
376
|
early_payment_discounts?: unknown[] | null | undefined;
|
|
377
377
|
split_rules?: string | null | undefined;
|
|
378
378
|
}, {
|
|
379
379
|
id: string;
|
|
380
|
-
status?: "pending" | "
|
|
381
|
-
discount?: string | null | undefined;
|
|
380
|
+
status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
|
|
382
381
|
email?: string | null | undefined;
|
|
383
|
-
|
|
384
|
-
total?: string | null | undefined;
|
|
385
|
-
created_at?: string | null | undefined;
|
|
386
|
-
updated_at?: string | null | undefined;
|
|
387
|
-
paid_at?: string | null | undefined;
|
|
388
|
-
canceled_at?: string | null | undefined;
|
|
389
|
-
expired_at?: string | null | undefined;
|
|
382
|
+
discount?: string | null | undefined;
|
|
390
383
|
paid?: string | null | undefined;
|
|
391
384
|
due_date?: string | null | undefined;
|
|
385
|
+
currency?: string | null | undefined;
|
|
392
386
|
discount_cents?: string | null | undefined;
|
|
393
387
|
items_total_cents?: number | null | undefined;
|
|
394
388
|
notification_url?: string | null | undefined;
|
|
@@ -397,6 +391,7 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
397
391
|
total_cents?: number | null | undefined;
|
|
398
392
|
total_paid_cents?: number | null | undefined;
|
|
399
393
|
taxes_paid_cents?: string | null | undefined;
|
|
394
|
+
paid_at?: string | null | undefined;
|
|
400
395
|
paid_cents?: number | null | undefined;
|
|
401
396
|
cc_emails?: string | null | undefined;
|
|
402
397
|
financial_return_date?: string | null | undefined;
|
|
@@ -429,6 +424,7 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
429
424
|
commission_cents?: string | null | undefined;
|
|
430
425
|
early_payment_discount?: boolean | null | undefined;
|
|
431
426
|
order_id?: string | null | undefined;
|
|
427
|
+
updated_at?: string | null | undefined;
|
|
432
428
|
credit_card_brand?: string | null | undefined;
|
|
433
429
|
credit_card_bin?: string | null | undefined;
|
|
434
430
|
credit_card_last_4?: string | null | undefined;
|
|
@@ -461,11 +457,12 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
461
457
|
variable: string;
|
|
462
458
|
}[] | null | undefined;
|
|
463
459
|
custom_variables?: any[] | null | undefined;
|
|
460
|
+
created_at?: string | null | undefined;
|
|
464
461
|
logs?: {
|
|
465
462
|
id: string;
|
|
466
463
|
description: string;
|
|
467
|
-
created_at: string;
|
|
468
464
|
notes: string;
|
|
465
|
+
created_at: string;
|
|
469
466
|
}[] | null | undefined;
|
|
470
467
|
credit_card_transaction?: string | null | undefined;
|
|
471
468
|
account_id?: string | null | undefined;
|
|
@@ -478,6 +475,7 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
478
475
|
customer_ref?: string | null | undefined;
|
|
479
476
|
customer_name?: string | null | undefined;
|
|
480
477
|
user_id?: string | null | undefined;
|
|
478
|
+
total?: string | null | undefined;
|
|
481
479
|
taxes_paid?: string | null | undefined;
|
|
482
480
|
total_paid?: string | null | undefined;
|
|
483
481
|
total_overpaid?: string | null | undefined;
|
|
@@ -502,9 +500,11 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
502
500
|
created_at_iso?: string | null | undefined;
|
|
503
501
|
authorized_at?: string | null | undefined;
|
|
504
502
|
authorized_at_iso?: string | null | undefined;
|
|
503
|
+
expired_at?: string | null | undefined;
|
|
505
504
|
expired_at_iso?: string | null | undefined;
|
|
506
505
|
refunded_at?: string | null | undefined;
|
|
507
506
|
refunded_at_iso?: string | null | undefined;
|
|
507
|
+
canceled_at?: string | null | undefined;
|
|
508
508
|
canceled_at_iso?: string | null | undefined;
|
|
509
509
|
protested_at?: string | null | undefined;
|
|
510
510
|
protested_at_iso?: string | null | undefined;
|
|
@@ -520,10 +520,10 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
520
520
|
id?: string | null | undefined;
|
|
521
521
|
description?: string | null | undefined;
|
|
522
522
|
price?: string | null | undefined;
|
|
523
|
-
quantity?: number | null | undefined;
|
|
524
|
-
created_at?: string | null | undefined;
|
|
525
523
|
updated_at?: string | null | undefined;
|
|
524
|
+
created_at?: string | null | undefined;
|
|
526
525
|
price_cents?: number | null | undefined;
|
|
526
|
+
quantity?: number | null | undefined;
|
|
527
527
|
} | null | undefined)[] | null | undefined;
|
|
528
528
|
early_payment_discounts?: unknown[] | null | undefined;
|
|
529
529
|
split_rules?: string | null | undefined;
|
|
@@ -536,15 +536,15 @@ declare const IuguInvoiceVariablesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
536
536
|
plan: z.ZodString;
|
|
537
537
|
plan_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
538
538
|
}, "strip", z.ZodTypeAny, {
|
|
539
|
-
product: string;
|
|
540
539
|
product_id: string | number;
|
|
540
|
+
product: string;
|
|
541
541
|
recurrency: number;
|
|
542
542
|
plan: string;
|
|
543
543
|
plan_id: string | number;
|
|
544
544
|
coupon?: string | undefined;
|
|
545
545
|
}, {
|
|
546
|
-
product: string;
|
|
547
546
|
product_id: string | number;
|
|
547
|
+
product: string;
|
|
548
548
|
recurrency: number;
|
|
549
549
|
plan: string;
|
|
550
550
|
plan_id: string | number;
|
|
@@ -557,8 +557,8 @@ declare const IuguInvoiceVariablesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
557
557
|
plan: string;
|
|
558
558
|
planId: string | number;
|
|
559
559
|
}, {
|
|
560
|
-
product: string;
|
|
561
560
|
product_id: string | number;
|
|
561
|
+
product: string;
|
|
562
562
|
recurrency: number;
|
|
563
563
|
plan: string;
|
|
564
564
|
plan_id: string | number;
|
|
@@ -572,15 +572,15 @@ declare const PureIuguInvoiceVariablesSchema: z.ZodEffects<z.ZodEffects<z.ZodObj
|
|
|
572
572
|
plan: z.ZodString;
|
|
573
573
|
plan_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
574
574
|
}, "strip", z.ZodTypeAny, {
|
|
575
|
-
product: string;
|
|
576
575
|
product_id: string | number;
|
|
576
|
+
product: string;
|
|
577
577
|
recurrency: number;
|
|
578
578
|
plan: string;
|
|
579
579
|
plan_id: string | number;
|
|
580
580
|
coupon?: string | undefined;
|
|
581
581
|
}, {
|
|
582
|
-
product: string;
|
|
583
582
|
product_id: string | number;
|
|
583
|
+
product: string;
|
|
584
584
|
recurrency: number;
|
|
585
585
|
plan: string;
|
|
586
586
|
plan_id: string | number;
|
|
@@ -593,8 +593,8 @@ declare const PureIuguInvoiceVariablesSchema: z.ZodEffects<z.ZodEffects<z.ZodObj
|
|
|
593
593
|
plan: string;
|
|
594
594
|
planId: string | number;
|
|
595
595
|
}, {
|
|
596
|
-
product: string;
|
|
597
596
|
product_id: string | number;
|
|
597
|
+
product: string;
|
|
598
598
|
recurrency: number;
|
|
599
599
|
plan: string;
|
|
600
600
|
plan_id: string | number;
|