evo360-types 1.3.514 → 1.3.518
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/apps/evo-finops/zod-schemas.d.ts +447 -0
- package/dist/apps/evo-finops/zod-schemas.js +165 -1
- package/dist/apps/evo-finops/zod-schemas.ts +182 -0
- package/dist/apps/evo-med/insurance/zod-schemas.d.ts +8 -8
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.ts +1 -0
- package/dist/types/evo-finops/common/contract.d.ts +43 -1
- package/dist/types/evo-finops/common/contract.ts +52 -1
- package/dist/types/evo-finops/common/proposal.d.ts +71 -0
- package/dist/types/evo-finops/common/proposal.js +23 -0
- package/dist/types/evo-finops/common/proposal.ts +122 -0
- package/dist/types/evo-finops/index.d.ts +1 -0
- package/dist/types/evo-finops/index.js +1 -0
- package/dist/types/evo-finops/index.ts +1 -0
- package/dist/types/nex-vendas/index.d.ts +1 -0
- package/dist/types/nex-vendas/index.js +17 -0
- package/dist/types/nex-vendas/index.ts +1 -0
- package/dist/types/nex-vendas/journey.d.ts +282 -0
- package/dist/types/nex-vendas/journey.js +22 -0
- package/dist/types/nex-vendas/journey.ts +387 -0
- package/package.json +1 -1
|
@@ -12531,3 +12531,450 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
12531
12531
|
endpoint?: string | undefined;
|
|
12532
12532
|
}>, "many">>;
|
|
12533
12533
|
}, z.ZodTypeAny, "passthrough">>;
|
|
12534
|
+
export declare const zNexFinopsProposalStatusSchema: z.ZodEnum<["draft", "sent", "viewed", "accepted", "expired", "canceled"]>;
|
|
12535
|
+
export declare const zNexFinopsProposalPaymentMethodSchema: z.ZodEnum<["boleto", "card_subscription", "payment_link"]>;
|
|
12536
|
+
export declare const zNexFinopsProposalPrefillSchema: z.ZodObject<{
|
|
12537
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12538
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12539
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12540
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12541
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
12542
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12543
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12544
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12545
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12546
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
12547
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12548
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12549
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12550
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12551
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
12552
|
+
/**
|
|
12553
|
+
* Payload de escrita da proposta (fronteira HTTP). Campos opcionais usam
|
|
12554
|
+
* `.nullable()` além de `.optional()` porque o cliente pode mandar `null`
|
|
12555
|
+
* explícito (Vuetify `clearable` grava null; callable converte undefined em null).
|
|
12556
|
+
*
|
|
12557
|
+
* `short_code`, `status` e `currency` NÃO entram aqui: são resolvidos no servidor.
|
|
12558
|
+
*/
|
|
12559
|
+
export declare const zNexFinopsProposalWriteSchema: z.ZodObject<{
|
|
12560
|
+
origem: z.ZodOptional<z.ZodString>;
|
|
12561
|
+
customer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12562
|
+
customer_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12563
|
+
prefill: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12564
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12565
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12566
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12567
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12568
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
12569
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12570
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12571
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12572
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12573
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
12574
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12575
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12576
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12577
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12578
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
12579
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12580
|
+
html_content: z.ZodOptional<z.ZodString>;
|
|
12581
|
+
base_amount: z.ZodOptional<z.ZodNumber>;
|
|
12582
|
+
due_day: z.ZodOptional<z.ZodNumber>;
|
|
12583
|
+
accepted_payment_methods: z.ZodOptional<z.ZodArray<z.ZodEnum<["boleto", "card_subscription", "payment_link"]>, "many">>;
|
|
12584
|
+
terms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12585
|
+
valid_until: z.ZodOptional<z.ZodString>;
|
|
12586
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12587
|
+
}, "strip", z.ZodTypeAny, {
|
|
12588
|
+
name?: string | null | undefined;
|
|
12589
|
+
notes?: string | null | undefined;
|
|
12590
|
+
customer_id?: string | null | undefined;
|
|
12591
|
+
customer_ref?: string | null | undefined;
|
|
12592
|
+
due_day?: number | undefined;
|
|
12593
|
+
accepted_payment_methods?: ("payment_link" | "boleto" | "card_subscription")[] | undefined;
|
|
12594
|
+
origem?: string | undefined;
|
|
12595
|
+
prefill?: z.objectOutputType<{
|
|
12596
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12597
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12598
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12599
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12600
|
+
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
12601
|
+
html_content?: string | undefined;
|
|
12602
|
+
base_amount?: number | undefined;
|
|
12603
|
+
terms?: string | null | undefined;
|
|
12604
|
+
valid_until?: string | undefined;
|
|
12605
|
+
}, {
|
|
12606
|
+
name?: string | null | undefined;
|
|
12607
|
+
notes?: string | null | undefined;
|
|
12608
|
+
customer_id?: string | null | undefined;
|
|
12609
|
+
customer_ref?: string | null | undefined;
|
|
12610
|
+
due_day?: number | undefined;
|
|
12611
|
+
accepted_payment_methods?: ("payment_link" | "boleto" | "card_subscription")[] | undefined;
|
|
12612
|
+
origem?: string | undefined;
|
|
12613
|
+
prefill?: z.objectInputType<{
|
|
12614
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12615
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12616
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12617
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12618
|
+
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
12619
|
+
html_content?: string | undefined;
|
|
12620
|
+
base_amount?: number | undefined;
|
|
12621
|
+
terms?: string | null | undefined;
|
|
12622
|
+
valid_until?: string | undefined;
|
|
12623
|
+
}>;
|
|
12624
|
+
export declare const zNexFinopsProposalSchema: z.ZodObject<{
|
|
12625
|
+
origem: z.ZodOptional<z.ZodString>;
|
|
12626
|
+
customer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12627
|
+
customer_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12628
|
+
prefill: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12629
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12630
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12631
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12632
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12633
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
12634
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12635
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12636
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12637
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12638
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
12639
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12640
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12641
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12642
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12643
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
12644
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12645
|
+
html_content: z.ZodOptional<z.ZodString>;
|
|
12646
|
+
base_amount: z.ZodOptional<z.ZodNumber>;
|
|
12647
|
+
due_day: z.ZodOptional<z.ZodNumber>;
|
|
12648
|
+
accepted_payment_methods: z.ZodOptional<z.ZodArray<z.ZodEnum<["boleto", "card_subscription", "payment_link"]>, "many">>;
|
|
12649
|
+
terms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12650
|
+
valid_until: z.ZodOptional<z.ZodString>;
|
|
12651
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12652
|
+
} & {
|
|
12653
|
+
short_code: z.ZodString;
|
|
12654
|
+
status: z.ZodEnum<["draft", "sent", "viewed", "accepted", "expired", "canceled"]>;
|
|
12655
|
+
currency: z.ZodLiteral<"BRL">;
|
|
12656
|
+
}, "strip", z.ZodTypeAny, {
|
|
12657
|
+
currency: "BRL";
|
|
12658
|
+
status: "draft" | "expired" | "accepted" | "canceled" | "sent" | "viewed";
|
|
12659
|
+
short_code: string;
|
|
12660
|
+
name?: string | null | undefined;
|
|
12661
|
+
notes?: string | null | undefined;
|
|
12662
|
+
customer_id?: string | null | undefined;
|
|
12663
|
+
customer_ref?: string | null | undefined;
|
|
12664
|
+
due_day?: number | undefined;
|
|
12665
|
+
accepted_payment_methods?: ("payment_link" | "boleto" | "card_subscription")[] | undefined;
|
|
12666
|
+
origem?: string | undefined;
|
|
12667
|
+
prefill?: z.objectOutputType<{
|
|
12668
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12669
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12670
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12671
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12672
|
+
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
12673
|
+
html_content?: string | undefined;
|
|
12674
|
+
base_amount?: number | undefined;
|
|
12675
|
+
terms?: string | null | undefined;
|
|
12676
|
+
valid_until?: string | undefined;
|
|
12677
|
+
}, {
|
|
12678
|
+
currency: "BRL";
|
|
12679
|
+
status: "draft" | "expired" | "accepted" | "canceled" | "sent" | "viewed";
|
|
12680
|
+
short_code: string;
|
|
12681
|
+
name?: string | null | undefined;
|
|
12682
|
+
notes?: string | null | undefined;
|
|
12683
|
+
customer_id?: string | null | undefined;
|
|
12684
|
+
customer_ref?: string | null | undefined;
|
|
12685
|
+
due_day?: number | undefined;
|
|
12686
|
+
accepted_payment_methods?: ("payment_link" | "boleto" | "card_subscription")[] | undefined;
|
|
12687
|
+
origem?: string | undefined;
|
|
12688
|
+
prefill?: z.objectInputType<{
|
|
12689
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12690
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12691
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12692
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12693
|
+
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
12694
|
+
html_content?: string | undefined;
|
|
12695
|
+
base_amount?: number | undefined;
|
|
12696
|
+
terms?: string | null | undefined;
|
|
12697
|
+
valid_until?: string | undefined;
|
|
12698
|
+
}>;
|
|
12699
|
+
export declare const zNexFinopsPaymentMethodSchema: z.ZodEnum<["pix", "boleto", "payment_link", "card_subscription"]>;
|
|
12700
|
+
export declare const zNexFinopsAsaasSubscriptionStatusSchema: z.ZodEnum<["ACTIVE", "EXPIRED", "INACTIVE"]>;
|
|
12701
|
+
/**
|
|
12702
|
+
* Vínculo contrato ↔ assinatura Asaas. O checkout é hospedado (SAQ-A): nunca
|
|
12703
|
+
* existe campo de número completo, CCV ou token de cartão neste schema.
|
|
12704
|
+
*/
|
|
12705
|
+
export declare const zNexFinopsContractAsaasInfoSchema: z.ZodObject<{
|
|
12706
|
+
customer_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12707
|
+
subscription_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12708
|
+
subscription_status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ACTIVE", "EXPIRED", "INACTIVE"]>>>;
|
|
12709
|
+
cycle: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12710
|
+
value: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
12711
|
+
next_due_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12712
|
+
card_last4: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12713
|
+
card_brand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12714
|
+
checkout_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12715
|
+
env: z.ZodNullable<z.ZodOptional<z.ZodEnum<["sandbox", "production"]>>>;
|
|
12716
|
+
}, "strip", z.ZodTypeAny, {
|
|
12717
|
+
value?: number | null | undefined;
|
|
12718
|
+
customer_id?: string | null | undefined;
|
|
12719
|
+
subscription_id?: string | null | undefined;
|
|
12720
|
+
subscription_status?: "ACTIVE" | "EXPIRED" | "INACTIVE" | null | undefined;
|
|
12721
|
+
cycle?: string | null | undefined;
|
|
12722
|
+
next_due_date?: string | null | undefined;
|
|
12723
|
+
card_last4?: string | null | undefined;
|
|
12724
|
+
card_brand?: string | null | undefined;
|
|
12725
|
+
checkout_id?: string | null | undefined;
|
|
12726
|
+
env?: "sandbox" | "production" | null | undefined;
|
|
12727
|
+
}, {
|
|
12728
|
+
value?: number | null | undefined;
|
|
12729
|
+
customer_id?: string | null | undefined;
|
|
12730
|
+
subscription_id?: string | null | undefined;
|
|
12731
|
+
subscription_status?: "ACTIVE" | "EXPIRED" | "INACTIVE" | null | undefined;
|
|
12732
|
+
cycle?: string | null | undefined;
|
|
12733
|
+
next_due_date?: string | null | undefined;
|
|
12734
|
+
card_last4?: string | null | undefined;
|
|
12735
|
+
card_brand?: string | null | undefined;
|
|
12736
|
+
checkout_id?: string | null | undefined;
|
|
12737
|
+
env?: "sandbox" | "production" | null | undefined;
|
|
12738
|
+
}>;
|
|
12739
|
+
export declare const zNexVendasJourneyPaymentMethodSchema: z.ZodEnum<["card_subscription", "boleto", "payment_link"]>;
|
|
12740
|
+
export declare const zNexVendasJourneyPaymentKindSchema: z.ZodEnum<["asaas_checkout", "boleto", "payment_link"]>;
|
|
12741
|
+
export declare const zNexVendasJourneyPaymentStateSchema: z.ZodEnum<["none", "awaiting_payment", "compensating", "paid"]>;
|
|
12742
|
+
/** Body de `POST /journeys/:short_code/payment`. */
|
|
12743
|
+
export declare const zNexVendasJourneyPaymentChooseSchema: z.ZodObject<{
|
|
12744
|
+
method: z.ZodEnum<["card_subscription", "boleto", "payment_link"]>;
|
|
12745
|
+
}, "strip", z.ZodTypeAny, {
|
|
12746
|
+
method: "payment_link" | "boleto" | "card_subscription";
|
|
12747
|
+
}, {
|
|
12748
|
+
method: "payment_link" | "boleto" | "card_subscription";
|
|
12749
|
+
}>;
|
|
12750
|
+
export declare const zNexVendasJourneyBoletoSchema: z.ZodObject<{
|
|
12751
|
+
payment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12752
|
+
invoice_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12753
|
+
bank_slip_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12754
|
+
pix_qr_code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12755
|
+
pix_copy_paste: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12756
|
+
due_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12757
|
+
value: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
12758
|
+
}, "strip", z.ZodTypeAny, {
|
|
12759
|
+
value?: number | null | undefined;
|
|
12760
|
+
payment_id?: string | null | undefined;
|
|
12761
|
+
invoice_url?: string | null | undefined;
|
|
12762
|
+
bank_slip_url?: string | null | undefined;
|
|
12763
|
+
pix_qr_code?: string | null | undefined;
|
|
12764
|
+
pix_copy_paste?: string | null | undefined;
|
|
12765
|
+
due_date?: string | null | undefined;
|
|
12766
|
+
}, {
|
|
12767
|
+
value?: number | null | undefined;
|
|
12768
|
+
payment_id?: string | null | undefined;
|
|
12769
|
+
invoice_url?: string | null | undefined;
|
|
12770
|
+
bank_slip_url?: string | null | undefined;
|
|
12771
|
+
pix_qr_code?: string | null | undefined;
|
|
12772
|
+
pix_copy_paste?: string | null | undefined;
|
|
12773
|
+
due_date?: string | null | undefined;
|
|
12774
|
+
}>;
|
|
12775
|
+
export declare const zNexVendasJourneyPaymentWebhookEventSchema: z.ZodObject<{
|
|
12776
|
+
event: z.ZodString;
|
|
12777
|
+
payment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12778
|
+
payment_status: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12779
|
+
subscription_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12780
|
+
at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
12781
|
+
}, "strip", z.ZodTypeAny, {
|
|
12782
|
+
at: Date;
|
|
12783
|
+
event: string;
|
|
12784
|
+
subscription_id?: string | null | undefined;
|
|
12785
|
+
payment_id?: string | null | undefined;
|
|
12786
|
+
payment_status?: string | null | undefined;
|
|
12787
|
+
}, {
|
|
12788
|
+
event: string;
|
|
12789
|
+
at?: unknown;
|
|
12790
|
+
subscription_id?: string | null | undefined;
|
|
12791
|
+
payment_id?: string | null | undefined;
|
|
12792
|
+
payment_status?: string | null | undefined;
|
|
12793
|
+
}>;
|
|
12794
|
+
export declare const zNexVendasJourneyPaymentSupersededSchema: z.ZodObject<{
|
|
12795
|
+
method: z.ZodEnum<["card_subscription", "boleto", "payment_link"]>;
|
|
12796
|
+
kind: z.ZodEnum<["asaas_checkout", "boleto", "payment_link"]>;
|
|
12797
|
+
checkout_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12798
|
+
payment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12799
|
+
payment_link_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12800
|
+
at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
12801
|
+
revoked: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
12802
|
+
}, "strip", z.ZodTypeAny, {
|
|
12803
|
+
method: "payment_link" | "boleto" | "card_subscription";
|
|
12804
|
+
kind: "payment_link" | "boleto" | "asaas_checkout";
|
|
12805
|
+
at: Date;
|
|
12806
|
+
revoked?: boolean | null | undefined;
|
|
12807
|
+
checkout_id?: string | null | undefined;
|
|
12808
|
+
payment_id?: string | null | undefined;
|
|
12809
|
+
payment_link_id?: string | null | undefined;
|
|
12810
|
+
}, {
|
|
12811
|
+
method: "payment_link" | "boleto" | "card_subscription";
|
|
12812
|
+
kind: "payment_link" | "boleto" | "asaas_checkout";
|
|
12813
|
+
at?: unknown;
|
|
12814
|
+
revoked?: boolean | null | undefined;
|
|
12815
|
+
checkout_id?: string | null | undefined;
|
|
12816
|
+
payment_id?: string | null | undefined;
|
|
12817
|
+
payment_link_id?: string | null | undefined;
|
|
12818
|
+
}>;
|
|
12819
|
+
export declare const zNexVendasJourneyPaymentSchema: z.ZodObject<{
|
|
12820
|
+
state: z.ZodEnum<["none", "awaiting_payment", "compensating", "paid"]>;
|
|
12821
|
+
method: z.ZodNullable<z.ZodOptional<z.ZodEnum<["card_subscription", "boleto", "payment_link"]>>>;
|
|
12822
|
+
kind: z.ZodNullable<z.ZodOptional<z.ZodEnum<["asaas_checkout", "boleto", "payment_link"]>>>;
|
|
12823
|
+
checkout_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12824
|
+
redirect_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12825
|
+
expires_at: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
12826
|
+
boleto: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
12827
|
+
payment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12828
|
+
invoice_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12829
|
+
bank_slip_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12830
|
+
pix_qr_code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12831
|
+
pix_copy_paste: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12832
|
+
due_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12833
|
+
value: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
12834
|
+
}, "strip", z.ZodTypeAny, {
|
|
12835
|
+
value?: number | null | undefined;
|
|
12836
|
+
payment_id?: string | null | undefined;
|
|
12837
|
+
invoice_url?: string | null | undefined;
|
|
12838
|
+
bank_slip_url?: string | null | undefined;
|
|
12839
|
+
pix_qr_code?: string | null | undefined;
|
|
12840
|
+
pix_copy_paste?: string | null | undefined;
|
|
12841
|
+
due_date?: string | null | undefined;
|
|
12842
|
+
}, {
|
|
12843
|
+
value?: number | null | undefined;
|
|
12844
|
+
payment_id?: string | null | undefined;
|
|
12845
|
+
invoice_url?: string | null | undefined;
|
|
12846
|
+
bank_slip_url?: string | null | undefined;
|
|
12847
|
+
pix_qr_code?: string | null | undefined;
|
|
12848
|
+
pix_copy_paste?: string | null | undefined;
|
|
12849
|
+
due_date?: string | null | undefined;
|
|
12850
|
+
}>>>;
|
|
12851
|
+
payment_link_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12852
|
+
link: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12853
|
+
first_payment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12854
|
+
subscription_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12855
|
+
paid_at: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
12856
|
+
created_at: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodDate, Date, unknown>>>;
|
|
12857
|
+
webhook_events: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12858
|
+
event: z.ZodString;
|
|
12859
|
+
payment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12860
|
+
payment_status: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12861
|
+
subscription_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12862
|
+
at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
12863
|
+
}, "strip", z.ZodTypeAny, {
|
|
12864
|
+
at: Date;
|
|
12865
|
+
event: string;
|
|
12866
|
+
subscription_id?: string | null | undefined;
|
|
12867
|
+
payment_id?: string | null | undefined;
|
|
12868
|
+
payment_status?: string | null | undefined;
|
|
12869
|
+
}, {
|
|
12870
|
+
event: string;
|
|
12871
|
+
at?: unknown;
|
|
12872
|
+
subscription_id?: string | null | undefined;
|
|
12873
|
+
payment_id?: string | null | undefined;
|
|
12874
|
+
payment_status?: string | null | undefined;
|
|
12875
|
+
}>, "many">>>;
|
|
12876
|
+
superseded: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12877
|
+
method: z.ZodEnum<["card_subscription", "boleto", "payment_link"]>;
|
|
12878
|
+
kind: z.ZodEnum<["asaas_checkout", "boleto", "payment_link"]>;
|
|
12879
|
+
checkout_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12880
|
+
payment_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12881
|
+
payment_link_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12882
|
+
at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
12883
|
+
revoked: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
12884
|
+
}, "strip", z.ZodTypeAny, {
|
|
12885
|
+
method: "payment_link" | "boleto" | "card_subscription";
|
|
12886
|
+
kind: "payment_link" | "boleto" | "asaas_checkout";
|
|
12887
|
+
at: Date;
|
|
12888
|
+
revoked?: boolean | null | undefined;
|
|
12889
|
+
checkout_id?: string | null | undefined;
|
|
12890
|
+
payment_id?: string | null | undefined;
|
|
12891
|
+
payment_link_id?: string | null | undefined;
|
|
12892
|
+
}, {
|
|
12893
|
+
method: "payment_link" | "boleto" | "card_subscription";
|
|
12894
|
+
kind: "payment_link" | "boleto" | "asaas_checkout";
|
|
12895
|
+
at?: unknown;
|
|
12896
|
+
revoked?: boolean | null | undefined;
|
|
12897
|
+
checkout_id?: string | null | undefined;
|
|
12898
|
+
payment_id?: string | null | undefined;
|
|
12899
|
+
payment_link_id?: string | null | undefined;
|
|
12900
|
+
}>, "many">>>;
|
|
12901
|
+
last_error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12902
|
+
}, "strip", z.ZodTypeAny, {
|
|
12903
|
+
state: "awaiting_payment" | "paid" | "none" | "compensating";
|
|
12904
|
+
link?: string | null | undefined;
|
|
12905
|
+
method?: "payment_link" | "boleto" | "card_subscription" | null | undefined;
|
|
12906
|
+
created_at?: Date | null | undefined;
|
|
12907
|
+
kind?: "payment_link" | "boleto" | "asaas_checkout" | null | undefined;
|
|
12908
|
+
last_error?: string | null | undefined;
|
|
12909
|
+
boleto?: {
|
|
12910
|
+
value?: number | null | undefined;
|
|
12911
|
+
payment_id?: string | null | undefined;
|
|
12912
|
+
invoice_url?: string | null | undefined;
|
|
12913
|
+
bank_slip_url?: string | null | undefined;
|
|
12914
|
+
pix_qr_code?: string | null | undefined;
|
|
12915
|
+
pix_copy_paste?: string | null | undefined;
|
|
12916
|
+
due_date?: string | null | undefined;
|
|
12917
|
+
} | null | undefined;
|
|
12918
|
+
paid_at?: Date | null | undefined;
|
|
12919
|
+
expires_at?: Date | null | undefined;
|
|
12920
|
+
subscription_id?: string | null | undefined;
|
|
12921
|
+
checkout_id?: string | null | undefined;
|
|
12922
|
+
payment_link_id?: string | null | undefined;
|
|
12923
|
+
redirect_url?: string | null | undefined;
|
|
12924
|
+
first_payment_id?: string | null | undefined;
|
|
12925
|
+
webhook_events?: {
|
|
12926
|
+
at: Date;
|
|
12927
|
+
event: string;
|
|
12928
|
+
subscription_id?: string | null | undefined;
|
|
12929
|
+
payment_id?: string | null | undefined;
|
|
12930
|
+
payment_status?: string | null | undefined;
|
|
12931
|
+
}[] | null | undefined;
|
|
12932
|
+
superseded?: {
|
|
12933
|
+
method: "payment_link" | "boleto" | "card_subscription";
|
|
12934
|
+
kind: "payment_link" | "boleto" | "asaas_checkout";
|
|
12935
|
+
at: Date;
|
|
12936
|
+
revoked?: boolean | null | undefined;
|
|
12937
|
+
checkout_id?: string | null | undefined;
|
|
12938
|
+
payment_id?: string | null | undefined;
|
|
12939
|
+
payment_link_id?: string | null | undefined;
|
|
12940
|
+
}[] | null | undefined;
|
|
12941
|
+
}, {
|
|
12942
|
+
state: "awaiting_payment" | "paid" | "none" | "compensating";
|
|
12943
|
+
link?: string | null | undefined;
|
|
12944
|
+
method?: "payment_link" | "boleto" | "card_subscription" | null | undefined;
|
|
12945
|
+
created_at?: unknown;
|
|
12946
|
+
kind?: "payment_link" | "boleto" | "asaas_checkout" | null | undefined;
|
|
12947
|
+
last_error?: string | null | undefined;
|
|
12948
|
+
boleto?: {
|
|
12949
|
+
value?: number | null | undefined;
|
|
12950
|
+
payment_id?: string | null | undefined;
|
|
12951
|
+
invoice_url?: string | null | undefined;
|
|
12952
|
+
bank_slip_url?: string | null | undefined;
|
|
12953
|
+
pix_qr_code?: string | null | undefined;
|
|
12954
|
+
pix_copy_paste?: string | null | undefined;
|
|
12955
|
+
due_date?: string | null | undefined;
|
|
12956
|
+
} | null | undefined;
|
|
12957
|
+
paid_at?: unknown;
|
|
12958
|
+
expires_at?: unknown;
|
|
12959
|
+
subscription_id?: string | null | undefined;
|
|
12960
|
+
checkout_id?: string | null | undefined;
|
|
12961
|
+
payment_link_id?: string | null | undefined;
|
|
12962
|
+
redirect_url?: string | null | undefined;
|
|
12963
|
+
first_payment_id?: string | null | undefined;
|
|
12964
|
+
webhook_events?: {
|
|
12965
|
+
event: string;
|
|
12966
|
+
at?: unknown;
|
|
12967
|
+
subscription_id?: string | null | undefined;
|
|
12968
|
+
payment_id?: string | null | undefined;
|
|
12969
|
+
payment_status?: string | null | undefined;
|
|
12970
|
+
}[] | null | undefined;
|
|
12971
|
+
superseded?: {
|
|
12972
|
+
method: "payment_link" | "boleto" | "card_subscription";
|
|
12973
|
+
kind: "payment_link" | "boleto" | "asaas_checkout";
|
|
12974
|
+
at?: unknown;
|
|
12975
|
+
revoked?: boolean | null | undefined;
|
|
12976
|
+
checkout_id?: string | null | undefined;
|
|
12977
|
+
payment_id?: string | null | undefined;
|
|
12978
|
+
payment_link_id?: string | null | undefined;
|
|
12979
|
+
}[] | null | undefined;
|
|
12980
|
+
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.zProviderInvoiceLinksSchema = exports.zServiceTaxInfoSchema = exports.zServiceLineItemSchema = exports.zServiceInvoiceStateSchema = exports.zProviderServiceInvoiceStatusSchema = exports.zExternalLinkSchema = exports.zExternalObjectTypeSchema = exports.zInvoiceSourceRefSchema = exports.zInvoiceSourceTypeSchema = exports.zInvoiceTakerRefSchema = exports.zInvoiceTakerSnapshotSchema = exports.zInvoiceTakerSnapshotAddressSchema = exports.zTakerDocumentSchema = exports.zTakerTaxProfileSchema = exports.zTakerProviderRefsSchema = exports.zTakerAddressSchema = exports.zInvoiceTakerTypeSchema = exports.zServiceSchema = exports.zCustomerServiceTaxInfoSchema = exports.zIssuerTaxProfileSchema = exports.zIssuerNfseConfigSchema = exports.zIssuerMunicipalCredentialsRefSchema = exports.zIssuerTaxRegimeSchema = exports.zIssuerCompanyIdentitySchema = exports.zIssuerCompanyAddressSchema = exports.zTaxProfileSyncStateSchema = exports.zAsaasProviderSchema = exports.zAsaasProviderAsaasBlockSchema = exports.zAsaasProviderCapabilitiesSchema = exports.zAsaasPaymentsCapabilitiesSchema = exports.zAsaasNfseCapabilitiesSchema = exports.zAsaasEnvAuthConfigSchema = exports.zAsaasSubaccountInputSchema = exports.zAsaasAccountScopeSchema = exports.zAsaasWebhookConfigSchema = exports.zRetryPolicySchema = exports.zAsaasWebhookEventSchema = exports.zAsaasAccountScopeModeSchema = exports.zProviderRemoteRefsSchema = exports.zProviderFiscalInfoPayloadSchema = exports.zProviderCredentialsInputSchema = exports.zProviderCredentialsSecretRefsSchema = exports.zProviderMunicipalOptionsSnapshotSchema = exports.zProviderOptionItemSchema = exports.zProviderMunicipalAuthTypeSchema = exports.zFinopsProviderBaseSchema = exports.zProviderStatusSchema = exports.zFinopsActionSchema = exports.zFinopsProviderTypeSchema = exports.zProviderEnvSchema = void 0;
|
|
4
|
-
exports.zServiceInvoiceSchema = exports.zPaymentLinkSchema = exports.zPaymentLinkDocumentStateSchema = exports.zAsaasPaymentLinkSubscriptionCycleSchema = exports.zAsaasPaymentLinkChargeTypeSchema = exports.zAsaasPaymentLinkBillingTypeSchema = exports.zProviderPayloadSnapshotSchema = exports.zProviderTraceSchema = exports.zProviderInvoiceErrorSchema = exports.zProviderInvoiceIdentifiersSchema = void 0;
|
|
4
|
+
exports.zNexVendasJourneyPaymentSchema = exports.zNexVendasJourneyPaymentSupersededSchema = exports.zNexVendasJourneyPaymentWebhookEventSchema = exports.zNexVendasJourneyBoletoSchema = exports.zNexVendasJourneyPaymentChooseSchema = exports.zNexVendasJourneyPaymentStateSchema = exports.zNexVendasJourneyPaymentKindSchema = exports.zNexVendasJourneyPaymentMethodSchema = exports.zNexFinopsContractAsaasInfoSchema = exports.zNexFinopsAsaasSubscriptionStatusSchema = exports.zNexFinopsPaymentMethodSchema = exports.zNexFinopsProposalSchema = exports.zNexFinopsProposalWriteSchema = exports.zNexFinopsProposalPrefillSchema = exports.zNexFinopsProposalPaymentMethodSchema = exports.zNexFinopsProposalStatusSchema = exports.zServiceInvoiceSchema = exports.zPaymentLinkSchema = exports.zPaymentLinkDocumentStateSchema = exports.zAsaasPaymentLinkSubscriptionCycleSchema = exports.zAsaasPaymentLinkChargeTypeSchema = exports.zAsaasPaymentLinkBillingTypeSchema = exports.zProviderPayloadSnapshotSchema = exports.zProviderTraceSchema = exports.zProviderInvoiceErrorSchema = exports.zProviderInvoiceIdentifiersSchema = void 0;
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const zod_schemas_1 = require("../shared/zod-schemas");
|
|
7
7
|
// ---- Provider enums and base ----
|
|
@@ -679,3 +679,167 @@ exports.zServiceInvoiceSchema = zod_schemas_1.zFireDocSchema
|
|
|
679
679
|
snapshots: zod_1.z.array(exports.zProviderPayloadSnapshotSchema).optional(),
|
|
680
680
|
})
|
|
681
681
|
.passthrough();
|
|
682
|
+
// ---- Nexus FinOps Proposal (feat-128) ----
|
|
683
|
+
exports.zNexFinopsProposalStatusSchema = zod_1.z.enum([
|
|
684
|
+
"draft",
|
|
685
|
+
"sent",
|
|
686
|
+
"viewed",
|
|
687
|
+
"accepted",
|
|
688
|
+
"expired",
|
|
689
|
+
"canceled",
|
|
690
|
+
]);
|
|
691
|
+
exports.zNexFinopsProposalPaymentMethodSchema = zod_1.z.enum([
|
|
692
|
+
"boleto",
|
|
693
|
+
"card_subscription",
|
|
694
|
+
"payment_link",
|
|
695
|
+
]);
|
|
696
|
+
exports.zNexFinopsProposalPrefillSchema = zod_1.z
|
|
697
|
+
.object({
|
|
698
|
+
name: zod_1.z.string().max(255).nullable().optional(),
|
|
699
|
+
email: zod_1.z.string().max(255).nullable().optional(),
|
|
700
|
+
phone: zod_1.z.string().max(50).nullable().optional(),
|
|
701
|
+
company: zod_1.z.string().max(255).nullable().optional(),
|
|
702
|
+
})
|
|
703
|
+
.passthrough();
|
|
704
|
+
/**
|
|
705
|
+
* Payload de escrita da proposta (fronteira HTTP). Campos opcionais usam
|
|
706
|
+
* `.nullable()` além de `.optional()` porque o cliente pode mandar `null`
|
|
707
|
+
* explícito (Vuetify `clearable` grava null; callable converte undefined em null).
|
|
708
|
+
*
|
|
709
|
+
* `short_code`, `status` e `currency` NÃO entram aqui: são resolvidos no servidor.
|
|
710
|
+
*/
|
|
711
|
+
exports.zNexFinopsProposalWriteSchema = zod_1.z
|
|
712
|
+
.object({
|
|
713
|
+
origem: zod_1.z.string().min(1).max(64).optional(),
|
|
714
|
+
customer_id: zod_1.z.string().max(128).nullable().optional(),
|
|
715
|
+
customer_ref: zod_1.z.string().max(512).nullable().optional(),
|
|
716
|
+
prefill: exports.zNexFinopsProposalPrefillSchema.nullable().optional(),
|
|
717
|
+
name: zod_1.z.string().max(255).nullable().optional(),
|
|
718
|
+
html_content: zod_1.z.string().optional(),
|
|
719
|
+
base_amount: zod_1.z.number().nonnegative().optional(),
|
|
720
|
+
due_day: zod_1.z.number().int().min(1).max(31).optional(),
|
|
721
|
+
accepted_payment_methods: zod_1.z.array(exports.zNexFinopsProposalPaymentMethodSchema).optional(),
|
|
722
|
+
terms: zod_1.z.string().nullable().optional(),
|
|
723
|
+
valid_until: zod_1.z
|
|
724
|
+
.string()
|
|
725
|
+
.regex(/^\d{4}-\d{2}-\d{2}$/, "valid_until must be an ISO date (YYYY-MM-DD)")
|
|
726
|
+
.optional(),
|
|
727
|
+
notes: zod_1.z.string().nullable().optional(),
|
|
728
|
+
})
|
|
729
|
+
.strip();
|
|
730
|
+
exports.zNexFinopsProposalSchema = exports.zNexFinopsProposalWriteSchema.extend({
|
|
731
|
+
short_code: zod_1.z.string().min(1),
|
|
732
|
+
status: exports.zNexFinopsProposalStatusSchema,
|
|
733
|
+
currency: zod_1.z.literal("BRL"),
|
|
734
|
+
});
|
|
735
|
+
// ---- Nexus FinOps / Vendas Payment (feat-131) ----
|
|
736
|
+
exports.zNexFinopsPaymentMethodSchema = zod_1.z.enum([
|
|
737
|
+
"pix",
|
|
738
|
+
"boleto",
|
|
739
|
+
"payment_link",
|
|
740
|
+
"card_subscription",
|
|
741
|
+
]);
|
|
742
|
+
exports.zNexFinopsAsaasSubscriptionStatusSchema = zod_1.z.enum([
|
|
743
|
+
"ACTIVE",
|
|
744
|
+
"EXPIRED",
|
|
745
|
+
"INACTIVE",
|
|
746
|
+
]);
|
|
747
|
+
/**
|
|
748
|
+
* Vínculo contrato ↔ assinatura Asaas. O checkout é hospedado (SAQ-A): nunca
|
|
749
|
+
* existe campo de número completo, CCV ou token de cartão neste schema.
|
|
750
|
+
*/
|
|
751
|
+
exports.zNexFinopsContractAsaasInfoSchema = zod_1.z
|
|
752
|
+
.object({
|
|
753
|
+
customer_id: zod_1.z.string().max(128).optional().nullable(),
|
|
754
|
+
subscription_id: zod_1.z.string().max(128).optional().nullable(),
|
|
755
|
+
subscription_status: exports.zNexFinopsAsaasSubscriptionStatusSchema.optional().nullable(),
|
|
756
|
+
cycle: zod_1.z.string().max(32).optional().nullable(),
|
|
757
|
+
value: zod_1.z.number().nonnegative().optional().nullable(),
|
|
758
|
+
next_due_date: zod_1.z
|
|
759
|
+
.string()
|
|
760
|
+
.regex(/^\d{4}-\d{2}-\d{2}$/, "next_due_date must be an ISO date (YYYY-MM-DD)")
|
|
761
|
+
.optional()
|
|
762
|
+
.nullable(),
|
|
763
|
+
card_last4: zod_1.z.string().max(4).optional().nullable(),
|
|
764
|
+
card_brand: zod_1.z.string().max(32).optional().nullable(),
|
|
765
|
+
checkout_id: zod_1.z.string().max(128).optional().nullable(),
|
|
766
|
+
env: zod_1.z.enum(["sandbox", "production"]).optional().nullable(),
|
|
767
|
+
})
|
|
768
|
+
.strip();
|
|
769
|
+
exports.zNexVendasJourneyPaymentMethodSchema = zod_1.z.enum([
|
|
770
|
+
"card_subscription",
|
|
771
|
+
"boleto",
|
|
772
|
+
"payment_link",
|
|
773
|
+
]);
|
|
774
|
+
exports.zNexVendasJourneyPaymentKindSchema = zod_1.z.enum([
|
|
775
|
+
"asaas_checkout",
|
|
776
|
+
"boleto",
|
|
777
|
+
"payment_link",
|
|
778
|
+
]);
|
|
779
|
+
exports.zNexVendasJourneyPaymentStateSchema = zod_1.z.enum([
|
|
780
|
+
"none",
|
|
781
|
+
"awaiting_payment",
|
|
782
|
+
"compensating",
|
|
783
|
+
"paid",
|
|
784
|
+
]);
|
|
785
|
+
/** Body de `POST /journeys/:short_code/payment`. */
|
|
786
|
+
exports.zNexVendasJourneyPaymentChooseSchema = zod_1.z
|
|
787
|
+
.object({
|
|
788
|
+
method: exports.zNexVendasJourneyPaymentMethodSchema,
|
|
789
|
+
})
|
|
790
|
+
.strip();
|
|
791
|
+
exports.zNexVendasJourneyBoletoSchema = zod_1.z
|
|
792
|
+
.object({
|
|
793
|
+
payment_id: zod_1.z.string().max(128).optional().nullable(),
|
|
794
|
+
invoice_url: zod_1.z.string().max(2048).optional().nullable(),
|
|
795
|
+
bank_slip_url: zod_1.z.string().max(2048).optional().nullable(),
|
|
796
|
+
pix_qr_code: zod_1.z.string().optional().nullable(),
|
|
797
|
+
pix_copy_paste: zod_1.z.string().optional().nullable(),
|
|
798
|
+
due_date: zod_1.z
|
|
799
|
+
.string()
|
|
800
|
+
.regex(/^\d{4}-\d{2}-\d{2}$/, "due_date must be an ISO date (YYYY-MM-DD)")
|
|
801
|
+
.optional()
|
|
802
|
+
.nullable(),
|
|
803
|
+
value: zod_1.z.number().nonnegative().optional().nullable(),
|
|
804
|
+
})
|
|
805
|
+
.strip();
|
|
806
|
+
exports.zNexVendasJourneyPaymentWebhookEventSchema = zod_1.z
|
|
807
|
+
.object({
|
|
808
|
+
event: zod_1.z.string().min(1).max(64),
|
|
809
|
+
payment_id: zod_1.z.string().max(128).optional().nullable(),
|
|
810
|
+
payment_status: zod_1.z.string().max(64).optional().nullable(),
|
|
811
|
+
subscription_id: zod_1.z.string().max(128).optional().nullable(),
|
|
812
|
+
at: zod_schemas_1.zFirestoreDateSchema,
|
|
813
|
+
})
|
|
814
|
+
.strip();
|
|
815
|
+
exports.zNexVendasJourneyPaymentSupersededSchema = zod_1.z
|
|
816
|
+
.object({
|
|
817
|
+
method: exports.zNexVendasJourneyPaymentMethodSchema,
|
|
818
|
+
kind: exports.zNexVendasJourneyPaymentKindSchema,
|
|
819
|
+
checkout_id: zod_1.z.string().max(128).optional().nullable(),
|
|
820
|
+
payment_id: zod_1.z.string().max(128).optional().nullable(),
|
|
821
|
+
payment_link_id: zod_1.z.string().max(128).optional().nullable(),
|
|
822
|
+
at: zod_schemas_1.zFirestoreDateSchema,
|
|
823
|
+
revoked: zod_1.z.boolean().optional().nullable(),
|
|
824
|
+
})
|
|
825
|
+
.strip();
|
|
826
|
+
exports.zNexVendasJourneyPaymentSchema = zod_1.z
|
|
827
|
+
.object({
|
|
828
|
+
state: exports.zNexVendasJourneyPaymentStateSchema,
|
|
829
|
+
method: exports.zNexVendasJourneyPaymentMethodSchema.optional().nullable(),
|
|
830
|
+
kind: exports.zNexVendasJourneyPaymentKindSchema.optional().nullable(),
|
|
831
|
+
checkout_id: zod_1.z.string().max(128).optional().nullable(),
|
|
832
|
+
redirect_url: zod_1.z.string().max(2048).optional().nullable(),
|
|
833
|
+
expires_at: zod_schemas_1.zFirestoreDateSchema.optional().nullable(),
|
|
834
|
+
boleto: exports.zNexVendasJourneyBoletoSchema.optional().nullable(),
|
|
835
|
+
payment_link_id: zod_1.z.string().max(128).optional().nullable(),
|
|
836
|
+
link: zod_1.z.string().max(2048).optional().nullable(),
|
|
837
|
+
first_payment_id: zod_1.z.string().max(128).optional().nullable(),
|
|
838
|
+
subscription_id: zod_1.z.string().max(128).optional().nullable(),
|
|
839
|
+
paid_at: zod_schemas_1.zFirestoreDateSchema.optional().nullable(),
|
|
840
|
+
created_at: zod_schemas_1.zFirestoreDateSchema.optional().nullable(),
|
|
841
|
+
webhook_events: zod_1.z.array(exports.zNexVendasJourneyPaymentWebhookEventSchema).optional().nullable(),
|
|
842
|
+
superseded: zod_1.z.array(exports.zNexVendasJourneyPaymentSupersededSchema).optional().nullable(),
|
|
843
|
+
last_error: zod_1.z.string().optional().nullable(),
|
|
844
|
+
})
|
|
845
|
+
.strip();
|