@_henriquewilson/gabirubi-domain 1.3.68 → 1.3.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/model/iugu/iugu-invoice.d.mts +43 -1
- package/dist/model/iugu/iugu-invoice.d.ts +43 -1
- package/dist/model/iugu/iugu-invoice.js +221 -148
- package/dist/model/iugu/iugu-invoice.js.map +1 -1
- package/dist/model/iugu/iugu-invoice.mjs +205 -148
- package/dist/model/iugu/iugu-invoice.mjs.map +1 -1
- package/dist/model/iugu/iugu-pix.js +223 -154
- package/dist/model/iugu/iugu-pix.js.map +1 -1
- package/dist/model/iugu/iugu-pix.mjs +211 -154
- package/dist/model/iugu/iugu-pix.mjs.map +1 -1
- package/dist/model/subscription.model.d.mts +9 -9
- package/dist/model/subscription.model.d.ts +9 -9
- package/dist/model/subscription.model.js +23 -3
- package/dist/model/subscription.model.js.map +1 -1
- package/dist/model/subscription.model.mjs +23 -3
- package/dist/model/subscription.model.mjs.map +1 -1
- package/dist/test/subscription.test.d.mts +2 -0
- package/dist/test/subscription.test.d.ts +2 -0
- package/dist/test/subscription.test.js +406 -0
- package/dist/test/subscription.test.js.map +1 -0
- package/dist/test/subscription.test.mjs +358 -0
- package/dist/test/subscription.test.mjs.map +1 -0
- package/dist/util/common.util.d.mts +3 -1
- package/dist/util/common.util.d.ts +3 -1
- package/dist/util/common.util.js +93 -1
- package/dist/util/common.util.js.map +1 -1
- package/dist/util/common.util.mjs +85 -1
- package/dist/util/common.util.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -528,7 +528,49 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
528
528
|
early_payment_discounts?: unknown[] | null | undefined;
|
|
529
529
|
split_rules?: string | null | undefined;
|
|
530
530
|
}>;
|
|
531
|
+
declare const IuguInvoiceVariablesSchema: z.ZodEffects<z.ZodObject<{
|
|
532
|
+
product: z.ZodString;
|
|
533
|
+
product_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
534
|
+
coupon: z.ZodOptional<z.ZodString>;
|
|
535
|
+
recurrency: z.ZodNumber;
|
|
536
|
+
plan: z.ZodString;
|
|
537
|
+
plan_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
538
|
+
others: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
|
|
539
|
+
}, "strip", z.ZodTypeAny, {
|
|
540
|
+
product_id: string | number;
|
|
541
|
+
product: string;
|
|
542
|
+
recurrency: number;
|
|
543
|
+
plan: string;
|
|
544
|
+
plan_id: string | number;
|
|
545
|
+
others: Record<string, string>[];
|
|
546
|
+
coupon?: string | undefined;
|
|
547
|
+
}, {
|
|
548
|
+
product_id: string | number;
|
|
549
|
+
product: string;
|
|
550
|
+
recurrency: number;
|
|
551
|
+
plan: string;
|
|
552
|
+
plan_id: string | number;
|
|
553
|
+
others: Record<string, string>[];
|
|
554
|
+
coupon?: string | undefined;
|
|
555
|
+
}>, {
|
|
556
|
+
product: string;
|
|
557
|
+
productId: string | number;
|
|
558
|
+
coupon: string | undefined;
|
|
559
|
+
recurrency: number;
|
|
560
|
+
plan: string;
|
|
561
|
+
planId: string | number;
|
|
562
|
+
others: Record<string, string>[];
|
|
563
|
+
}, {
|
|
564
|
+
product_id: string | number;
|
|
565
|
+
product: string;
|
|
566
|
+
recurrency: number;
|
|
567
|
+
plan: string;
|
|
568
|
+
plan_id: string | number;
|
|
569
|
+
others: Record<string, string>[];
|
|
570
|
+
coupon?: string | undefined;
|
|
571
|
+
}>;
|
|
572
|
+
type IuguInvoiceVariables = z.infer<typeof IuguInvoiceVariablesSchema>;
|
|
531
573
|
type IuguInvoice = z.infer<typeof IuguInvoiceSchema>;
|
|
532
574
|
type IuguInvoiceStatus = z.infer<typeof IuguInvoiceStatusSchema>;
|
|
533
575
|
|
|
534
|
-
export { type IuguInvoice, IuguInvoiceSchema, type IuguInvoiceStatus, IuguInvoiceStatusSchema };
|
|
576
|
+
export { type IuguInvoice, IuguInvoiceSchema, type IuguInvoiceStatus, IuguInvoiceStatusSchema, type IuguInvoiceVariables, IuguInvoiceVariablesSchema };
|
|
@@ -528,7 +528,49 @@ declare const IuguInvoiceSchema: z.ZodObject<{
|
|
|
528
528
|
early_payment_discounts?: unknown[] | null | undefined;
|
|
529
529
|
split_rules?: string | null | undefined;
|
|
530
530
|
}>;
|
|
531
|
+
declare const IuguInvoiceVariablesSchema: z.ZodEffects<z.ZodObject<{
|
|
532
|
+
product: z.ZodString;
|
|
533
|
+
product_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
534
|
+
coupon: z.ZodOptional<z.ZodString>;
|
|
535
|
+
recurrency: z.ZodNumber;
|
|
536
|
+
plan: z.ZodString;
|
|
537
|
+
plan_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
538
|
+
others: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
|
|
539
|
+
}, "strip", z.ZodTypeAny, {
|
|
540
|
+
product_id: string | number;
|
|
541
|
+
product: string;
|
|
542
|
+
recurrency: number;
|
|
543
|
+
plan: string;
|
|
544
|
+
plan_id: string | number;
|
|
545
|
+
others: Record<string, string>[];
|
|
546
|
+
coupon?: string | undefined;
|
|
547
|
+
}, {
|
|
548
|
+
product_id: string | number;
|
|
549
|
+
product: string;
|
|
550
|
+
recurrency: number;
|
|
551
|
+
plan: string;
|
|
552
|
+
plan_id: string | number;
|
|
553
|
+
others: Record<string, string>[];
|
|
554
|
+
coupon?: string | undefined;
|
|
555
|
+
}>, {
|
|
556
|
+
product: string;
|
|
557
|
+
productId: string | number;
|
|
558
|
+
coupon: string | undefined;
|
|
559
|
+
recurrency: number;
|
|
560
|
+
plan: string;
|
|
561
|
+
planId: string | number;
|
|
562
|
+
others: Record<string, string>[];
|
|
563
|
+
}, {
|
|
564
|
+
product_id: string | number;
|
|
565
|
+
product: string;
|
|
566
|
+
recurrency: number;
|
|
567
|
+
plan: string;
|
|
568
|
+
plan_id: string | number;
|
|
569
|
+
others: Record<string, string>[];
|
|
570
|
+
coupon?: string | undefined;
|
|
571
|
+
}>;
|
|
572
|
+
type IuguInvoiceVariables = z.infer<typeof IuguInvoiceVariablesSchema>;
|
|
531
573
|
type IuguInvoice = z.infer<typeof IuguInvoiceSchema>;
|
|
532
574
|
type IuguInvoiceStatus = z.infer<typeof IuguInvoiceStatusSchema>;
|
|
533
575
|
|
|
534
|
-
export { type IuguInvoice, IuguInvoiceSchema, type IuguInvoiceStatus, IuguInvoiceStatusSchema };
|
|
576
|
+
export { type IuguInvoice, IuguInvoiceSchema, type IuguInvoiceStatus, IuguInvoiceStatusSchema, type IuguInvoiceVariables, IuguInvoiceVariablesSchema };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = function(target, all) {
|
|
7
9
|
for(var name in all)__defProp(target, name, {
|
|
@@ -40,6 +42,16 @@ var __copyProps = function(to, from, except, desc) {
|
|
|
40
42
|
}
|
|
41
43
|
return to;
|
|
42
44
|
};
|
|
45
|
+
var __toESM = function(mod, isNodeMode, target) {
|
|
46
|
+
return target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(// If the importer is in node compatibility mode or this is not an ESM
|
|
47
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
48
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
49
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
50
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
51
|
+
value: mod,
|
|
52
|
+
enumerable: true
|
|
53
|
+
}) : target, mod);
|
|
54
|
+
};
|
|
43
55
|
var __toCommonJS = function(mod) {
|
|
44
56
|
return __copyProps(__defProp({}, "__esModule", {
|
|
45
57
|
value: true
|
|
@@ -53,11 +65,52 @@ __export(iugu_invoice_exports, {
|
|
|
53
65
|
},
|
|
54
66
|
IuguInvoiceStatusSchema: function() {
|
|
55
67
|
return IuguInvoiceStatusSchema;
|
|
68
|
+
},
|
|
69
|
+
IuguInvoiceVariablesSchema: function() {
|
|
70
|
+
return IuguInvoiceVariablesSchema;
|
|
56
71
|
}
|
|
57
72
|
});
|
|
58
73
|
module.exports = __toCommonJS(iugu_invoice_exports);
|
|
74
|
+
var import_zod3 = require("zod");
|
|
75
|
+
// src/model.ts
|
|
76
|
+
var import_zod2 = require("zod");
|
|
77
|
+
// src/model/shared.ts
|
|
78
|
+
var import_firestore = require("@google-cloud/firestore");
|
|
59
79
|
var import_zod = require("zod");
|
|
60
|
-
var
|
|
80
|
+
var TimestampOrNow = import_zod.z.preprocess(function(arg) {
|
|
81
|
+
return arg === void 0 ? import_firestore.Timestamp.now() : arg;
|
|
82
|
+
}, import_zod.z.custom()).nullish().optional();
|
|
83
|
+
// src/model.ts
|
|
84
|
+
var import_cuid = __toESM(require("cuid"));
|
|
85
|
+
var generateFirestoreId = function() {
|
|
86
|
+
return (0, import_cuid.default)();
|
|
87
|
+
};
|
|
88
|
+
var IdModelSchema = import_zod2.z.union([
|
|
89
|
+
import_zod2.z.string(),
|
|
90
|
+
import_zod2.z.number()
|
|
91
|
+
]);
|
|
92
|
+
var IdModelProcess = import_zod2.z.preprocess(function(val) {
|
|
93
|
+
if (val === void 0 || val === null) {
|
|
94
|
+
return generateFirestoreId();
|
|
95
|
+
}
|
|
96
|
+
return val;
|
|
97
|
+
}, IdModelSchema);
|
|
98
|
+
var ModelSchema = import_zod2.z.object({
|
|
99
|
+
id: IdModelProcess,
|
|
100
|
+
createdAt: TimestampOrNow,
|
|
101
|
+
updatedAt: TimestampOrNow,
|
|
102
|
+
order: import_zod2.z.coerce.number().nullish().optional()
|
|
103
|
+
});
|
|
104
|
+
var PreviousSchema = ModelSchema.extend({
|
|
105
|
+
previous: import_zod2.z.lazy(function() {
|
|
106
|
+
return ModelSchema.array().optional();
|
|
107
|
+
})
|
|
108
|
+
});
|
|
109
|
+
var EnabledSchema = import_zod2.z.object({
|
|
110
|
+
enabled: import_zod2.z.boolean().optional()
|
|
111
|
+
});
|
|
112
|
+
// src/model/iugu/iugu-invoice.ts
|
|
113
|
+
var IuguInvoiceStatusSchema = import_zod3.z.enum([
|
|
61
114
|
"pending",
|
|
62
115
|
"paid",
|
|
63
116
|
"canceled",
|
|
@@ -71,168 +124,188 @@ var IuguInvoiceStatusSchema = import_zod.z.enum([
|
|
|
71
124
|
"externally_paid",
|
|
72
125
|
"invited"
|
|
73
126
|
]);
|
|
74
|
-
var IuguInvoiceSchema =
|
|
75
|
-
id:
|
|
76
|
-
due_date:
|
|
77
|
-
currency:
|
|
78
|
-
discount_cents:
|
|
79
|
-
email:
|
|
80
|
-
items_total_cents:
|
|
81
|
-
notification_url:
|
|
82
|
-
return_url:
|
|
127
|
+
var IuguInvoiceSchema = import_zod3.z.object({
|
|
128
|
+
id: import_zod3.z.string(),
|
|
129
|
+
due_date: import_zod3.z.string().optional().nullish(),
|
|
130
|
+
currency: import_zod3.z.string().optional().nullish(),
|
|
131
|
+
discount_cents: import_zod3.z.coerce.string().optional().nullish(),
|
|
132
|
+
email: import_zod3.z.string().optional().nullish(),
|
|
133
|
+
items_total_cents: import_zod3.z.number().optional().nullish(),
|
|
134
|
+
notification_url: import_zod3.z.coerce.string().optional().nullish(),
|
|
135
|
+
return_url: import_zod3.z.coerce.string().optional().nullish(),
|
|
83
136
|
status: IuguInvoiceStatusSchema.optional().nullish(),
|
|
84
|
-
tax_cents:
|
|
85
|
-
total_cents:
|
|
86
|
-
total_paid_cents:
|
|
87
|
-
taxes_paid_cents:
|
|
88
|
-
paid_at:
|
|
89
|
-
paid_cents:
|
|
90
|
-
cc_emails:
|
|
91
|
-
financial_return_date:
|
|
92
|
-
payable_with:
|
|
137
|
+
tax_cents: import_zod3.z.coerce.string().optional().nullish(),
|
|
138
|
+
total_cents: import_zod3.z.number().optional().nullish(),
|
|
139
|
+
total_paid_cents: import_zod3.z.number().optional().nullish(),
|
|
140
|
+
taxes_paid_cents: import_zod3.z.coerce.string().optional().nullish(),
|
|
141
|
+
paid_at: import_zod3.z.coerce.string().optional().nullish(),
|
|
142
|
+
paid_cents: import_zod3.z.coerce.number().optional().nullish(),
|
|
143
|
+
cc_emails: import_zod3.z.coerce.string().optional().nullish(),
|
|
144
|
+
financial_return_date: import_zod3.z.coerce.string().optional().nullish(),
|
|
145
|
+
payable_with: import_zod3.z.enum([
|
|
93
146
|
"credit_card",
|
|
94
147
|
"pix",
|
|
95
148
|
"bank_slip",
|
|
96
149
|
"stripe",
|
|
97
150
|
"all"
|
|
98
151
|
]).optional().nullish(),
|
|
99
|
-
overpaid_cents:
|
|
100
|
-
ignore_due_email:
|
|
101
|
-
ignore_canceled_email:
|
|
102
|
-
advance_fee_cents:
|
|
103
|
-
commission_cents:
|
|
104
|
-
early_payment_discount:
|
|
105
|
-
order_id:
|
|
106
|
-
updated_at:
|
|
107
|
-
credit_card_brand:
|
|
108
|
-
credit_card_bin:
|
|
109
|
-
credit_card_last_4:
|
|
110
|
-
credit_card_captured_at:
|
|
111
|
-
credit_card_tid:
|
|
112
|
-
external_reference:
|
|
113
|
-
max_installments_value:
|
|
114
|
-
payer_name:
|
|
115
|
-
payer_email:
|
|
116
|
-
payer_cpf_cnpj:
|
|
117
|
-
payer_phone:
|
|
118
|
-
payer_phone_prefix:
|
|
119
|
-
payer_address_zip_code:
|
|
120
|
-
payer_address_street:
|
|
121
|
-
payer_address_district:
|
|
122
|
-
payer_address_city:
|
|
123
|
-
payer_address_state:
|
|
124
|
-
payer_address_number:
|
|
125
|
-
payer_address_complement:
|
|
126
|
-
payer_address_country:
|
|
127
|
-
late_payment_fine:
|
|
128
|
-
late_payment_fine_cents:
|
|
129
|
-
split_id:
|
|
130
|
-
external_payment_id:
|
|
131
|
-
external_payment_description:
|
|
132
|
-
payment_booklet_id:
|
|
133
|
-
subscription_id:
|
|
134
|
-
variables:
|
|
135
|
-
variable:
|
|
136
|
-
value:
|
|
152
|
+
overpaid_cents: import_zod3.z.coerce.string().optional().nullish(),
|
|
153
|
+
ignore_due_email: import_zod3.z.coerce.string().optional().nullish(),
|
|
154
|
+
ignore_canceled_email: import_zod3.z.coerce.string().optional().nullish(),
|
|
155
|
+
advance_fee_cents: import_zod3.z.coerce.string().optional().nullish(),
|
|
156
|
+
commission_cents: import_zod3.z.coerce.string().optional().nullish(),
|
|
157
|
+
early_payment_discount: import_zod3.z.boolean().optional().nullish(),
|
|
158
|
+
order_id: import_zod3.z.coerce.string().optional().nullish(),
|
|
159
|
+
updated_at: import_zod3.z.string().optional().nullish(),
|
|
160
|
+
credit_card_brand: import_zod3.z.coerce.string().optional().nullish(),
|
|
161
|
+
credit_card_bin: import_zod3.z.coerce.string().optional().nullish(),
|
|
162
|
+
credit_card_last_4: import_zod3.z.coerce.string().optional().nullish(),
|
|
163
|
+
credit_card_captured_at: import_zod3.z.coerce.string().optional().nullish(),
|
|
164
|
+
credit_card_tid: import_zod3.z.coerce.string().optional().nullish(),
|
|
165
|
+
external_reference: import_zod3.z.coerce.string().optional().nullish(),
|
|
166
|
+
max_installments_value: import_zod3.z.coerce.string().optional().nullish(),
|
|
167
|
+
payer_name: import_zod3.z.string().optional().nullish(),
|
|
168
|
+
payer_email: import_zod3.z.coerce.string().optional().nullish(),
|
|
169
|
+
payer_cpf_cnpj: import_zod3.z.string().optional().nullish(),
|
|
170
|
+
payer_phone: import_zod3.z.coerce.string().optional().nullish(),
|
|
171
|
+
payer_phone_prefix: import_zod3.z.coerce.string().optional().nullish(),
|
|
172
|
+
payer_address_zip_code: import_zod3.z.coerce.string().optional().nullish(),
|
|
173
|
+
payer_address_street: import_zod3.z.coerce.string().optional().nullish(),
|
|
174
|
+
payer_address_district: import_zod3.z.coerce.string().optional().nullish(),
|
|
175
|
+
payer_address_city: import_zod3.z.coerce.string().optional().nullish(),
|
|
176
|
+
payer_address_state: import_zod3.z.coerce.string().optional().nullish(),
|
|
177
|
+
payer_address_number: import_zod3.z.coerce.string().optional().nullish(),
|
|
178
|
+
payer_address_complement: import_zod3.z.coerce.string().optional().nullish(),
|
|
179
|
+
payer_address_country: import_zod3.z.coerce.string().optional().nullish(),
|
|
180
|
+
late_payment_fine: import_zod3.z.number().optional().nullish(),
|
|
181
|
+
late_payment_fine_cents: import_zod3.z.coerce.string().optional().nullish(),
|
|
182
|
+
split_id: import_zod3.z.coerce.string().optional().nullish(),
|
|
183
|
+
external_payment_id: import_zod3.z.coerce.string().optional().nullish(),
|
|
184
|
+
external_payment_description: import_zod3.z.coerce.string().optional().nullish(),
|
|
185
|
+
payment_booklet_id: import_zod3.z.coerce.string().optional().nullish(),
|
|
186
|
+
subscription_id: import_zod3.z.coerce.string().optional().nullish(),
|
|
187
|
+
variables: import_zod3.z.array(import_zod3.z.object({
|
|
188
|
+
variable: import_zod3.z.string(),
|
|
189
|
+
value: import_zod3.z.string()
|
|
137
190
|
})).optional().nullish(),
|
|
138
|
-
custom_variables:
|
|
139
|
-
logs:
|
|
140
|
-
id:
|
|
141
|
-
description:
|
|
142
|
-
notes:
|
|
143
|
-
created_at:
|
|
191
|
+
custom_variables: import_zod3.z.array(import_zod3.z.any()).optional().nullish(),
|
|
192
|
+
logs: import_zod3.z.array(import_zod3.z.object({
|
|
193
|
+
id: import_zod3.z.string(),
|
|
194
|
+
description: import_zod3.z.string(),
|
|
195
|
+
notes: import_zod3.z.string(),
|
|
196
|
+
created_at: import_zod3.z.string()
|
|
144
197
|
})).optional().nullish(),
|
|
145
|
-
credit_card_transaction:
|
|
146
|
-
account_id:
|
|
147
|
-
bank_account_branch:
|
|
148
|
-
bank_account_number:
|
|
149
|
-
account_name:
|
|
150
|
-
secure_id:
|
|
151
|
-
secure_url:
|
|
152
|
-
customer_id:
|
|
153
|
-
customer_ref:
|
|
154
|
-
customer_name:
|
|
155
|
-
user_id:
|
|
156
|
-
total:
|
|
157
|
-
taxes_paid:
|
|
158
|
-
total_paid:
|
|
159
|
-
total_overpaid:
|
|
160
|
-
total_refunded:
|
|
161
|
-
commission:
|
|
162
|
-
fines_on_occurrence_day:
|
|
163
|
-
total_on_occurrence_day:
|
|
164
|
-
fines_on_occurrence_day_cents:
|
|
165
|
-
total_on_occurrence_day_cents:
|
|
166
|
-
refunded_cents:
|
|
167
|
-
remaining_captured_cents:
|
|
168
|
-
advance_fee:
|
|
169
|
-
estimated_advance_fee:
|
|
170
|
-
paid:
|
|
171
|
-
original_payment_id:
|
|
172
|
-
double_payment_id:
|
|
173
|
-
per_day_interest:
|
|
174
|
-
per_day_interest_value:
|
|
175
|
-
per_day_interest_cents:
|
|
176
|
-
interest:
|
|
177
|
-
discount:
|
|
178
|
-
duplicated_invoice_id:
|
|
179
|
-
bank_slip_extra_due:
|
|
180
|
-
created_at:
|
|
181
|
-
created_at_iso:
|
|
182
|
-
authorized_at:
|
|
183
|
-
authorized_at_iso:
|
|
184
|
-
expired_at:
|
|
185
|
-
expired_at_iso:
|
|
186
|
-
refunded_at:
|
|
187
|
-
refunded_at_iso:
|
|
188
|
-
canceled_at:
|
|
189
|
-
canceled_at_iso:
|
|
190
|
-
protested_at:
|
|
191
|
-
protested_at_iso:
|
|
192
|
-
chargeback_at:
|
|
193
|
-
chargeback_at_iso:
|
|
194
|
-
occurrence_date:
|
|
195
|
-
refundable:
|
|
196
|
-
installments:
|
|
197
|
-
transaction_number:
|
|
198
|
-
payment_method:
|
|
199
|
-
financial_return_dates:
|
|
200
|
-
bank_slip:
|
|
201
|
-
digitable_line:
|
|
202
|
-
barcode_data:
|
|
203
|
-
barcode:
|
|
204
|
-
bank_slip_url:
|
|
205
|
-
bank_slip_bank:
|
|
206
|
-
bank_slip_status:
|
|
207
|
-
bank_slip_error_code:
|
|
208
|
-
bank_slip_error_message:
|
|
209
|
-
recipient_cpf_cnpj:
|
|
198
|
+
credit_card_transaction: import_zod3.z.coerce.string().optional().nullish(),
|
|
199
|
+
account_id: import_zod3.z.string().optional().nullish(),
|
|
200
|
+
bank_account_branch: import_zod3.z.string().optional().nullish(),
|
|
201
|
+
bank_account_number: import_zod3.z.string().optional().nullish(),
|
|
202
|
+
account_name: import_zod3.z.string().optional().nullish(),
|
|
203
|
+
secure_id: import_zod3.z.string().optional().nullish(),
|
|
204
|
+
secure_url: import_zod3.z.string().optional().nullish(),
|
|
205
|
+
customer_id: import_zod3.z.coerce.string().optional().nullish(),
|
|
206
|
+
customer_ref: import_zod3.z.coerce.string().optional().nullish(),
|
|
207
|
+
customer_name: import_zod3.z.coerce.string().optional().nullish(),
|
|
208
|
+
user_id: import_zod3.z.coerce.string().optional().nullish(),
|
|
209
|
+
total: import_zod3.z.string().optional().nullish(),
|
|
210
|
+
taxes_paid: import_zod3.z.string().optional().nullish(),
|
|
211
|
+
total_paid: import_zod3.z.string().optional().nullish(),
|
|
212
|
+
total_overpaid: import_zod3.z.string().optional().nullish(),
|
|
213
|
+
total_refunded: import_zod3.z.string().optional().nullish(),
|
|
214
|
+
commission: import_zod3.z.string().optional().nullish(),
|
|
215
|
+
fines_on_occurrence_day: import_zod3.z.string().optional().nullish(),
|
|
216
|
+
total_on_occurrence_day: import_zod3.z.string().optional().nullish(),
|
|
217
|
+
fines_on_occurrence_day_cents: import_zod3.z.number().optional().nullish(),
|
|
218
|
+
total_on_occurrence_day_cents: import_zod3.z.number().optional().nullish(),
|
|
219
|
+
refunded_cents: import_zod3.z.number().optional().nullish(),
|
|
220
|
+
remaining_captured_cents: import_zod3.z.number().optional().nullish(),
|
|
221
|
+
advance_fee: import_zod3.z.coerce.string().optional().nullish(),
|
|
222
|
+
estimated_advance_fee: import_zod3.z.coerce.string().optional().nullish(),
|
|
223
|
+
paid: import_zod3.z.string().optional().nullish(),
|
|
224
|
+
original_payment_id: import_zod3.z.coerce.string().optional().nullish(),
|
|
225
|
+
double_payment_id: import_zod3.z.coerce.string().optional().nullish(),
|
|
226
|
+
per_day_interest: import_zod3.z.boolean().optional().nullish(),
|
|
227
|
+
per_day_interest_value: import_zod3.z.coerce.string().optional().nullish(),
|
|
228
|
+
per_day_interest_cents: import_zod3.z.number().optional().nullish(),
|
|
229
|
+
interest: import_zod3.z.coerce.string().optional().nullish(),
|
|
230
|
+
discount: import_zod3.z.coerce.string().optional().nullish(),
|
|
231
|
+
duplicated_invoice_id: import_zod3.z.coerce.string().optional().nullish(),
|
|
232
|
+
bank_slip_extra_due: import_zod3.z.number().optional().nullish(),
|
|
233
|
+
created_at: import_zod3.z.string().optional().nullish(),
|
|
234
|
+
created_at_iso: import_zod3.z.string().optional().nullish(),
|
|
235
|
+
authorized_at: import_zod3.z.coerce.string().optional().nullish(),
|
|
236
|
+
authorized_at_iso: import_zod3.z.coerce.string().optional().nullish(),
|
|
237
|
+
expired_at: import_zod3.z.coerce.string().optional().nullish(),
|
|
238
|
+
expired_at_iso: import_zod3.z.coerce.string().optional().nullish(),
|
|
239
|
+
refunded_at: import_zod3.z.coerce.string().optional().nullish(),
|
|
240
|
+
refunded_at_iso: import_zod3.z.coerce.string().optional().nullish(),
|
|
241
|
+
canceled_at: import_zod3.z.coerce.string().optional().nullish(),
|
|
242
|
+
canceled_at_iso: import_zod3.z.coerce.string().optional().nullish(),
|
|
243
|
+
protested_at: import_zod3.z.coerce.string().optional().nullish(),
|
|
244
|
+
protested_at_iso: import_zod3.z.coerce.string().optional().nullish(),
|
|
245
|
+
chargeback_at: import_zod3.z.coerce.string().optional().nullish(),
|
|
246
|
+
chargeback_at_iso: import_zod3.z.coerce.string().optional().nullish(),
|
|
247
|
+
occurrence_date: import_zod3.z.coerce.string().optional().nullish(),
|
|
248
|
+
refundable: import_zod3.z.coerce.string().optional().nullish(),
|
|
249
|
+
installments: import_zod3.z.coerce.string().optional().nullish(),
|
|
250
|
+
transaction_number: import_zod3.z.number().optional().nullish(),
|
|
251
|
+
payment_method: import_zod3.z.coerce.string().optional().nullish(),
|
|
252
|
+
financial_return_dates: import_zod3.z.coerce.string().optional().nullish(),
|
|
253
|
+
bank_slip: import_zod3.z.object({
|
|
254
|
+
digitable_line: import_zod3.z.string(),
|
|
255
|
+
barcode_data: import_zod3.z.string(),
|
|
256
|
+
barcode: import_zod3.z.string(),
|
|
257
|
+
bank_slip_url: import_zod3.z.string(),
|
|
258
|
+
bank_slip_bank: import_zod3.z.number(),
|
|
259
|
+
bank_slip_status: import_zod3.z.string(),
|
|
260
|
+
bank_slip_error_code: import_zod3.z.coerce.string(),
|
|
261
|
+
bank_slip_error_message: import_zod3.z.coerce.string(),
|
|
262
|
+
recipient_cpf_cnpj: import_zod3.z.string()
|
|
210
263
|
}).nullish().optional(),
|
|
211
|
-
pix:
|
|
212
|
-
qrcode:
|
|
213
|
-
qrcode_text:
|
|
214
|
-
status:
|
|
215
|
-
payer_cpf_cnpj:
|
|
216
|
-
payer_name:
|
|
217
|
-
end_to_end_id:
|
|
218
|
-
end_to_end_refund_id:
|
|
219
|
-
account_number_last_digits:
|
|
264
|
+
pix: import_zod3.z.object({
|
|
265
|
+
qrcode: import_zod3.z.string(),
|
|
266
|
+
qrcode_text: import_zod3.z.string(),
|
|
267
|
+
status: import_zod3.z.string(),
|
|
268
|
+
payer_cpf_cnpj: import_zod3.z.coerce.string(),
|
|
269
|
+
payer_name: import_zod3.z.coerce.string(),
|
|
270
|
+
end_to_end_id: import_zod3.z.coerce.string(),
|
|
271
|
+
end_to_end_refund_id: import_zod3.z.coerce.string(),
|
|
272
|
+
account_number_last_digits: import_zod3.z.coerce.string()
|
|
220
273
|
}).optional().nullish(),
|
|
221
|
-
items:
|
|
222
|
-
id:
|
|
223
|
-
description:
|
|
224
|
-
price_cents:
|
|
225
|
-
quantity:
|
|
226
|
-
created_at:
|
|
227
|
-
updated_at:
|
|
228
|
-
price:
|
|
274
|
+
items: import_zod3.z.array(import_zod3.z.object({
|
|
275
|
+
id: import_zod3.z.string(),
|
|
276
|
+
description: import_zod3.z.string(),
|
|
277
|
+
price_cents: import_zod3.z.number(),
|
|
278
|
+
quantity: import_zod3.z.number(),
|
|
279
|
+
created_at: import_zod3.z.string(),
|
|
280
|
+
updated_at: import_zod3.z.string(),
|
|
281
|
+
price: import_zod3.z.string()
|
|
229
282
|
})).optional().nullish(),
|
|
230
|
-
early_payment_discounts:
|
|
231
|
-
split_rules:
|
|
283
|
+
early_payment_discounts: import_zod3.z.array(import_zod3.z.unknown()).optional().nullish(),
|
|
284
|
+
split_rules: import_zod3.z.coerce.string().optional().nullish()
|
|
285
|
+
});
|
|
286
|
+
var IuguInvoiceVariablesSchema = import_zod3.z.object({
|
|
287
|
+
product: import_zod3.z.string(),
|
|
288
|
+
product_id: IdModelSchema,
|
|
289
|
+
coupon: import_zod3.z.string().optional(),
|
|
290
|
+
recurrency: import_zod3.z.number(),
|
|
291
|
+
plan: import_zod3.z.string(),
|
|
292
|
+
plan_id: IdModelSchema,
|
|
293
|
+
others: import_zod3.z.array(import_zod3.z.record(import_zod3.z.string()))
|
|
294
|
+
}).transform(function(data) {
|
|
295
|
+
return {
|
|
296
|
+
product: data.product,
|
|
297
|
+
productId: data.product_id,
|
|
298
|
+
coupon: data.coupon,
|
|
299
|
+
recurrency: data.recurrency,
|
|
300
|
+
plan: data.plan,
|
|
301
|
+
planId: data.plan_id,
|
|
302
|
+
others: data.others
|
|
303
|
+
};
|
|
232
304
|
});
|
|
233
305
|
// Annotate the CommonJS export names for ESM import in node:
|
|
234
306
|
0 && (module.exports = {
|
|
235
307
|
IuguInvoiceSchema: IuguInvoiceSchema,
|
|
236
|
-
IuguInvoiceStatusSchema: IuguInvoiceStatusSchema
|
|
308
|
+
IuguInvoiceStatusSchema: IuguInvoiceStatusSchema,
|
|
309
|
+
IuguInvoiceVariablesSchema: IuguInvoiceVariablesSchema
|
|
237
310
|
});
|
|
238
311
|
//# sourceMappingURL=iugu-invoice.js.map
|