@_henriquewilson/gabirubi-domain 1.3.42 → 1.3.44

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.
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
2
 
3
+ declare const IuguInvoiceStatusSchema: z.ZodEnum<["pending", "paid", "canceled", "in_analysis", "draft", "partially_paid", "refunded", "expired", "in_protest", "chargeback", "externally_paid", "invited"]>;
3
4
  declare const IuguInvoiceSchema: z.ZodObject<{
4
5
  id: z.ZodString;
5
6
  due_date: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -9,7 +10,7 @@ declare const IuguInvoiceSchema: z.ZodObject<{
9
10
  items_total_cents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
10
11
  notification_url: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
11
12
  return_url: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
12
- status: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
13
+ status: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["pending", "paid", "canceled", "in_analysis", "draft", "partially_paid", "refunded", "expired", "in_protest", "chargeback", "externally_paid", "invited"]>>>>;
13
14
  tax_cents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
14
15
  total_cents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
15
16
  total_paid_cents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
@@ -224,8 +225,9 @@ declare const IuguInvoiceSchema: z.ZodObject<{
224
225
  split_rules: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
225
226
  }, "strip", z.ZodTypeAny, {
226
227
  id: string;
227
- status?: string | null | undefined;
228
+ status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
228
229
  email?: string | null | undefined;
230
+ paid?: string | null | undefined;
229
231
  due_date?: string | null | undefined;
230
232
  currency?: string | null | undefined;
231
233
  discount_cents?: string | null | undefined;
@@ -313,7 +315,6 @@ declare const IuguInvoiceSchema: z.ZodObject<{
313
315
  remaining_captured_cents?: number | null | undefined;
314
316
  advance_fee?: string | null | undefined;
315
317
  estimated_advance_fee?: string | null | undefined;
316
- paid?: string | null | undefined;
317
318
  original_payment_id?: string | null | undefined;
318
319
  double_payment_id?: string | null | undefined;
319
320
  per_day_interest?: boolean | null | undefined;
@@ -376,8 +377,9 @@ declare const IuguInvoiceSchema: z.ZodObject<{
376
377
  split_rules?: string | null | undefined;
377
378
  }, {
378
379
  id: string;
379
- status?: string | null | undefined;
380
+ status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
380
381
  email?: string | null | undefined;
382
+ paid?: string | null | undefined;
381
383
  due_date?: string | null | undefined;
382
384
  currency?: string | null | undefined;
383
385
  discount_cents?: string | null | undefined;
@@ -465,7 +467,6 @@ declare const IuguInvoiceSchema: z.ZodObject<{
465
467
  remaining_captured_cents?: number | null | undefined;
466
468
  advance_fee?: string | null | undefined;
467
469
  estimated_advance_fee?: string | null | undefined;
468
- paid?: string | null | undefined;
469
470
  original_payment_id?: string | null | undefined;
470
471
  double_payment_id?: string | null | undefined;
471
472
  per_day_interest?: boolean | null | undefined;
@@ -528,5 +529,6 @@ declare const IuguInvoiceSchema: z.ZodObject<{
528
529
  split_rules?: string | null | undefined;
529
530
  }>;
530
531
  type IuguInvoice = z.infer<typeof IuguInvoiceSchema>;
532
+ type IuguInvoiceStatus = z.infer<typeof IuguInvoiceStatusSchema>;
531
533
 
532
- export { type IuguInvoice, IuguInvoiceSchema };
534
+ export { type IuguInvoice, IuguInvoiceSchema, type IuguInvoiceStatus, IuguInvoiceStatusSchema };
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
2
 
3
+ declare const IuguInvoiceStatusSchema: z.ZodEnum<["pending", "paid", "canceled", "in_analysis", "draft", "partially_paid", "refunded", "expired", "in_protest", "chargeback", "externally_paid", "invited"]>;
3
4
  declare const IuguInvoiceSchema: z.ZodObject<{
4
5
  id: z.ZodString;
5
6
  due_date: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -9,7 +10,7 @@ declare const IuguInvoiceSchema: z.ZodObject<{
9
10
  items_total_cents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
10
11
  notification_url: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
11
12
  return_url: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
12
- status: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
13
+ status: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["pending", "paid", "canceled", "in_analysis", "draft", "partially_paid", "refunded", "expired", "in_protest", "chargeback", "externally_paid", "invited"]>>>>;
13
14
  tax_cents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
14
15
  total_cents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
15
16
  total_paid_cents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
@@ -224,8 +225,9 @@ declare const IuguInvoiceSchema: z.ZodObject<{
224
225
  split_rules: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
225
226
  }, "strip", z.ZodTypeAny, {
226
227
  id: string;
227
- status?: string | null | undefined;
228
+ status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
228
229
  email?: string | null | undefined;
230
+ paid?: string | null | undefined;
229
231
  due_date?: string | null | undefined;
230
232
  currency?: string | null | undefined;
231
233
  discount_cents?: string | null | undefined;
@@ -313,7 +315,6 @@ declare const IuguInvoiceSchema: z.ZodObject<{
313
315
  remaining_captured_cents?: number | null | undefined;
314
316
  advance_fee?: string | null | undefined;
315
317
  estimated_advance_fee?: string | null | undefined;
316
- paid?: string | null | undefined;
317
318
  original_payment_id?: string | null | undefined;
318
319
  double_payment_id?: string | null | undefined;
319
320
  per_day_interest?: boolean | null | undefined;
@@ -376,8 +377,9 @@ declare const IuguInvoiceSchema: z.ZodObject<{
376
377
  split_rules?: string | null | undefined;
377
378
  }, {
378
379
  id: string;
379
- status?: string | null | undefined;
380
+ status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
380
381
  email?: string | null | undefined;
382
+ paid?: string | null | undefined;
381
383
  due_date?: string | null | undefined;
382
384
  currency?: string | null | undefined;
383
385
  discount_cents?: string | null | undefined;
@@ -465,7 +467,6 @@ declare const IuguInvoiceSchema: z.ZodObject<{
465
467
  remaining_captured_cents?: number | null | undefined;
466
468
  advance_fee?: string | null | undefined;
467
469
  estimated_advance_fee?: string | null | undefined;
468
- paid?: string | null | undefined;
469
470
  original_payment_id?: string | null | undefined;
470
471
  double_payment_id?: string | null | undefined;
471
472
  per_day_interest?: boolean | null | undefined;
@@ -528,5 +529,6 @@ declare const IuguInvoiceSchema: z.ZodObject<{
528
529
  split_rules?: string | null | undefined;
529
530
  }>;
530
531
  type IuguInvoice = z.infer<typeof IuguInvoiceSchema>;
532
+ type IuguInvoiceStatus = z.infer<typeof IuguInvoiceStatusSchema>;
531
533
 
532
- export { type IuguInvoice, IuguInvoiceSchema };
534
+ export { type IuguInvoice, IuguInvoiceSchema, type IuguInvoiceStatus, IuguInvoiceStatusSchema };
@@ -50,10 +50,27 @@ var iugu_invoice_exports = {};
50
50
  __export(iugu_invoice_exports, {
51
51
  IuguInvoiceSchema: function() {
52
52
  return IuguInvoiceSchema;
53
+ },
54
+ IuguInvoiceStatusSchema: function() {
55
+ return IuguInvoiceStatusSchema;
53
56
  }
54
57
  });
55
58
  module.exports = __toCommonJS(iugu_invoice_exports);
56
59
  var import_zod = require("zod");
60
+ var IuguInvoiceStatusSchema = import_zod.z.enum([
61
+ "pending",
62
+ "paid",
63
+ "canceled",
64
+ "in_analysis",
65
+ "draft",
66
+ "partially_paid",
67
+ "refunded",
68
+ "expired",
69
+ "in_protest",
70
+ "chargeback",
71
+ "externally_paid",
72
+ "invited"
73
+ ]);
57
74
  var IuguInvoiceSchema = import_zod.z.object({
58
75
  id: import_zod.z.string(),
59
76
  due_date: import_zod.z.string().optional().nullish(),
@@ -63,7 +80,7 @@ var IuguInvoiceSchema = import_zod.z.object({
63
80
  items_total_cents: import_zod.z.number().optional().nullish(),
64
81
  notification_url: import_zod.z.coerce.string().optional().nullish(),
65
82
  return_url: import_zod.z.coerce.string().optional().nullish(),
66
- status: import_zod.z.string().optional().nullish(),
83
+ status: IuguInvoiceStatusSchema.optional().nullish(),
67
84
  tax_cents: import_zod.z.coerce.string().optional().nullish(),
68
85
  total_cents: import_zod.z.number().optional().nullish(),
69
86
  total_paid_cents: import_zod.z.number().optional().nullish(),
@@ -209,6 +226,7 @@ var IuguInvoiceSchema = import_zod.z.object({
209
226
  });
210
227
  // Annotate the CommonJS export names for ESM import in node:
211
228
  0 && (module.exports = {
212
- IuguInvoiceSchema: IuguInvoiceSchema
229
+ IuguInvoiceSchema: IuguInvoiceSchema,
230
+ IuguInvoiceStatusSchema: IuguInvoiceStatusSchema
213
231
  });
214
232
  //# sourceMappingURL=iugu-invoice.js.map
@@ -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","module","exports","import_zod","require","z","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","unknown","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","split_rules"],"mappings":"AAAA;AACA,IAAI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C,IAAIJ,WAAAE,CAAA,CAAEG,MAAA;QACNgE,aAAarE,WAAAE,CAAA,CAAEG,MAAA;QACf0I,aAAa/I,WAAAE,CAAA,CAAEY,MAAA;QACfkI,UAAUhJ,WAAAE,CAAA,CAAEY,MAAA;QACZyD,YAAYvE,WAAAE,CAAA,CAAEG,MAAA;QACd8B,YAAYnC,WAAAE,CAAA,CAAEG,MAAA;QACd4I,OAAOjJ,WAAAE,CAAA,CAAEG,MAAA;IACX,IACAE,QAAA,GAAWC,OAAA;IACb0I,yBAAyBlJ,WAAAE,CAAA,CAAE8D,KAAA,CAAMhE,WAAAE,CAAA,CAAEiE,OAAA,IAAW5D,QAAA,GAAWC,OAAA;IACzD2I,aAAanJ,WAAAE,CAAA,CAAES,MAAA,CAAON,MAAA,GAASE,QAAA,GAAWC,OAAA;AAC5C;ADyBA,6DAA6D;AAC7D,KAAMV,CAAAA,OAAOC,OAAO,GAAG;IACrBF,mBAAAA;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});\nmodule.exports = __toCommonJS(iugu_invoice_exports);\nvar import_zod = require(\"zod\");\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: import_zod.z.string().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.unknown()).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});\n","import { z } from \"zod\"\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: z.string().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.unknown()).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>\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","unknown","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","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;;IA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EI,MAAA;QACfY,QAAQlB,WAAAE,CAAA,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,CAAEkE,OAAA,IAAW5D,QAAA,GAAWC,OAAA;IACzD2I,aAAapJ,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.unknown()).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.unknown()).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,5 +1,19 @@
1
1
  // src/model/iugu/iugu-invoice.ts
2
2
  import { z } from "zod";
3
+ var IuguInvoiceStatusSchema = z.enum([
4
+ "pending",
5
+ "paid",
6
+ "canceled",
7
+ "in_analysis",
8
+ "draft",
9
+ "partially_paid",
10
+ "refunded",
11
+ "expired",
12
+ "in_protest",
13
+ "chargeback",
14
+ "externally_paid",
15
+ "invited"
16
+ ]);
3
17
  var IuguInvoiceSchema = z.object({
4
18
  id: z.string(),
5
19
  due_date: z.string().optional().nullish(),
@@ -9,7 +23,7 @@ var IuguInvoiceSchema = z.object({
9
23
  items_total_cents: z.number().optional().nullish(),
10
24
  notification_url: z.coerce.string().optional().nullish(),
11
25
  return_url: z.coerce.string().optional().nullish(),
12
- status: z.string().optional().nullish(),
26
+ status: IuguInvoiceStatusSchema.optional().nullish(),
13
27
  tax_cents: z.coerce.string().optional().nullish(),
14
28
  total_cents: z.number().optional().nullish(),
15
29
  total_paid_cents: z.number().optional().nullish(),
@@ -153,5 +167,5 @@ var IuguInvoiceSchema = z.object({
153
167
  early_payment_discounts: z.array(z.unknown()).optional().nullish(),
154
168
  split_rules: z.coerce.string().optional().nullish()
155
169
  });
156
- export { IuguInvoiceSchema };
170
+ export { IuguInvoiceSchema, IuguInvoiceStatusSchema };
157
171
  //# sourceMappingURL=iugu-invoice.mjs.map
@@ -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","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","unknown","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","split_rules"],"mappings":"AAAA,iCAAiC;ACAjC,SAASA,CAAA,QAAS,MAAA;AAEX,IAAMC,oBAAoBD,EAAEE,MAAA,CAAO;IACxCC,IAAIH,EAAEI,MAAA;IACNC,UAAUL,EAAEI,MAAA,GAASE,QAAA,GAAWC,OAAA;IAChCC,UAAUR,EAAEI,MAAA,GAASE,QAAA,GAAWC,OAAA;IAChCE,gBAAgBT,EAAEU,MAAA,CAAON,MAAA,GAASE,QAAA,GAAWC,OAAA;IAC7CI,OAAOX,EAAEI,MAAA,GAASE,QAAA,GAAWC,OAAA;IAC7BK,mBAAmBZ,EAAEa,MAAA,GAASP,QAAA,GAAWC,OAAA;IACzCO,kBAAkBd,EAAEU,MAAA,CAAON,MAAA,GAASE,QAAA,GAAWC,OAAA;IAC/CQ,YAAYf,EAAEU,MAAA,CAAON,MAAA,GAASE,QAAA,GAAWC,OAAA;IACzCS,QAAQhB,EAAEI,MAAA,GAASE,QAAA,GAAWC,OAAA;IAC9BU,WAAWjB,EAAEU,MAAA,CAAON,MAAA,GAASE,QAAA,GAAWC,OAAA;IACxCW,aAAal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;QACrBuI,eAAe3I,EAAEU,MAAA,CAAON,MAAA;QACxBwI,sBAAsB5I,EAAEU,MAAA,CAAON,MAAA;QAC/ByI,4BAA4B7I,EAAEU,MAAA,CAAON,MAAA;IACvC,GAAGE,QAAA,GAAWC,OAAA;IACduI,OAAO9I,EAAE+D,KAAA,CACP/D,EAAEE,MAAA,CAAO;QACPC,IAAIH,EAAEI,MAAA;QACNiE,aAAarE,EAAEI,MAAA;QACf2I,aAAa/I,EAAEa,MAAA;QACfmI,UAAUhJ,EAAEa,MAAA;QACZ0D,YAAYvE,EAAEI,MAAA;QACd8B,YAAYlC,EAAEI,MAAA;QACd6I,OAAOjJ,EAAEI,MAAA;IACX,IACAE,QAAA,GAAWC,OAAA;IACb2I,yBAAyBlJ,EAAE+D,KAAA,CAAM/D,EAAEmE,OAAA,IAAW7D,QAAA,GAAWC,OAAA;IACzD4I,aAAanJ,EAAEU,MAAA,CAAON,MAAA,GAASE,QAAA,GAAWC,OAAA;AAC5C;ADCA,SACEN,iBAAiB,GACjB","sourcesContent":["// src/model/iugu/iugu-invoice.ts\nimport { z } from \"zod\";\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: z.string().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.unknown()).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};\n","import { z } from \"zod\"\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: z.string().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.unknown()).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>\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","unknown","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","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,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/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.unknown()).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.unknown()).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"]}
@@ -24,7 +24,7 @@ declare const PixResultSchema: z.ZodObject<{
24
24
  items_total_cents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
25
25
  notification_url: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
26
26
  return_url: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
27
- status: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
27
+ status: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["pending", "paid", "canceled", "in_analysis", "draft", "partially_paid", "refunded", "expired", "in_protest", "chargeback", "externally_paid", "invited"]>>>>;
28
28
  tax_cents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
29
29
  total_cents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
30
30
  total_paid_cents: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
@@ -239,12 +239,13 @@ declare const PixResultSchema: z.ZodObject<{
239
239
  split_rules: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
240
240
  }, "strip", z.ZodTypeAny, {
241
241
  id: string;
242
- status?: string | null | undefined;
242
+ status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
243
243
  email?: string | null | undefined;
244
244
  created_at?: string | null | undefined;
245
245
  updated_at?: string | null | undefined;
246
246
  cc_emails?: string | null | undefined;
247
247
  custom_variables?: unknown[] | null | undefined;
248
+ paid?: string | null | undefined;
248
249
  due_date?: string | null | undefined;
249
250
  currency?: string | null | undefined;
250
251
  discount_cents?: string | null | undefined;
@@ -328,7 +329,6 @@ declare const PixResultSchema: z.ZodObject<{
328
329
  remaining_captured_cents?: number | null | undefined;
329
330
  advance_fee?: string | null | undefined;
330
331
  estimated_advance_fee?: string | null | undefined;
331
- paid?: string | null | undefined;
332
332
  original_payment_id?: string | null | undefined;
333
333
  double_payment_id?: string | null | undefined;
334
334
  per_day_interest?: boolean | null | undefined;
@@ -391,12 +391,13 @@ declare const PixResultSchema: z.ZodObject<{
391
391
  split_rules?: string | null | undefined;
392
392
  }, {
393
393
  id: string;
394
- status?: string | null | undefined;
394
+ status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
395
395
  email?: string | null | undefined;
396
396
  created_at?: string | null | undefined;
397
397
  updated_at?: string | null | undefined;
398
398
  cc_emails?: string | null | undefined;
399
399
  custom_variables?: unknown[] | null | undefined;
400
+ paid?: string | null | undefined;
400
401
  due_date?: string | null | undefined;
401
402
  currency?: string | null | undefined;
402
403
  discount_cents?: string | null | undefined;
@@ -480,7 +481,6 @@ declare const PixResultSchema: z.ZodObject<{
480
481
  remaining_captured_cents?: number | null | undefined;
481
482
  advance_fee?: string | null | undefined;
482
483
  estimated_advance_fee?: string | null | undefined;
483
- paid?: string | null | undefined;
484
484
  original_payment_id?: string | null | undefined;
485
485
  double_payment_id?: string | null | undefined;
486
486
  per_day_interest?: boolean | null | undefined;
@@ -551,12 +551,13 @@ declare const PixResultSchema: z.ZodObject<{
551
551
  invoice: string;
552
552
  invoiceData?: {
553
553
  id: string;
554
- status?: string | null | undefined;
554
+ status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
555
555
  email?: string | null | undefined;
556
556
  created_at?: string | null | undefined;
557
557
  updated_at?: string | null | undefined;
558
558
  cc_emails?: string | null | undefined;
559
559
  custom_variables?: unknown[] | null | undefined;
560
+ paid?: string | null | undefined;
560
561
  due_date?: string | null | undefined;
561
562
  currency?: string | null | undefined;
562
563
  discount_cents?: string | null | undefined;
@@ -640,7 +641,6 @@ declare const PixResultSchema: z.ZodObject<{
640
641
  remaining_captured_cents?: number | null | undefined;
641
642
  advance_fee?: string | null | undefined;
642
643
  estimated_advance_fee?: string | null | undefined;
643
- paid?: string | null | undefined;
644
644
  original_payment_id?: string | null | undefined;
645
645
  double_payment_id?: string | null | undefined;
646
646
  per_day_interest?: boolean | null | undefined;
@@ -711,12 +711,13 @@ declare const PixResultSchema: z.ZodObject<{
711
711
  invoice: string;
712
712
  invoiceData?: {
713
713
  id: string;
714
- status?: string | null | undefined;
714
+ status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
715
715
  email?: string | null | undefined;
716
716
  created_at?: string | null | undefined;
717
717
  updated_at?: string | null | undefined;
718
718
  cc_emails?: string | null | undefined;
719
719
  custom_variables?: unknown[] | null | undefined;
720
+ paid?: string | null | undefined;
720
721
  due_date?: string | null | undefined;
721
722
  currency?: string | null | undefined;
722
723
  discount_cents?: string | null | undefined;
@@ -800,7 +801,6 @@ declare const PixResultSchema: z.ZodObject<{
800
801
  remaining_captured_cents?: number | null | undefined;
801
802
  advance_fee?: string | null | undefined;
802
803
  estimated_advance_fee?: string | null | undefined;
803
- paid?: string | null | undefined;
804
804
  original_payment_id?: string | null | undefined;
805
805
  double_payment_id?: string | null | undefined;
806
806
  per_day_interest?: boolean | null | undefined;