@capibox/bridge-server 0.1.18 → 0.1.19

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/index.d.mts CHANGED
@@ -102,6 +102,43 @@ declare const server: {
102
102
  [key: string]: unknown;
103
103
  };
104
104
  }>;
105
+ markPaid: (uuid: string) => Promise<{
106
+ success: boolean;
107
+ }>;
108
+ };
109
+ sessionWithCurrency: {
110
+ get: (uuid: string) => Promise<{
111
+ success: number;
112
+ data: {
113
+ id: string;
114
+ project: string;
115
+ cookies: {
116
+ [key: string]: unknown;
117
+ };
118
+ country: string;
119
+ state: string;
120
+ createdAt: string;
121
+ ip: string;
122
+ isEu: boolean;
123
+ origin: string;
124
+ query: {
125
+ [key: string]: unknown;
126
+ };
127
+ referer: string;
128
+ slug: string;
129
+ updatedAt: string;
130
+ useragent: string;
131
+ extraData: {
132
+ [key: string]: unknown;
133
+ };
134
+ };
135
+ currency: {
136
+ currency: string;
137
+ country: string;
138
+ symbol: string;
139
+ rate: number;
140
+ };
141
+ }>;
105
142
  };
106
143
  capi: {
107
144
  snapchat: (data: {
@@ -665,6 +702,49 @@ declare const server: {
665
702
  amountWithTax: number;
666
703
  }>;
667
704
  };
705
+ confirmPayment: (uuid: string, { cart }: {
706
+ cart: {
707
+ pm: string;
708
+ };
709
+ }) => Promise<{
710
+ success: number;
711
+ data: {
712
+ id: string;
713
+ createdAt: string;
714
+ updatedAt: string;
715
+ extraData?: {
716
+ psp: {
717
+ url: string;
718
+ name: string;
719
+ };
720
+ totals: {
721
+ cart: number;
722
+ regular: number;
723
+ withTax: number;
724
+ woShipping: number;
725
+ discountValue: number;
726
+ discountPercent: number;
727
+ };
728
+ };
729
+ cart: {
730
+ quantity: number;
731
+ product: {
732
+ title: string;
733
+ description?: string;
734
+ sku: string;
735
+ image?: string;
736
+ price: number;
737
+ regularPrice?: number;
738
+ subBillingPrice?: number;
739
+ subBillingInt?: number;
740
+ subPeriod?: "week" | "month";
741
+ };
742
+ pathname?: string;
743
+ }[];
744
+ status: number;
745
+ currency: string;
746
+ };
747
+ }>;
668
748
  };
669
749
  subscription: {
670
750
  cancelById: (id: number, data: {
package/dist/index.d.ts CHANGED
@@ -102,6 +102,43 @@ declare const server: {
102
102
  [key: string]: unknown;
103
103
  };
104
104
  }>;
105
+ markPaid: (uuid: string) => Promise<{
106
+ success: boolean;
107
+ }>;
108
+ };
109
+ sessionWithCurrency: {
110
+ get: (uuid: string) => Promise<{
111
+ success: number;
112
+ data: {
113
+ id: string;
114
+ project: string;
115
+ cookies: {
116
+ [key: string]: unknown;
117
+ };
118
+ country: string;
119
+ state: string;
120
+ createdAt: string;
121
+ ip: string;
122
+ isEu: boolean;
123
+ origin: string;
124
+ query: {
125
+ [key: string]: unknown;
126
+ };
127
+ referer: string;
128
+ slug: string;
129
+ updatedAt: string;
130
+ useragent: string;
131
+ extraData: {
132
+ [key: string]: unknown;
133
+ };
134
+ };
135
+ currency: {
136
+ currency: string;
137
+ country: string;
138
+ symbol: string;
139
+ rate: number;
140
+ };
141
+ }>;
105
142
  };
106
143
  capi: {
107
144
  snapchat: (data: {
@@ -665,6 +702,49 @@ declare const server: {
665
702
  amountWithTax: number;
666
703
  }>;
667
704
  };
705
+ confirmPayment: (uuid: string, { cart }: {
706
+ cart: {
707
+ pm: string;
708
+ };
709
+ }) => Promise<{
710
+ success: number;
711
+ data: {
712
+ id: string;
713
+ createdAt: string;
714
+ updatedAt: string;
715
+ extraData?: {
716
+ psp: {
717
+ url: string;
718
+ name: string;
719
+ };
720
+ totals: {
721
+ cart: number;
722
+ regular: number;
723
+ withTax: number;
724
+ woShipping: number;
725
+ discountValue: number;
726
+ discountPercent: number;
727
+ };
728
+ };
729
+ cart: {
730
+ quantity: number;
731
+ product: {
732
+ title: string;
733
+ description?: string;
734
+ sku: string;
735
+ image?: string;
736
+ price: number;
737
+ regularPrice?: number;
738
+ subBillingPrice?: number;
739
+ subBillingInt?: number;
740
+ subPeriod?: "week" | "month";
741
+ };
742
+ pathname?: string;
743
+ }[];
744
+ status: number;
745
+ currency: string;
746
+ };
747
+ }>;
668
748
  };
669
749
  subscription: {
670
750
  cancelById: (id: number, data: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capibox/bridge-server",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -24,7 +24,7 @@
24
24
  "typescript": "^5.8.3"
25
25
  },
26
26
  "dependencies": {
27
- "@capibox/bridge-server-sdk": "^0.1.18",
27
+ "@capibox/bridge-server-sdk": "^0.1.19",
28
28
  "memory-cache": "^0.2.0",
29
29
  "openapi-fetch": "^0.14.0",
30
30
  "zod": "^3.24.1"