@_henriquewilson/gabirubi-domain 1.3.65 → 1.3.67

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.
@@ -16,10 +16,10 @@ declare const IuguInvoiceSchema: z.ZodObject<{
16
16
  total_paid_cents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
17
17
  taxes_paid_cents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
18
18
  paid_at: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
19
- paid_cents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
19
+ paid_cents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
20
20
  cc_emails: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
21
21
  financial_return_date: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
22
- payable_with: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
22
+ payable_with: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["credit_card", "pix", "bank_slip", "stripe", "all"]>>>>;
23
23
  overpaid_cents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
24
24
  ignore_due_email: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
25
25
  ignore_canceled_email: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -239,10 +239,31 @@ declare const IuguInvoiceSchema: z.ZodObject<{
239
239
  total_paid_cents?: number | null | undefined;
240
240
  taxes_paid_cents?: string | null | undefined;
241
241
  paid_at?: string | null | undefined;
242
- paid_cents?: string | null | undefined;
242
+ paid_cents?: number | null | undefined;
243
243
  cc_emails?: string | null | undefined;
244
244
  financial_return_date?: string | null | undefined;
245
- payable_with?: string | null | undefined;
245
+ pix?: {
246
+ status: string;
247
+ payer_name: string;
248
+ payer_cpf_cnpj: string;
249
+ qrcode: string;
250
+ qrcode_text: string;
251
+ end_to_end_id: string;
252
+ end_to_end_refund_id: string;
253
+ account_number_last_digits: string;
254
+ } | null | undefined;
255
+ bank_slip?: {
256
+ digitable_line: string;
257
+ barcode_data: string;
258
+ barcode: string;
259
+ bank_slip_url: string;
260
+ bank_slip_bank: number;
261
+ bank_slip_status: string;
262
+ bank_slip_error_code: string;
263
+ bank_slip_error_message: string;
264
+ recipient_cpf_cnpj: string;
265
+ } | null | undefined;
266
+ payable_with?: "credit_card" | "pix" | "bank_slip" | "stripe" | "all" | null | undefined;
246
267
  overpaid_cents?: string | null | undefined;
247
268
  ignore_due_email?: string | null | undefined;
248
269
  ignore_canceled_email?: string | null | undefined;
@@ -343,27 +364,6 @@ declare const IuguInvoiceSchema: z.ZodObject<{
343
364
  transaction_number?: number | null | undefined;
344
365
  payment_method?: string | null | undefined;
345
366
  financial_return_dates?: string | null | undefined;
346
- bank_slip?: {
347
- digitable_line: string;
348
- barcode_data: string;
349
- barcode: string;
350
- bank_slip_url: string;
351
- bank_slip_bank: number;
352
- bank_slip_status: string;
353
- bank_slip_error_code: string;
354
- bank_slip_error_message: string;
355
- recipient_cpf_cnpj: string;
356
- } | null | undefined;
357
- pix?: {
358
- status: string;
359
- payer_name: string;
360
- payer_cpf_cnpj: string;
361
- qrcode: string;
362
- qrcode_text: string;
363
- end_to_end_id: string;
364
- end_to_end_refund_id: string;
365
- account_number_last_digits: string;
366
- } | null | undefined;
367
367
  items?: {
368
368
  id: string;
369
369
  description: string;
@@ -391,10 +391,31 @@ declare const IuguInvoiceSchema: z.ZodObject<{
391
391
  total_paid_cents?: number | null | undefined;
392
392
  taxes_paid_cents?: string | null | undefined;
393
393
  paid_at?: string | null | undefined;
394
- paid_cents?: string | null | undefined;
394
+ paid_cents?: number | null | undefined;
395
395
  cc_emails?: string | null | undefined;
396
396
  financial_return_date?: string | null | undefined;
397
- payable_with?: string | null | undefined;
397
+ pix?: {
398
+ status: string;
399
+ payer_name: string;
400
+ payer_cpf_cnpj: string;
401
+ qrcode: string;
402
+ qrcode_text: string;
403
+ end_to_end_id: string;
404
+ end_to_end_refund_id: string;
405
+ account_number_last_digits: string;
406
+ } | null | undefined;
407
+ bank_slip?: {
408
+ digitable_line: string;
409
+ barcode_data: string;
410
+ barcode: string;
411
+ bank_slip_url: string;
412
+ bank_slip_bank: number;
413
+ bank_slip_status: string;
414
+ bank_slip_error_code: string;
415
+ bank_slip_error_message: string;
416
+ recipient_cpf_cnpj: string;
417
+ } | null | undefined;
418
+ payable_with?: "credit_card" | "pix" | "bank_slip" | "stripe" | "all" | null | undefined;
398
419
  overpaid_cents?: string | null | undefined;
399
420
  ignore_due_email?: string | null | undefined;
400
421
  ignore_canceled_email?: string | null | undefined;
@@ -495,27 +516,6 @@ declare const IuguInvoiceSchema: z.ZodObject<{
495
516
  transaction_number?: number | null | undefined;
496
517
  payment_method?: string | null | undefined;
497
518
  financial_return_dates?: string | null | undefined;
498
- bank_slip?: {
499
- digitable_line: string;
500
- barcode_data: string;
501
- barcode: string;
502
- bank_slip_url: string;
503
- bank_slip_bank: number;
504
- bank_slip_status: string;
505
- bank_slip_error_code: string;
506
- bank_slip_error_message: string;
507
- recipient_cpf_cnpj: string;
508
- } | null | undefined;
509
- pix?: {
510
- status: string;
511
- payer_name: string;
512
- payer_cpf_cnpj: string;
513
- qrcode: string;
514
- qrcode_text: string;
515
- end_to_end_id: string;
516
- end_to_end_refund_id: string;
517
- account_number_last_digits: string;
518
- } | null | undefined;
519
519
  items?: {
520
520
  id: string;
521
521
  description: string;
@@ -16,10 +16,10 @@ declare const IuguInvoiceSchema: z.ZodObject<{
16
16
  total_paid_cents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
17
17
  taxes_paid_cents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
18
18
  paid_at: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
19
- paid_cents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
19
+ paid_cents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
20
20
  cc_emails: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
21
21
  financial_return_date: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
22
- payable_with: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
22
+ payable_with: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["credit_card", "pix", "bank_slip", "stripe", "all"]>>>>;
23
23
  overpaid_cents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
24
24
  ignore_due_email: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
25
25
  ignore_canceled_email: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -239,10 +239,31 @@ declare const IuguInvoiceSchema: z.ZodObject<{
239
239
  total_paid_cents?: number | null | undefined;
240
240
  taxes_paid_cents?: string | null | undefined;
241
241
  paid_at?: string | null | undefined;
242
- paid_cents?: string | null | undefined;
242
+ paid_cents?: number | null | undefined;
243
243
  cc_emails?: string | null | undefined;
244
244
  financial_return_date?: string | null | undefined;
245
- payable_with?: string | null | undefined;
245
+ pix?: {
246
+ status: string;
247
+ payer_name: string;
248
+ payer_cpf_cnpj: string;
249
+ qrcode: string;
250
+ qrcode_text: string;
251
+ end_to_end_id: string;
252
+ end_to_end_refund_id: string;
253
+ account_number_last_digits: string;
254
+ } | null | undefined;
255
+ bank_slip?: {
256
+ digitable_line: string;
257
+ barcode_data: string;
258
+ barcode: string;
259
+ bank_slip_url: string;
260
+ bank_slip_bank: number;
261
+ bank_slip_status: string;
262
+ bank_slip_error_code: string;
263
+ bank_slip_error_message: string;
264
+ recipient_cpf_cnpj: string;
265
+ } | null | undefined;
266
+ payable_with?: "credit_card" | "pix" | "bank_slip" | "stripe" | "all" | null | undefined;
246
267
  overpaid_cents?: string | null | undefined;
247
268
  ignore_due_email?: string | null | undefined;
248
269
  ignore_canceled_email?: string | null | undefined;
@@ -343,27 +364,6 @@ declare const IuguInvoiceSchema: z.ZodObject<{
343
364
  transaction_number?: number | null | undefined;
344
365
  payment_method?: string | null | undefined;
345
366
  financial_return_dates?: string | null | undefined;
346
- bank_slip?: {
347
- digitable_line: string;
348
- barcode_data: string;
349
- barcode: string;
350
- bank_slip_url: string;
351
- bank_slip_bank: number;
352
- bank_slip_status: string;
353
- bank_slip_error_code: string;
354
- bank_slip_error_message: string;
355
- recipient_cpf_cnpj: string;
356
- } | null | undefined;
357
- pix?: {
358
- status: string;
359
- payer_name: string;
360
- payer_cpf_cnpj: string;
361
- qrcode: string;
362
- qrcode_text: string;
363
- end_to_end_id: string;
364
- end_to_end_refund_id: string;
365
- account_number_last_digits: string;
366
- } | null | undefined;
367
367
  items?: {
368
368
  id: string;
369
369
  description: string;
@@ -391,10 +391,31 @@ declare const IuguInvoiceSchema: z.ZodObject<{
391
391
  total_paid_cents?: number | null | undefined;
392
392
  taxes_paid_cents?: string | null | undefined;
393
393
  paid_at?: string | null | undefined;
394
- paid_cents?: string | null | undefined;
394
+ paid_cents?: number | null | undefined;
395
395
  cc_emails?: string | null | undefined;
396
396
  financial_return_date?: string | null | undefined;
397
- payable_with?: string | null | undefined;
397
+ pix?: {
398
+ status: string;
399
+ payer_name: string;
400
+ payer_cpf_cnpj: string;
401
+ qrcode: string;
402
+ qrcode_text: string;
403
+ end_to_end_id: string;
404
+ end_to_end_refund_id: string;
405
+ account_number_last_digits: string;
406
+ } | null | undefined;
407
+ bank_slip?: {
408
+ digitable_line: string;
409
+ barcode_data: string;
410
+ barcode: string;
411
+ bank_slip_url: string;
412
+ bank_slip_bank: number;
413
+ bank_slip_status: string;
414
+ bank_slip_error_code: string;
415
+ bank_slip_error_message: string;
416
+ recipient_cpf_cnpj: string;
417
+ } | null | undefined;
418
+ payable_with?: "credit_card" | "pix" | "bank_slip" | "stripe" | "all" | null | undefined;
398
419
  overpaid_cents?: string | null | undefined;
399
420
  ignore_due_email?: string | null | undefined;
400
421
  ignore_canceled_email?: string | null | undefined;
@@ -495,27 +516,6 @@ declare const IuguInvoiceSchema: z.ZodObject<{
495
516
  transaction_number?: number | null | undefined;
496
517
  payment_method?: string | null | undefined;
497
518
  financial_return_dates?: string | null | undefined;
498
- bank_slip?: {
499
- digitable_line: string;
500
- barcode_data: string;
501
- barcode: string;
502
- bank_slip_url: string;
503
- bank_slip_bank: number;
504
- bank_slip_status: string;
505
- bank_slip_error_code: string;
506
- bank_slip_error_message: string;
507
- recipient_cpf_cnpj: string;
508
- } | null | undefined;
509
- pix?: {
510
- status: string;
511
- payer_name: string;
512
- payer_cpf_cnpj: string;
513
- qrcode: string;
514
- qrcode_text: string;
515
- end_to_end_id: string;
516
- end_to_end_refund_id: string;
517
- account_number_last_digits: string;
518
- } | null | undefined;
519
519
  items?: {
520
520
  id: string;
521
521
  description: string;
@@ -86,10 +86,16 @@ var IuguInvoiceSchema = import_zod.z.object({
86
86
  total_paid_cents: import_zod.z.number().optional().nullish(),
87
87
  taxes_paid_cents: import_zod.z.coerce.string().optional().nullish(),
88
88
  paid_at: import_zod.z.coerce.string().optional().nullish(),
89
- paid_cents: import_zod.z.coerce.string().optional().nullish(),
89
+ paid_cents: import_zod.z.coerce.number().optional().nullish(),
90
90
  cc_emails: import_zod.z.coerce.string().optional().nullish(),
91
91
  financial_return_date: import_zod.z.coerce.string().optional().nullish(),
92
- payable_with: import_zod.z.string().optional().nullish(),
92
+ payable_with: import_zod.z.enum([
93
+ "credit_card",
94
+ "pix",
95
+ "bank_slip",
96
+ "stripe",
97
+ "all"
98
+ ]).optional().nullish(),
93
99
  overpaid_cents: import_zod.z.coerce.string().optional().nullish(),
94
100
  ignore_due_email: import_zod.z.coerce.string().optional().nullish(),
95
101
  ignore_canceled_email: import_zod.z.coerce.string().optional().nullish(),
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/henriquewilson/Developer/Projects/gabirubi-domain/dist/model/iugu/iugu-invoice.js","../../../src/model/iugu/iugu-invoice.ts"],"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","iugu_invoice_exports","IuguInvoiceSchema","IuguInvoiceStatusSchema","module","exports","import_zod","require","z","enum","object","id","string","due_date","optional","nullish","currency","discount_cents","coerce","email","items_total_cents","number","notification_url","return_url","status","tax_cents","total_cents","total_paid_cents","taxes_paid_cents","paid_at","paid_cents","cc_emails","financial_return_date","payable_with","overpaid_cents","ignore_due_email","ignore_canceled_email","advance_fee_cents","commission_cents","early_payment_discount","boolean","order_id","updated_at","credit_card_brand","credit_card_bin","credit_card_last_4","credit_card_captured_at","credit_card_tid","external_reference","max_installments_value","payer_name","payer_email","payer_cpf_cnpj","payer_phone","payer_phone_prefix","payer_address_zip_code","payer_address_street","payer_address_district","payer_address_city","payer_address_state","payer_address_number","payer_address_complement","payer_address_country","late_payment_fine","late_payment_fine_cents","split_id","external_payment_id","external_payment_description","payment_booklet_id","subscription_id","variables","array","variable","custom_variables","any","logs","description","notes","created_at","credit_card_transaction","account_id","bank_account_branch","bank_account_number","account_name","secure_id","secure_url","customer_id","customer_ref","customer_name","user_id","total","taxes_paid","total_paid","total_overpaid","total_refunded","commission","fines_on_occurrence_day","total_on_occurrence_day","fines_on_occurrence_day_cents","total_on_occurrence_day_cents","refunded_cents","remaining_captured_cents","advance_fee","estimated_advance_fee","paid","original_payment_id","double_payment_id","per_day_interest","per_day_interest_value","per_day_interest_cents","interest","discount","duplicated_invoice_id","bank_slip_extra_due","created_at_iso","authorized_at","authorized_at_iso","expired_at","expired_at_iso","refunded_at","refunded_at_iso","canceled_at","canceled_at_iso","protested_at","protested_at_iso","chargeback_at","chargeback_at_iso","occurrence_date","refundable","installments","transaction_number","payment_method","financial_return_dates","bank_slip","digitable_line","barcode_data","barcode","bank_slip_url","bank_slip_bank","bank_slip_status","bank_slip_error_code","bank_slip_error_message","recipient_cpf_cnpj","pix","qrcode","qrcode_text","end_to_end_id","end_to_end_refund_id","account_number_last_digits","items","price_cents","quantity","price","early_payment_discounts","unknown","split_rules"],"mappings":"AAAA;AACA,IAAIA,YAAYC,OAAOC,cAAc;AACrC,IAAIC,mBAAmBF,OAAOG,wBAAwB;AACtD,IAAIC,oBAAoBJ,OAAOK,mBAAmB;AAClD,IAAIC,eAAeN,OAAOO,SAAS,CAACC,cAAc;AAClD,IAAIC,WAAW,SAACC,QAAQC;IACtB,IAAK,IAAIC,QAAQD,IACfZ,UAAUW,QAAQE,MAAM;QAAEC,KAAKF,GAAG,CAACC,KAAK;QAAEE,YAAY;IAAK;AAC/D;AACA,IAAIC,cAAc,SAACC,IAAIC,MAAMC,QAAQC;IACnC,IAAIF,QAAQ,OAAOA,SAAS,YAAY,OAAOA,SAAS,YAAY;YAC7D,kCAAA,2BAAA;;;gBAAA,IAAIG,MAAJ;gBACH,IAAI,CAACd,aAAae,IAAI,CAACL,IAAII,QAAQA,QAAQF,QACzCnB,UAAUiB,IAAII,KAAK;oBAAEP,KAAK;+BAAMI,IAAI,CAACG,IAAI;;oBAAEN,YAAY,CAAEK,CAAAA,OAAOjB,iBAAiBe,MAAMG,IAAG,KAAMD,KAAKL,UAAU;gBAAC;;YAFpH,QAAK,YAAWV,kBAAkBa,0BAA7B,SAAA,6BAAA,QAAA,yBAAA;;YAAA;YAAA;;;qBAAA,6BAAA;oBAAA;;;oBAAA;0BAAA;;;;IAGP;IACA,OAAOD;AACT;AACA,IAAIM,eAAe,SAACC;WAAQR,YAAYhB,UAAU,CAAC,GAAG,cAAc;QAAEyB,OAAO;IAAK,IAAID;;AAEtF,iCAAiC;ACnBjC,IAAAE,uBAAA,CAAA;AAAAhB,SAAAgB,sBAAA;IAAAC,mBAAA;eAAAA;;IAAAC,yBAAA;eAAAA;;AAAA;AAAAC,OA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A,CAAEI,MAAA;QACVwC,gBAAgB9C,WAAAE,CAAA,CAAEU,MAAA,CAAON,MAAA;QACzBsC,YAAY5C,WAAAE,CAAA,CAAEU,MAAA,CAAON,MAAA;QACrBsI,eAAe5I,WAAAE,CAAA,CAAEU,MAAA,CAAON,MAAA;QACxBuI,sBAAsB7I,WAAAE,CAAA,CAAEU,MAAA,CAAON,MAAA;QAC/BwI,4BAA4B9I,WAAAE,CAAA,CAAEU,MAAA,CAAON,MAAA;IACvC,GAAGE,QAAA,GAAWC,OAAA;IACdsI,OAAO/I,WAAAE,CAAA,CAAE+D,KAAA,CACPjE,WAAAE,CAAA,CAAEE,MAAA,CAAO;QACPC,IAAIL,WAAAE,CAAA,CAAEI,MAAA;QACNgE,aAAatE,WAAAE,CAAA,CAAEI,MAAA;QACf0I,aAAahJ,WAAAE,CAAA,CAAEa,MAAA;QACfkI,UAAUjJ,WAAAE,CAAA,CAAEa,MAAA;QACZyD,YAAYxE,WAAAE,CAAA,CAAEI,MAAA;QACd8B,YAAYpC,WAAAE,CAAA,CAAEI,MAAA;QACd4I,OAAOlJ,WAAAE,CAAA,CAAEI,MAAA;IACX,IACAE,QAAA,GAAWC,OAAA;IACb0I,yBAAyBnJ,WAAAE,CAAA,CAAE+D,KAAA,CAAMjE,WAAAE,CAAA,CAAEkJ,OAAA,IAAW5I,QAAA,GAAWC,OAAA;IACzD4I,aAAarJ,WAAAE,CAAA,CAAEU,MAAA,CAAON,MAAA,GAASE,QAAA,GAAWC,OAAA;AAC5C;ADyBA,6DAA6D;AAC7D,KAAMX,CAAAA,OAAOC,OAAO,GAAG;IACrBH,mBAAAA;IACAC,yBAAAA;AACF,CAAA","sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/model/iugu/iugu-invoice.ts\nvar iugu_invoice_exports = {};\n__export(iugu_invoice_exports, {\n IuguInvoiceSchema: () => IuguInvoiceSchema,\n IuguInvoiceStatusSchema: () => IuguInvoiceStatusSchema\n});\nmodule.exports = __toCommonJS(iugu_invoice_exports);\nvar import_zod = require(\"zod\");\nvar IuguInvoiceStatusSchema = import_zod.z.enum([\n \"pending\",\n \"paid\",\n \"canceled\",\n \"in_analysis\",\n \"draft\",\n \"partially_paid\",\n \"refunded\",\n \"expired\",\n \"in_protest\",\n \"chargeback\",\n \"externally_paid\",\n \"invited\"\n]);\nvar IuguInvoiceSchema = import_zod.z.object({\n id: import_zod.z.string(),\n due_date: import_zod.z.string().optional().nullish(),\n currency: import_zod.z.string().optional().nullish(),\n discount_cents: import_zod.z.coerce.string().optional().nullish(),\n email: import_zod.z.string().optional().nullish(),\n items_total_cents: import_zod.z.number().optional().nullish(),\n notification_url: import_zod.z.coerce.string().optional().nullish(),\n return_url: import_zod.z.coerce.string().optional().nullish(),\n status: IuguInvoiceStatusSchema.optional().nullish(),\n tax_cents: import_zod.z.coerce.string().optional().nullish(),\n total_cents: import_zod.z.number().optional().nullish(),\n total_paid_cents: import_zod.z.number().optional().nullish(),\n taxes_paid_cents: import_zod.z.coerce.string().optional().nullish(),\n paid_at: import_zod.z.coerce.string().optional().nullish(),\n paid_cents: import_zod.z.coerce.string().optional().nullish(),\n cc_emails: import_zod.z.coerce.string().optional().nullish(),\n financial_return_date: import_zod.z.coerce.string().optional().nullish(),\n payable_with: import_zod.z.string().optional().nullish(),\n overpaid_cents: import_zod.z.coerce.string().optional().nullish(),\n ignore_due_email: import_zod.z.coerce.string().optional().nullish(),\n ignore_canceled_email: import_zod.z.coerce.string().optional().nullish(),\n advance_fee_cents: import_zod.z.coerce.string().optional().nullish(),\n commission_cents: import_zod.z.coerce.string().optional().nullish(),\n early_payment_discount: import_zod.z.boolean().optional().nullish(),\n order_id: import_zod.z.coerce.string().optional().nullish(),\n updated_at: import_zod.z.string().optional().nullish(),\n credit_card_brand: import_zod.z.coerce.string().optional().nullish(),\n credit_card_bin: import_zod.z.coerce.string().optional().nullish(),\n credit_card_last_4: import_zod.z.coerce.string().optional().nullish(),\n credit_card_captured_at: import_zod.z.coerce.string().optional().nullish(),\n credit_card_tid: import_zod.z.coerce.string().optional().nullish(),\n external_reference: import_zod.z.coerce.string().optional().nullish(),\n max_installments_value: import_zod.z.coerce.string().optional().nullish(),\n payer_name: import_zod.z.string().optional().nullish(),\n payer_email: import_zod.z.coerce.string().optional().nullish(),\n payer_cpf_cnpj: import_zod.z.string().optional().nullish(),\n payer_phone: import_zod.z.coerce.string().optional().nullish(),\n payer_phone_prefix: import_zod.z.coerce.string().optional().nullish(),\n payer_address_zip_code: import_zod.z.coerce.string().optional().nullish(),\n payer_address_street: import_zod.z.coerce.string().optional().nullish(),\n payer_address_district: import_zod.z.coerce.string().optional().nullish(),\n payer_address_city: import_zod.z.coerce.string().optional().nullish(),\n payer_address_state: import_zod.z.coerce.string().optional().nullish(),\n payer_address_number: import_zod.z.coerce.string().optional().nullish(),\n payer_address_complement: import_zod.z.coerce.string().optional().nullish(),\n payer_address_country: import_zod.z.coerce.string().optional().nullish(),\n late_payment_fine: import_zod.z.number().optional().nullish(),\n late_payment_fine_cents: import_zod.z.coerce.string().optional().nullish(),\n split_id: import_zod.z.coerce.string().optional().nullish(),\n external_payment_id: import_zod.z.coerce.string().optional().nullish(),\n external_payment_description: import_zod.z.coerce.string().optional().nullish(),\n payment_booklet_id: import_zod.z.coerce.string().optional().nullish(),\n subscription_id: import_zod.z.coerce.string().optional().nullish(),\n variables: import_zod.z.array(import_zod.z.object({ variable: import_zod.z.string(), value: import_zod.z.string() })).optional().nullish(),\n custom_variables: import_zod.z.array(import_zod.z.any()).optional().nullish(),\n logs: import_zod.z.array(\n import_zod.z.object({\n id: import_zod.z.string(),\n description: import_zod.z.string(),\n notes: import_zod.z.string(),\n created_at: import_zod.z.string()\n })\n ).optional().nullish(),\n credit_card_transaction: import_zod.z.coerce.string().optional().nullish(),\n account_id: import_zod.z.string().optional().nullish(),\n bank_account_branch: import_zod.z.string().optional().nullish(),\n bank_account_number: import_zod.z.string().optional().nullish(),\n account_name: import_zod.z.string().optional().nullish(),\n secure_id: import_zod.z.string().optional().nullish(),\n secure_url: import_zod.z.string().optional().nullish(),\n customer_id: import_zod.z.coerce.string().optional().nullish(),\n customer_ref: import_zod.z.coerce.string().optional().nullish(),\n customer_name: import_zod.z.coerce.string().optional().nullish(),\n user_id: import_zod.z.coerce.string().optional().nullish(),\n total: import_zod.z.string().optional().nullish(),\n taxes_paid: import_zod.z.string().optional().nullish(),\n total_paid: import_zod.z.string().optional().nullish(),\n total_overpaid: import_zod.z.string().optional().nullish(),\n total_refunded: import_zod.z.string().optional().nullish(),\n commission: import_zod.z.string().optional().nullish(),\n fines_on_occurrence_day: import_zod.z.string().optional().nullish(),\n total_on_occurrence_day: import_zod.z.string().optional().nullish(),\n fines_on_occurrence_day_cents: import_zod.z.number().optional().nullish(),\n total_on_occurrence_day_cents: import_zod.z.number().optional().nullish(),\n refunded_cents: import_zod.z.number().optional().nullish(),\n remaining_captured_cents: import_zod.z.number().optional().nullish(),\n advance_fee: import_zod.z.coerce.string().optional().nullish(),\n estimated_advance_fee: import_zod.z.coerce.string().optional().nullish(),\n paid: import_zod.z.string().optional().nullish(),\n original_payment_id: import_zod.z.coerce.string().optional().nullish(),\n double_payment_id: import_zod.z.coerce.string().optional().nullish(),\n per_day_interest: import_zod.z.boolean().optional().nullish(),\n per_day_interest_value: import_zod.z.coerce.string().optional().nullish(),\n per_day_interest_cents: import_zod.z.number().optional().nullish(),\n interest: import_zod.z.coerce.string().optional().nullish(),\n discount: import_zod.z.coerce.string().optional().nullish(),\n duplicated_invoice_id: import_zod.z.coerce.string().optional().nullish(),\n bank_slip_extra_due: import_zod.z.number().optional().nullish(),\n created_at: import_zod.z.string().optional().nullish(),\n created_at_iso: import_zod.z.string().optional().nullish(),\n authorized_at: import_zod.z.coerce.string().optional().nullish(),\n authorized_at_iso: import_zod.z.coerce.string().optional().nullish(),\n expired_at: import_zod.z.coerce.string().optional().nullish(),\n expired_at_iso: import_zod.z.coerce.string().optional().nullish(),\n refunded_at: import_zod.z.coerce.string().optional().nullish(),\n refunded_at_iso: import_zod.z.coerce.string().optional().nullish(),\n canceled_at: import_zod.z.coerce.string().optional().nullish(),\n canceled_at_iso: import_zod.z.coerce.string().optional().nullish(),\n protested_at: import_zod.z.coerce.string().optional().nullish(),\n protested_at_iso: import_zod.z.coerce.string().optional().nullish(),\n chargeback_at: import_zod.z.coerce.string().optional().nullish(),\n chargeback_at_iso: import_zod.z.coerce.string().optional().nullish(),\n occurrence_date: import_zod.z.coerce.string().optional().nullish(),\n refundable: import_zod.z.coerce.string().optional().nullish(),\n installments: import_zod.z.coerce.string().optional().nullish(),\n transaction_number: import_zod.z.number().optional().nullish(),\n payment_method: import_zod.z.coerce.string().optional().nullish(),\n financial_return_dates: import_zod.z.coerce.string().optional().nullish(),\n bank_slip: import_zod.z.object({\n digitable_line: import_zod.z.string(),\n barcode_data: import_zod.z.string(),\n barcode: import_zod.z.string(),\n bank_slip_url: import_zod.z.string(),\n bank_slip_bank: import_zod.z.number(),\n bank_slip_status: import_zod.z.string(),\n bank_slip_error_code: import_zod.z.coerce.string(),\n bank_slip_error_message: import_zod.z.coerce.string(),\n recipient_cpf_cnpj: import_zod.z.string()\n }).nullish().optional(),\n pix: import_zod.z.object({\n qrcode: import_zod.z.string(),\n qrcode_text: import_zod.z.string(),\n status: import_zod.z.string(),\n payer_cpf_cnpj: import_zod.z.coerce.string(),\n payer_name: import_zod.z.coerce.string(),\n end_to_end_id: import_zod.z.coerce.string(),\n end_to_end_refund_id: import_zod.z.coerce.string(),\n account_number_last_digits: import_zod.z.coerce.string()\n }).optional().nullish(),\n items: import_zod.z.array(\n import_zod.z.object({\n id: import_zod.z.string(),\n description: import_zod.z.string(),\n price_cents: import_zod.z.number(),\n quantity: import_zod.z.number(),\n created_at: import_zod.z.string(),\n updated_at: import_zod.z.string(),\n price: import_zod.z.string()\n })\n ).optional().nullish(),\n early_payment_discounts: import_zod.z.array(import_zod.z.unknown()).optional().nullish(),\n split_rules: import_zod.z.coerce.string().optional().nullish()\n});\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n IuguInvoiceSchema,\n IuguInvoiceStatusSchema\n});\n","import { z } from \"zod\"\n\nexport const IuguInvoiceStatusSchema = z.enum([\n 'pending',\n 'paid',\n 'canceled',\n 'in_analysis',\n 'draft',\n 'partially_paid',\n 'refunded',\n 'expired',\n 'in_protest',\n 'chargeback',\n 'externally_paid',\n 'invited',\n])\n\nexport const IuguInvoiceSchema = z.object({\n id: z.string(),\n due_date: z.string().optional().nullish(),\n currency: z.string().optional().nullish(),\n discount_cents: z.coerce.string().optional().nullish(),\n email: z.string().optional().nullish(),\n items_total_cents: z.number().optional().nullish(),\n notification_url: z.coerce.string().optional().nullish(),\n return_url: z.coerce.string().optional().nullish(),\n status: IuguInvoiceStatusSchema.optional().nullish(),\n tax_cents: z.coerce.string().optional().nullish(),\n total_cents: z.number().optional().nullish(),\n total_paid_cents: z.number().optional().nullish(),\n taxes_paid_cents: z.coerce.string().optional().nullish(),\n paid_at: z.coerce.string().optional().nullish(),\n paid_cents: z.coerce.string().optional().nullish(),\n cc_emails: z.coerce.string().optional().nullish(),\n financial_return_date: z.coerce.string().optional().nullish(),\n payable_with: z.string().optional().nullish(),\n overpaid_cents: z.coerce.string().optional().nullish(),\n ignore_due_email: z.coerce.string().optional().nullish(),\n ignore_canceled_email: z.coerce.string().optional().nullish(),\n advance_fee_cents: z.coerce.string().optional().nullish(),\n commission_cents: z.coerce.string().optional().nullish(),\n early_payment_discount: z.boolean().optional().nullish(),\n order_id: z.coerce.string().optional().nullish(),\n updated_at: z.string().optional().nullish(),\n credit_card_brand: z.coerce.string().optional().nullish(),\n credit_card_bin: z.coerce.string().optional().nullish(),\n credit_card_last_4: z.coerce.string().optional().nullish(),\n credit_card_captured_at: z.coerce.string().optional().nullish(),\n credit_card_tid: z.coerce.string().optional().nullish(),\n external_reference: z.coerce.string().optional().nullish(),\n max_installments_value: z.coerce.string().optional().nullish(),\n payer_name: z.string().optional().nullish(),\n payer_email: z.coerce.string().optional().nullish(),\n payer_cpf_cnpj: z.string().optional().nullish(),\n payer_phone: z.coerce.string().optional().nullish(),\n payer_phone_prefix: z.coerce.string().optional().nullish(),\n payer_address_zip_code: z.coerce.string().optional().nullish(),\n payer_address_street: z.coerce.string().optional().nullish(),\n payer_address_district: z.coerce.string().optional().nullish(),\n payer_address_city: z.coerce.string().optional().nullish(),\n payer_address_state: z.coerce.string().optional().nullish(),\n payer_address_number: z.coerce.string().optional().nullish(),\n payer_address_complement: z.coerce.string().optional().nullish(),\n payer_address_country: z.coerce.string().optional().nullish(),\n late_payment_fine: z.number().optional().nullish(),\n late_payment_fine_cents: z.coerce.string().optional().nullish(),\n split_id: z.coerce.string().optional().nullish(),\n external_payment_id: z.coerce.string().optional().nullish(),\n external_payment_description: z.coerce.string().optional().nullish(),\n payment_booklet_id: z.coerce.string().optional().nullish(),\n subscription_id: z.coerce.string().optional().nullish(),\n variables: z.array(z.object({ variable: z.string(), value: z.string() })).optional().nullish(),\n custom_variables: z.array(z.any()).optional().nullish(),\n logs: z.array(\n z.object({\n id: z.string(),\n description: z.string(),\n notes: z.string(),\n created_at: z.string()\n })\n ).optional().nullish(),\n credit_card_transaction: z.coerce.string().optional().nullish(),\n account_id: z.string().optional().nullish(),\n bank_account_branch: z.string().optional().nullish(),\n bank_account_number: z.string().optional().nullish(),\n account_name: z.string().optional().nullish(),\n secure_id: z.string().optional().nullish(),\n secure_url: z.string().optional().nullish(),\n customer_id: z.coerce.string().optional().nullish(),\n customer_ref: z.coerce.string().optional().nullish(),\n customer_name: z.coerce.string().optional().nullish(),\n user_id: z.coerce.string().optional().nullish(),\n total: z.string().optional().nullish(),\n taxes_paid: z.string().optional().nullish(),\n total_paid: z.string().optional().nullish(),\n total_overpaid: z.string().optional().nullish(),\n total_refunded: z.string().optional().nullish(),\n commission: z.string().optional().nullish(),\n fines_on_occurrence_day: z.string().optional().nullish(),\n total_on_occurrence_day: z.string().optional().nullish(),\n fines_on_occurrence_day_cents: z.number().optional().nullish(),\n total_on_occurrence_day_cents: z.number().optional().nullish(),\n refunded_cents: z.number().optional().nullish(),\n remaining_captured_cents: z.number().optional().nullish(),\n advance_fee: z.coerce.string().optional().nullish(),\n estimated_advance_fee: z.coerce.string().optional().nullish(),\n paid: z.string().optional().nullish(),\n original_payment_id: z.coerce.string().optional().nullish(),\n double_payment_id: z.coerce.string().optional().nullish(),\n per_day_interest: z.boolean().optional().nullish(),\n per_day_interest_value: z.coerce.string().optional().nullish(),\n per_day_interest_cents: z.number().optional().nullish(),\n interest: z.coerce.string().optional().nullish(),\n discount: z.coerce.string().optional().nullish(),\n duplicated_invoice_id: z.coerce.string().optional().nullish(),\n bank_slip_extra_due: z.number().optional().nullish(),\n created_at: z.string().optional().nullish(),\n created_at_iso: z.string().optional().nullish(),\n authorized_at: z.coerce.string().optional().nullish(),\n authorized_at_iso: z.coerce.string().optional().nullish(),\n expired_at: z.coerce.string().optional().nullish(),\n expired_at_iso: z.coerce.string().optional().nullish(),\n refunded_at: z.coerce.string().optional().nullish(),\n refunded_at_iso: z.coerce.string().optional().nullish(),\n canceled_at: z.coerce.string().optional().nullish(),\n canceled_at_iso: z.coerce.string().optional().nullish(),\n protested_at: z.coerce.string().optional().nullish(),\n protested_at_iso: z.coerce.string().optional().nullish(),\n chargeback_at: z.coerce.string().optional().nullish(),\n chargeback_at_iso: z.coerce.string().optional().nullish(),\n occurrence_date: z.coerce.string().optional().nullish(),\n refundable: z.coerce.string().optional().nullish(),\n installments: z.coerce.string().optional().nullish(),\n transaction_number: z.number().optional().nullish(),\n payment_method: z.coerce.string().optional().nullish(),\n financial_return_dates: z.coerce.string().optional().nullish(),\n bank_slip: z.object({\n digitable_line: z.string(),\n barcode_data: z.string(),\n barcode: z.string(),\n bank_slip_url: z.string(),\n bank_slip_bank: z.number(),\n bank_slip_status: z.string(),\n bank_slip_error_code: z.coerce.string(),\n bank_slip_error_message: z.coerce.string(),\n recipient_cpf_cnpj: z.string()\n }).nullish().optional(),\n pix: z.object({\n qrcode: z.string(),\n qrcode_text: z.string(),\n status: z.string(),\n payer_cpf_cnpj: z.coerce.string(),\n payer_name: z.coerce.string(),\n end_to_end_id: z.coerce.string(),\n end_to_end_refund_id: z.coerce.string(),\n account_number_last_digits: z.coerce.string()\n }).optional().nullish(),\n items: z.array(\n z.object({\n id: z.string(),\n description: z.string(),\n price_cents: z.number(),\n quantity: z.number(),\n created_at: z.string(),\n updated_at: z.string(),\n price: z.string()\n })\n ).optional().nullish(),\n early_payment_discounts: z.array(z.unknown()).optional().nullish(),\n split_rules: z.coerce.string().optional().nullish()\n})\n\n\nexport type IuguInvoice = z.infer<typeof IuguInvoiceSchema>\nexport type IuguInvoiceStatus = z.infer<typeof IuguInvoiceStatusSchema>\n"]}
1
+ {"version":3,"sources":["/Users/henriquewilson/Developer/Projects/gabirubi-domain/dist/model/iugu/iugu-invoice.js","../../../src/model/iugu/iugu-invoice.ts"],"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","iugu_invoice_exports","IuguInvoiceSchema","IuguInvoiceStatusSchema","module","exports","import_zod","require","z","enum","object","id","string","due_date","optional","nullish","currency","discount_cents","coerce","email","items_total_cents","number","notification_url","return_url","status","tax_cents","total_cents","total_paid_cents","taxes_paid_cents","paid_at","paid_cents","cc_emails","financial_return_date","payable_with","overpaid_cents","ignore_due_email","ignore_canceled_email","advance_fee_cents","commission_cents","early_payment_discount","boolean","order_id","updated_at","credit_card_brand","credit_card_bin","credit_card_last_4","credit_card_captured_at","credit_card_tid","external_reference","max_installments_value","payer_name","payer_email","payer_cpf_cnpj","payer_phone","payer_phone_prefix","payer_address_zip_code","payer_address_street","payer_address_district","payer_address_city","payer_address_state","payer_address_number","payer_address_complement","payer_address_country","late_payment_fine","late_payment_fine_cents","split_id","external_payment_id","external_payment_description","payment_booklet_id","subscription_id","variables","array","variable","custom_variables","any","logs","description","notes","created_at","credit_card_transaction","account_id","bank_account_branch","bank_account_number","account_name","secure_id","secure_url","customer_id","customer_ref","customer_name","user_id","total","taxes_paid","total_paid","total_overpaid","total_refunded","commission","fines_on_occurrence_day","total_on_occurrence_day","fines_on_occurrence_day_cents","total_on_occurrence_day_cents","refunded_cents","remaining_captured_cents","advance_fee","estimated_advance_fee","paid","original_payment_id","double_payment_id","per_day_interest","per_day_interest_value","per_day_interest_cents","interest","discount","duplicated_invoice_id","bank_slip_extra_due","created_at_iso","authorized_at","authorized_at_iso","expired_at","expired_at_iso","refunded_at","refunded_at_iso","canceled_at","canceled_at_iso","protested_at","protested_at_iso","chargeback_at","chargeback_at_iso","occurrence_date","refundable","installments","transaction_number","payment_method","financial_return_dates","bank_slip","digitable_line","barcode_data","barcode","bank_slip_url","bank_slip_bank","bank_slip_status","bank_slip_error_code","bank_slip_error_message","recipient_cpf_cnpj","pix","qrcode","qrcode_text","end_to_end_id","end_to_end_refund_id","account_number_last_digits","items","price_cents","quantity","price","early_payment_discounts","unknown","split_rules"],"mappings":"AAAA;AACA,IAAIA,YAAYC,OAAOC,cAAc;AACrC,IAAIC,mBAAmBF,OAAOG,wBAAwB;AACtD,IAAIC,oBAAoBJ,OAAOK,mBAAmB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WAAAE,CAAA,CAAEU,MAAA,CAAON,MAAA;IACvC,GAAGE,QAAA,GAAWC,OAAA;IACdsI,OAAO/I,WAAAE,CAAA,CAAE+D,KAAA,CACPjE,WAAAE,CAAA,CAAEE,MAAA,CAAO;QACPC,IAAIL,WAAAE,CAAA,CAAEI,MAAA;QACNgE,aAAatE,WAAAE,CAAA,CAAEI,MAAA;QACf0I,aAAahJ,WAAAE,CAAA,CAAEa,MAAA;QACfkI,UAAUjJ,WAAAE,CAAA,CAAEa,MAAA;QACZyD,YAAYxE,WAAAE,CAAA,CAAEI,MAAA;QACd8B,YAAYpC,WAAAE,CAAA,CAAEI,MAAA;QACd4I,OAAOlJ,WAAAE,CAAA,CAAEI,MAAA;IACX,IACAE,QAAA,GAAWC,OAAA;IACb0I,yBAAyBnJ,WAAAE,CAAA,CAAE+D,KAAA,CAAMjE,WAAAE,CAAA,CAAEkJ,OAAA,IAAW5I,QAAA,GAAWC,OAAA;IACzD4I,aAAarJ,WAAAE,CAAA,CAAEU,MAAA,CAAON,MAAA,GAASE,QAAA,GAAWC,OAAA;AAC5C;ADyBA,6DAA6D;AAC7D,KAAMX,CAAAA,OAAOC,OAAO,GAAG;IACrBH,mBAAAA;IACAC,yBAAAA;AACF,CAAA","sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/model/iugu/iugu-invoice.ts\nvar iugu_invoice_exports = {};\n__export(iugu_invoice_exports, {\n IuguInvoiceSchema: () => IuguInvoiceSchema,\n IuguInvoiceStatusSchema: () => IuguInvoiceStatusSchema\n});\nmodule.exports = __toCommonJS(iugu_invoice_exports);\nvar import_zod = require(\"zod\");\nvar IuguInvoiceStatusSchema = import_zod.z.enum([\n \"pending\",\n \"paid\",\n \"canceled\",\n \"in_analysis\",\n \"draft\",\n \"partially_paid\",\n \"refunded\",\n \"expired\",\n \"in_protest\",\n \"chargeback\",\n \"externally_paid\",\n \"invited\"\n]);\nvar IuguInvoiceSchema = import_zod.z.object({\n id: import_zod.z.string(),\n due_date: import_zod.z.string().optional().nullish(),\n currency: import_zod.z.string().optional().nullish(),\n discount_cents: import_zod.z.coerce.string().optional().nullish(),\n email: import_zod.z.string().optional().nullish(),\n items_total_cents: import_zod.z.number().optional().nullish(),\n notification_url: import_zod.z.coerce.string().optional().nullish(),\n return_url: import_zod.z.coerce.string().optional().nullish(),\n status: IuguInvoiceStatusSchema.optional().nullish(),\n tax_cents: import_zod.z.coerce.string().optional().nullish(),\n total_cents: import_zod.z.number().optional().nullish(),\n total_paid_cents: import_zod.z.number().optional().nullish(),\n taxes_paid_cents: import_zod.z.coerce.string().optional().nullish(),\n paid_at: import_zod.z.coerce.string().optional().nullish(),\n paid_cents: import_zod.z.coerce.number().optional().nullish(),\n cc_emails: import_zod.z.coerce.string().optional().nullish(),\n financial_return_date: import_zod.z.coerce.string().optional().nullish(),\n payable_with: import_zod.z.enum([\"credit_card\", \"pix\", \"bank_slip\", \"stripe\", \"all\"]).optional().nullish(),\n overpaid_cents: import_zod.z.coerce.string().optional().nullish(),\n ignore_due_email: import_zod.z.coerce.string().optional().nullish(),\n ignore_canceled_email: import_zod.z.coerce.string().optional().nullish(),\n advance_fee_cents: import_zod.z.coerce.string().optional().nullish(),\n commission_cents: import_zod.z.coerce.string().optional().nullish(),\n early_payment_discount: import_zod.z.boolean().optional().nullish(),\n order_id: import_zod.z.coerce.string().optional().nullish(),\n updated_at: import_zod.z.string().optional().nullish(),\n credit_card_brand: import_zod.z.coerce.string().optional().nullish(),\n credit_card_bin: import_zod.z.coerce.string().optional().nullish(),\n credit_card_last_4: import_zod.z.coerce.string().optional().nullish(),\n credit_card_captured_at: import_zod.z.coerce.string().optional().nullish(),\n credit_card_tid: import_zod.z.coerce.string().optional().nullish(),\n external_reference: import_zod.z.coerce.string().optional().nullish(),\n max_installments_value: import_zod.z.coerce.string().optional().nullish(),\n payer_name: import_zod.z.string().optional().nullish(),\n payer_email: import_zod.z.coerce.string().optional().nullish(),\n payer_cpf_cnpj: import_zod.z.string().optional().nullish(),\n payer_phone: import_zod.z.coerce.string().optional().nullish(),\n payer_phone_prefix: import_zod.z.coerce.string().optional().nullish(),\n payer_address_zip_code: import_zod.z.coerce.string().optional().nullish(),\n payer_address_street: import_zod.z.coerce.string().optional().nullish(),\n payer_address_district: import_zod.z.coerce.string().optional().nullish(),\n payer_address_city: import_zod.z.coerce.string().optional().nullish(),\n payer_address_state: import_zod.z.coerce.string().optional().nullish(),\n payer_address_number: import_zod.z.coerce.string().optional().nullish(),\n payer_address_complement: import_zod.z.coerce.string().optional().nullish(),\n payer_address_country: import_zod.z.coerce.string().optional().nullish(),\n late_payment_fine: import_zod.z.number().optional().nullish(),\n late_payment_fine_cents: import_zod.z.coerce.string().optional().nullish(),\n split_id: import_zod.z.coerce.string().optional().nullish(),\n external_payment_id: import_zod.z.coerce.string().optional().nullish(),\n external_payment_description: import_zod.z.coerce.string().optional().nullish(),\n payment_booklet_id: import_zod.z.coerce.string().optional().nullish(),\n subscription_id: import_zod.z.coerce.string().optional().nullish(),\n variables: import_zod.z.array(import_zod.z.object({ variable: import_zod.z.string(), value: import_zod.z.string() })).optional().nullish(),\n custom_variables: import_zod.z.array(import_zod.z.any()).optional().nullish(),\n logs: import_zod.z.array(\n import_zod.z.object({\n id: import_zod.z.string(),\n description: import_zod.z.string(),\n notes: import_zod.z.string(),\n created_at: import_zod.z.string()\n })\n ).optional().nullish(),\n credit_card_transaction: import_zod.z.coerce.string().optional().nullish(),\n account_id: import_zod.z.string().optional().nullish(),\n bank_account_branch: import_zod.z.string().optional().nullish(),\n bank_account_number: import_zod.z.string().optional().nullish(),\n account_name: import_zod.z.string().optional().nullish(),\n secure_id: import_zod.z.string().optional().nullish(),\n secure_url: import_zod.z.string().optional().nullish(),\n customer_id: import_zod.z.coerce.string().optional().nullish(),\n customer_ref: import_zod.z.coerce.string().optional().nullish(),\n customer_name: import_zod.z.coerce.string().optional().nullish(),\n user_id: import_zod.z.coerce.string().optional().nullish(),\n total: import_zod.z.string().optional().nullish(),\n taxes_paid: import_zod.z.string().optional().nullish(),\n total_paid: import_zod.z.string().optional().nullish(),\n total_overpaid: import_zod.z.string().optional().nullish(),\n total_refunded: import_zod.z.string().optional().nullish(),\n commission: import_zod.z.string().optional().nullish(),\n fines_on_occurrence_day: import_zod.z.string().optional().nullish(),\n total_on_occurrence_day: import_zod.z.string().optional().nullish(),\n fines_on_occurrence_day_cents: import_zod.z.number().optional().nullish(),\n total_on_occurrence_day_cents: import_zod.z.number().optional().nullish(),\n refunded_cents: import_zod.z.number().optional().nullish(),\n remaining_captured_cents: import_zod.z.number().optional().nullish(),\n advance_fee: import_zod.z.coerce.string().optional().nullish(),\n estimated_advance_fee: import_zod.z.coerce.string().optional().nullish(),\n paid: import_zod.z.string().optional().nullish(),\n original_payment_id: import_zod.z.coerce.string().optional().nullish(),\n double_payment_id: import_zod.z.coerce.string().optional().nullish(),\n per_day_interest: import_zod.z.boolean().optional().nullish(),\n per_day_interest_value: import_zod.z.coerce.string().optional().nullish(),\n per_day_interest_cents: import_zod.z.number().optional().nullish(),\n interest: import_zod.z.coerce.string().optional().nullish(),\n discount: import_zod.z.coerce.string().optional().nullish(),\n duplicated_invoice_id: import_zod.z.coerce.string().optional().nullish(),\n bank_slip_extra_due: import_zod.z.number().optional().nullish(),\n created_at: import_zod.z.string().optional().nullish(),\n created_at_iso: import_zod.z.string().optional().nullish(),\n authorized_at: import_zod.z.coerce.string().optional().nullish(),\n authorized_at_iso: import_zod.z.coerce.string().optional().nullish(),\n expired_at: import_zod.z.coerce.string().optional().nullish(),\n expired_at_iso: import_zod.z.coerce.string().optional().nullish(),\n refunded_at: import_zod.z.coerce.string().optional().nullish(),\n refunded_at_iso: import_zod.z.coerce.string().optional().nullish(),\n canceled_at: import_zod.z.coerce.string().optional().nullish(),\n canceled_at_iso: import_zod.z.coerce.string().optional().nullish(),\n protested_at: import_zod.z.coerce.string().optional().nullish(),\n protested_at_iso: import_zod.z.coerce.string().optional().nullish(),\n chargeback_at: import_zod.z.coerce.string().optional().nullish(),\n chargeback_at_iso: import_zod.z.coerce.string().optional().nullish(),\n occurrence_date: import_zod.z.coerce.string().optional().nullish(),\n refundable: import_zod.z.coerce.string().optional().nullish(),\n installments: import_zod.z.coerce.string().optional().nullish(),\n transaction_number: import_zod.z.number().optional().nullish(),\n payment_method: import_zod.z.coerce.string().optional().nullish(),\n financial_return_dates: import_zod.z.coerce.string().optional().nullish(),\n bank_slip: import_zod.z.object({\n digitable_line: import_zod.z.string(),\n barcode_data: import_zod.z.string(),\n barcode: import_zod.z.string(),\n bank_slip_url: import_zod.z.string(),\n bank_slip_bank: import_zod.z.number(),\n bank_slip_status: import_zod.z.string(),\n bank_slip_error_code: import_zod.z.coerce.string(),\n bank_slip_error_message: import_zod.z.coerce.string(),\n recipient_cpf_cnpj: import_zod.z.string()\n }).nullish().optional(),\n pix: import_zod.z.object({\n qrcode: import_zod.z.string(),\n qrcode_text: import_zod.z.string(),\n status: import_zod.z.string(),\n payer_cpf_cnpj: import_zod.z.coerce.string(),\n payer_name: import_zod.z.coerce.string(),\n end_to_end_id: import_zod.z.coerce.string(),\n end_to_end_refund_id: import_zod.z.coerce.string(),\n account_number_last_digits: import_zod.z.coerce.string()\n }).optional().nullish(),\n items: import_zod.z.array(\n import_zod.z.object({\n id: import_zod.z.string(),\n description: import_zod.z.string(),\n price_cents: import_zod.z.number(),\n quantity: import_zod.z.number(),\n created_at: import_zod.z.string(),\n updated_at: import_zod.z.string(),\n price: import_zod.z.string()\n })\n ).optional().nullish(),\n early_payment_discounts: import_zod.z.array(import_zod.z.unknown()).optional().nullish(),\n split_rules: import_zod.z.coerce.string().optional().nullish()\n});\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n IuguInvoiceSchema,\n IuguInvoiceStatusSchema\n});\n","import { z } from \"zod\"\n\nexport const IuguInvoiceStatusSchema = z.enum([\n 'pending',\n 'paid',\n 'canceled',\n 'in_analysis',\n 'draft',\n 'partially_paid',\n 'refunded',\n 'expired',\n 'in_protest',\n 'chargeback',\n 'externally_paid',\n 'invited',\n])\n\nexport const IuguInvoiceSchema = z.object({\n id: z.string(),\n due_date: z.string().optional().nullish(),\n currency: z.string().optional().nullish(),\n discount_cents: z.coerce.string().optional().nullish(),\n email: z.string().optional().nullish(),\n items_total_cents: z.number().optional().nullish(),\n notification_url: z.coerce.string().optional().nullish(),\n return_url: z.coerce.string().optional().nullish(),\n status: IuguInvoiceStatusSchema.optional().nullish(),\n tax_cents: z.coerce.string().optional().nullish(),\n total_cents: z.number().optional().nullish(),\n total_paid_cents: z.number().optional().nullish(),\n taxes_paid_cents: z.coerce.string().optional().nullish(),\n paid_at: z.coerce.string().optional().nullish(),\n paid_cents: z.coerce.number().optional().nullish(),\n cc_emails: z.coerce.string().optional().nullish(),\n financial_return_date: z.coerce.string().optional().nullish(),\n payable_with: z.enum(['credit_card', 'pix', 'bank_slip', 'stripe', 'all']).optional().nullish(),\n overpaid_cents: z.coerce.string().optional().nullish(),\n ignore_due_email: z.coerce.string().optional().nullish(),\n ignore_canceled_email: z.coerce.string().optional().nullish(),\n advance_fee_cents: z.coerce.string().optional().nullish(),\n commission_cents: z.coerce.string().optional().nullish(),\n early_payment_discount: z.boolean().optional().nullish(),\n order_id: z.coerce.string().optional().nullish(),\n updated_at: z.string().optional().nullish(),\n credit_card_brand: z.coerce.string().optional().nullish(),\n credit_card_bin: z.coerce.string().optional().nullish(),\n credit_card_last_4: z.coerce.string().optional().nullish(),\n credit_card_captured_at: z.coerce.string().optional().nullish(),\n credit_card_tid: z.coerce.string().optional().nullish(),\n external_reference: z.coerce.string().optional().nullish(),\n max_installments_value: z.coerce.string().optional().nullish(),\n payer_name: z.string().optional().nullish(),\n payer_email: z.coerce.string().optional().nullish(),\n payer_cpf_cnpj: z.string().optional().nullish(),\n payer_phone: z.coerce.string().optional().nullish(),\n payer_phone_prefix: z.coerce.string().optional().nullish(),\n payer_address_zip_code: z.coerce.string().optional().nullish(),\n payer_address_street: z.coerce.string().optional().nullish(),\n payer_address_district: z.coerce.string().optional().nullish(),\n payer_address_city: z.coerce.string().optional().nullish(),\n payer_address_state: z.coerce.string().optional().nullish(),\n payer_address_number: z.coerce.string().optional().nullish(),\n payer_address_complement: z.coerce.string().optional().nullish(),\n payer_address_country: z.coerce.string().optional().nullish(),\n late_payment_fine: z.number().optional().nullish(),\n late_payment_fine_cents: z.coerce.string().optional().nullish(),\n split_id: z.coerce.string().optional().nullish(),\n external_payment_id: z.coerce.string().optional().nullish(),\n external_payment_description: z.coerce.string().optional().nullish(),\n payment_booklet_id: z.coerce.string().optional().nullish(),\n subscription_id: z.coerce.string().optional().nullish(),\n variables: z.array(z.object({ variable: z.string(), value: z.string() })).optional().nullish(),\n custom_variables: z.array(z.any()).optional().nullish(),\n logs: z.array(\n z.object({\n id: z.string(),\n description: z.string(),\n notes: z.string(),\n created_at: z.string()\n })\n ).optional().nullish(),\n credit_card_transaction: z.coerce.string().optional().nullish(),\n account_id: z.string().optional().nullish(),\n bank_account_branch: z.string().optional().nullish(),\n bank_account_number: z.string().optional().nullish(),\n account_name: z.string().optional().nullish(),\n secure_id: z.string().optional().nullish(),\n secure_url: z.string().optional().nullish(),\n customer_id: z.coerce.string().optional().nullish(),\n customer_ref: z.coerce.string().optional().nullish(),\n customer_name: z.coerce.string().optional().nullish(),\n user_id: z.coerce.string().optional().nullish(),\n total: z.string().optional().nullish(),\n taxes_paid: z.string().optional().nullish(),\n total_paid: z.string().optional().nullish(),\n total_overpaid: z.string().optional().nullish(),\n total_refunded: z.string().optional().nullish(),\n commission: z.string().optional().nullish(),\n fines_on_occurrence_day: z.string().optional().nullish(),\n total_on_occurrence_day: z.string().optional().nullish(),\n fines_on_occurrence_day_cents: z.number().optional().nullish(),\n total_on_occurrence_day_cents: z.number().optional().nullish(),\n refunded_cents: z.number().optional().nullish(),\n remaining_captured_cents: z.number().optional().nullish(),\n advance_fee: z.coerce.string().optional().nullish(),\n estimated_advance_fee: z.coerce.string().optional().nullish(),\n paid: z.string().optional().nullish(),\n original_payment_id: z.coerce.string().optional().nullish(),\n double_payment_id: z.coerce.string().optional().nullish(),\n per_day_interest: z.boolean().optional().nullish(),\n per_day_interest_value: z.coerce.string().optional().nullish(),\n per_day_interest_cents: z.number().optional().nullish(),\n interest: z.coerce.string().optional().nullish(),\n discount: z.coerce.string().optional().nullish(),\n duplicated_invoice_id: z.coerce.string().optional().nullish(),\n bank_slip_extra_due: z.number().optional().nullish(),\n created_at: z.string().optional().nullish(),\n created_at_iso: z.string().optional().nullish(),\n authorized_at: z.coerce.string().optional().nullish(),\n authorized_at_iso: z.coerce.string().optional().nullish(),\n expired_at: z.coerce.string().optional().nullish(),\n expired_at_iso: z.coerce.string().optional().nullish(),\n refunded_at: z.coerce.string().optional().nullish(),\n refunded_at_iso: z.coerce.string().optional().nullish(),\n canceled_at: z.coerce.string().optional().nullish(),\n canceled_at_iso: z.coerce.string().optional().nullish(),\n protested_at: z.coerce.string().optional().nullish(),\n protested_at_iso: z.coerce.string().optional().nullish(),\n chargeback_at: z.coerce.string().optional().nullish(),\n chargeback_at_iso: z.coerce.string().optional().nullish(),\n occurrence_date: z.coerce.string().optional().nullish(),\n refundable: z.coerce.string().optional().nullish(),\n installments: z.coerce.string().optional().nullish(),\n transaction_number: z.number().optional().nullish(),\n payment_method: z.coerce.string().optional().nullish(),\n financial_return_dates: z.coerce.string().optional().nullish(),\n bank_slip: z.object({\n digitable_line: z.string(),\n barcode_data: z.string(),\n barcode: z.string(),\n bank_slip_url: z.string(),\n bank_slip_bank: z.number(),\n bank_slip_status: z.string(),\n bank_slip_error_code: z.coerce.string(),\n bank_slip_error_message: z.coerce.string(),\n recipient_cpf_cnpj: z.string()\n }).nullish().optional(),\n pix: z.object({\n qrcode: z.string(),\n qrcode_text: z.string(),\n status: z.string(),\n payer_cpf_cnpj: z.coerce.string(),\n payer_name: z.coerce.string(),\n end_to_end_id: z.coerce.string(),\n end_to_end_refund_id: z.coerce.string(),\n account_number_last_digits: z.coerce.string()\n }).optional().nullish(),\n items: z.array(\n z.object({\n id: z.string(),\n description: z.string(),\n price_cents: z.number(),\n quantity: z.number(),\n created_at: z.string(),\n updated_at: z.string(),\n price: z.string()\n })\n ).optional().nullish(),\n early_payment_discounts: z.array(z.unknown()).optional().nullish(),\n split_rules: z.coerce.string().optional().nullish()\n})\n\n\nexport type IuguInvoice = z.infer<typeof IuguInvoiceSchema>\nexport type IuguInvoiceStatus = z.infer<typeof IuguInvoiceStatusSchema>\n"]}
@@ -29,10 +29,16 @@ var IuguInvoiceSchema = z.object({
29
29
  total_paid_cents: z.number().optional().nullish(),
30
30
  taxes_paid_cents: z.coerce.string().optional().nullish(),
31
31
  paid_at: z.coerce.string().optional().nullish(),
32
- paid_cents: z.coerce.string().optional().nullish(),
32
+ paid_cents: z.coerce.number().optional().nullish(),
33
33
  cc_emails: z.coerce.string().optional().nullish(),
34
34
  financial_return_date: z.coerce.string().optional().nullish(),
35
- payable_with: z.string().optional().nullish(),
35
+ payable_with: z.enum([
36
+ "credit_card",
37
+ "pix",
38
+ "bank_slip",
39
+ "stripe",
40
+ "all"
41
+ ]).optional().nullish(),
36
42
  overpaid_cents: z.coerce.string().optional().nullish(),
37
43
  ignore_due_email: z.coerce.string().optional().nullish(),
38
44
  ignore_canceled_email: z.coerce.string().optional().nullish(),
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/henriquewilson/Developer/Projects/gabirubi-domain/dist/model/iugu/iugu-invoice.mjs","../../../src/model/iugu/iugu-invoice.ts"],"names":["z","IuguInvoiceStatusSchema","enum","IuguInvoiceSchema","object","id","string","due_date","optional","nullish","currency","discount_cents","coerce","email","items_total_cents","number","notification_url","return_url","status","tax_cents","total_cents","total_paid_cents","taxes_paid_cents","paid_at","paid_cents","cc_emails","financial_return_date","payable_with","overpaid_cents","ignore_due_email","ignore_canceled_email","advance_fee_cents","commission_cents","early_payment_discount","boolean","order_id","updated_at","credit_card_brand","credit_card_bin","credit_card_last_4","credit_card_captured_at","credit_card_tid","external_reference","max_installments_value","payer_name","payer_email","payer_cpf_cnpj","payer_phone","payer_phone_prefix","payer_address_zip_code","payer_address_street","payer_address_district","payer_address_city","payer_address_state","payer_address_number","payer_address_complement","payer_address_country","late_payment_fine","late_payment_fine_cents","split_id","external_payment_id","external_payment_description","payment_booklet_id","subscription_id","variables","array","variable","value","custom_variables","any","logs","description","notes","created_at","credit_card_transaction","account_id","bank_account_branch","bank_account_number","account_name","secure_id","secure_url","customer_id","customer_ref","customer_name","user_id","total","taxes_paid","total_paid","total_overpaid","total_refunded","commission","fines_on_occurrence_day","total_on_occurrence_day","fines_on_occurrence_day_cents","total_on_occurrence_day_cents","refunded_cents","remaining_captured_cents","advance_fee","estimated_advance_fee","paid","original_payment_id","double_payment_id","per_day_interest","per_day_interest_value","per_day_interest_cents","interest","discount","duplicated_invoice_id","bank_slip_extra_due","created_at_iso","authorized_at","authorized_at_iso","expired_at","expired_at_iso","refunded_at","refunded_at_iso","canceled_at","canceled_at_iso","protested_at","protested_at_iso","chargeback_at","chargeback_at_iso","occurrence_date","refundable","installments","transaction_number","payment_method","financial_return_dates","bank_slip","digitable_line","barcode_data","barcode","bank_slip_url","bank_slip_bank","bank_slip_status","bank_slip_error_code","bank_slip_error_message","recipient_cpf_cnpj","pix","qrcode","qrcode_text","end_to_end_id","end_to_end_refund_id","account_number_last_digits","items","price_cents","quantity","price","early_payment_discounts","unknown","split_rules"],"mappings":"AAAA,iCAAiC;ACAjC,SAASA,CAAA,QAAS,MAAA;AAEX,IAAMC,0BAA0BD,EAAEE,IAAA,CAAK;IAC5C;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CACD;AAEM,IAAMC,oBAAoBH,EAAEI,MAAA,CAAO;IACxCC,IAAIL,EAAEM,MAAA;IACNC,UAAUP,EAAEM,MAAA,GAASE,QAAA,GAAWC,OAAA;IAChCC,UAAUV,EAAEM,MAAA,GAASE,QAAA,GAAWC,OAAA;IAChCE,gBAAgBX,EAAEY,MAAA,CAAON,MAAA,GAASE,QAAA,GAAWC,OAAA;IAC7CI,OAAOb,EAAEM,MAAA,GAASE,QAAA,GAAWC,OAAA;IAC7BK,mBAAmBd,EAAEe,MAAA,GAASP,QAAA,GAAWC,OAAA;IACzCO,kBAAkBhB,EAAEY,MAAA,CAAON,MAAA,GAASE,QAAA,GAAWC,OAAA;IAC/CQ,YAAYjB,EAAEY,MAAA,CAAON,MAAA,GAASE,QAAA,GAAWC,OAAA;IACzCS,QAAQjB,wBAAwBO,QAAA,GAAWC,OAAA;IAC3CU,WAAWnB,EAAEY,MAAA,CAAON,MAAA,GAASE,QAAA,GAAWC,OAAA;IACxCW,aAAapB,EAAEe,MAAA,GAASP,QAAA,GAAWC,OAAA;IACnCY,kBAAkBrB,EAAEe,MAAA,GAASP,QAAA,GAAWC,OAAA;IACxCa,kBAAkBtB,EAAEY,MAAA,CAAON,MAAA,GAASE,QAAA,GAAWC,OAAA;IAC/Cc,SAASvB,EAAEY,MAAA,CAAON,MAAA,GAASE,QAAA,GAAWC,OAAA;IACtCe,YAAYxB,EAAEY,MAAA,CAAON,MAAA,GAASE,QAAA,GAAWC,OAAA;IACzCgB,WAAWzB,EAAEY,MAAA,CAAON,MAAA,GAASE,QAAA,GAAWC,OAAA;IACxCiB,uBAAuB1B,EAAEY,MAAA,CAAON,MAAA,GAASE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,MAAA;IACX,IACAE,QAAA,GAAWC,OAAA;IACb2I,yBAAyBpJ,EAAEiE,KAAA,CAAMjE,EAAEqJ,OAAA,IAAW7I,QAAA,GAAWC,OAAA;IACzD6I,aAAatJ,EAAEY,MAAA,CAAON,MAAA,GAASE,QAAA,GAAWC,OAAA;AAC5C;ADAA,SACEN,iBAAiB,EACjBF,uBAAuB,GACvB","sourcesContent":["// src/model/iugu/iugu-invoice.ts\nimport { z } from \"zod\";\nvar IuguInvoiceStatusSchema = z.enum([\n \"pending\",\n \"paid\",\n \"canceled\",\n \"in_analysis\",\n \"draft\",\n \"partially_paid\",\n \"refunded\",\n \"expired\",\n \"in_protest\",\n \"chargeback\",\n \"externally_paid\",\n \"invited\"\n]);\nvar IuguInvoiceSchema = z.object({\n id: z.string(),\n due_date: z.string().optional().nullish(),\n currency: z.string().optional().nullish(),\n discount_cents: z.coerce.string().optional().nullish(),\n email: z.string().optional().nullish(),\n items_total_cents: z.number().optional().nullish(),\n notification_url: z.coerce.string().optional().nullish(),\n return_url: z.coerce.string().optional().nullish(),\n status: IuguInvoiceStatusSchema.optional().nullish(),\n tax_cents: z.coerce.string().optional().nullish(),\n total_cents: z.number().optional().nullish(),\n total_paid_cents: z.number().optional().nullish(),\n taxes_paid_cents: z.coerce.string().optional().nullish(),\n paid_at: z.coerce.string().optional().nullish(),\n paid_cents: z.coerce.string().optional().nullish(),\n cc_emails: z.coerce.string().optional().nullish(),\n financial_return_date: z.coerce.string().optional().nullish(),\n payable_with: z.string().optional().nullish(),\n overpaid_cents: z.coerce.string().optional().nullish(),\n ignore_due_email: z.coerce.string().optional().nullish(),\n ignore_canceled_email: z.coerce.string().optional().nullish(),\n advance_fee_cents: z.coerce.string().optional().nullish(),\n commission_cents: z.coerce.string().optional().nullish(),\n early_payment_discount: z.boolean().optional().nullish(),\n order_id: z.coerce.string().optional().nullish(),\n updated_at: z.string().optional().nullish(),\n credit_card_brand: z.coerce.string().optional().nullish(),\n credit_card_bin: z.coerce.string().optional().nullish(),\n credit_card_last_4: z.coerce.string().optional().nullish(),\n credit_card_captured_at: z.coerce.string().optional().nullish(),\n credit_card_tid: z.coerce.string().optional().nullish(),\n external_reference: z.coerce.string().optional().nullish(),\n max_installments_value: z.coerce.string().optional().nullish(),\n payer_name: z.string().optional().nullish(),\n payer_email: z.coerce.string().optional().nullish(),\n payer_cpf_cnpj: z.string().optional().nullish(),\n payer_phone: z.coerce.string().optional().nullish(),\n payer_phone_prefix: z.coerce.string().optional().nullish(),\n payer_address_zip_code: z.coerce.string().optional().nullish(),\n payer_address_street: z.coerce.string().optional().nullish(),\n payer_address_district: z.coerce.string().optional().nullish(),\n payer_address_city: z.coerce.string().optional().nullish(),\n payer_address_state: z.coerce.string().optional().nullish(),\n payer_address_number: z.coerce.string().optional().nullish(),\n payer_address_complement: z.coerce.string().optional().nullish(),\n payer_address_country: z.coerce.string().optional().nullish(),\n late_payment_fine: z.number().optional().nullish(),\n late_payment_fine_cents: z.coerce.string().optional().nullish(),\n split_id: z.coerce.string().optional().nullish(),\n external_payment_id: z.coerce.string().optional().nullish(),\n external_payment_description: z.coerce.string().optional().nullish(),\n payment_booklet_id: z.coerce.string().optional().nullish(),\n subscription_id: z.coerce.string().optional().nullish(),\n variables: z.array(z.object({ variable: z.string(), value: z.string() })).optional().nullish(),\n custom_variables: z.array(z.any()).optional().nullish(),\n logs: z.array(\n z.object({\n id: z.string(),\n description: z.string(),\n notes: z.string(),\n created_at: z.string()\n })\n ).optional().nullish(),\n credit_card_transaction: z.coerce.string().optional().nullish(),\n account_id: z.string().optional().nullish(),\n bank_account_branch: z.string().optional().nullish(),\n bank_account_number: z.string().optional().nullish(),\n account_name: z.string().optional().nullish(),\n secure_id: z.string().optional().nullish(),\n secure_url: z.string().optional().nullish(),\n customer_id: z.coerce.string().optional().nullish(),\n customer_ref: z.coerce.string().optional().nullish(),\n customer_name: z.coerce.string().optional().nullish(),\n user_id: z.coerce.string().optional().nullish(),\n total: z.string().optional().nullish(),\n taxes_paid: z.string().optional().nullish(),\n total_paid: z.string().optional().nullish(),\n total_overpaid: z.string().optional().nullish(),\n total_refunded: z.string().optional().nullish(),\n commission: z.string().optional().nullish(),\n fines_on_occurrence_day: z.string().optional().nullish(),\n total_on_occurrence_day: z.string().optional().nullish(),\n fines_on_occurrence_day_cents: z.number().optional().nullish(),\n total_on_occurrence_day_cents: z.number().optional().nullish(),\n refunded_cents: z.number().optional().nullish(),\n remaining_captured_cents: z.number().optional().nullish(),\n advance_fee: z.coerce.string().optional().nullish(),\n estimated_advance_fee: z.coerce.string().optional().nullish(),\n paid: z.string().optional().nullish(),\n original_payment_id: z.coerce.string().optional().nullish(),\n double_payment_id: z.coerce.string().optional().nullish(),\n per_day_interest: z.boolean().optional().nullish(),\n per_day_interest_value: z.coerce.string().optional().nullish(),\n per_day_interest_cents: z.number().optional().nullish(),\n interest: z.coerce.string().optional().nullish(),\n discount: z.coerce.string().optional().nullish(),\n duplicated_invoice_id: z.coerce.string().optional().nullish(),\n bank_slip_extra_due: z.number().optional().nullish(),\n created_at: z.string().optional().nullish(),\n created_at_iso: z.string().optional().nullish(),\n authorized_at: z.coerce.string().optional().nullish(),\n authorized_at_iso: z.coerce.string().optional().nullish(),\n expired_at: z.coerce.string().optional().nullish(),\n expired_at_iso: z.coerce.string().optional().nullish(),\n refunded_at: z.coerce.string().optional().nullish(),\n refunded_at_iso: z.coerce.string().optional().nullish(),\n canceled_at: z.coerce.string().optional().nullish(),\n canceled_at_iso: z.coerce.string().optional().nullish(),\n protested_at: z.coerce.string().optional().nullish(),\n protested_at_iso: z.coerce.string().optional().nullish(),\n chargeback_at: z.coerce.string().optional().nullish(),\n chargeback_at_iso: z.coerce.string().optional().nullish(),\n occurrence_date: z.coerce.string().optional().nullish(),\n refundable: z.coerce.string().optional().nullish(),\n installments: z.coerce.string().optional().nullish(),\n transaction_number: z.number().optional().nullish(),\n payment_method: z.coerce.string().optional().nullish(),\n financial_return_dates: z.coerce.string().optional().nullish(),\n bank_slip: z.object({\n digitable_line: z.string(),\n barcode_data: z.string(),\n barcode: z.string(),\n bank_slip_url: z.string(),\n bank_slip_bank: z.number(),\n bank_slip_status: z.string(),\n bank_slip_error_code: z.coerce.string(),\n bank_slip_error_message: z.coerce.string(),\n recipient_cpf_cnpj: z.string()\n }).nullish().optional(),\n pix: z.object({\n qrcode: z.string(),\n qrcode_text: z.string(),\n status: z.string(),\n payer_cpf_cnpj: z.coerce.string(),\n payer_name: z.coerce.string(),\n end_to_end_id: z.coerce.string(),\n end_to_end_refund_id: z.coerce.string(),\n account_number_last_digits: z.coerce.string()\n }).optional().nullish(),\n items: z.array(\n z.object({\n id: z.string(),\n description: z.string(),\n price_cents: z.number(),\n quantity: z.number(),\n created_at: z.string(),\n updated_at: z.string(),\n price: z.string()\n })\n ).optional().nullish(),\n early_payment_discounts: z.array(z.unknown()).optional().nullish(),\n split_rules: z.coerce.string().optional().nullish()\n});\nexport {\n IuguInvoiceSchema,\n IuguInvoiceStatusSchema\n};\n","import { z } from \"zod\"\n\nexport const IuguInvoiceStatusSchema = z.enum([\n 'pending',\n 'paid',\n 'canceled',\n 'in_analysis',\n 'draft',\n 'partially_paid',\n 'refunded',\n 'expired',\n 'in_protest',\n 'chargeback',\n 'externally_paid',\n 'invited',\n])\n\nexport const IuguInvoiceSchema = z.object({\n id: z.string(),\n due_date: z.string().optional().nullish(),\n currency: z.string().optional().nullish(),\n discount_cents: z.coerce.string().optional().nullish(),\n email: z.string().optional().nullish(),\n items_total_cents: z.number().optional().nullish(),\n notification_url: z.coerce.string().optional().nullish(),\n return_url: z.coerce.string().optional().nullish(),\n status: IuguInvoiceStatusSchema.optional().nullish(),\n tax_cents: z.coerce.string().optional().nullish(),\n total_cents: z.number().optional().nullish(),\n total_paid_cents: z.number().optional().nullish(),\n taxes_paid_cents: z.coerce.string().optional().nullish(),\n paid_at: z.coerce.string().optional().nullish(),\n paid_cents: z.coerce.string().optional().nullish(),\n cc_emails: z.coerce.string().optional().nullish(),\n financial_return_date: z.coerce.string().optional().nullish(),\n payable_with: z.string().optional().nullish(),\n overpaid_cents: z.coerce.string().optional().nullish(),\n ignore_due_email: z.coerce.string().optional().nullish(),\n ignore_canceled_email: z.coerce.string().optional().nullish(),\n advance_fee_cents: z.coerce.string().optional().nullish(),\n commission_cents: z.coerce.string().optional().nullish(),\n early_payment_discount: z.boolean().optional().nullish(),\n order_id: z.coerce.string().optional().nullish(),\n updated_at: z.string().optional().nullish(),\n credit_card_brand: z.coerce.string().optional().nullish(),\n credit_card_bin: z.coerce.string().optional().nullish(),\n credit_card_last_4: z.coerce.string().optional().nullish(),\n credit_card_captured_at: z.coerce.string().optional().nullish(),\n credit_card_tid: z.coerce.string().optional().nullish(),\n external_reference: z.coerce.string().optional().nullish(),\n max_installments_value: z.coerce.string().optional().nullish(),\n payer_name: z.string().optional().nullish(),\n payer_email: z.coerce.string().optional().nullish(),\n payer_cpf_cnpj: z.string().optional().nullish(),\n payer_phone: z.coerce.string().optional().nullish(),\n payer_phone_prefix: z.coerce.string().optional().nullish(),\n payer_address_zip_code: z.coerce.string().optional().nullish(),\n payer_address_street: z.coerce.string().optional().nullish(),\n payer_address_district: z.coerce.string().optional().nullish(),\n payer_address_city: z.coerce.string().optional().nullish(),\n payer_address_state: z.coerce.string().optional().nullish(),\n payer_address_number: z.coerce.string().optional().nullish(),\n payer_address_complement: z.coerce.string().optional().nullish(),\n payer_address_country: z.coerce.string().optional().nullish(),\n late_payment_fine: z.number().optional().nullish(),\n late_payment_fine_cents: z.coerce.string().optional().nullish(),\n split_id: z.coerce.string().optional().nullish(),\n external_payment_id: z.coerce.string().optional().nullish(),\n external_payment_description: z.coerce.string().optional().nullish(),\n payment_booklet_id: z.coerce.string().optional().nullish(),\n subscription_id: z.coerce.string().optional().nullish(),\n variables: z.array(z.object({ variable: z.string(), value: z.string() })).optional().nullish(),\n custom_variables: z.array(z.any()).optional().nullish(),\n logs: z.array(\n z.object({\n id: z.string(),\n description: z.string(),\n notes: z.string(),\n created_at: z.string()\n })\n ).optional().nullish(),\n credit_card_transaction: z.coerce.string().optional().nullish(),\n account_id: z.string().optional().nullish(),\n bank_account_branch: z.string().optional().nullish(),\n bank_account_number: z.string().optional().nullish(),\n account_name: z.string().optional().nullish(),\n secure_id: z.string().optional().nullish(),\n secure_url: z.string().optional().nullish(),\n customer_id: z.coerce.string().optional().nullish(),\n customer_ref: z.coerce.string().optional().nullish(),\n customer_name: z.coerce.string().optional().nullish(),\n user_id: z.coerce.string().optional().nullish(),\n total: z.string().optional().nullish(),\n taxes_paid: z.string().optional().nullish(),\n total_paid: z.string().optional().nullish(),\n total_overpaid: z.string().optional().nullish(),\n total_refunded: z.string().optional().nullish(),\n commission: z.string().optional().nullish(),\n fines_on_occurrence_day: z.string().optional().nullish(),\n total_on_occurrence_day: z.string().optional().nullish(),\n fines_on_occurrence_day_cents: z.number().optional().nullish(),\n total_on_occurrence_day_cents: z.number().optional().nullish(),\n refunded_cents: z.number().optional().nullish(),\n remaining_captured_cents: z.number().optional().nullish(),\n advance_fee: z.coerce.string().optional().nullish(),\n estimated_advance_fee: z.coerce.string().optional().nullish(),\n paid: z.string().optional().nullish(),\n original_payment_id: z.coerce.string().optional().nullish(),\n double_payment_id: z.coerce.string().optional().nullish(),\n per_day_interest: z.boolean().optional().nullish(),\n per_day_interest_value: z.coerce.string().optional().nullish(),\n per_day_interest_cents: z.number().optional().nullish(),\n interest: z.coerce.string().optional().nullish(),\n discount: z.coerce.string().optional().nullish(),\n duplicated_invoice_id: z.coerce.string().optional().nullish(),\n bank_slip_extra_due: z.number().optional().nullish(),\n created_at: z.string().optional().nullish(),\n created_at_iso: z.string().optional().nullish(),\n authorized_at: z.coerce.string().optional().nullish(),\n authorized_at_iso: z.coerce.string().optional().nullish(),\n expired_at: z.coerce.string().optional().nullish(),\n expired_at_iso: z.coerce.string().optional().nullish(),\n refunded_at: z.coerce.string().optional().nullish(),\n refunded_at_iso: z.coerce.string().optional().nullish(),\n canceled_at: z.coerce.string().optional().nullish(),\n canceled_at_iso: z.coerce.string().optional().nullish(),\n protested_at: z.coerce.string().optional().nullish(),\n protested_at_iso: z.coerce.string().optional().nullish(),\n chargeback_at: z.coerce.string().optional().nullish(),\n chargeback_at_iso: z.coerce.string().optional().nullish(),\n occurrence_date: z.coerce.string().optional().nullish(),\n refundable: z.coerce.string().optional().nullish(),\n installments: z.coerce.string().optional().nullish(),\n transaction_number: z.number().optional().nullish(),\n payment_method: z.coerce.string().optional().nullish(),\n financial_return_dates: z.coerce.string().optional().nullish(),\n bank_slip: z.object({\n digitable_line: z.string(),\n barcode_data: z.string(),\n barcode: z.string(),\n bank_slip_url: z.string(),\n bank_slip_bank: z.number(),\n bank_slip_status: z.string(),\n bank_slip_error_code: z.coerce.string(),\n bank_slip_error_message: z.coerce.string(),\n recipient_cpf_cnpj: z.string()\n }).nullish().optional(),\n pix: z.object({\n qrcode: z.string(),\n qrcode_text: z.string(),\n status: z.string(),\n payer_cpf_cnpj: z.coerce.string(),\n payer_name: z.coerce.string(),\n end_to_end_id: z.coerce.string(),\n end_to_end_refund_id: z.coerce.string(),\n account_number_last_digits: z.coerce.string()\n }).optional().nullish(),\n items: z.array(\n z.object({\n id: z.string(),\n description: z.string(),\n price_cents: z.number(),\n quantity: z.number(),\n created_at: z.string(),\n updated_at: z.string(),\n price: z.string()\n })\n ).optional().nullish(),\n early_payment_discounts: z.array(z.unknown()).optional().nullish(),\n split_rules: z.coerce.string().optional().nullish()\n})\n\n\nexport type IuguInvoice = z.infer<typeof IuguInvoiceSchema>\nexport type IuguInvoiceStatus = z.infer<typeof IuguInvoiceStatusSchema>\n"]}
1
+ {"version":3,"sources":["/Users/henriquewilson/Developer/Projects/gabirubi-domain/dist/model/iugu/iugu-invoice.mjs","../../../src/model/iugu/iugu-invoice.ts"],"names":["z","IuguInvoiceStatusSchema","enum","IuguInvoiceSchema","object","id","string","due_date","optional","nullish","currency","discount_cents","coerce","email","items_total_cents","number","notification_url","return_url","status","tax_cents","total_cents","total_paid_cents","taxes_paid_cents","paid_at","paid_cents","cc_emails","financial_return_date","payable_with","overpaid_cents","ignore_due_email","ignore_canceled_email","advance_fee_cents","commission_cents","early_payment_discount","boolean","order_id","updated_at","credit_card_brand","credit_card_bin","credit_card_last_4","credit_card_captured_at","credit_card_tid","external_reference","max_installments_value","payer_name","payer_email","payer_cpf_cnpj","payer_phone","payer_phone_prefix","payer_address_zip_code","payer_address_street","payer_address_district","payer_address_city","payer_address_state","payer_address_number","payer_address_complement","payer_address_country","late_payment_fine","late_payment_fine_cents","split_id","external_payment_id","external_payment_description","payment_booklet_id","subscription_id","variables","array","variable","value","custom_variables","any","logs","description","notes","created_at","credit_card_transaction","account_id","bank_account_branch","bank_account_number","account_name","secure_id","secure_url","customer_id","customer_ref","customer_name","user_id","total","taxes_paid","total_paid","total_overpaid","total_refunded","commission","fines_on_occurrence_day","total_on_occurrence_day","fines_on_occurrence_day_cents","total_on_occurrence_day_cents","refunded_cents","remaining_captured_cents","advance_fee","estimated_advance_fee","paid","original_payment_id","double_payment_id","per_day_interest","per_day_interest_value","per_day_interest_cents","interest","discount","duplicated_invoice_id","bank_slip_extra_due","created_at_iso","authorized_at","authorized_at_iso","expired_at","expired_at_iso","refunded_at","refunded_at_iso","canceled_at","canceled_at_iso","protested_at","protested_at_iso","chargeback_at","chargeback_at_iso","occurrence_date","refundable","installments","transaction_number","payment_method","financial_return_dates","bank_slip","digitable_line","barcode_data","barcode","bank_slip_url","bank_slip_bank","bank_slip_status","bank_slip_error_code","bank_slip_error_message","recipient_cpf_cnpj","pix","qrcode","qrcode_text","end_to_end_id","end_to_end_refund_id","account_number_last_digits","items","price_cents","quantity","price","early_payment_discounts","unknown","split_rules"],"mappings":"AAAA,iCAAiC;ACAjC,SAASA,CAAA,QAAS,MAAA;AAEX,IAAMC,0BAA0BD,EAAEE,IAAA,CAAK;IAC5C;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CACD;AAEM,IAAMC,oBAAoBH,EAAEI,MAA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AC5C;ADAA,SACEN,iBAAiB,EACjBF,uBAAuB,GACvB","sourcesContent":["// src/model/iugu/iugu-invoice.ts\nimport { z } from \"zod\";\nvar IuguInvoiceStatusSchema = z.enum([\n \"pending\",\n \"paid\",\n \"canceled\",\n \"in_analysis\",\n \"draft\",\n \"partially_paid\",\n \"refunded\",\n \"expired\",\n \"in_protest\",\n \"chargeback\",\n \"externally_paid\",\n \"invited\"\n]);\nvar IuguInvoiceSchema = z.object({\n id: z.string(),\n due_date: z.string().optional().nullish(),\n currency: z.string().optional().nullish(),\n discount_cents: z.coerce.string().optional().nullish(),\n email: z.string().optional().nullish(),\n items_total_cents: z.number().optional().nullish(),\n notification_url: z.coerce.string().optional().nullish(),\n return_url: z.coerce.string().optional().nullish(),\n status: IuguInvoiceStatusSchema.optional().nullish(),\n tax_cents: z.coerce.string().optional().nullish(),\n total_cents: z.number().optional().nullish(),\n total_paid_cents: z.number().optional().nullish(),\n taxes_paid_cents: z.coerce.string().optional().nullish(),\n paid_at: z.coerce.string().optional().nullish(),\n paid_cents: z.coerce.number().optional().nullish(),\n cc_emails: z.coerce.string().optional().nullish(),\n financial_return_date: z.coerce.string().optional().nullish(),\n payable_with: z.enum([\"credit_card\", \"pix\", \"bank_slip\", \"stripe\", \"all\"]).optional().nullish(),\n overpaid_cents: z.coerce.string().optional().nullish(),\n ignore_due_email: z.coerce.string().optional().nullish(),\n ignore_canceled_email: z.coerce.string().optional().nullish(),\n advance_fee_cents: z.coerce.string().optional().nullish(),\n commission_cents: z.coerce.string().optional().nullish(),\n early_payment_discount: z.boolean().optional().nullish(),\n order_id: z.coerce.string().optional().nullish(),\n updated_at: z.string().optional().nullish(),\n credit_card_brand: z.coerce.string().optional().nullish(),\n credit_card_bin: z.coerce.string().optional().nullish(),\n credit_card_last_4: z.coerce.string().optional().nullish(),\n credit_card_captured_at: z.coerce.string().optional().nullish(),\n credit_card_tid: z.coerce.string().optional().nullish(),\n external_reference: z.coerce.string().optional().nullish(),\n max_installments_value: z.coerce.string().optional().nullish(),\n payer_name: z.string().optional().nullish(),\n payer_email: z.coerce.string().optional().nullish(),\n payer_cpf_cnpj: z.string().optional().nullish(),\n payer_phone: z.coerce.string().optional().nullish(),\n payer_phone_prefix: z.coerce.string().optional().nullish(),\n payer_address_zip_code: z.coerce.string().optional().nullish(),\n payer_address_street: z.coerce.string().optional().nullish(),\n payer_address_district: z.coerce.string().optional().nullish(),\n payer_address_city: z.coerce.string().optional().nullish(),\n payer_address_state: z.coerce.string().optional().nullish(),\n payer_address_number: z.coerce.string().optional().nullish(),\n payer_address_complement: z.coerce.string().optional().nullish(),\n payer_address_country: z.coerce.string().optional().nullish(),\n late_payment_fine: z.number().optional().nullish(),\n late_payment_fine_cents: z.coerce.string().optional().nullish(),\n split_id: z.coerce.string().optional().nullish(),\n external_payment_id: z.coerce.string().optional().nullish(),\n external_payment_description: z.coerce.string().optional().nullish(),\n payment_booklet_id: z.coerce.string().optional().nullish(),\n subscription_id: z.coerce.string().optional().nullish(),\n variables: z.array(z.object({ variable: z.string(), value: z.string() })).optional().nullish(),\n custom_variables: z.array(z.any()).optional().nullish(),\n logs: z.array(\n z.object({\n id: z.string(),\n description: z.string(),\n notes: z.string(),\n created_at: z.string()\n })\n ).optional().nullish(),\n credit_card_transaction: z.coerce.string().optional().nullish(),\n account_id: z.string().optional().nullish(),\n bank_account_branch: z.string().optional().nullish(),\n bank_account_number: z.string().optional().nullish(),\n account_name: z.string().optional().nullish(),\n secure_id: z.string().optional().nullish(),\n secure_url: z.string().optional().nullish(),\n customer_id: z.coerce.string().optional().nullish(),\n customer_ref: z.coerce.string().optional().nullish(),\n customer_name: z.coerce.string().optional().nullish(),\n user_id: z.coerce.string().optional().nullish(),\n total: z.string().optional().nullish(),\n taxes_paid: z.string().optional().nullish(),\n total_paid: z.string().optional().nullish(),\n total_overpaid: z.string().optional().nullish(),\n total_refunded: z.string().optional().nullish(),\n commission: z.string().optional().nullish(),\n fines_on_occurrence_day: z.string().optional().nullish(),\n total_on_occurrence_day: z.string().optional().nullish(),\n fines_on_occurrence_day_cents: z.number().optional().nullish(),\n total_on_occurrence_day_cents: z.number().optional().nullish(),\n refunded_cents: z.number().optional().nullish(),\n remaining_captured_cents: z.number().optional().nullish(),\n advance_fee: z.coerce.string().optional().nullish(),\n estimated_advance_fee: z.coerce.string().optional().nullish(),\n paid: z.string().optional().nullish(),\n original_payment_id: z.coerce.string().optional().nullish(),\n double_payment_id: z.coerce.string().optional().nullish(),\n per_day_interest: z.boolean().optional().nullish(),\n per_day_interest_value: z.coerce.string().optional().nullish(),\n per_day_interest_cents: z.number().optional().nullish(),\n interest: z.coerce.string().optional().nullish(),\n discount: z.coerce.string().optional().nullish(),\n duplicated_invoice_id: z.coerce.string().optional().nullish(),\n bank_slip_extra_due: z.number().optional().nullish(),\n created_at: z.string().optional().nullish(),\n created_at_iso: z.string().optional().nullish(),\n authorized_at: z.coerce.string().optional().nullish(),\n authorized_at_iso: z.coerce.string().optional().nullish(),\n expired_at: z.coerce.string().optional().nullish(),\n expired_at_iso: z.coerce.string().optional().nullish(),\n refunded_at: z.coerce.string().optional().nullish(),\n refunded_at_iso: z.coerce.string().optional().nullish(),\n canceled_at: z.coerce.string().optional().nullish(),\n canceled_at_iso: z.coerce.string().optional().nullish(),\n protested_at: z.coerce.string().optional().nullish(),\n protested_at_iso: z.coerce.string().optional().nullish(),\n chargeback_at: z.coerce.string().optional().nullish(),\n chargeback_at_iso: z.coerce.string().optional().nullish(),\n occurrence_date: z.coerce.string().optional().nullish(),\n refundable: z.coerce.string().optional().nullish(),\n installments: z.coerce.string().optional().nullish(),\n transaction_number: z.number().optional().nullish(),\n payment_method: z.coerce.string().optional().nullish(),\n financial_return_dates: z.coerce.string().optional().nullish(),\n bank_slip: z.object({\n digitable_line: z.string(),\n barcode_data: z.string(),\n barcode: z.string(),\n bank_slip_url: z.string(),\n bank_slip_bank: z.number(),\n bank_slip_status: z.string(),\n bank_slip_error_code: z.coerce.string(),\n bank_slip_error_message: z.coerce.string(),\n recipient_cpf_cnpj: z.string()\n }).nullish().optional(),\n pix: z.object({\n qrcode: z.string(),\n qrcode_text: z.string(),\n status: z.string(),\n payer_cpf_cnpj: z.coerce.string(),\n payer_name: z.coerce.string(),\n end_to_end_id: z.coerce.string(),\n end_to_end_refund_id: z.coerce.string(),\n account_number_last_digits: z.coerce.string()\n }).optional().nullish(),\n items: z.array(\n z.object({\n id: z.string(),\n description: z.string(),\n price_cents: z.number(),\n quantity: z.number(),\n created_at: z.string(),\n updated_at: z.string(),\n price: z.string()\n })\n ).optional().nullish(),\n early_payment_discounts: z.array(z.unknown()).optional().nullish(),\n split_rules: z.coerce.string().optional().nullish()\n});\nexport {\n IuguInvoiceSchema,\n IuguInvoiceStatusSchema\n};\n","import { z } from \"zod\"\n\nexport const IuguInvoiceStatusSchema = z.enum([\n 'pending',\n 'paid',\n 'canceled',\n 'in_analysis',\n 'draft',\n 'partially_paid',\n 'refunded',\n 'expired',\n 'in_protest',\n 'chargeback',\n 'externally_paid',\n 'invited',\n])\n\nexport const IuguInvoiceSchema = z.object({\n id: z.string(),\n due_date: z.string().optional().nullish(),\n currency: z.string().optional().nullish(),\n discount_cents: z.coerce.string().optional().nullish(),\n email: z.string().optional().nullish(),\n items_total_cents: z.number().optional().nullish(),\n notification_url: z.coerce.string().optional().nullish(),\n return_url: z.coerce.string().optional().nullish(),\n status: IuguInvoiceStatusSchema.optional().nullish(),\n tax_cents: z.coerce.string().optional().nullish(),\n total_cents: z.number().optional().nullish(),\n total_paid_cents: z.number().optional().nullish(),\n taxes_paid_cents: z.coerce.string().optional().nullish(),\n paid_at: z.coerce.string().optional().nullish(),\n paid_cents: z.coerce.number().optional().nullish(),\n cc_emails: z.coerce.string().optional().nullish(),\n financial_return_date: z.coerce.string().optional().nullish(),\n payable_with: z.enum(['credit_card', 'pix', 'bank_slip', 'stripe', 'all']).optional().nullish(),\n overpaid_cents: z.coerce.string().optional().nullish(),\n ignore_due_email: z.coerce.string().optional().nullish(),\n ignore_canceled_email: z.coerce.string().optional().nullish(),\n advance_fee_cents: z.coerce.string().optional().nullish(),\n commission_cents: z.coerce.string().optional().nullish(),\n early_payment_discount: z.boolean().optional().nullish(),\n order_id: z.coerce.string().optional().nullish(),\n updated_at: z.string().optional().nullish(),\n credit_card_brand: z.coerce.string().optional().nullish(),\n credit_card_bin: z.coerce.string().optional().nullish(),\n credit_card_last_4: z.coerce.string().optional().nullish(),\n credit_card_captured_at: z.coerce.string().optional().nullish(),\n credit_card_tid: z.coerce.string().optional().nullish(),\n external_reference: z.coerce.string().optional().nullish(),\n max_installments_value: z.coerce.string().optional().nullish(),\n payer_name: z.string().optional().nullish(),\n payer_email: z.coerce.string().optional().nullish(),\n payer_cpf_cnpj: z.string().optional().nullish(),\n payer_phone: z.coerce.string().optional().nullish(),\n payer_phone_prefix: z.coerce.string().optional().nullish(),\n payer_address_zip_code: z.coerce.string().optional().nullish(),\n payer_address_street: z.coerce.string().optional().nullish(),\n payer_address_district: z.coerce.string().optional().nullish(),\n payer_address_city: z.coerce.string().optional().nullish(),\n payer_address_state: z.coerce.string().optional().nullish(),\n payer_address_number: z.coerce.string().optional().nullish(),\n payer_address_complement: z.coerce.string().optional().nullish(),\n payer_address_country: z.coerce.string().optional().nullish(),\n late_payment_fine: z.number().optional().nullish(),\n late_payment_fine_cents: z.coerce.string().optional().nullish(),\n split_id: z.coerce.string().optional().nullish(),\n external_payment_id: z.coerce.string().optional().nullish(),\n external_payment_description: z.coerce.string().optional().nullish(),\n payment_booklet_id: z.coerce.string().optional().nullish(),\n subscription_id: z.coerce.string().optional().nullish(),\n variables: z.array(z.object({ variable: z.string(), value: z.string() })).optional().nullish(),\n custom_variables: z.array(z.any()).optional().nullish(),\n logs: z.array(\n z.object({\n id: z.string(),\n description: z.string(),\n notes: z.string(),\n created_at: z.string()\n })\n ).optional().nullish(),\n credit_card_transaction: z.coerce.string().optional().nullish(),\n account_id: z.string().optional().nullish(),\n bank_account_branch: z.string().optional().nullish(),\n bank_account_number: z.string().optional().nullish(),\n account_name: z.string().optional().nullish(),\n secure_id: z.string().optional().nullish(),\n secure_url: z.string().optional().nullish(),\n customer_id: z.coerce.string().optional().nullish(),\n customer_ref: z.coerce.string().optional().nullish(),\n customer_name: z.coerce.string().optional().nullish(),\n user_id: z.coerce.string().optional().nullish(),\n total: z.string().optional().nullish(),\n taxes_paid: z.string().optional().nullish(),\n total_paid: z.string().optional().nullish(),\n total_overpaid: z.string().optional().nullish(),\n total_refunded: z.string().optional().nullish(),\n commission: z.string().optional().nullish(),\n fines_on_occurrence_day: z.string().optional().nullish(),\n total_on_occurrence_day: z.string().optional().nullish(),\n fines_on_occurrence_day_cents: z.number().optional().nullish(),\n total_on_occurrence_day_cents: z.number().optional().nullish(),\n refunded_cents: z.number().optional().nullish(),\n remaining_captured_cents: z.number().optional().nullish(),\n advance_fee: z.coerce.string().optional().nullish(),\n estimated_advance_fee: z.coerce.string().optional().nullish(),\n paid: z.string().optional().nullish(),\n original_payment_id: z.coerce.string().optional().nullish(),\n double_payment_id: z.coerce.string().optional().nullish(),\n per_day_interest: z.boolean().optional().nullish(),\n per_day_interest_value: z.coerce.string().optional().nullish(),\n per_day_interest_cents: z.number().optional().nullish(),\n interest: z.coerce.string().optional().nullish(),\n discount: z.coerce.string().optional().nullish(),\n duplicated_invoice_id: z.coerce.string().optional().nullish(),\n bank_slip_extra_due: z.number().optional().nullish(),\n created_at: z.string().optional().nullish(),\n created_at_iso: z.string().optional().nullish(),\n authorized_at: z.coerce.string().optional().nullish(),\n authorized_at_iso: z.coerce.string().optional().nullish(),\n expired_at: z.coerce.string().optional().nullish(),\n expired_at_iso: z.coerce.string().optional().nullish(),\n refunded_at: z.coerce.string().optional().nullish(),\n refunded_at_iso: z.coerce.string().optional().nullish(),\n canceled_at: z.coerce.string().optional().nullish(),\n canceled_at_iso: z.coerce.string().optional().nullish(),\n protested_at: z.coerce.string().optional().nullish(),\n protested_at_iso: z.coerce.string().optional().nullish(),\n chargeback_at: z.coerce.string().optional().nullish(),\n chargeback_at_iso: z.coerce.string().optional().nullish(),\n occurrence_date: z.coerce.string().optional().nullish(),\n refundable: z.coerce.string().optional().nullish(),\n installments: z.coerce.string().optional().nullish(),\n transaction_number: z.number().optional().nullish(),\n payment_method: z.coerce.string().optional().nullish(),\n financial_return_dates: z.coerce.string().optional().nullish(),\n bank_slip: z.object({\n digitable_line: z.string(),\n barcode_data: z.string(),\n barcode: z.string(),\n bank_slip_url: z.string(),\n bank_slip_bank: z.number(),\n bank_slip_status: z.string(),\n bank_slip_error_code: z.coerce.string(),\n bank_slip_error_message: z.coerce.string(),\n recipient_cpf_cnpj: z.string()\n }).nullish().optional(),\n pix: z.object({\n qrcode: z.string(),\n qrcode_text: z.string(),\n status: z.string(),\n payer_cpf_cnpj: z.coerce.string(),\n payer_name: z.coerce.string(),\n end_to_end_id: z.coerce.string(),\n end_to_end_refund_id: z.coerce.string(),\n account_number_last_digits: z.coerce.string()\n }).optional().nullish(),\n items: z.array(\n z.object({\n id: z.string(),\n description: z.string(),\n price_cents: z.number(),\n quantity: z.number(),\n created_at: z.string(),\n updated_at: z.string(),\n price: z.string()\n })\n ).optional().nullish(),\n early_payment_discounts: z.array(z.unknown()).optional().nullish(),\n split_rules: z.coerce.string().optional().nullish()\n})\n\n\nexport type IuguInvoice = z.infer<typeof IuguInvoiceSchema>\nexport type IuguInvoiceStatus = z.infer<typeof IuguInvoiceStatusSchema>\n"]}