@suportepos/split-checkout 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ import { PaymentResult } from "./types";
1
2
  export type Product = {
2
3
  id?: string;
3
4
  nome: string;
@@ -22,15 +23,6 @@ export type Customer = {
22
23
  cidade?: string;
23
24
  estado?: string;
24
25
  };
25
- export type PaymentResult = {
26
- successo: boolean;
27
- payment_id?: string;
28
- valor?: number;
29
- nomeComprador?: string;
30
- emailComprador?: string;
31
- telefoneComprador?: string;
32
- mensagem: string;
33
- };
34
26
  export type CheckoutFlowProps = {
35
27
  merchantId: string;
36
28
  codigoPedido: string;
@@ -1,4 +1,5 @@
1
- import { PaymentResult, Split, Customer, Product } from "./CheckoutFlow";
1
+ import { Split, Customer, Product } from "./CheckoutFlow";
2
+ import { PaymentResult } from "./types";
2
3
  export type SplitCardFormProps = {
3
4
  merchantId: string;
4
5
  codigoPedido: string;
@@ -1,4 +1,5 @@
1
- import { PaymentResult, Split, Customer, Product } from "./CheckoutFlow";
1
+ import { Split, Customer, Product } from "./CheckoutFlow";
2
+ import { PaymentResult } from "./types";
2
3
  export type SplitPixFormProps = {
3
4
  merchantId: string;
4
5
  codigoPedido: string;
@@ -3,5 +3,6 @@ export { default as OrderSummary } from "./lib/OrderSummary";
3
3
  export { default as SplitCardForm } from "./lib/SplitCardForm";
4
4
  export { default as SplitPixForm } from "./lib/SplitPixForm";
5
5
  export { default as CheckoutFlowContent } from "./lib/CheckoutFlowContent";
6
+ export type { PaymentResult } from "./lib/types";
6
7
  export * from "./lib/theme";
7
8
  export * from "./lib/validators";
@@ -1,3 +1,4 @@
1
+ import { PaymentResult } from "./types";
1
2
  export type Product = {
2
3
  id?: string;
3
4
  nome: string;
@@ -22,15 +23,6 @@ export type Customer = {
22
23
  cidade?: string;
23
24
  estado?: string;
24
25
  };
25
- export type PaymentResult = {
26
- successo: boolean;
27
- payment_id?: string;
28
- valor?: number;
29
- nomeComprador?: string;
30
- emailComprador?: string;
31
- telefoneComprador?: string;
32
- mensagem: string;
33
- };
34
26
  export type CheckoutFlowProps = {
35
27
  merchantId: string;
36
28
  codigoPedido: string;
@@ -1,4 +1,5 @@
1
- import { PaymentResult, Split, Customer, Product } from "./CheckoutFlow";
1
+ import { Split, Customer, Product } from "./CheckoutFlow";
2
+ import { PaymentResult } from "./types";
2
3
  export type SplitCardFormProps = {
3
4
  merchantId: string;
4
5
  codigoPedido: string;
@@ -1,4 +1,5 @@
1
- import { PaymentResult, Split, Customer, Product } from "./CheckoutFlow";
1
+ import { Split, Customer, Product } from "./CheckoutFlow";
2
+ import { PaymentResult } from "./types";
2
3
  export type SplitPixFormProps = {
3
4
  merchantId: string;
4
5
  codigoPedido: string;
@@ -0,0 +1,9 @@
1
+ export type PaymentResult = {
2
+ successo: boolean;
3
+ payment_id?: string;
4
+ valor?: number;
5
+ nomeComprador?: string;
6
+ emailComprador?: string;
7
+ telefoneComprador?: string;
8
+ mensagem: string;
9
+ };
@@ -1,4 +1,5 @@
1
- import { Product, Split, PaymentResult, Customer } from "./lib/CheckoutFlow";
1
+ import { Product, Split, Customer } from "./lib/CheckoutFlow";
2
+ import { PaymentResult } from "./lib/types";
2
3
  export declare function renderCheckout({ elementId, merchantId, producao, codigoPedido, produtos, splits, cliente, merchantName, valorTotal, onResponse, }: {
3
4
  elementId: string;
4
5
  merchantId: string;
@@ -0,0 +1,9 @@
1
+ export type PaymentResult = {
2
+ successo: boolean;
3
+ payment_id?: string;
4
+ valor?: number;
5
+ nomeComprador?: string;
6
+ emailComprador?: string;
7
+ telefoneComprador?: string;
8
+ mensagem: string;
9
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suportepos/split-checkout",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "type": "module",
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.es.js",