@zennify/sdk-js 1.11.0 → 1.13.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zennify/sdk-js",
3
- "version": "1.11.0",
3
+ "version": "1.13.0",
4
4
  "description": "A simple package to work with https://api.zennify.app",
5
5
  "main": "dist/main.js",
6
6
  "keywords": [],
package/src/errors.ts CHANGED
@@ -105,6 +105,7 @@ export interface APIErrors {
105
105
  'THIS_COUPON_IS_VALID_ONLY_FOR_THE_FIRST_BUY': {};
106
106
  // store errors
107
107
  'UNKNOWN_STORE': {};
108
+ 'EXPIRED_STORE': {},
108
109
  'UNKNOWN_BANK': {
109
110
  received: string
110
111
  };
@@ -64,4 +64,10 @@ type SaleTransaction = {
64
64
  }
65
65
  };
66
66
 
67
- export type FullTransaction<TransactionMetadata = any> = BaseTransaction<TransactionMetadata> & SaleTransaction;
67
+ export type FullTransaction<TransactionMetadata = any> = BaseTransaction<TransactionMetadata> & SaleTransaction;
68
+ export type PartialTransaction = {
69
+ id: string,
70
+ base_value: number,
71
+ created_at: string,
72
+ status: 'approved' | 'cancelled' | 'expired' | 'pending' | 'refused' | 'rejected' | 'analysis'
73
+ }
@@ -275,6 +275,10 @@
275
275
  "name": "Unknown store",
276
276
  "message": "Perhaps this store no longer exists."
277
277
  },
278
+ "EXPIRED_STORE": {
279
+ "name": "This store has expired.",
280
+ "message": "Purchase a new store and start selling without complications!"
281
+ },
278
282
  "UNKNOWN_BANK": {
279
283
  "name": "Unsupported bank",
280
284
  "message": "We do not yet support the bank \"{bank}\""
@@ -275,6 +275,10 @@
275
275
  "name": "Loja desconhecida",
276
276
  "message": "Talvez essa loja não exista mais."
277
277
  },
278
+ "EXPIRED_STORE": {
279
+ "name": "Esta loja expirou.",
280
+ "message": "Adquira uma nova loja e comece a vender sem complicações!"
281
+ },
278
282
  "UNKNOWN_BANK": {
279
283
  "name": "Banco não suportado",
280
284
  "message": "Ainda não suportamos o banco \"{received}\""
package/types/errors.d.ts CHANGED
@@ -96,6 +96,7 @@ export interface APIErrors {
96
96
  };
97
97
  'THIS_COUPON_IS_VALID_ONLY_FOR_THE_FIRST_BUY': {};
98
98
  'UNKNOWN_STORE': {};
99
+ 'EXPIRED_STORE': {};
99
100
  'UNKNOWN_BANK': {
100
101
  received: string;
101
102
  };
@@ -62,4 +62,10 @@ type SaleTransaction = {
62
62
  };
63
63
  };
64
64
  export type FullTransaction<TransactionMetadata = any> = BaseTransaction<TransactionMetadata> & SaleTransaction;
65
+ export type PartialTransaction = {
66
+ id: string;
67
+ base_value: number;
68
+ created_at: string;
69
+ status: 'approved' | 'cancelled' | 'expired' | 'pending' | 'refused' | 'rejected' | 'analysis';
70
+ };
65
71
  export {};