@_henriquewilson/gabirubi-domain 1.3.71 → 1.3.72

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.
@@ -26,9 +26,9 @@ declare const IuguChargeSchema: z.ZodObject<{
26
26
  pdf: string;
27
27
  invoice_id: string;
28
28
  LR: string;
29
+ reversible?: string | null | undefined;
29
30
  brand?: string | null | undefined;
30
31
  bin?: string | null | undefined;
31
- reversible?: string | null | undefined;
32
32
  last4?: string | null | undefined;
33
33
  issuer?: string | null | undefined;
34
34
  identification?: string | null | undefined;
@@ -42,9 +42,9 @@ declare const IuguChargeSchema: z.ZodObject<{
42
42
  pdf: string;
43
43
  invoice_id: string;
44
44
  LR: string;
45
+ reversible?: string | null | undefined;
45
46
  brand?: string | null | undefined;
46
47
  bin?: string | null | undefined;
47
- reversible?: string | null | undefined;
48
48
  last4?: string | null | undefined;
49
49
  issuer?: string | null | undefined;
50
50
  identification?: string | null | undefined;
@@ -26,9 +26,9 @@ declare const IuguChargeSchema: z.ZodObject<{
26
26
  pdf: string;
27
27
  invoice_id: string;
28
28
  LR: string;
29
+ reversible?: string | null | undefined;
29
30
  brand?: string | null | undefined;
30
31
  bin?: string | null | undefined;
31
- reversible?: string | null | undefined;
32
32
  last4?: string | null | undefined;
33
33
  issuer?: string | null | undefined;
34
34
  identification?: string | null | undefined;
@@ -42,9 +42,9 @@ declare const IuguChargeSchema: z.ZodObject<{
42
42
  pdf: string;
43
43
  invoice_id: string;
44
44
  LR: string;
45
+ reversible?: string | null | undefined;
45
46
  brand?: string | null | undefined;
46
47
  bin?: string | null | undefined;
47
- reversible?: string | null | undefined;
48
48
  last4?: string | null | undefined;
49
49
  issuer?: string | null | undefined;
50
50
  identification?: string | null | undefined;
@@ -12,9 +12,9 @@ declare const dataSchema: z.ZodObject<{
12
12
  masked_number: z.ZodString;
13
13
  }, "strip", z.ZodTypeAny, {
14
14
  brand: string;
15
+ bin: string;
15
16
  holder_name: string;
16
17
  display_number: string;
17
- bin: string;
18
18
  year: number;
19
19
  month: number;
20
20
  last_digits: string;
@@ -22,9 +22,9 @@ declare const dataSchema: z.ZodObject<{
22
22
  masked_number: string;
23
23
  }, {
24
24
  brand: string;
25
+ bin: string;
25
26
  holder_name: string;
26
27
  display_number: string;
27
- bin: string;
28
28
  year: number;
29
29
  month: number;
30
30
  last_digits: string;
@@ -47,9 +47,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
47
47
  masked_number: z.ZodString;
48
48
  }, "strip", z.ZodTypeAny, {
49
49
  brand: string;
50
+ bin: string;
50
51
  holder_name: string;
51
52
  display_number: string;
52
- bin: string;
53
53
  year: number;
54
54
  month: number;
55
55
  last_digits: string;
@@ -57,9 +57,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
57
57
  masked_number: string;
58
58
  }, {
59
59
  brand: string;
60
+ bin: string;
60
61
  holder_name: string;
61
62
  display_number: string;
62
- bin: string;
63
63
  year: number;
64
64
  month: number;
65
65
  last_digits: string;
@@ -72,9 +72,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
72
72
  item_type: string;
73
73
  data: {
74
74
  brand: string;
75
+ bin: string;
75
76
  holder_name: string;
76
77
  display_number: string;
77
- bin: string;
78
78
  year: number;
79
79
  month: number;
80
80
  last_digits: string;
@@ -87,9 +87,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
87
87
  item_type: string;
88
88
  data: {
89
89
  brand: string;
90
+ bin: string;
90
91
  holder_name: string;
91
92
  display_number: string;
92
- bin: string;
93
93
  year: number;
94
94
  month: number;
95
95
  last_digits: string;
@@ -139,9 +139,9 @@ declare const IuguClientSchema: z.ZodObject<z.objectUtil.extendShape<{
139
139
  masked_number: z.ZodString;
140
140
  }, "strip", z.ZodTypeAny, {
141
141
  brand: string;
142
+ bin: string;
142
143
  holder_name: string;
143
144
  display_number: string;
144
- bin: string;
145
145
  year: number;
146
146
  month: number;
147
147
  last_digits: string;
@@ -149,9 +149,9 @@ declare const IuguClientSchema: z.ZodObject<z.objectUtil.extendShape<{
149
149
  masked_number: string;
150
150
  }, {
151
151
  brand: string;
152
+ bin: string;
152
153
  holder_name: string;
153
154
  display_number: string;
154
- bin: string;
155
155
  year: number;
156
156
  month: number;
157
157
  last_digits: string;
@@ -164,9 +164,9 @@ declare const IuguClientSchema: z.ZodObject<z.objectUtil.extendShape<{
164
164
  item_type: string;
165
165
  data: {
166
166
  brand: string;
167
+ bin: string;
167
168
  holder_name: string;
168
169
  display_number: string;
169
- bin: string;
170
170
  year: number;
171
171
  month: number;
172
172
  last_digits: string;
@@ -179,9 +179,9 @@ declare const IuguClientSchema: z.ZodObject<z.objectUtil.extendShape<{
179
179
  item_type: string;
180
180
  data: {
181
181
  brand: string;
182
+ bin: string;
182
183
  holder_name: string;
183
184
  display_number: string;
184
- bin: string;
185
185
  year: number;
186
186
  month: number;
187
187
  last_digits: string;
@@ -216,9 +216,9 @@ declare const IuguClientSchema: z.ZodObject<z.objectUtil.extendShape<{
216
216
  item_type: string;
217
217
  data: {
218
218
  brand: string;
219
+ bin: string;
219
220
  holder_name: string;
220
221
  display_number: string;
221
- bin: string;
222
222
  year: number;
223
223
  month: number;
224
224
  last_digits: string;
@@ -253,9 +253,9 @@ declare const IuguClientSchema: z.ZodObject<z.objectUtil.extendShape<{
253
253
  item_type: string;
254
254
  data: {
255
255
  brand: string;
256
+ bin: string;
256
257
  holder_name: string;
257
258
  display_number: string;
258
- bin: string;
259
259
  year: number;
260
260
  month: number;
261
261
  last_digits: string;
@@ -12,9 +12,9 @@ declare const dataSchema: z.ZodObject<{
12
12
  masked_number: z.ZodString;
13
13
  }, "strip", z.ZodTypeAny, {
14
14
  brand: string;
15
+ bin: string;
15
16
  holder_name: string;
16
17
  display_number: string;
17
- bin: string;
18
18
  year: number;
19
19
  month: number;
20
20
  last_digits: string;
@@ -22,9 +22,9 @@ declare const dataSchema: z.ZodObject<{
22
22
  masked_number: string;
23
23
  }, {
24
24
  brand: string;
25
+ bin: string;
25
26
  holder_name: string;
26
27
  display_number: string;
27
- bin: string;
28
28
  year: number;
29
29
  month: number;
30
30
  last_digits: string;
@@ -47,9 +47,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
47
47
  masked_number: z.ZodString;
48
48
  }, "strip", z.ZodTypeAny, {
49
49
  brand: string;
50
+ bin: string;
50
51
  holder_name: string;
51
52
  display_number: string;
52
- bin: string;
53
53
  year: number;
54
54
  month: number;
55
55
  last_digits: string;
@@ -57,9 +57,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
57
57
  masked_number: string;
58
58
  }, {
59
59
  brand: string;
60
+ bin: string;
60
61
  holder_name: string;
61
62
  display_number: string;
62
- bin: string;
63
63
  year: number;
64
64
  month: number;
65
65
  last_digits: string;
@@ -72,9 +72,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
72
72
  item_type: string;
73
73
  data: {
74
74
  brand: string;
75
+ bin: string;
75
76
  holder_name: string;
76
77
  display_number: string;
77
- bin: string;
78
78
  year: number;
79
79
  month: number;
80
80
  last_digits: string;
@@ -87,9 +87,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
87
87
  item_type: string;
88
88
  data: {
89
89
  brand: string;
90
+ bin: string;
90
91
  holder_name: string;
91
92
  display_number: string;
92
- bin: string;
93
93
  year: number;
94
94
  month: number;
95
95
  last_digits: string;
@@ -139,9 +139,9 @@ declare const IuguClientSchema: z.ZodObject<z.objectUtil.extendShape<{
139
139
  masked_number: z.ZodString;
140
140
  }, "strip", z.ZodTypeAny, {
141
141
  brand: string;
142
+ bin: string;
142
143
  holder_name: string;
143
144
  display_number: string;
144
- bin: string;
145
145
  year: number;
146
146
  month: number;
147
147
  last_digits: string;
@@ -149,9 +149,9 @@ declare const IuguClientSchema: z.ZodObject<z.objectUtil.extendShape<{
149
149
  masked_number: string;
150
150
  }, {
151
151
  brand: string;
152
+ bin: string;
152
153
  holder_name: string;
153
154
  display_number: string;
154
- bin: string;
155
155
  year: number;
156
156
  month: number;
157
157
  last_digits: string;
@@ -164,9 +164,9 @@ declare const IuguClientSchema: z.ZodObject<z.objectUtil.extendShape<{
164
164
  item_type: string;
165
165
  data: {
166
166
  brand: string;
167
+ bin: string;
167
168
  holder_name: string;
168
169
  display_number: string;
169
- bin: string;
170
170
  year: number;
171
171
  month: number;
172
172
  last_digits: string;
@@ -179,9 +179,9 @@ declare const IuguClientSchema: z.ZodObject<z.objectUtil.extendShape<{
179
179
  item_type: string;
180
180
  data: {
181
181
  brand: string;
182
+ bin: string;
182
183
  holder_name: string;
183
184
  display_number: string;
184
- bin: string;
185
185
  year: number;
186
186
  month: number;
187
187
  last_digits: string;
@@ -216,9 +216,9 @@ declare const IuguClientSchema: z.ZodObject<z.objectUtil.extendShape<{
216
216
  item_type: string;
217
217
  data: {
218
218
  brand: string;
219
+ bin: string;
219
220
  holder_name: string;
220
221
  display_number: string;
221
- bin: string;
222
222
  year: number;
223
223
  month: number;
224
224
  last_digits: string;
@@ -253,9 +253,9 @@ declare const IuguClientSchema: z.ZodObject<z.objectUtil.extendShape<{
253
253
  item_type: string;
254
254
  data: {
255
255
  brand: string;
256
+ bin: string;
256
257
  holder_name: string;
257
258
  display_number: string;
258
- bin: string;
259
259
  year: number;
260
260
  month: number;
261
261
  last_digits: string;
@@ -535,14 +535,12 @@ declare const IuguInvoiceVariablesSchema: z.ZodEffects<z.ZodObject<{
535
535
  recurrency: z.ZodNumber;
536
536
  plan: z.ZodString;
537
537
  plan_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
538
- others: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
539
538
  }, "strip", z.ZodTypeAny, {
540
539
  product_id: string | number;
541
540
  product: string;
542
541
  recurrency: number;
543
542
  plan: string;
544
543
  plan_id: string | number;
545
- others: Record<string, string>[];
546
544
  coupon?: string | undefined;
547
545
  }, {
548
546
  product_id: string | number;
@@ -550,7 +548,6 @@ declare const IuguInvoiceVariablesSchema: z.ZodEffects<z.ZodObject<{
550
548
  recurrency: number;
551
549
  plan: string;
552
550
  plan_id: string | number;
553
- others: Record<string, string>[];
554
551
  coupon?: string | undefined;
555
552
  }>, {
556
553
  product: string;
@@ -559,14 +556,12 @@ declare const IuguInvoiceVariablesSchema: z.ZodEffects<z.ZodObject<{
559
556
  recurrency: number;
560
557
  plan: string;
561
558
  planId: string | number;
562
- others: Record<string, string>[];
563
559
  }, {
564
560
  product_id: string | number;
565
561
  product: string;
566
562
  recurrency: number;
567
563
  plan: string;
568
564
  plan_id: string | number;
569
- others: Record<string, string>[];
570
565
  coupon?: string | undefined;
571
566
  }>;
572
567
  type IuguInvoiceVariables = z.infer<typeof IuguInvoiceVariablesSchema>;
@@ -535,14 +535,12 @@ declare const IuguInvoiceVariablesSchema: z.ZodEffects<z.ZodObject<{
535
535
  recurrency: z.ZodNumber;
536
536
  plan: z.ZodString;
537
537
  plan_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
538
- others: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
539
538
  }, "strip", z.ZodTypeAny, {
540
539
  product_id: string | number;
541
540
  product: string;
542
541
  recurrency: number;
543
542
  plan: string;
544
543
  plan_id: string | number;
545
- others: Record<string, string>[];
546
544
  coupon?: string | undefined;
547
545
  }, {
548
546
  product_id: string | number;
@@ -550,7 +548,6 @@ declare const IuguInvoiceVariablesSchema: z.ZodEffects<z.ZodObject<{
550
548
  recurrency: number;
551
549
  plan: string;
552
550
  plan_id: string | number;
553
- others: Record<string, string>[];
554
551
  coupon?: string | undefined;
555
552
  }>, {
556
553
  product: string;
@@ -559,14 +556,12 @@ declare const IuguInvoiceVariablesSchema: z.ZodEffects<z.ZodObject<{
559
556
  recurrency: number;
560
557
  plan: string;
561
558
  planId: string | number;
562
- others: Record<string, string>[];
563
559
  }, {
564
560
  product_id: string | number;
565
561
  product: string;
566
562
  recurrency: number;
567
563
  plan: string;
568
564
  plan_id: string | number;
569
- others: Record<string, string>[];
570
565
  coupon?: string | undefined;
571
566
  }>;
572
567
  type IuguInvoiceVariables = z.infer<typeof IuguInvoiceVariablesSchema>;
@@ -287,10 +287,9 @@ var IuguInvoiceVariablesSchema = import_zod3.z.object({
287
287
  product: import_zod3.z.string(),
288
288
  product_id: IdModelSchema,
289
289
  coupon: import_zod3.z.string().optional(),
290
- recurrency: import_zod3.z.number(),
290
+ recurrency: import_zod3.z.coerce.number(),
291
291
  plan: import_zod3.z.string(),
292
- plan_id: IdModelSchema,
293
- others: import_zod3.z.array(import_zod3.z.record(import_zod3.z.string()))
292
+ plan_id: IdModelSchema
294
293
  }).transform(function(data) {
295
294
  return {
296
295
  product: data.product,
@@ -298,8 +297,7 @@ var IuguInvoiceVariablesSchema = import_zod3.z.object({
298
297
  coupon: data.coupon,
299
298
  recurrency: data.recurrency,
300
299
  plan: data.plan,
301
- planId: data.plan_id,
302
- others: data.others
300
+ planId: data.plan_id
303
301
  };
304
302
  });
305
303
  // Annotate the CommonJS export names for ESM import in node:
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/henriquewilson/Developer/Projects/gabirubi-domain/dist/model/iugu/iugu-invoice.js","../../../src/model/iugu/iugu-invoice.ts","../../../src/model.ts","../../../src/model/shared.ts"],"names":["__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toESM","mod","isNodeMode","__esModule","value","__toCommonJS","iugu_invoice_exports","IuguInvoiceSchema","IuguInvoiceStatusSchema","IuguInvoiceVariablesSchema","module","exports","import_zod","require","import_firestore","TimestampOrNow","z","preprocess","arg","Timestamp","now","custom","nullish","optional","import_cuid","generateFirestoreId","cuid","IdModelSchema","import_zod2","union","string","number","IdModelProcess","val","ModelSchema","object","id","createdAt","updatedAt","order","coerce","PreviousSchema","extend","previous","lazy","array","EnabledSchema","enabled","boolean","import_zod3","enum","due_date","currency","discount_cents","email","items_total_cents","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","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","variable","custom_variables","any","logs","description","notes","created_at","credit_card_transaction","account_id","bank_account_branch","bank_account_number","account_name","secure_id","secure_url","customer_id","customer_ref","customer_name","user_id","total","taxes_paid","total_paid","total_overpaid","total_refunded","commission","fines_on_occurrence_day","total_on_occurrence_day","fines_on_occurrence_day_cents","total_on_occurrence_day_cents","refunded_cents","remaining_captured_cents","advance_fee","estimated_advance_fee","paid","original_payment_id","double_payment_id","per_day_interest","per_day_interest_value","per_day_interest_cents","interest","discount","duplicated_invoice_id","bank_slip_extra_due","created_at_iso","authorized_at","authorized_at_iso","expired_at","expired_at_iso","refunded_at","refunded_at_iso","canceled_at","canceled_at_iso","protested_at","protested_at_iso","chargeback_at","chargeback_at_iso","occurrence_date","refundable","installments","transaction_number","payment_method","financial_return_dates","bank_slip","digitable_line","barcode_data","barcode","bank_slip_url","bank_slip_bank","bank_slip_status","bank_slip_error_code","bank_slip_error_message","recipient_cpf_cnpj","pix","qrcode","qrcode_text","end_to_end_id","end_to_end_refund_id","account_number_last_digits","items","price_cents","quantity","price","early_payment_discounts","unknown","split_rules","product","product_id","coupon","recurrency","plan","plan_id","others","record","transform","data","productId","planId"],"mappings":"AAAA;AACA,IAAIA,WAAWC,OAAOC,MAAM;AAC5B,IAAIC,YAAYF,OAAOG,cAAc;AACrC,IAAIC,mBAAmBJ,OAAOK,wBAAwB;AAC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AjC,CAAA,CAAE0K,OAAA,IAAWnK,QAAA,GAAWD,OAAA;IACzDqK,aAAa1I,YAAAjC,CAAA,CAAEwB,MAAA,CAAOV,MAAA,GAASP,QAAA,GAAWD,OAAA;AAC5C;AAEO,IAAMb,6BAA6BwC,YAAAjC,CAAA,CAAEmB,MAAA,CAAO;IACjDyJ,SAAS3I,YAAAjC,CAAA,CAAEc,MAAA;IACX+J,YAAYlK;IACZmK,QAAQ7I,YAAAjC,CAAA,CAAEc,MAAA,GAASP,QAAA;IACnBwK,YAAY9I,YAAAjC,CAAA,CAAEe,MAAA;IACdiK,MAAM/I,YAAAjC,CAAA,CAAEc,MAAA;IACRmK,SAAStK;IACTuK,QAAQjJ,YAAAjC,CAAA,CAAE6B,KAAA,CAAMI,YAAAjC,CAAA,CAAEmL,MAAA,CAAOlJ,YAAAjC,CAAA,CAAEc,MAAA;AAC7B,GAAGsK,SAAA,CAAU,SAACC;WAAU;QACtBT,SAASS,KAAKT,OAAA;QACdU,WAAWD,KAAKR,UAAA;QAChBC,QAAQO,KAAKP,MAAA;QACbC,YAAYM,KAAKN,UAAA;QACjBC,MAAMK,KAAKL,IAAA;QACXO,QAAQF,KAAKJ,OAAA;QACbC,QAAQG,KAAKH,MAAA;IACf;;ADwEA,6DAA6D;AAC7D,KAAMxL,CAAAA,OAAOC,OAAO,GAAG;IACrBJ,mBAAAA;IACAC,yBAAAA;IACAC,4BAAAA;AACF,CAAA","sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\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 IuguInvoiceVariablesSchema: () => IuguInvoiceVariablesSchema\n});\nmodule.exports = __toCommonJS(iugu_invoice_exports);\nvar import_zod3 = require(\"zod\");\n\n// src/model.ts\nvar import_zod2 = require(\"zod\");\n\n// src/model/shared.ts\nvar import_firestore = require(\"@google-cloud/firestore\");\nvar import_zod = require(\"zod\");\nvar TimestampOrNow = import_zod.z.preprocess(\n (arg) => arg === void 0 ? import_firestore.Timestamp.now() : arg,\n import_zod.z.custom()\n).nullish().optional();\n\n// src/model.ts\nvar import_cuid = __toESM(require(\"cuid\"));\nvar generateFirestoreId = () => {\n return (0, import_cuid.default)();\n};\nvar IdModelSchema = import_zod2.z.union([import_zod2.z.string(), import_zod2.z.number()]);\nvar IdModelProcess = import_zod2.z.preprocess((val) => {\n if (val === void 0 || val === null) {\n return generateFirestoreId();\n }\n return val;\n}, IdModelSchema);\nvar ModelSchema = import_zod2.z.object({\n id: IdModelProcess,\n createdAt: TimestampOrNow,\n updatedAt: TimestampOrNow,\n order: import_zod2.z.coerce.number().nullish().optional()\n});\nvar PreviousSchema = ModelSchema.extend({\n previous: import_zod2.z.lazy(() => ModelSchema.array().optional())\n});\nvar EnabledSchema = import_zod2.z.object({\n enabled: import_zod2.z.boolean().optional()\n});\n\n// src/model/iugu/iugu-invoice.ts\nvar IuguInvoiceStatusSchema = import_zod3.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_zod3.z.object({\n id: import_zod3.z.string(),\n due_date: import_zod3.z.string().optional().nullish(),\n currency: import_zod3.z.string().optional().nullish(),\n discount_cents: import_zod3.z.coerce.string().optional().nullish(),\n email: import_zod3.z.string().optional().nullish(),\n items_total_cents: import_zod3.z.number().optional().nullish(),\n notification_url: import_zod3.z.coerce.string().optional().nullish(),\n return_url: import_zod3.z.coerce.string().optional().nullish(),\n status: IuguInvoiceStatusSchema.optional().nullish(),\n tax_cents: import_zod3.z.coerce.string().optional().nullish(),\n total_cents: import_zod3.z.number().optional().nullish(),\n total_paid_cents: import_zod3.z.number().optional().nullish(),\n taxes_paid_cents: import_zod3.z.coerce.string().optional().nullish(),\n paid_at: import_zod3.z.coerce.string().optional().nullish(),\n paid_cents: import_zod3.z.coerce.number().optional().nullish(),\n cc_emails: import_zod3.z.coerce.string().optional().nullish(),\n financial_return_date: import_zod3.z.coerce.string().optional().nullish(),\n payable_with: import_zod3.z.enum([\"credit_card\", \"pix\", \"bank_slip\", \"stripe\", \"all\"]).optional().nullish(),\n overpaid_cents: import_zod3.z.coerce.string().optional().nullish(),\n ignore_due_email: import_zod3.z.coerce.string().optional().nullish(),\n ignore_canceled_email: import_zod3.z.coerce.string().optional().nullish(),\n advance_fee_cents: import_zod3.z.coerce.string().optional().nullish(),\n commission_cents: import_zod3.z.coerce.string().optional().nullish(),\n early_payment_discount: import_zod3.z.boolean().optional().nullish(),\n order_id: import_zod3.z.coerce.string().optional().nullish(),\n updated_at: import_zod3.z.string().optional().nullish(),\n credit_card_brand: import_zod3.z.coerce.string().optional().nullish(),\n credit_card_bin: import_zod3.z.coerce.string().optional().nullish(),\n credit_card_last_4: import_zod3.z.coerce.string().optional().nullish(),\n credit_card_captured_at: import_zod3.z.coerce.string().optional().nullish(),\n credit_card_tid: import_zod3.z.coerce.string().optional().nullish(),\n external_reference: import_zod3.z.coerce.string().optional().nullish(),\n max_installments_value: import_zod3.z.coerce.string().optional().nullish(),\n payer_name: import_zod3.z.string().optional().nullish(),\n payer_email: import_zod3.z.coerce.string().optional().nullish(),\n payer_cpf_cnpj: import_zod3.z.string().optional().nullish(),\n payer_phone: import_zod3.z.coerce.string().optional().nullish(),\n payer_phone_prefix: import_zod3.z.coerce.string().optional().nullish(),\n payer_address_zip_code: import_zod3.z.coerce.string().optional().nullish(),\n payer_address_street: import_zod3.z.coerce.string().optional().nullish(),\n payer_address_district: import_zod3.z.coerce.string().optional().nullish(),\n payer_address_city: import_zod3.z.coerce.string().optional().nullish(),\n payer_address_state: import_zod3.z.coerce.string().optional().nullish(),\n payer_address_number: import_zod3.z.coerce.string().optional().nullish(),\n payer_address_complement: import_zod3.z.coerce.string().optional().nullish(),\n payer_address_country: import_zod3.z.coerce.string().optional().nullish(),\n late_payment_fine: import_zod3.z.number().optional().nullish(),\n late_payment_fine_cents: import_zod3.z.coerce.string().optional().nullish(),\n split_id: import_zod3.z.coerce.string().optional().nullish(),\n external_payment_id: import_zod3.z.coerce.string().optional().nullish(),\n external_payment_description: import_zod3.z.coerce.string().optional().nullish(),\n payment_booklet_id: import_zod3.z.coerce.string().optional().nullish(),\n subscription_id: import_zod3.z.coerce.string().optional().nullish(),\n variables: import_zod3.z.array(import_zod3.z.object({ variable: import_zod3.z.string(), value: import_zod3.z.string() })).optional().nullish(),\n custom_variables: import_zod3.z.array(import_zod3.z.any()).optional().nullish(),\n logs: import_zod3.z.array(\n import_zod3.z.object({\n id: import_zod3.z.string(),\n description: import_zod3.z.string(),\n notes: import_zod3.z.string(),\n created_at: import_zod3.z.string()\n })\n ).optional().nullish(),\n credit_card_transaction: import_zod3.z.coerce.string().optional().nullish(),\n account_id: import_zod3.z.string().optional().nullish(),\n bank_account_branch: import_zod3.z.string().optional().nullish(),\n bank_account_number: import_zod3.z.string().optional().nullish(),\n account_name: import_zod3.z.string().optional().nullish(),\n secure_id: import_zod3.z.string().optional().nullish(),\n secure_url: import_zod3.z.string().optional().nullish(),\n customer_id: import_zod3.z.coerce.string().optional().nullish(),\n customer_ref: import_zod3.z.coerce.string().optional().nullish(),\n customer_name: import_zod3.z.coerce.string().optional().nullish(),\n user_id: import_zod3.z.coerce.string().optional().nullish(),\n total: import_zod3.z.string().optional().nullish(),\n taxes_paid: import_zod3.z.string().optional().nullish(),\n total_paid: import_zod3.z.string().optional().nullish(),\n total_overpaid: import_zod3.z.string().optional().nullish(),\n total_refunded: import_zod3.z.string().optional().nullish(),\n commission: import_zod3.z.string().optional().nullish(),\n fines_on_occurrence_day: import_zod3.z.string().optional().nullish(),\n total_on_occurrence_day: import_zod3.z.string().optional().nullish(),\n fines_on_occurrence_day_cents: import_zod3.z.number().optional().nullish(),\n total_on_occurrence_day_cents: import_zod3.z.number().optional().nullish(),\n refunded_cents: import_zod3.z.number().optional().nullish(),\n remaining_captured_cents: import_zod3.z.number().optional().nullish(),\n advance_fee: import_zod3.z.coerce.string().optional().nullish(),\n estimated_advance_fee: import_zod3.z.coerce.string().optional().nullish(),\n paid: import_zod3.z.string().optional().nullish(),\n original_payment_id: import_zod3.z.coerce.string().optional().nullish(),\n double_payment_id: import_zod3.z.coerce.string().optional().nullish(),\n per_day_interest: import_zod3.z.boolean().optional().nullish(),\n per_day_interest_value: import_zod3.z.coerce.string().optional().nullish(),\n per_day_interest_cents: import_zod3.z.number().optional().nullish(),\n interest: import_zod3.z.coerce.string().optional().nullish(),\n discount: import_zod3.z.coerce.string().optional().nullish(),\n duplicated_invoice_id: import_zod3.z.coerce.string().optional().nullish(),\n bank_slip_extra_due: import_zod3.z.number().optional().nullish(),\n created_at: import_zod3.z.string().optional().nullish(),\n created_at_iso: import_zod3.z.string().optional().nullish(),\n authorized_at: import_zod3.z.coerce.string().optional().nullish(),\n authorized_at_iso: import_zod3.z.coerce.string().optional().nullish(),\n expired_at: import_zod3.z.coerce.string().optional().nullish(),\n expired_at_iso: import_zod3.z.coerce.string().optional().nullish(),\n refunded_at: import_zod3.z.coerce.string().optional().nullish(),\n refunded_at_iso: import_zod3.z.coerce.string().optional().nullish(),\n canceled_at: import_zod3.z.coerce.string().optional().nullish(),\n canceled_at_iso: import_zod3.z.coerce.string().optional().nullish(),\n protested_at: import_zod3.z.coerce.string().optional().nullish(),\n protested_at_iso: import_zod3.z.coerce.string().optional().nullish(),\n chargeback_at: import_zod3.z.coerce.string().optional().nullish(),\n chargeback_at_iso: import_zod3.z.coerce.string().optional().nullish(),\n occurrence_date: import_zod3.z.coerce.string().optional().nullish(),\n refundable: import_zod3.z.coerce.string().optional().nullish(),\n installments: import_zod3.z.coerce.string().optional().nullish(),\n transaction_number: import_zod3.z.number().optional().nullish(),\n payment_method: import_zod3.z.coerce.string().optional().nullish(),\n financial_return_dates: import_zod3.z.coerce.string().optional().nullish(),\n bank_slip: import_zod3.z.object({\n digitable_line: import_zod3.z.string(),\n barcode_data: import_zod3.z.string(),\n barcode: import_zod3.z.string(),\n bank_slip_url: import_zod3.z.string(),\n bank_slip_bank: import_zod3.z.number(),\n bank_slip_status: import_zod3.z.string(),\n bank_slip_error_code: import_zod3.z.coerce.string(),\n bank_slip_error_message: import_zod3.z.coerce.string(),\n recipient_cpf_cnpj: import_zod3.z.string()\n }).nullish().optional(),\n pix: import_zod3.z.object({\n qrcode: import_zod3.z.string(),\n qrcode_text: import_zod3.z.string(),\n status: import_zod3.z.string(),\n payer_cpf_cnpj: import_zod3.z.coerce.string(),\n payer_name: import_zod3.z.coerce.string(),\n end_to_end_id: import_zod3.z.coerce.string(),\n end_to_end_refund_id: import_zod3.z.coerce.string(),\n account_number_last_digits: import_zod3.z.coerce.string()\n }).optional().nullish(),\n items: import_zod3.z.array(\n import_zod3.z.object({\n id: import_zod3.z.string(),\n description: import_zod3.z.string(),\n price_cents: import_zod3.z.number(),\n quantity: import_zod3.z.number(),\n created_at: import_zod3.z.string(),\n updated_at: import_zod3.z.string(),\n price: import_zod3.z.string()\n })\n ).optional().nullish(),\n early_payment_discounts: import_zod3.z.array(import_zod3.z.unknown()).optional().nullish(),\n split_rules: import_zod3.z.coerce.string().optional().nullish()\n});\nvar IuguInvoiceVariablesSchema = import_zod3.z.object({\n product: import_zod3.z.string(),\n product_id: IdModelSchema,\n coupon: import_zod3.z.string().optional(),\n recurrency: import_zod3.z.number(),\n plan: import_zod3.z.string(),\n plan_id: IdModelSchema,\n others: import_zod3.z.array(import_zod3.z.record(import_zod3.z.string()))\n}).transform((data) => ({\n product: data.product,\n productId: data.product_id,\n coupon: data.coupon,\n recurrency: data.recurrency,\n plan: data.plan,\n planId: data.plan_id,\n others: data.others\n}));\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n IuguInvoiceSchema,\n IuguInvoiceStatusSchema,\n IuguInvoiceVariablesSchema\n});\n","import { z } from \"zod\"\nimport {IdModelSchema} from \"../../model\";\n\nexport const IuguInvoiceStatusSchema = z.enum([\n 'pending',\n 'paid',\n 'canceled',\n 'in_analysis',\n 'draft',\n 'partially_paid',\n 'refunded',\n 'expired',\n 'in_protest',\n 'chargeback',\n 'externally_paid',\n 'invited',\n])\n\nexport const IuguInvoiceSchema = z.object({\n id: z.string(),\n due_date: z.string().optional().nullish(),\n currency: z.string().optional().nullish(),\n discount_cents: z.coerce.string().optional().nullish(),\n email: z.string().optional().nullish(),\n items_total_cents: z.number().optional().nullish(),\n notification_url: z.coerce.string().optional().nullish(),\n return_url: z.coerce.string().optional().nullish(),\n status: IuguInvoiceStatusSchema.optional().nullish(),\n tax_cents: z.coerce.string().optional().nullish(),\n total_cents: z.number().optional().nullish(),\n total_paid_cents: z.number().optional().nullish(),\n taxes_paid_cents: z.coerce.string().optional().nullish(),\n paid_at: z.coerce.string().optional().nullish(),\n paid_cents: z.coerce.number().optional().nullish(),\n cc_emails: z.coerce.string().optional().nullish(),\n financial_return_date: z.coerce.string().optional().nullish(),\n payable_with: z.enum(['credit_card', 'pix', 'bank_slip', 'stripe', 'all']).optional().nullish(),\n overpaid_cents: z.coerce.string().optional().nullish(),\n ignore_due_email: z.coerce.string().optional().nullish(),\n ignore_canceled_email: z.coerce.string().optional().nullish(),\n advance_fee_cents: z.coerce.string().optional().nullish(),\n commission_cents: z.coerce.string().optional().nullish(),\n early_payment_discount: z.boolean().optional().nullish(),\n order_id: z.coerce.string().optional().nullish(),\n updated_at: z.string().optional().nullish(),\n credit_card_brand: z.coerce.string().optional().nullish(),\n credit_card_bin: z.coerce.string().optional().nullish(),\n credit_card_last_4: z.coerce.string().optional().nullish(),\n credit_card_captured_at: z.coerce.string().optional().nullish(),\n credit_card_tid: z.coerce.string().optional().nullish(),\n external_reference: z.coerce.string().optional().nullish(),\n max_installments_value: z.coerce.string().optional().nullish(),\n payer_name: z.string().optional().nullish(),\n payer_email: z.coerce.string().optional().nullish(),\n payer_cpf_cnpj: z.string().optional().nullish(),\n payer_phone: z.coerce.string().optional().nullish(),\n payer_phone_prefix: z.coerce.string().optional().nullish(),\n payer_address_zip_code: z.coerce.string().optional().nullish(),\n payer_address_street: z.coerce.string().optional().nullish(),\n payer_address_district: z.coerce.string().optional().nullish(),\n payer_address_city: z.coerce.string().optional().nullish(),\n payer_address_state: z.coerce.string().optional().nullish(),\n payer_address_number: z.coerce.string().optional().nullish(),\n payer_address_complement: z.coerce.string().optional().nullish(),\n payer_address_country: z.coerce.string().optional().nullish(),\n late_payment_fine: z.number().optional().nullish(),\n late_payment_fine_cents: z.coerce.string().optional().nullish(),\n split_id: z.coerce.string().optional().nullish(),\n external_payment_id: z.coerce.string().optional().nullish(),\n external_payment_description: z.coerce.string().optional().nullish(),\n payment_booklet_id: z.coerce.string().optional().nullish(),\n subscription_id: z.coerce.string().optional().nullish(),\n variables: z.array(z.object({ variable: z.string(), value: z.string() })).optional().nullish(),\n custom_variables: z.array(z.any()).optional().nullish(),\n logs: z.array(\n z.object({\n id: z.string(),\n description: z.string(),\n notes: z.string(),\n created_at: z.string()\n })\n ).optional().nullish(),\n credit_card_transaction: z.coerce.string().optional().nullish(),\n account_id: z.string().optional().nullish(),\n bank_account_branch: z.string().optional().nullish(),\n bank_account_number: z.string().optional().nullish(),\n account_name: z.string().optional().nullish(),\n secure_id: z.string().optional().nullish(),\n secure_url: z.string().optional().nullish(),\n customer_id: z.coerce.string().optional().nullish(),\n customer_ref: z.coerce.string().optional().nullish(),\n customer_name: z.coerce.string().optional().nullish(),\n user_id: z.coerce.string().optional().nullish(),\n total: z.string().optional().nullish(),\n taxes_paid: z.string().optional().nullish(),\n total_paid: z.string().optional().nullish(),\n total_overpaid: z.string().optional().nullish(),\n total_refunded: z.string().optional().nullish(),\n commission: z.string().optional().nullish(),\n fines_on_occurrence_day: z.string().optional().nullish(),\n total_on_occurrence_day: z.string().optional().nullish(),\n fines_on_occurrence_day_cents: z.number().optional().nullish(),\n total_on_occurrence_day_cents: z.number().optional().nullish(),\n refunded_cents: z.number().optional().nullish(),\n remaining_captured_cents: z.number().optional().nullish(),\n advance_fee: z.coerce.string().optional().nullish(),\n estimated_advance_fee: z.coerce.string().optional().nullish(),\n paid: z.string().optional().nullish(),\n original_payment_id: z.coerce.string().optional().nullish(),\n double_payment_id: z.coerce.string().optional().nullish(),\n per_day_interest: z.boolean().optional().nullish(),\n per_day_interest_value: z.coerce.string().optional().nullish(),\n per_day_interest_cents: z.number().optional().nullish(),\n interest: z.coerce.string().optional().nullish(),\n discount: z.coerce.string().optional().nullish(),\n duplicated_invoice_id: z.coerce.string().optional().nullish(),\n bank_slip_extra_due: z.number().optional().nullish(),\n created_at: z.string().optional().nullish(),\n created_at_iso: z.string().optional().nullish(),\n authorized_at: z.coerce.string().optional().nullish(),\n authorized_at_iso: z.coerce.string().optional().nullish(),\n expired_at: z.coerce.string().optional().nullish(),\n expired_at_iso: z.coerce.string().optional().nullish(),\n refunded_at: z.coerce.string().optional().nullish(),\n refunded_at_iso: z.coerce.string().optional().nullish(),\n canceled_at: z.coerce.string().optional().nullish(),\n canceled_at_iso: z.coerce.string().optional().nullish(),\n protested_at: z.coerce.string().optional().nullish(),\n protested_at_iso: z.coerce.string().optional().nullish(),\n chargeback_at: z.coerce.string().optional().nullish(),\n chargeback_at_iso: z.coerce.string().optional().nullish(),\n occurrence_date: z.coerce.string().optional().nullish(),\n refundable: z.coerce.string().optional().nullish(),\n installments: z.coerce.string().optional().nullish(),\n transaction_number: z.number().optional().nullish(),\n payment_method: z.coerce.string().optional().nullish(),\n financial_return_dates: z.coerce.string().optional().nullish(),\n bank_slip: z.object({\n digitable_line: z.string(),\n barcode_data: z.string(),\n barcode: z.string(),\n bank_slip_url: z.string(),\n bank_slip_bank: z.number(),\n bank_slip_status: z.string(),\n bank_slip_error_code: z.coerce.string(),\n bank_slip_error_message: z.coerce.string(),\n recipient_cpf_cnpj: z.string()\n }).nullish().optional(),\n pix: z.object({\n qrcode: z.string(),\n qrcode_text: z.string(),\n status: z.string(),\n payer_cpf_cnpj: z.coerce.string(),\n payer_name: z.coerce.string(),\n end_to_end_id: z.coerce.string(),\n end_to_end_refund_id: z.coerce.string(),\n account_number_last_digits: z.coerce.string()\n }).optional().nullish(),\n items: z.array(\n z.object({\n id: z.string(),\n description: z.string(),\n price_cents: z.number(),\n quantity: z.number(),\n created_at: z.string(),\n updated_at: z.string(),\n price: z.string()\n })\n ).optional().nullish(),\n early_payment_discounts: z.array(z.unknown()).optional().nullish(),\n split_rules: z.coerce.string().optional().nullish()\n})\n\nexport const IuguInvoiceVariablesSchema = z.object({\n product: z.string(),\n product_id: IdModelSchema,\n coupon: z.string().optional(),\n recurrency: z.number(),\n plan: z.string(),\n plan_id: IdModelSchema,\n others: z.array(z.record(z.string())),\n}).transform((data) => ({\n product: data.product,\n productId: data.product_id,\n coupon: data.coupon,\n recurrency: data.recurrency,\n plan: data.plan,\n planId: data.plan_id,\n others: data.others,\n}))\n\nexport type IuguInvoiceVariables = z.infer<typeof IuguInvoiceVariablesSchema>\n\nexport type IuguInvoice = z.infer<typeof IuguInvoiceSchema>\nexport type IuguInvoiceStatus = z.infer<typeof IuguInvoiceStatusSchema>\n","import {z} from \"zod\";\nimport {TimestampOrNow} from \"./model/shared\";\nimport cuid from 'cuid';\n\nexport const generateFirestoreId = () => {\n return cuid();\n}\n\nexport const IdModelSchema = z.union([z.string(), z.number()])\n\nconst IdModelProcess = z.preprocess((val) => {\n if (val === undefined || val === null) {\n return generateFirestoreId();\n }\n return val;\n}, IdModelSchema);\n\nexport const ModelSchema = z.object({\n id: IdModelProcess,\n createdAt: TimestampOrNow,\n updatedAt: TimestampOrNow,\n order: z.coerce.number().nullish().optional()\n});\n\nexport const PreviousSchema = ModelSchema.extend({\n previous: z.lazy(() => ModelSchema.array().optional())\n})\n\nexport const EnabledSchema = z.object({\n enabled: z.boolean().optional()\n})\n\nexport type IdModel = z.infer<typeof IdModelSchema>;\nexport type Model = z.infer<typeof ModelSchema>;\nexport type Previous = z.infer<typeof PreviousSchema>;\nexport type Enabled = z.infer<typeof EnabledSchema>;\nexport type PartialWithId<T extends Model> = Partial<T> & {\n id: NonNullable<T['id']>\n}\n\n\n","import { Timestamp } from '@google-cloud/firestore';\nimport {z} from \"zod\";\n\nexport const TimestampOrNow = z\n .preprocess(\n (arg) => (arg === undefined ? Timestamp.now() : arg),\n z.custom<Timestamp>(),\n )\n .nullish().optional();\n"]}
1
+ {"version":3,"sources":["/Users/henriquewilson/Developer/Projects/gabirubi-domain/dist/model/iugu/iugu-invoice.js","../../../src/model/iugu/iugu-invoice.ts","../../../src/model.ts","../../../src/model/shared.ts"],"names":["__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toESM","mod","isNodeMode","__esModule","value","__toCommonJS","iugu_invoice_exports","IuguInvoiceSchema","IuguInvoiceStatusSchema","IuguInvoiceVariablesSchema","module","exports","import_zod","require","import_firestore","TimestampOrNow","z","preprocess","arg","Timestamp","now","custom","nullish","optional","import_cuid","generateFirestoreId","cuid","IdModelSchema","import_zod2","union","string","number","IdModelProcess","val","ModelSchema","object","id","createdAt","updatedAt","order","coerce","PreviousSchema","extend","previous","lazy","array","EnabledSchema","enabled","boolean","import_zod3","enum","due_date","currency","discount_cents","email","items_total_cents","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","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","variable","custom_variables","any","logs","description","notes","created_at","credit_card_transaction","account_id","bank_account_branch","bank_account_number","account_name","secure_id","secure_url","customer_id","customer_ref","customer_name","user_id","total","taxes_paid","total_paid","total_overpaid","total_refunded","commission","fines_on_occurrence_day","total_on_occurrence_day","fines_on_occurrence_day_cents","total_on_occurrence_day_cents","refunded_cents","remaining_captured_cents","advance_fee","estimated_advance_fee","paid","original_payment_id","double_payment_id","per_day_interest","per_day_interest_value","per_day_interest_cents","interest","discount","duplicated_invoice_id","bank_slip_extra_due","created_at_iso","authorized_at","authorized_at_iso","expired_at","expired_at_iso","refunded_at","refunded_at_iso","canceled_at","canceled_at_iso","protested_at","protested_at_iso","chargeback_at","chargeback_at_iso","occurrence_date","refundable","installments","transaction_number","payment_method","financial_return_dates","bank_slip","digitable_line","barcode_data","barcode","bank_slip_url","bank_slip_bank","bank_slip_status","bank_slip_error_code","bank_slip_error_message","recipient_cpf_cnpj","pix","qrcode","qrcode_text","end_to_end_id","end_to_end_refund_id","account_number_last_digits","items","price_cents","quantity","price","early_payment_discounts","unknown","split_rules","product","product_id","coupon","recurrency","plan","plan_id","transform","data","productId","planId"],"mappings":"AAAA;AACA,IAAIA,WAAWC,OAAOC,MAAM;AAC5B,IAAIC,YAAYF,OAAOG,cAAc;AACrC,IAAIC,mBAAmBJ,OAAOK,wBAAwB;AACtD,IAAIC,oBAAoBN,OAAOO,mBAAmB;AAClD,IAAIC,eAAeR,OAAOS,cAAc;AACxC,IAAIC,eAAeV,OAAOW,SAAS,CAACC,cAAc;AAClD,IAAIC,WAAW,SAACC,QAAQC;IACtB,IAAK,IAAIC,QAAQD,IACfb,UAAUY,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,QACzCpB,UAAUkB,IAAII,KAAK;oBAAEP,KAAK;+BAAMI,IAAI,CAACG,IAAI;;oBAAEN,YAAY,CAAEK,CAAAA,OAAOnB,iBAAiBiB,MAAMG,IAAG,KAAMD,KAAKL,UAAU;gBAAC;;YAFpH,QAAK,YAAWZ,kBAAkBe,0BAA7B,SAAA,6BAAA,QAAA,yBAAA;;YAAA;YAAA;;;qBAAA,6BAAA;oBAAA;;;oBAAA;0BAAA;;;;IAGP;IACA,OAAOD;AACT;AACA,IAAIM,UAAU,SAACC,KAAKC,YAAYd;W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\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\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 IuguInvoiceVariablesSchema: () => IuguInvoiceVariablesSchema\n});\nmodule.exports = __toCommonJS(iugu_invoice_exports);\nvar import_zod3 = require(\"zod\");\n\n// src/model.ts\nvar import_zod2 = require(\"zod\");\n\n// src/model/shared.ts\nvar import_firestore = require(\"@google-cloud/firestore\");\nvar import_zod = require(\"zod\");\nvar TimestampOrNow = import_zod.z.preprocess(\n (arg) => arg === void 0 ? import_firestore.Timestamp.now() : arg,\n import_zod.z.custom()\n).nullish().optional();\n\n// src/model.ts\nvar import_cuid = __toESM(require(\"cuid\"));\nvar generateFirestoreId = () => {\n return (0, import_cuid.default)();\n};\nvar IdModelSchema = import_zod2.z.union([import_zod2.z.string(), import_zod2.z.number()]);\nvar IdModelProcess = import_zod2.z.preprocess((val) => {\n if (val === void 0 || val === null) {\n return generateFirestoreId();\n }\n return val;\n}, IdModelSchema);\nvar ModelSchema = import_zod2.z.object({\n id: IdModelProcess,\n createdAt: TimestampOrNow,\n updatedAt: TimestampOrNow,\n order: import_zod2.z.coerce.number().nullish().optional()\n});\nvar PreviousSchema = ModelSchema.extend({\n previous: import_zod2.z.lazy(() => ModelSchema.array().optional())\n});\nvar EnabledSchema = import_zod2.z.object({\n enabled: import_zod2.z.boolean().optional()\n});\n\n// src/model/iugu/iugu-invoice.ts\nvar IuguInvoiceStatusSchema = import_zod3.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_zod3.z.object({\n id: import_zod3.z.string(),\n due_date: import_zod3.z.string().optional().nullish(),\n currency: import_zod3.z.string().optional().nullish(),\n discount_cents: import_zod3.z.coerce.string().optional().nullish(),\n email: import_zod3.z.string().optional().nullish(),\n items_total_cents: import_zod3.z.number().optional().nullish(),\n notification_url: import_zod3.z.coerce.string().optional().nullish(),\n return_url: import_zod3.z.coerce.string().optional().nullish(),\n status: IuguInvoiceStatusSchema.optional().nullish(),\n tax_cents: import_zod3.z.coerce.string().optional().nullish(),\n total_cents: import_zod3.z.number().optional().nullish(),\n total_paid_cents: import_zod3.z.number().optional().nullish(),\n taxes_paid_cents: import_zod3.z.coerce.string().optional().nullish(),\n paid_at: import_zod3.z.coerce.string().optional().nullish(),\n paid_cents: import_zod3.z.coerce.number().optional().nullish(),\n cc_emails: import_zod3.z.coerce.string().optional().nullish(),\n financial_return_date: import_zod3.z.coerce.string().optional().nullish(),\n payable_with: import_zod3.z.enum([\"credit_card\", \"pix\", \"bank_slip\", \"stripe\", \"all\"]).optional().nullish(),\n overpaid_cents: import_zod3.z.coerce.string().optional().nullish(),\n ignore_due_email: import_zod3.z.coerce.string().optional().nullish(),\n ignore_canceled_email: import_zod3.z.coerce.string().optional().nullish(),\n advance_fee_cents: import_zod3.z.coerce.string().optional().nullish(),\n commission_cents: import_zod3.z.coerce.string().optional().nullish(),\n early_payment_discount: import_zod3.z.boolean().optional().nullish(),\n order_id: import_zod3.z.coerce.string().optional().nullish(),\n updated_at: import_zod3.z.string().optional().nullish(),\n credit_card_brand: import_zod3.z.coerce.string().optional().nullish(),\n credit_card_bin: import_zod3.z.coerce.string().optional().nullish(),\n credit_card_last_4: import_zod3.z.coerce.string().optional().nullish(),\n credit_card_captured_at: import_zod3.z.coerce.string().optional().nullish(),\n credit_card_tid: import_zod3.z.coerce.string().optional().nullish(),\n external_reference: import_zod3.z.coerce.string().optional().nullish(),\n max_installments_value: import_zod3.z.coerce.string().optional().nullish(),\n payer_name: import_zod3.z.string().optional().nullish(),\n payer_email: import_zod3.z.coerce.string().optional().nullish(),\n payer_cpf_cnpj: import_zod3.z.string().optional().nullish(),\n payer_phone: import_zod3.z.coerce.string().optional().nullish(),\n payer_phone_prefix: import_zod3.z.coerce.string().optional().nullish(),\n payer_address_zip_code: import_zod3.z.coerce.string().optional().nullish(),\n payer_address_street: import_zod3.z.coerce.string().optional().nullish(),\n payer_address_district: import_zod3.z.coerce.string().optional().nullish(),\n payer_address_city: import_zod3.z.coerce.string().optional().nullish(),\n payer_address_state: import_zod3.z.coerce.string().optional().nullish(),\n payer_address_number: import_zod3.z.coerce.string().optional().nullish(),\n payer_address_complement: import_zod3.z.coerce.string().optional().nullish(),\n payer_address_country: import_zod3.z.coerce.string().optional().nullish(),\n late_payment_fine: import_zod3.z.number().optional().nullish(),\n late_payment_fine_cents: import_zod3.z.coerce.string().optional().nullish(),\n split_id: import_zod3.z.coerce.string().optional().nullish(),\n external_payment_id: import_zod3.z.coerce.string().optional().nullish(),\n external_payment_description: import_zod3.z.coerce.string().optional().nullish(),\n payment_booklet_id: import_zod3.z.coerce.string().optional().nullish(),\n subscription_id: import_zod3.z.coerce.string().optional().nullish(),\n variables: import_zod3.z.array(import_zod3.z.object({ variable: import_zod3.z.string(), value: import_zod3.z.string() })).optional().nullish(),\n custom_variables: import_zod3.z.array(import_zod3.z.any()).optional().nullish(),\n logs: import_zod3.z.array(\n import_zod3.z.object({\n id: import_zod3.z.string(),\n description: import_zod3.z.string(),\n notes: import_zod3.z.string(),\n created_at: import_zod3.z.string()\n })\n ).optional().nullish(),\n credit_card_transaction: import_zod3.z.coerce.string().optional().nullish(),\n account_id: import_zod3.z.string().optional().nullish(),\n bank_account_branch: import_zod3.z.string().optional().nullish(),\n bank_account_number: import_zod3.z.string().optional().nullish(),\n account_name: import_zod3.z.string().optional().nullish(),\n secure_id: import_zod3.z.string().optional().nullish(),\n secure_url: import_zod3.z.string().optional().nullish(),\n customer_id: import_zod3.z.coerce.string().optional().nullish(),\n customer_ref: import_zod3.z.coerce.string().optional().nullish(),\n customer_name: import_zod3.z.coerce.string().optional().nullish(),\n user_id: import_zod3.z.coerce.string().optional().nullish(),\n total: import_zod3.z.string().optional().nullish(),\n taxes_paid: import_zod3.z.string().optional().nullish(),\n total_paid: import_zod3.z.string().optional().nullish(),\n total_overpaid: import_zod3.z.string().optional().nullish(),\n total_refunded: import_zod3.z.string().optional().nullish(),\n commission: import_zod3.z.string().optional().nullish(),\n fines_on_occurrence_day: import_zod3.z.string().optional().nullish(),\n total_on_occurrence_day: import_zod3.z.string().optional().nullish(),\n fines_on_occurrence_day_cents: import_zod3.z.number().optional().nullish(),\n total_on_occurrence_day_cents: import_zod3.z.number().optional().nullish(),\n refunded_cents: import_zod3.z.number().optional().nullish(),\n remaining_captured_cents: import_zod3.z.number().optional().nullish(),\n advance_fee: import_zod3.z.coerce.string().optional().nullish(),\n estimated_advance_fee: import_zod3.z.coerce.string().optional().nullish(),\n paid: import_zod3.z.string().optional().nullish(),\n original_payment_id: import_zod3.z.coerce.string().optional().nullish(),\n double_payment_id: import_zod3.z.coerce.string().optional().nullish(),\n per_day_interest: import_zod3.z.boolean().optional().nullish(),\n per_day_interest_value: import_zod3.z.coerce.string().optional().nullish(),\n per_day_interest_cents: import_zod3.z.number().optional().nullish(),\n interest: import_zod3.z.coerce.string().optional().nullish(),\n discount: import_zod3.z.coerce.string().optional().nullish(),\n duplicated_invoice_id: import_zod3.z.coerce.string().optional().nullish(),\n bank_slip_extra_due: import_zod3.z.number().optional().nullish(),\n created_at: import_zod3.z.string().optional().nullish(),\n created_at_iso: import_zod3.z.string().optional().nullish(),\n authorized_at: import_zod3.z.coerce.string().optional().nullish(),\n authorized_at_iso: import_zod3.z.coerce.string().optional().nullish(),\n expired_at: import_zod3.z.coerce.string().optional().nullish(),\n expired_at_iso: import_zod3.z.coerce.string().optional().nullish(),\n refunded_at: import_zod3.z.coerce.string().optional().nullish(),\n refunded_at_iso: import_zod3.z.coerce.string().optional().nullish(),\n canceled_at: import_zod3.z.coerce.string().optional().nullish(),\n canceled_at_iso: import_zod3.z.coerce.string().optional().nullish(),\n protested_at: import_zod3.z.coerce.string().optional().nullish(),\n protested_at_iso: import_zod3.z.coerce.string().optional().nullish(),\n chargeback_at: import_zod3.z.coerce.string().optional().nullish(),\n chargeback_at_iso: import_zod3.z.coerce.string().optional().nullish(),\n occurrence_date: import_zod3.z.coerce.string().optional().nullish(),\n refundable: import_zod3.z.coerce.string().optional().nullish(),\n installments: import_zod3.z.coerce.string().optional().nullish(),\n transaction_number: import_zod3.z.number().optional().nullish(),\n payment_method: import_zod3.z.coerce.string().optional().nullish(),\n financial_return_dates: import_zod3.z.coerce.string().optional().nullish(),\n bank_slip: import_zod3.z.object({\n digitable_line: import_zod3.z.string(),\n barcode_data: import_zod3.z.string(),\n barcode: import_zod3.z.string(),\n bank_slip_url: import_zod3.z.string(),\n bank_slip_bank: import_zod3.z.number(),\n bank_slip_status: import_zod3.z.string(),\n bank_slip_error_code: import_zod3.z.coerce.string(),\n bank_slip_error_message: import_zod3.z.coerce.string(),\n recipient_cpf_cnpj: import_zod3.z.string()\n }).nullish().optional(),\n pix: import_zod3.z.object({\n qrcode: import_zod3.z.string(),\n qrcode_text: import_zod3.z.string(),\n status: import_zod3.z.string(),\n payer_cpf_cnpj: import_zod3.z.coerce.string(),\n payer_name: import_zod3.z.coerce.string(),\n end_to_end_id: import_zod3.z.coerce.string(),\n end_to_end_refund_id: import_zod3.z.coerce.string(),\n account_number_last_digits: import_zod3.z.coerce.string()\n }).optional().nullish(),\n items: import_zod3.z.array(\n import_zod3.z.object({\n id: import_zod3.z.string(),\n description: import_zod3.z.string(),\n price_cents: import_zod3.z.number(),\n quantity: import_zod3.z.number(),\n created_at: import_zod3.z.string(),\n updated_at: import_zod3.z.string(),\n price: import_zod3.z.string()\n })\n ).optional().nullish(),\n early_payment_discounts: import_zod3.z.array(import_zod3.z.unknown()).optional().nullish(),\n split_rules: import_zod3.z.coerce.string().optional().nullish()\n});\nvar IuguInvoiceVariablesSchema = import_zod3.z.object({\n product: import_zod3.z.string(),\n product_id: IdModelSchema,\n coupon: import_zod3.z.string().optional(),\n recurrency: import_zod3.z.coerce.number(),\n plan: import_zod3.z.string(),\n plan_id: IdModelSchema\n}).transform((data) => ({\n product: data.product,\n productId: data.product_id,\n coupon: data.coupon,\n recurrency: data.recurrency,\n plan: data.plan,\n planId: data.plan_id\n}));\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n IuguInvoiceSchema,\n IuguInvoiceStatusSchema,\n IuguInvoiceVariablesSchema\n});\n","import { z } from \"zod\"\nimport {IdModelSchema} from \"../../model\";\n\nexport const IuguInvoiceStatusSchema = z.enum([\n 'pending',\n 'paid',\n 'canceled',\n 'in_analysis',\n 'draft',\n 'partially_paid',\n 'refunded',\n 'expired',\n 'in_protest',\n 'chargeback',\n 'externally_paid',\n 'invited',\n])\n\nexport const IuguInvoiceSchema = z.object({\n id: z.string(),\n due_date: z.string().optional().nullish(),\n currency: z.string().optional().nullish(),\n discount_cents: z.coerce.string().optional().nullish(),\n email: z.string().optional().nullish(),\n items_total_cents: z.number().optional().nullish(),\n notification_url: z.coerce.string().optional().nullish(),\n return_url: z.coerce.string().optional().nullish(),\n status: IuguInvoiceStatusSchema.optional().nullish(),\n tax_cents: z.coerce.string().optional().nullish(),\n total_cents: z.number().optional().nullish(),\n total_paid_cents: z.number().optional().nullish(),\n taxes_paid_cents: z.coerce.string().optional().nullish(),\n paid_at: z.coerce.string().optional().nullish(),\n paid_cents: z.coerce.number().optional().nullish(),\n cc_emails: z.coerce.string().optional().nullish(),\n financial_return_date: z.coerce.string().optional().nullish(),\n payable_with: z.enum(['credit_card', 'pix', 'bank_slip', 'stripe', 'all']).optional().nullish(),\n overpaid_cents: z.coerce.string().optional().nullish(),\n ignore_due_email: z.coerce.string().optional().nullish(),\n ignore_canceled_email: z.coerce.string().optional().nullish(),\n advance_fee_cents: z.coerce.string().optional().nullish(),\n commission_cents: z.coerce.string().optional().nullish(),\n early_payment_discount: z.boolean().optional().nullish(),\n order_id: z.coerce.string().optional().nullish(),\n updated_at: z.string().optional().nullish(),\n credit_card_brand: z.coerce.string().optional().nullish(),\n credit_card_bin: z.coerce.string().optional().nullish(),\n credit_card_last_4: z.coerce.string().optional().nullish(),\n credit_card_captured_at: z.coerce.string().optional().nullish(),\n credit_card_tid: z.coerce.string().optional().nullish(),\n external_reference: z.coerce.string().optional().nullish(),\n max_installments_value: z.coerce.string().optional().nullish(),\n payer_name: z.string().optional().nullish(),\n payer_email: z.coerce.string().optional().nullish(),\n payer_cpf_cnpj: z.string().optional().nullish(),\n payer_phone: z.coerce.string().optional().nullish(),\n payer_phone_prefix: z.coerce.string().optional().nullish(),\n payer_address_zip_code: z.coerce.string().optional().nullish(),\n payer_address_street: z.coerce.string().optional().nullish(),\n payer_address_district: z.coerce.string().optional().nullish(),\n payer_address_city: z.coerce.string().optional().nullish(),\n payer_address_state: z.coerce.string().optional().nullish(),\n payer_address_number: z.coerce.string().optional().nullish(),\n payer_address_complement: z.coerce.string().optional().nullish(),\n payer_address_country: z.coerce.string().optional().nullish(),\n late_payment_fine: z.number().optional().nullish(),\n late_payment_fine_cents: z.coerce.string().optional().nullish(),\n split_id: z.coerce.string().optional().nullish(),\n external_payment_id: z.coerce.string().optional().nullish(),\n external_payment_description: z.coerce.string().optional().nullish(),\n payment_booklet_id: z.coerce.string().optional().nullish(),\n subscription_id: z.coerce.string().optional().nullish(),\n variables: z.array(z.object({ variable: z.string(), value: z.string() })).optional().nullish(),\n custom_variables: z.array(z.any()).optional().nullish(),\n logs: z.array(\n z.object({\n id: z.string(),\n description: z.string(),\n notes: z.string(),\n created_at: z.string()\n })\n ).optional().nullish(),\n credit_card_transaction: z.coerce.string().optional().nullish(),\n account_id: z.string().optional().nullish(),\n bank_account_branch: z.string().optional().nullish(),\n bank_account_number: z.string().optional().nullish(),\n account_name: z.string().optional().nullish(),\n secure_id: z.string().optional().nullish(),\n secure_url: z.string().optional().nullish(),\n customer_id: z.coerce.string().optional().nullish(),\n customer_ref: z.coerce.string().optional().nullish(),\n customer_name: z.coerce.string().optional().nullish(),\n user_id: z.coerce.string().optional().nullish(),\n total: z.string().optional().nullish(),\n taxes_paid: z.string().optional().nullish(),\n total_paid: z.string().optional().nullish(),\n total_overpaid: z.string().optional().nullish(),\n total_refunded: z.string().optional().nullish(),\n commission: z.string().optional().nullish(),\n fines_on_occurrence_day: z.string().optional().nullish(),\n total_on_occurrence_day: z.string().optional().nullish(),\n fines_on_occurrence_day_cents: z.number().optional().nullish(),\n total_on_occurrence_day_cents: z.number().optional().nullish(),\n refunded_cents: z.number().optional().nullish(),\n remaining_captured_cents: z.number().optional().nullish(),\n advance_fee: z.coerce.string().optional().nullish(),\n estimated_advance_fee: z.coerce.string().optional().nullish(),\n paid: z.string().optional().nullish(),\n original_payment_id: z.coerce.string().optional().nullish(),\n double_payment_id: z.coerce.string().optional().nullish(),\n per_day_interest: z.boolean().optional().nullish(),\n per_day_interest_value: z.coerce.string().optional().nullish(),\n per_day_interest_cents: z.number().optional().nullish(),\n interest: z.coerce.string().optional().nullish(),\n discount: z.coerce.string().optional().nullish(),\n duplicated_invoice_id: z.coerce.string().optional().nullish(),\n bank_slip_extra_due: z.number().optional().nullish(),\n created_at: z.string().optional().nullish(),\n created_at_iso: z.string().optional().nullish(),\n authorized_at: z.coerce.string().optional().nullish(),\n authorized_at_iso: z.coerce.string().optional().nullish(),\n expired_at: z.coerce.string().optional().nullish(),\n expired_at_iso: z.coerce.string().optional().nullish(),\n refunded_at: z.coerce.string().optional().nullish(),\n refunded_at_iso: z.coerce.string().optional().nullish(),\n canceled_at: z.coerce.string().optional().nullish(),\n canceled_at_iso: z.coerce.string().optional().nullish(),\n protested_at: z.coerce.string().optional().nullish(),\n protested_at_iso: z.coerce.string().optional().nullish(),\n chargeback_at: z.coerce.string().optional().nullish(),\n chargeback_at_iso: z.coerce.string().optional().nullish(),\n occurrence_date: z.coerce.string().optional().nullish(),\n refundable: z.coerce.string().optional().nullish(),\n installments: z.coerce.string().optional().nullish(),\n transaction_number: z.number().optional().nullish(),\n payment_method: z.coerce.string().optional().nullish(),\n financial_return_dates: z.coerce.string().optional().nullish(),\n bank_slip: z.object({\n digitable_line: z.string(),\n barcode_data: z.string(),\n barcode: z.string(),\n bank_slip_url: z.string(),\n bank_slip_bank: z.number(),\n bank_slip_status: z.string(),\n bank_slip_error_code: z.coerce.string(),\n bank_slip_error_message: z.coerce.string(),\n recipient_cpf_cnpj: z.string()\n }).nullish().optional(),\n pix: z.object({\n qrcode: z.string(),\n qrcode_text: z.string(),\n status: z.string(),\n payer_cpf_cnpj: z.coerce.string(),\n payer_name: z.coerce.string(),\n end_to_end_id: z.coerce.string(),\n end_to_end_refund_id: z.coerce.string(),\n account_number_last_digits: z.coerce.string()\n }).optional().nullish(),\n items: z.array(\n z.object({\n id: z.string(),\n description: z.string(),\n price_cents: z.number(),\n quantity: z.number(),\n created_at: z.string(),\n updated_at: z.string(),\n price: z.string()\n })\n ).optional().nullish(),\n early_payment_discounts: z.array(z.unknown()).optional().nullish(),\n split_rules: z.coerce.string().optional().nullish()\n})\n\nexport const IuguInvoiceVariablesSchema = z.object({\n product: z.string(),\n product_id: IdModelSchema,\n coupon: z.string().optional(),\n recurrency: z.coerce.number(),\n plan: z.string(),\n plan_id: IdModelSchema,\n}).transform((data) => ({\n product: data.product,\n productId: data.product_id,\n coupon: data.coupon,\n recurrency: data.recurrency,\n plan: data.plan,\n planId: data.plan_id,\n}))\n\nexport type IuguInvoiceVariables = z.infer<typeof IuguInvoiceVariablesSchema>\n\nexport type IuguInvoice = z.infer<typeof IuguInvoiceSchema>\nexport type IuguInvoiceStatus = z.infer<typeof IuguInvoiceStatusSchema>\n","import {z} from \"zod\";\nimport {TimestampOrNow} from \"./model/shared\";\nimport cuid from 'cuid';\n\nexport const generateFirestoreId = () => {\n return cuid();\n}\n\nexport const IdModelSchema = z.union([z.string(), z.number()])\n\nconst IdModelProcess = z.preprocess((val) => {\n if (val === undefined || val === null) {\n return generateFirestoreId();\n }\n return val;\n}, IdModelSchema);\n\nexport const ModelSchema = z.object({\n id: IdModelProcess,\n createdAt: TimestampOrNow,\n updatedAt: TimestampOrNow,\n order: z.coerce.number().nullish().optional()\n});\n\nexport const PreviousSchema = ModelSchema.extend({\n previous: z.lazy(() => ModelSchema.array().optional())\n})\n\nexport const EnabledSchema = z.object({\n enabled: z.boolean().optional()\n})\n\nexport type IdModel = z.infer<typeof IdModelSchema>;\nexport type Model = z.infer<typeof ModelSchema>;\nexport type Previous = z.infer<typeof PreviousSchema>;\nexport type Enabled = z.infer<typeof EnabledSchema>;\nexport type PartialWithId<T extends Model> = Partial<T> & {\n id: NonNullable<T['id']>\n}\n\n\n","import { Timestamp } from '@google-cloud/firestore';\nimport {z} from \"zod\";\n\nexport const TimestampOrNow = z\n .preprocess(\n (arg) => (arg === undefined ? Timestamp.now() : arg),\n z.custom<Timestamp>(),\n )\n .nullish().optional();\n"]}
@@ -215,10 +215,9 @@ var IuguInvoiceVariablesSchema = z3.object({
215
215
  product: z3.string(),
216
216
  product_id: IdModelSchema,
217
217
  coupon: z3.string().optional(),
218
- recurrency: z3.number(),
218
+ recurrency: z3.coerce.number(),
219
219
  plan: z3.string(),
220
- plan_id: IdModelSchema,
221
- others: z3.array(z3.record(z3.string()))
220
+ plan_id: IdModelSchema
222
221
  }).transform(function(data) {
223
222
  return {
224
223
  product: data.product,
@@ -226,8 +225,7 @@ var IuguInvoiceVariablesSchema = z3.object({
226
225
  coupon: data.coupon,
227
226
  recurrency: data.recurrency,
228
227
  plan: data.plan,
229
- planId: data.plan_id,
230
- others: data.others
228
+ planId: data.plan_id
231
229
  };
232
230
  });
233
231
  export { IuguInvoiceSchema, IuguInvoiceStatusSchema, IuguInvoiceVariablesSchema };