@intelact/driveup 2.4.9 → 2.5.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.
@@ -1,10 +1,26 @@
1
+ import { StatusType } from "@driveup/shared";
1
2
  import { CompanyPayment } from "./company-payment.model";
2
3
  import { Item } from "../item/item.model";
3
4
  export declare class CompanyPaymentMethod {
4
5
  id: number;
5
6
  name: string;
6
7
  icon: string;
8
+ /**
9
+ * Where the payment method stands
10
+ * - Pending: registered, still waiting for the provider to verify it
11
+ * - Active: verified by the provider, and the one the company is charged with
12
+ * - Inactive: verified by the provider, but replaced, deleted, expired or permanently declined
13
+ */
14
+ status: StatusType;
15
+ /**
16
+ * Whether this is the payment method the company is charged with
17
+ * @deprecated read {@link status} instead, this is kept for the clients that have not moved over yet
18
+ */
7
19
  active: boolean;
20
+ /**
21
+ * Whether the provider has yet to verify the payment method
22
+ * @deprecated read {@link status} instead, this is kept for the clients that have not moved over yet
23
+ */
8
24
  pending: boolean;
9
25
  details: Item[];
10
26
  warnings: string[];
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CompanyPaymentMethod = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
+ const shared_1 = require("@driveup/shared");
14
15
  const company_payment_model_1 = require("./company-payment.model");
15
16
  const item_model_1 = require("../item/item.model");
16
17
  class CompanyPaymentMethod {
@@ -33,6 +34,10 @@ __decorate([
33
34
  (0, class_transformer_1.Expose)(),
34
35
  __metadata("design:type", String)
35
36
  ], CompanyPaymentMethod.prototype, "icon", void 0);
37
+ __decorate([
38
+ (0, class_transformer_1.Expose)(),
39
+ __metadata("design:type", String)
40
+ ], CompanyPaymentMethod.prototype, "status", void 0);
36
41
  __decorate([
37
42
  (0, class_transformer_1.Expose)(),
38
43
  (0, class_transformer_1.Type)(() => Boolean),
@@ -1 +1 @@
1
- {"version":3,"file":"payment-method.model.js","sourceRoot":"","sources":["../../src/finance/payment-method.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,mEAAyD;AACzD,mDAA0C;AAE1C,MAAa,oBAAoB;IA0ChC,6DAA6D;IAE7D,YAAY,KAAqC;QAChD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA/CD,oDA+CC;AA5CA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;gDACR;AAGX;IADC,IAAA,0BAAM,GAAE;;kDACI;AAGb;IADC,IAAA,0BAAM,GAAE;;kDACI;AAIb;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;oDACJ;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;qDACH;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;;qDACD;AAGhB;IADC,IAAA,0BAAM,GAAE;;sDACU;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sCAAc,CAAC;;4DACM;AAMjC;IADC,IAAA,0BAAM,GAAE;;uEACyB;AAGlC;IADC,IAAA,0BAAM,GAAE;;qEACuB;AAGhC;IADC,IAAA,0BAAM,GAAE;;gEACkB"}
1
+ {"version":3,"file":"payment-method.model.js","sourceRoot":"","sources":["../../src/finance/payment-method.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,4CAA6C;AAC7C,mEAAyD;AACzD,mDAA0C;AAE1C,MAAa,oBAAoB;IA2DhC,6DAA6D;IAE7D,YAAY,KAAqC;QAChD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAhED,oDAgEC;AA7DA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;gDACR;AAGX;IADC,IAAA,0BAAM,GAAE;;kDACI;AAGb;IADC,IAAA,0BAAM,GAAE;;kDACI;AASb;IADC,IAAA,0BAAM,GAAE;;oDACU;AAQnB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;oDACJ;AAQhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;qDACH;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;;qDACD;AAGhB;IADC,IAAA,0BAAM,GAAE;;sDACU;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sCAAc,CAAC;;4DACM;AAMjC;IADC,IAAA,0BAAM,GAAE;;uEACyB;AAGlC;IADC,IAAA,0BAAM,GAAE;;qEACuB;AAGhC;IADC,IAAA,0BAAM,GAAE;;gEACkB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intelact/driveup",
3
- "version": "2.4.9",
3
+ "version": "2.5.0",
4
4
  "description": "Driveup Common",
5
5
  "author": "Intelact Solutions Ltd.",
6
6
  "main": "lib/index.js",