cecon-interfaces 1.2.6 → 1.2.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -42,9 +42,10 @@ export declare class InvoiceEntity implements IInvoice {
42
42
  pix: InvoicePixEntity | null;
43
43
  returnExpiredUrl: string;
44
44
  returnUrl: string;
45
+ sandbox: boolean;
45
46
  status: EInvoiceStatus;
46
- subscriptionId: string;
47
47
  subTotal: number;
48
+ subscriptionId: string;
48
49
  totalAmount: number;
49
50
  totalFee: number;
50
51
  totalOverPaid: number;
@@ -5,10 +5,10 @@ var general_1 = require("../../general");
5
5
  var enums_1 = require("../enums");
6
6
  var invoice_payer_entity_1 = require("./invoice-payer.entity");
7
7
  var InvoiceEntity = /** @class */ (function () {
8
- // #endregion Properties (42)
8
+ // #endregion Properties (43)
9
9
  // #region Constructors (1)
10
10
  function InvoiceEntity(data) {
11
- // #region Properties (42)
11
+ // #region Properties (43)
12
12
  this.addition = 0;
13
13
  this.bankSlip = null;
14
14
  this.bankSlipExtraDue = 3;
@@ -42,9 +42,10 @@ var InvoiceEntity = /** @class */ (function () {
42
42
  this.pix = null;
43
43
  this.returnExpiredUrl = '';
44
44
  this.returnUrl = '';
45
+ this.sandbox = false;
45
46
  this.status = enums_1.EInvoiceStatus.DRAFT;
46
- this.subscriptionId = '';
47
47
  this.subTotal = 0;
48
+ this.subscriptionId = '';
48
49
  this.totalAmount = 0;
49
50
  this.totalFee = 0;
50
51
  this.totalOverPaid = 0;
@@ -17,6 +17,7 @@ export interface IInvoice {
17
17
  createdAt: Date;
18
18
  creditCard: IInvoiceCreditCard | null;
19
19
  currency: string;
20
+ customerId: string | null;
20
21
  discount: number;
21
22
  dueDateAt: Date;
22
23
  email: string;
@@ -29,21 +30,21 @@ export interface IInvoice {
29
30
  notes: string;
30
31
  notificationUrl: string;
31
32
  orderId: string;
33
+ orders: IOrder[] | null;
32
34
  paidAt: Date | null;
33
35
  partnerId: string | null;
34
- customerId: string | null;
35
36
  password: string | null;
36
37
  payer: IInvoicePayer;
37
- orders: IOrder[] | null;
38
38
  paymentMethod: EPaymentType;
39
39
  paymentProvider: IPaymentProvider | null;
40
40
  phoneNumberNotification: string | null;
41
41
  pix: IInvoicePix | null;
42
42
  returnExpiredUrl: string;
43
43
  returnUrl: string;
44
+ sandbox: boolean;
44
45
  status: EInvoiceStatus;
45
- subscriptionId: string;
46
46
  subTotal: number;
47
+ subscriptionId: string;
47
48
  totalAmount: number;
48
49
  totalFee: number;
49
50
  totalOverPaid: number;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.2.06",
3
+ "version": "1.2.08",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,3 +1,4 @@
1
+ import { ECustomerInterval } from '../../customer';
1
2
  import { IInvoice } from '../../invoice';
2
3
  import { SubscriptionBaseEntity } from '../../subscription-base';
3
4
  import { ISubscriptionCustomer } from '../interfaces/i-subscription';
@@ -7,7 +8,9 @@ export declare class SubscriptionCustomerEntity extends SubscriptionBaseEntity i
7
8
  creditLimit: number;
8
9
  currentBalance: number;
9
10
  customerId: string | null;
11
+ customerInterval: ECustomerInterval;
10
12
  openedInvoices: IInvoice[];
13
+ preferedDueDate: number;
11
14
  profile: SubscriptionCustomerProfileEntity;
12
15
  constructor(data?: Partial<SubscriptionCustomerEntity>);
13
16
  }
@@ -16,20 +16,23 @@ var __extends = (this && this.__extends) || (function () {
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.SubscriptionCustomerEntity = void 0;
19
+ var customer_1 = require("../../customer");
19
20
  var subscription_base_1 = require("../../subscription-base");
20
21
  var subscription_customer_entity_1 = require("./subscription-customer.entity");
21
22
  var SubscriptionCustomerEntity = /** @class */ (function (_super) {
22
23
  __extends(SubscriptionCustomerEntity, _super);
23
- // #endregion Properties (6)
24
+ // #endregion Properties (8)
24
25
  // #region Constructors (1)
25
26
  function SubscriptionCustomerEntity(data) {
26
27
  var _this = _super.call(this, data) || this;
27
- // #region Properties (6)
28
+ // #region Properties (8)
28
29
  _this.amountUsed = 0;
29
30
  _this.creditLimit = 0;
30
31
  _this.currentBalance = 0;
31
32
  _this.customerId = null;
33
+ _this.customerInterval = customer_1.ECustomerInterval.MONTHLY;
32
34
  _this.openedInvoices = [];
35
+ _this.preferedDueDate = 7;
33
36
  _this.profile = new subscription_customer_entity_1.SubscriptionCustomerProfileEntity();
34
37
  if (data) {
35
38
  for (var key in data) {
@@ -1,9 +1,12 @@
1
+ import { ECustomerInterval } from '../../customer';
1
2
  import { IInvoice } from '../../invoice';
2
3
  import { ISubscriptionBase } from '../../subscription-base';
3
4
  import { ISubscriptionCustomerProfile } from './i-subscription-customer';
4
5
  export interface ISubscriptionCustomer extends ISubscriptionBase {
5
6
  profile: ISubscriptionCustomerProfile;
6
7
  creditLimit: number;
8
+ preferedDueDate: number;
9
+ customerInterval: ECustomerInterval;
7
10
  amountUsed: number;
8
11
  currentBalance: number;
9
12
  customerId: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.2.06",
3
+ "version": "1.2.08",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",