adamo-types 1.2.124-sit → 1.2.125-sit

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.
Files changed (45) hide show
  1. package/dist/bss/bearingpoint/customer/customer-account-individual.entity.d.ts +4 -0
  2. package/dist/bss/bearingpoint/customer/customer-account-individual.entity.js +20 -1
  3. package/dist/bss/bearingpoint/customer/customer-account-organization.entity.d.ts +6 -2
  4. package/dist/bss/bearingpoint/customer/customer-account-organization.entity.js +20 -2
  5. package/dist/bss/bearingpoint/customer/customer-account.entity.d.ts +4 -0
  6. package/dist/bss/bearingpoint/customer/customer-account.entity.js +20 -1
  7. package/dist/bss/constants/bss.constants.d.ts +0 -1
  8. package/dist/bss/constants/bss.constants.js +8 -10
  9. package/dist/bss/product/product.constants.js +2 -2
  10. package/dist/bss/product/product.entity.d.ts +4 -0
  11. package/dist/bss/product/product.entity.js +23 -1
  12. package/dist/common/constants/error.constants.d.ts +1 -0
  13. package/dist/common/constants/error.constants.js +2 -1
  14. package/dist/common/edge-bss/billing/req/create.entity.d.ts +4 -0
  15. package/dist/common/edge-bss/billing/req/create.entity.js +20 -1
  16. package/dist/common/edge-bss/customer/req/create.entity.d.ts +7 -0
  17. package/dist/common/edge-bss/customer/req/create.entity.js +31 -1
  18. package/dist/common/edge-zoho/sale-process/req/patch.entity.d.ts +15 -3
  19. package/dist/common/edge-zoho/sale-process/req/patch.entity.js +65 -13
  20. package/dist/common/helpers/helpers.d.ts +11 -0
  21. package/dist/common/helpers/helpers.js +32 -0
  22. package/dist/database/approval.entity.d.ts +3 -0
  23. package/dist/database/approval.entity.js +13 -1
  24. package/dist/database/lead.entity.d.ts +3 -0
  25. package/dist/database/lead.entity.js +17 -5
  26. package/dist/index.d.ts +0 -3
  27. package/dist/index.js +0 -8
  28. package/dist/sys03/approval/approval.entity.d.ts +35 -14
  29. package/dist/sys03/approval/approval.entity.js +90 -12
  30. package/dist/sys03/common/common.entity.d.ts +4 -0
  31. package/dist/sys03/common/common.entity.js +15 -1
  32. package/dist/sys03/constants/sys03.constants.d.ts +7 -5
  33. package/dist/sys03/constants/sys03.constants.js +38 -35
  34. package/dist/sys03/iban-validation/iban-validation.entity.d.ts +19 -3
  35. package/dist/sys03/iban-validation/iban-validation.entity.js +73 -2
  36. package/dist/sys03/sale-process/sale-process.entity.d.ts +8 -11
  37. package/dist/sys03/sale-process/sale-process.entity.js +12 -12
  38. package/dist/tsconfig.build.tsbuildinfo +1 -1
  39. package/dist/zoho/constants/zoho.constants.d.ts +1 -2
  40. package/dist/zoho/constants/zoho.constants.js +0 -1
  41. package/dist/zoho/sale-process/business-identification.entity.js +11 -2
  42. package/dist/zoho/sale-process/business-info.entity.d.ts +2 -2
  43. package/dist/zoho/sale-process/business-info.entity.js +1 -1
  44. package/dist/zoho/sale-process/customer-identification.entity.js +11 -2
  45. package/package.json +2 -1
@@ -2,6 +2,7 @@ import { PartyStateType, PersonTitle } from '../../constants';
2
2
  import { BpCustomerAccountContactMediumDto } from './customer-account-contact-medium.entity';
3
3
  import { BpCustomerAccountIdentificationDto } from './customer-account-identification.entity';
4
4
  import { BpRelatedEntityDto, BpRelatedPartyDto } from './related-party.entity';
5
+ import { Builder } from '../../../common/helpers/helpers';
5
6
  export declare class BpCustomerAccountIndividualDto {
6
7
  id?: string;
7
8
  state: PartyStateType;
@@ -17,3 +18,6 @@ export declare class BpCustomerAccountIndividualDto {
17
18
  relatedEntities?: BpRelatedEntityDto[];
18
19
  preferredLanguage: string;
19
20
  }
21
+ export declare class BpCustomerAccountIndividualDtoBuilder extends Builder<BpCustomerAccountIndividualDto> {
22
+ setDefaults(): BpCustomerAccountIndividualDto;
23
+ }
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.BpCustomerAccountIndividualDto = void 0;
12
+ exports.BpCustomerAccountIndividualDtoBuilder = exports.BpCustomerAccountIndividualDto = void 0;
13
13
  const openapi = require("@nestjs/swagger");
14
14
  const constants_1 = require("../../constants");
15
15
  const _validators_1 = require("../../../validators/index");
@@ -18,6 +18,8 @@ const class_validator_1 = require("class-validator");
18
18
  const customer_account_contact_medium_entity_1 = require("./customer-account-contact-medium.entity");
19
19
  const customer_account_identification_entity_1 = require("./customer-account-identification.entity");
20
20
  const related_party_entity_1 = require("./related-party.entity");
21
+ const helpers_1 = require("../../../common/helpers/helpers");
22
+ const faker_1 = require("@faker-js/faker");
21
23
  class BpCustomerAccountIndividualDto {
22
24
  static _OPENAPI_METADATA_FACTORY() {
23
25
  return { id: { required: false, type: () => String }, state: { required: true, enum: require("../../constants/bp.constants").PartyStateType }, title: { required: true, enum: require("../../constants/bp.constants").PersonTitle }, givenName: { required: true, type: () => String }, middleName: { required: false, type: () => String }, familyName: { required: true, type: () => String }, fullName: { required: false, type: () => String }, dateOfBirth: { required: true, type: () => String }, contactMediums: { required: false, type: () => [require("./customer-account-contact-medium.entity").BpCustomerAccountContactMediumDto] }, identifications: { required: false, type: () => [require("./customer-account-identification.entity").BpCustomerAccountIdentificationDto] }, relatedParties: { required: false, type: () => [require("./related-party.entity").BpRelatedPartyDto] }, relatedEntities: { required: false, type: () => [require("./related-party.entity").BpRelatedEntityDto] }, preferredLanguage: { required: true, type: () => String } };
@@ -91,3 +93,20 @@ __decorate([
91
93
  __metadata("design:type", String)
92
94
  ], BpCustomerAccountIndividualDto.prototype, "preferredLanguage", void 0);
93
95
  exports.BpCustomerAccountIndividualDto = BpCustomerAccountIndividualDto;
96
+ class BpCustomerAccountIndividualDtoBuilder extends helpers_1.Builder {
97
+ setDefaults() {
98
+ return {
99
+ id: faker_1.faker.string.uuid(),
100
+ state: faker_1.faker.helpers.enumValue(constants_1.PartyStateType),
101
+ title: faker_1.faker.helpers.enumValue(constants_1.PersonTitle),
102
+ givenName: faker_1.faker.person.firstName(),
103
+ familyName: faker_1.faker.person.lastName(),
104
+ dateOfBirth: faker_1.faker.date.anytime().toISOString(),
105
+ preferredLanguage: faker_1.faker.helpers.enumValue(constants_1.PreferredLanguage)
106
+ };
107
+ }
108
+ static _OPENAPI_METADATA_FACTORY() {
109
+ return {};
110
+ }
111
+ }
112
+ exports.BpCustomerAccountIndividualDtoBuilder = BpCustomerAccountIndividualDtoBuilder;
@@ -3,6 +3,7 @@ import { BpCustomerAccountContactMediumDto } from './customer-account-contact-me
3
3
  import { BpCustomerAccountIdentificationDto } from './customer-account-identification.entity';
4
4
  import { BpRelatedEntityDto, BpRelatedPartyDto } from './related-party.entity';
5
5
  import { BpCustomerAccountIndividualDto } from './customer-account-individual.entity';
6
+ import { Builder } from '../../../common/helpers/helpers';
6
7
  export declare class BpCustomerAccountOrganizationDto {
7
8
  id?: string;
8
9
  state: PartyStateType;
@@ -14,8 +15,11 @@ export declare class BpCustomerAccountOrganizationDto {
14
15
  legalEntity: boolean;
15
16
  customerAccount?: string;
16
17
  contactPerson?: BpCustomerAccountIndividualDto;
17
- contactMediums: BpCustomerAccountContactMediumDto[];
18
- identifications: BpCustomerAccountIdentificationDto[];
18
+ contactMediums?: BpCustomerAccountContactMediumDto[];
19
+ identifications?: BpCustomerAccountIdentificationDto[];
19
20
  relatedParties?: BpRelatedPartyDto[];
20
21
  relatedEntities?: BpRelatedEntityDto[];
21
22
  }
23
+ export declare class BpCustomerAccountOrganizationDtoBuilder extends Builder<BpCustomerAccountOrganizationDto> {
24
+ setDefaults(): BpCustomerAccountOrganizationDto;
25
+ }
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.BpCustomerAccountOrganizationDto = void 0;
12
+ exports.BpCustomerAccountOrganizationDtoBuilder = exports.BpCustomerAccountOrganizationDto = void 0;
13
13
  const openapi = require("@nestjs/swagger");
14
14
  const constants_1 = require("../../constants");
15
15
  const _validators_1 = require("../../../validators/index");
@@ -19,9 +19,11 @@ const customer_account_contact_medium_entity_1 = require("./customer-account-con
19
19
  const customer_account_identification_entity_1 = require("./customer-account-identification.entity");
20
20
  const related_party_entity_1 = require("./related-party.entity");
21
21
  const customer_account_individual_entity_1 = require("./customer-account-individual.entity");
22
+ const helpers_1 = require("../../../common/helpers/helpers");
23
+ const faker_1 = require("@faker-js/faker");
22
24
  class BpCustomerAccountOrganizationDto {
23
25
  static _OPENAPI_METADATA_FACTORY() {
24
- return { id: { required: false, type: () => String }, state: { required: true, enum: require("../../constants/bp.constants").PartyStateType }, businessNumber: { required: false, type: () => String }, tradingName: { required: true, type: () => String }, legalName: { required: false, type: () => String }, industryType: { required: true, type: () => String, enum: require("../../constants/bp.constants").IndustryType }, type: { required: true, enum: require("../../constants/bp.constants").CustomerAccountOrganizationEntityType }, legalEntity: { required: true, type: () => Boolean }, customerAccount: { required: false, type: () => String }, contactPerson: { required: false, type: () => require("./customer-account-individual.entity").BpCustomerAccountIndividualDto }, contactMediums: { required: true, type: () => [require("./customer-account-contact-medium.entity").BpCustomerAccountContactMediumDto] }, identifications: { required: true, type: () => [require("./customer-account-identification.entity").BpCustomerAccountIdentificationDto] }, relatedParties: { required: false, type: () => [require("./related-party.entity").BpRelatedPartyDto] }, relatedEntities: { required: false, type: () => [require("./related-party.entity").BpRelatedEntityDto] } };
26
+ return { id: { required: false, type: () => String }, state: { required: true, enum: require("../../constants/bp.constants").PartyStateType }, businessNumber: { required: false, type: () => String }, tradingName: { required: true, type: () => String }, legalName: { required: false, type: () => String }, industryType: { required: true, type: () => String, enum: require("../../constants/bp.constants").IndustryType }, type: { required: true, enum: require("../../constants/bp.constants").CustomerAccountOrganizationEntityType }, legalEntity: { required: true, type: () => Boolean }, customerAccount: { required: false, type: () => String }, contactPerson: { required: false, type: () => require("./customer-account-individual.entity").BpCustomerAccountIndividualDto }, contactMediums: { required: false, type: () => [require("./customer-account-contact-medium.entity").BpCustomerAccountContactMediumDto] }, identifications: { required: false, type: () => [require("./customer-account-identification.entity").BpCustomerAccountIdentificationDto] }, relatedParties: { required: false, type: () => [require("./related-party.entity").BpRelatedPartyDto] }, relatedEntities: { required: false, type: () => [require("./related-party.entity").BpRelatedEntityDto] } };
25
27
  }
26
28
  }
27
29
  __decorate([
@@ -97,3 +99,19 @@ __decorate([
97
99
  __metadata("design:type", Array)
98
100
  ], BpCustomerAccountOrganizationDto.prototype, "relatedParties", void 0);
99
101
  exports.BpCustomerAccountOrganizationDto = BpCustomerAccountOrganizationDto;
102
+ class BpCustomerAccountOrganizationDtoBuilder extends helpers_1.Builder {
103
+ setDefaults() {
104
+ return {
105
+ id: faker_1.faker.string.uuid(),
106
+ state: faker_1.faker.helpers.enumValue(constants_1.PartyStateType),
107
+ tradingName: faker_1.faker.company.name(),
108
+ industryType: faker_1.faker.helpers.enumValue(constants_1.IndustryType),
109
+ type: faker_1.faker.helpers.enumValue(constants_1.CustomerAccountOrganizationEntityType),
110
+ legalEntity: faker_1.faker.datatype.boolean(0.9)
111
+ };
112
+ }
113
+ static _OPENAPI_METADATA_FACTORY() {
114
+ return {};
115
+ }
116
+ }
117
+ exports.BpCustomerAccountOrganizationDtoBuilder = BpCustomerAccountOrganizationDtoBuilder;
@@ -1,6 +1,7 @@
1
1
  import { AccountState, CustomerType, PreferredLanguage, Timezone } from '../../constants';
2
2
  import { BpCustomerAccountParametersDto } from './customer-account-parameters.entity';
3
3
  import { BpRelatedPartyDto } from './related-party.entity';
4
+ import { Builder } from '../../../common/helpers/helpers';
4
5
  export declare class BpCustomerAccountDto {
5
6
  id?: string;
6
7
  billingAccount?: string;
@@ -13,3 +14,6 @@ export declare class BpCustomerAccountDto {
13
14
  creationDate?: string;
14
15
  channel: string;
15
16
  }
17
+ export declare class BpCustomerAccountDtoBuilder extends Builder<BpCustomerAccountDto> {
18
+ setDefaults(): BpCustomerAccountDto;
19
+ }
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.BpCustomerAccountDto = void 0;
12
+ exports.BpCustomerAccountDtoBuilder = exports.BpCustomerAccountDto = void 0;
13
13
  const openapi = require("@nestjs/swagger");
14
14
  const constants_1 = require("../../constants");
15
15
  const _validators_1 = require("../../../validators/index");
@@ -17,6 +17,8 @@ const class_transformer_1 = require("class-transformer");
17
17
  const class_validator_1 = require("class-validator");
18
18
  const customer_account_parameters_entity_1 = require("./customer-account-parameters.entity");
19
19
  const related_party_entity_1 = require("./related-party.entity");
20
+ const helpers_1 = require("../../../common/helpers/helpers");
21
+ const faker_1 = require("@faker-js/faker");
20
22
  class BpCustomerAccountDto {
21
23
  static _OPENAPI_METADATA_FACTORY() {
22
24
  return { id: { required: false, type: () => String }, billingAccount: { required: false, type: () => String }, state: { required: false, enum: require("../../constants/bp.constants").AccountState }, type: { required: true, type: () => String, enum: require("../../constants/bp.constants").CustomerType }, parameters: { required: false, type: () => Object }, preferredLanguage: { required: true, enum: require("../../constants/bp.constants").PreferredLanguage }, timezone: { required: true, enum: require("../../constants/bp.constants").Timezone }, relatedParties: { required: false, type: () => [require("./related-party.entity").BpRelatedPartyDto] }, creationDate: { required: false, type: () => String }, channel: { required: true, type: () => String } };
@@ -75,3 +77,20 @@ __decorate([
75
77
  __metadata("design:type", String)
76
78
  ], BpCustomerAccountDto.prototype, "channel", void 0);
77
79
  exports.BpCustomerAccountDto = BpCustomerAccountDto;
80
+ class BpCustomerAccountDtoBuilder extends helpers_1.Builder {
81
+ setDefaults() {
82
+ return {
83
+ id: faker_1.faker.string.alphanumeric(10),
84
+ billingAccount: faker_1.faker.string.alphanumeric(10),
85
+ state: faker_1.faker.helpers.enumValue(constants_1.AccountState),
86
+ type: faker_1.faker.helpers.enumValue(constants_1.CustomerType),
87
+ preferredLanguage: faker_1.faker.helpers.enumValue(constants_1.PreferredLanguage),
88
+ timezone: faker_1.faker.helpers.enumValue(constants_1.Timezone),
89
+ channel: faker_1.faker.word.noun(10).toUpperCase()
90
+ };
91
+ }
92
+ static _OPENAPI_METADATA_FACTORY() {
93
+ return {};
94
+ }
95
+ }
96
+ exports.BpCustomerAccountDtoBuilder = BpCustomerAccountDtoBuilder;
@@ -41,7 +41,6 @@ export declare enum CacheKeyType {
41
41
  CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_STEPS_SHOPPING_CART = "customer-product-multiple-transition:steps:shopping-cart",
42
42
  DROPDOWN = "dropdown",
43
43
  JOB_SALE_PROCESS = "job-sale-process",
44
- JOB_SALE_PROCESS_FAILED = "job-sale-process-failed",
45
44
  LOCK_PRODUCT_CATALOG = "lock#product-catalog",
46
45
  PRODUCT_CHARACTERISTIC_EQUIVALENCE = "product-characteristic-equivalence",
47
46
  PRODUCT_TRANSITION_CONFIGURATION = "product-transition-configuration",
@@ -57,7 +57,6 @@ var CacheKeyType;
57
57
  CacheKeyType["CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_STEPS_SHOPPING_CART"] = "customer-product-multiple-transition:steps:shopping-cart";
58
58
  CacheKeyType["DROPDOWN"] = "dropdown";
59
59
  CacheKeyType["JOB_SALE_PROCESS"] = "job-sale-process";
60
- CacheKeyType["JOB_SALE_PROCESS_FAILED"] = "job-sale-process-failed";
61
60
  CacheKeyType["LOCK_PRODUCT_CATALOG"] = "lock#product-catalog";
62
61
  CacheKeyType["PRODUCT_CHARACTERISTIC_EQUIVALENCE"] = "product-characteristic-equivalence";
63
62
  CacheKeyType["PRODUCT_TRANSITION_CONFIGURATION"] = "product-transition-configuration";
@@ -85,18 +84,18 @@ exports.CacheKeyTypeTtl = {
85
84
  [CacheKeyType.AMS_APARTMENT]: 60 * 60,
86
85
  [CacheKeyType.AMS_AREA_V2]: 60 * 60,
87
86
  [CacheKeyType.AMS_ZIP_V2]: 60 * 60,
88
- [CacheKeyType.AVAILABLE_PRODUCTS]: 0,
87
+ [CacheKeyType.AVAILABLE_PRODUCTS]: 60 * 60 * 24 * 90,
89
88
  [CacheKeyType.BSS_ADDRESS]: 60 * 60,
90
- [CacheKeyType.BSS_BILL_TYPE]: 0,
89
+ [CacheKeyType.BSS_BILL_TYPE]: 60 * 60 * 24 * 90,
91
90
  [CacheKeyType.BSS_CUSTOMER]: 60 * 60,
92
- [CacheKeyType.BSS_INSTALMENT_CHARGE]: 0,
93
- [CacheKeyType.BSS_ONCE_ONLY_CHARGE]: 0,
94
- [CacheKeyType.BSS_RECURRING_CHARGE]: 0,
91
+ [CacheKeyType.BSS_INSTALMENT_CHARGE]: 60 * 60 * 24 * 90,
92
+ [CacheKeyType.BSS_ONCE_ONLY_CHARGE]: 60 * 60 * 24 * 90,
93
+ [CacheKeyType.BSS_RECURRING_CHARGE]: 60 * 60 * 24 * 90,
95
94
  [CacheKeyType.BSS_SETTLEMENT]: 60 * 15,
96
- [CacheKeyType.BSS_TERMINATION_CHARGE]: 0,
95
+ [CacheKeyType.BSS_TERMINATION_CHARGE]: 60 * 60 * 24 * 90,
97
96
  [CacheKeyType.BSS_SHOPPING_CART]: 60 * 60 * 24,
98
97
  [CacheKeyType.BSS_TASK_DEFINITIONS]: 60 * 60 * 24,
99
- [CacheKeyType.BUNDLE]: 0,
98
+ [CacheKeyType.BUNDLE]: 60 * 60 * 24 * 90,
100
99
  [CacheKeyType.BUNDLE_CHARACTERISTICS_BINDING_PERIOD]: 60 * 60,
101
100
  [CacheKeyType.BUNDLE_NAME_DISPLAY_NAME]: 60 * 60,
102
101
  [CacheKeyType.CONFIGURATION]: 60 * 60 * 24,
@@ -104,8 +103,7 @@ exports.CacheKeyTypeTtl = {
104
103
  [CacheKeyType.CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_PRODUCT]: 60 * 60 * 24 * 30,
105
104
  [CacheKeyType.CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_STEPS_SHOPPING_CART]: 60 * 60 * 24,
106
105
  [CacheKeyType.DROPDOWN]: 60 * 60 * 24,
107
- [CacheKeyType.JOB_SALE_PROCESS]: 0,
108
- [CacheKeyType.JOB_SALE_PROCESS_FAILED]: 0,
106
+ [CacheKeyType.JOB_SALE_PROCESS]: 60 * 60 * 24 * 30,
109
107
  [CacheKeyType.LOCK_PRODUCT_CATALOG]: 60 * 15,
110
108
  [CacheKeyType.PRODUCT_TRANSITION_CONFIGURATION]: 60 * 60 * 24,
111
109
  [CacheKeyType.PRODUCT_CHARACTERISTIC_EQUIVALENCE]: 60 * 60 * 24,
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ProductInventoryStateToBpProductInventoryState = exports.BpProductInventoryStateToProductInventoryState = exports.BpServiceNameToProductType = exports.ProductInventoryItemRelationshipType = exports.ProductInventoryState = void 0;
4
4
  const constants_1 = require("../../common/constants");
5
- const src_1 = require("../..");
5
+ const _helpers_1 = require("../../common/helpers/helpers");
6
6
  var ProductInventoryState;
7
7
  (function (ProductInventoryState) {
8
8
  ProductInventoryState["PENDING_ACTIVATE"] = "PENDING_ACTIVATE";
@@ -29,4 +29,4 @@ exports.BpProductInventoryStateToProductInventoryState = {
29
29
  Active: ProductInventoryState.ACTIVE,
30
30
  Disconnected: ProductInventoryState.TERMINATED
31
31
  };
32
- exports.ProductInventoryStateToBpProductInventoryState = (0, src_1.invertEnum)({ enumObject: exports.BpProductInventoryStateToProductInventoryState });
32
+ exports.ProductInventoryStateToBpProductInventoryState = (0, _helpers_1.invertEnum)({ enumObject: exports.BpProductInventoryStateToProductInventoryState });
@@ -5,6 +5,7 @@ import { ShoppingCartConfigurationAddressResDto, ShoppingCartInfoServiceCharacte
5
5
  import { DependencyResDto } from '../../sys03/storage';
6
6
  import { ProductInventoryItemCharacteristicStateType, ProductInventoryItemRelationshipType, ProductInventoryState } from './product.constants';
7
7
  import { ShoppingCartParametersDto } from '../bearingpoint/shopping-cart';
8
+ import { Builder } from '../../common/helpers/helpers';
8
9
  export declare class BpProductOfferingsResDto {
9
10
  list: ProductDto[];
10
11
  }
@@ -99,6 +100,9 @@ export declare class ProductInventoryItemDto {
99
100
  activatedAt: string;
100
101
  terminatedAt: string;
101
102
  }
103
+ export declare class ProductInventoryItemDtoBuilder extends Builder<ProductInventoryItemDto> {
104
+ setDefaults(): ProductInventoryItemDto;
105
+ }
102
106
  export declare class ProductInventoryDto {
103
107
  records: ProductInventoryItemDto[];
104
108
  total: number;
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProductFilteredProductsDto = exports.ProductFilteredProductDto = exports.FilterBundleByShoppingCartParametersDto = exports.ProductInventoryDto = exports.ProductInventoryItemDto = exports.ProductInventoryItemRelationshipDto = exports.ProductInventoryItemCharacteristicDto = exports.BpProductOfferingsResDto = void 0;
3
+ exports.ProductFilteredProductsDto = exports.ProductFilteredProductDto = exports.FilterBundleByShoppingCartParametersDto = exports.ProductInventoryDto = exports.ProductInventoryItemDtoBuilder = exports.ProductInventoryItemDto = exports.ProductInventoryItemRelationshipDto = exports.ProductInventoryItemCharacteristicDto = exports.BpProductOfferingsResDto = void 0;
4
4
  const openapi = require("@nestjs/swagger");
5
+ const product_constants_1 = require("./product.constants");
6
+ const helpers_1 = require("../../common/helpers/helpers");
7
+ const faker_1 = require("@faker-js/faker");
5
8
  class BpProductOfferingsResDto {
6
9
  static _OPENAPI_METADATA_FACTORY() {
7
10
  return { list: { required: true, type: () => [require("../bearingpoint/product.entity").ProductDto] } };
@@ -29,6 +32,25 @@ class ProductInventoryItemDto {
29
32
  }
30
33
  }
31
34
  exports.ProductInventoryItemDto = ProductInventoryItemDto;
35
+ class ProductInventoryItemDtoBuilder extends helpers_1.Builder {
36
+ setDefaults() {
37
+ return {
38
+ id: faker_1.faker.string.numeric(4),
39
+ billingAccount: faker_1.faker.string.numeric(10),
40
+ bundle: faker_1.faker.datatype.boolean(),
41
+ state: faker_1.faker.helpers.enumValue(product_constants_1.ProductInventoryState),
42
+ completenessState: faker_1.faker.string.alpha(10),
43
+ name: faker_1.faker.commerce.productName(),
44
+ displayName: faker_1.faker.commerce.productName(),
45
+ activatedAt: faker_1.faker.date.anytime().toISOString(),
46
+ terminatedAt: faker_1.faker.date.anytime().toISOString()
47
+ };
48
+ }
49
+ static _OPENAPI_METADATA_FACTORY() {
50
+ return {};
51
+ }
52
+ }
53
+ exports.ProductInventoryItemDtoBuilder = ProductInventoryItemDtoBuilder;
32
54
  class ProductInventoryDto {
33
55
  static _OPENAPI_METADATA_FACTORY() {
34
56
  return { records: { required: true, type: () => [require("./product.entity").ProductInventoryItemDto] }, total: { required: true, type: () => Number } };
@@ -185,6 +185,7 @@ export declare const E_SALE_PROCESS_IBAN_VALIDATION_REJECTED = "E_SALE_PROCESS_I
185
185
  export declare const E_SALE_PROCESS_IBAN_VALIDATION_PENDING = "E_SALE_PROCESS_IBAN_VALIDATION_PENDING";
186
186
  export declare const E_SALE_PROCESS_IBAN_VALIDATION_UNHANDLED_STATUS = "E_SALE_PROCESS_IBAN_VALIDATION_UNHANDLED_STATUS";
187
187
  export declare const E_SALE_PROCESS_FORBIDDEN_STATUS = "E_SALE_PROCESS_FORBIDDEN_STATUS";
188
+ export declare const E_SALE_PROCESS_FORBIDDEN_APPROVAL = "E_SALE_PROCESS_FORBIDDEN_APPROVAL";
188
189
  export declare const E_APPROVAL_IBAN_VALIDATION_REJECTED = "E_APPROVAL_IBAN_VALIDATION_REJECTED";
189
190
  export declare const E_APPROVAL_IBAN_VALIDATION_UNSUPPORTED = "E_APPROVAL_IBAN_VALIDATION_UNSUPPORTED";
190
191
  export declare const E_APPROVAL_IBAN_VALIDATION_ERROR = "E_APPROVAL_IBAN_VALIDATION_ERROR";
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.E_CREATE_MANDATE = exports.E_UPDATE_BILLING_ACCOUNT = exports.E_CREATE_BILLING_ACCOUNT = exports.E_UPLOAD_CUSTOMER_ACCOUNT_DOCUMENT = exports.E_CREATE_CUSTOMER_ACCOUNT_NOTE = exports.E_UPDATE_CUSTOMER_ACCOUNT = exports.E_CREATE_CUSTOMER_ACCOUNT = exports.E_FETCH_CUSTOMER_ACCOUNT = exports.E_FETCH_ADDRESS = exports.E_CREATE_ADDRESS = exports.E_FIBER_NOT_AVAILABLE_FOR_THIS_NETWORK = exports.E_UPDATE_SHOPPING_CART_CONFIGURATION = exports.E_CIF_VALIDATION = exports.E_NIE_VALIDATION = exports.E_DNI_VALIDATION = exports.E_SET_SHOPPING_CART_PROMOTIONS = exports.E_SET_SHOPPING_CART_CONTRACT = exports.E_FETCH_AVAILABLE_NUMBERS_FROM_POOL = exports.E_PROVINCE_WITHOUT_PREFIXES = exports.E_SERVER = exports.E_CONNECTION_REFUSED = exports.E_VALIDATION = exports.E_BODY_NOT_OBJECT = exports.E_BODY_NOT_ARRAY = exports.E_BODY_NOT_PROVIDED = exports.E_NO_CHANNEL_SELECTED = exports.E_CHANGE_CHANNEL = exports.E_BP = exports.E_BP_INTERNAL_SERVER_ERROR = exports.E_UPDATE_SHOPPING_CART_EXTRAS = exports.E_EMPTY_SHOPPING_CART = exports.E_BUNDLE_CONFIGURATION_ATTRIBUTE_MISMATCHING = exports.E_PERSIST_SHOPPING_CART = exports.E_SAVE_SHOPPING_CART = exports.E_CREATE_SHOPPING_CART = exports.E_FETCH_PRODUCT_DEFAULT_SUMMARY = exports.E_FETCH_SHOPPING_CART_TRANSITION_ONLY_MOBILES = exports.E_FETCH_SHOPPING_CART_MODIFICATION = exports.E_FETCH_SHOPPING_CART_CONFIGURATION = exports.E_FETCH_SHOPPING_CART_SUMMARY = exports.E_FETCH_SHOPPING_CART_AVAILABLE_EXTRAS = exports.E_FETCH_SHOPPING_CART_AVAILABLE_PRODUCT = exports.E_FETCH_SHOPPING_CART_AVAILABLE_PRODUCTS = exports.E_FETCH_PRODUCT_OFFERINGS = exports.E_ASSIGN_SALESPERSON = exports.E_ASSIGN_ROLE_TENENT = exports.E_CREATE_USER = exports.E_UPDATE_PASSWORD = exports.E_ASSIGN_CHANNELS = exports.E_LOGIN = void 0;
4
4
  exports.E_FETCH_LOOKUP_OPTIONS = exports.E_INVALID_SALE_PROCESS_STATUS = exports.E_USER_ROLE_UNKNOWN = exports.E_USER_WITHOUT_ROLE = exports.E_RESERVE_NUMBER_FROM_POOL = exports.E_WHOLESALE_APARTMENT_BLACKLISTED = exports.E_USER_SALE_PROCESS_PERMISSION = exports.E_UPDATE_CACHE_RECORD = exports.E_DELETE_CACHE_RECORD = exports.E_UPDATE_PRODUCT_CATALOG = exports.E_DELETE_PRODUCT_CATALOG = exports.E_CREATE_CUSTOMER_ACCOUNT_HISTORY = exports.E_FETCH_ORGANIZATION_PARTY = exports.E_FETCH_INDIVIDUAL_PARTY = exports.E_FETCH_PAYMENT_METHOD = exports.E_FETCH_MANDATE = exports.E_FETCH_BILLING_ACCOUNT = exports.E_FETCH_PRODUCT_INVENTORY = exports.E_FETCH_CUSTOMERS = exports.E_FETCH_ORGANIZATION_PARTIES = exports.E_FETCH_INDIVIDUAL_PARTIES = exports.E_DOWNLOAD_INVOICE = exports.E_FETCH_BILLING_ACCOUNT_DETAILS = exports.E_INVALID_IBAN_ACCOUNT_NUMBER_CONTROL_CODE = exports.E_INVALID_IBAN_MOD = exports.E_INVALID_IBAN_FORMAT = exports.E_INVALID_IBAN_LENGTH = exports.E_INVALID_IBAN_ISO_CODE = exports.E_IBAN_SUPPORTED_COUNTRIES_ARE_REQUIRED = exports.E_IBAN_IS_REQUIRED = exports.E_IBAN_COUNTRY_NOT_SUPPORTED = exports.E_SPAIN_NOT_ALLOWED = exports.E_EMAIL_INVALID_FORMAT = exports.E_PHONE_INVALID_FORMAT = exports.E_PHONE_INVALID_LENGTH = exports.E_VALIDATE_SHOPPING_CART = exports.E_FETCH_CHANNEL_USERS = exports.E_SFTP_DOWNLOAD = exports.E_SFTP_UPLOAD = exports.E_SFTP_LIST = exports.E_SFTP_CONNECT = exports.E_FTP_RENAME = exports.E_FTP_REMOVE = exports.E_FTP_DOWNLOAD = exports.E_FTP_UPLOAD = exports.E_SUBMIT_SHOPPING_CART = exports.E_FETCH_SHOPPING_CART = exports.E_UPDATE_PAYMENT_METHOD = exports.E_CREATE_PAYMENT_METHOD = exports.E_UPDATE_MANDATE = void 0;
5
5
  exports.E_FETCH_TASK = exports.E_CREATE_TASK = exports.E_DIGITEL_PROCESS_ERROR = exports.E_APPROVAL_FORBIDDEN_VALIDATION = exports.E_APPROVAL_FORBIDDEN_STATUS = exports.E_APPROVAL_DATA_WITHOUT_CHANGES = exports.E_APPROVAL_DATA_WITHOUT_RESPONSE = exports.E_SALE_PROCESS_PENDING_APPROVAL_UNSOLVED = exports.E_SALE_PROCESS_PENDING_APPROVAL = exports.E_CSV_INVALID_RECORDS = exports.E_CSV_INVALID_RECORD_LENGTH = exports.E_PARSE_CSV = exports.E_PUT_LOOKUP_OPTIONS = exports.E_USER_INACTIVE = exports.E_USER_WITHOUT_TENANTS = exports.E_USER_WITH_EMPTY_WORKGROUP_PERMISSIONS = exports.E_USER_WITHOUT_WORKGROUPS = exports.E_USER_WITHOUT_AUTH = exports.E_BI_SALES_EXTRACTION = exports.E_CUSTOMER_WITHOUT_RELATED_PARTY = exports.E_FETCH_PRODUCT_ORDER = exports.E_FETCH_PRODUCT_ORDERS = exports.E_SALE_PROCESS_DOCUMENTS_REQUIRED = exports.E_SALE_PROCESS_UNKNOWN_COMPANY_TYPE = exports.E_SALE_PROCESS_UNKNOWN_CUSTOMER_TYPE = exports.E_SALE_PROCESS_BUSINESS_CUSTOMER_WITHOUT_INFO = exports.E_SALE_PROCESS_BUSINESS_CUSTOMER_WITHOUT_IDENTIFICATION = exports.E_SALE_PROCESS_RESIDENTIAL_CUSTOMER_WITHOUT_IDENTIFICATION = exports.E_SALE_PROCESS_WITHOUT_CHANGES = exports.E_SALE_PROCESS_WITHOUT_IBAN_VALIDATION_ID = exports.E_SALE_PROCESS_WITHOUT_SHOPPING_CART = exports.E_APPLY_CHARGE = exports.E_PRODUCT_SERVICE_MISSING = exports.E_SALE_PROCESS_APARTMENT_BREACHES_RETAIL_EXCLUSIVITY_RULES = exports.E_APARTMENT_BREACHES_RETAIL_EXCLUSIVITY_RULES = exports.E_ADDRESS_BREACHES_RETAIL_EXCLUSIVITY_RULES = exports.E_UPDATE_PRODUCT_CATALOG_CACHE = exports.E_DUPLICATE_ENTRY = exports.E_UNHANDLED_KEY = exports.E_FETCH_CUSTOMER_ACCOUNT_FINANCE_BALANCES = exports.E_LOGIN_MAX_ATTEMPTS_REACHED = exports.E_TOO_MANY_REQUESTS = exports.E_UPLOAD_SALE_PROCESS_CONTRACT = exports.E_FETCH_USER_CHANNELS = exports.E_UNAUTHORIZED = exports.E_USER_WITHOUT_CHANNELS = exports.E_FETCH_SHOPPING_CART_PROMOTIONS_AND_CONTRACTS = exports.E_FETCH_SHOPPING_CART_FEATURES = exports.E_NOT_BASE_BUNDLE = exports.E_NO_SELECTED_CHANNEL = void 0;
6
- exports.E_SHOPPING_CART_DEPRECATED = exports.E_APPROVAL_MODIFY_DISABLED_IBAN_VALIDATION_MAX_INTENTS_REACHED = exports.E_APPROVAL_WITHOUT_VALIDATION = exports.E_APPROVAL_IBAN_VALIDATION_UNHANDLED_STATUS = exports.E_APPROVAL_IBAN_VALIDATION_MAX_INTENTS_REACHED = exports.E_APPROVAL_IBAN_VALIDATION_PENDING = exports.E_APPROVAL_IBAN_VALIDATION_ERROR = exports.E_APPROVAL_IBAN_VALIDATION_UNSUPPORTED = exports.E_APPROVAL_IBAN_VALIDATION_REJECTED = exports.E_SALE_PROCESS_FORBIDDEN_STATUS = exports.E_SALE_PROCESS_IBAN_VALIDATION_UNHANDLED_STATUS = exports.E_SALE_PROCESS_IBAN_VALIDATION_PENDING = exports.E_SALE_PROCESS_IBAN_VALIDATION_REJECTED = exports.E_ORDER_NOT_BELONG_TO_CUSTOMER = exports.E_CUSTOMER_CHECK_DEBT = exports.E_CHARACTERISTIC_NOT_CHANGEABLE = exports.E_BUNDLE_NOT_AVAILABLE_IN_CHANNEL = exports.E_CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_PROCESS_UNKNOWN_STEP = exports.E_CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_PROCESS_WITHOUT_STEPS = exports.E_CUSTOMER_NEW_EXTRAS_PROCESS_OWNER_MISMATCHING = exports.E_CUSTOMER_PRODUCT_TRANSITION_PROCESS_OWNER_MISMATCHING = exports.E_CUSTOMER_PRODUCT_MODIFICATION_PROCESS_OWNER_MISMATCHING = exports.E_REVIEW_CUSTOMER_CHARGES_AND_CREDITS_NEGATIVE_INVOICE = exports.E_REVIEW_CUSTOMER_CHARGES_AND_CREDITS = exports.E_CUSTOMER_WITHOUT_VALID_APARTMENT = exports.E_CUSTOMER_HAS_ALL_EXTRAS = exports.E_CUSTOMER_NEW_EXTRAS_PROCESS_ALREADY_EXISTS = exports.E_CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_PROCESS_ALREADY_EXISTS = exports.E_CUSTOMER_PRODUCT_TRANSITION_PROCESS_ALREADY_EXISTS = exports.E_CUSTOMER_PRODUCT_MODIFICATION_PROCESS_ALREADY_EXISTS = exports.E_UNKNOWN_CACHE_KEY = exports.E_FILTER_PRODUCT_BY_PARAMETERS = exports.E_FETCH_CHARGES_AND_CREDITS = exports.E_FETCH_SERVICE_INVENTORY_BY_ID = exports.E_FETCH_PRODUCT_INVENTORY_BY_ID = exports.E_FETCH_CUSTOMER_PRODUCTS = exports.E_FETCH_BILLS = exports.E_PATCH_BILLING_STATE = exports.E_FETCH_ORDER_HIERARCHY = exports.E_FETCH_ORDERS = exports.E_FETCH_CUSTOMER_NOTES = exports.E_FILTERS_REQUIRED = exports.E_SEARCH_CUSTOMERS = exports.E_RESOLVE_TASKS = exports.E_FETCH_TASKS = exports.E_FETCH_TASK_NOTES = void 0;
6
+ exports.E_SHOPPING_CART_DEPRECATED = exports.E_APPROVAL_MODIFY_DISABLED_IBAN_VALIDATION_MAX_INTENTS_REACHED = exports.E_APPROVAL_WITHOUT_VALIDATION = exports.E_APPROVAL_IBAN_VALIDATION_UNHANDLED_STATUS = exports.E_APPROVAL_IBAN_VALIDATION_MAX_INTENTS_REACHED = exports.E_APPROVAL_IBAN_VALIDATION_PENDING = exports.E_APPROVAL_IBAN_VALIDATION_ERROR = exports.E_APPROVAL_IBAN_VALIDATION_UNSUPPORTED = exports.E_APPROVAL_IBAN_VALIDATION_REJECTED = exports.E_SALE_PROCESS_FORBIDDEN_APPROVAL = exports.E_SALE_PROCESS_FORBIDDEN_STATUS = exports.E_SALE_PROCESS_IBAN_VALIDATION_UNHANDLED_STATUS = exports.E_SALE_PROCESS_IBAN_VALIDATION_PENDING = exports.E_SALE_PROCESS_IBAN_VALIDATION_REJECTED = exports.E_ORDER_NOT_BELONG_TO_CUSTOMER = exports.E_CUSTOMER_CHECK_DEBT = exports.E_CHARACTERISTIC_NOT_CHANGEABLE = exports.E_BUNDLE_NOT_AVAILABLE_IN_CHANNEL = exports.E_CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_PROCESS_UNKNOWN_STEP = exports.E_CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_PROCESS_WITHOUT_STEPS = exports.E_CUSTOMER_NEW_EXTRAS_PROCESS_OWNER_MISMATCHING = exports.E_CUSTOMER_PRODUCT_TRANSITION_PROCESS_OWNER_MISMATCHING = exports.E_CUSTOMER_PRODUCT_MODIFICATION_PROCESS_OWNER_MISMATCHING = exports.E_REVIEW_CUSTOMER_CHARGES_AND_CREDITS_NEGATIVE_INVOICE = exports.E_REVIEW_CUSTOMER_CHARGES_AND_CREDITS = exports.E_CUSTOMER_WITHOUT_VALID_APARTMENT = exports.E_CUSTOMER_HAS_ALL_EXTRAS = exports.E_CUSTOMER_NEW_EXTRAS_PROCESS_ALREADY_EXISTS = exports.E_CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_PROCESS_ALREADY_EXISTS = exports.E_CUSTOMER_PRODUCT_TRANSITION_PROCESS_ALREADY_EXISTS = exports.E_CUSTOMER_PRODUCT_MODIFICATION_PROCESS_ALREADY_EXISTS = exports.E_UNKNOWN_CACHE_KEY = exports.E_FILTER_PRODUCT_BY_PARAMETERS = exports.E_FETCH_CHARGES_AND_CREDITS = exports.E_FETCH_SERVICE_INVENTORY_BY_ID = exports.E_FETCH_PRODUCT_INVENTORY_BY_ID = exports.E_FETCH_CUSTOMER_PRODUCTS = exports.E_FETCH_BILLS = exports.E_PATCH_BILLING_STATE = exports.E_FETCH_ORDER_HIERARCHY = exports.E_FETCH_ORDERS = exports.E_FETCH_CUSTOMER_NOTES = exports.E_FILTERS_REQUIRED = exports.E_SEARCH_CUSTOMERS = exports.E_RESOLVE_TASKS = exports.E_FETCH_TASKS = exports.E_FETCH_TASK_NOTES = void 0;
7
7
  exports.E_LOGIN = 'E_LOGIN';
8
8
  exports.E_ASSIGN_CHANNELS = 'E_ASSIGN_CHANNELS';
9
9
  exports.E_UPDATE_PASSWORD = 'E_UPDATE_PASSWORD';
@@ -191,6 +191,7 @@ exports.E_SALE_PROCESS_IBAN_VALIDATION_REJECTED = 'E_SALE_PROCESS_IBAN_VALIDATIO
191
191
  exports.E_SALE_PROCESS_IBAN_VALIDATION_PENDING = 'E_SALE_PROCESS_IBAN_VALIDATION_PENDING';
192
192
  exports.E_SALE_PROCESS_IBAN_VALIDATION_UNHANDLED_STATUS = 'E_SALE_PROCESS_IBAN_VALIDATION_UNHANDLED_STATUS';
193
193
  exports.E_SALE_PROCESS_FORBIDDEN_STATUS = 'E_SALE_PROCESS_FORBIDDEN_STATUS';
194
+ exports.E_SALE_PROCESS_FORBIDDEN_APPROVAL = 'E_SALE_PROCESS_FORBIDDEN_APPROVAL';
194
195
  exports.E_APPROVAL_IBAN_VALIDATION_REJECTED = 'E_APPROVAL_IBAN_VALIDATION_REJECTED';
195
196
  exports.E_APPROVAL_IBAN_VALIDATION_UNSUPPORTED = 'E_APPROVAL_IBAN_VALIDATION_UNSUPPORTED';
196
197
  exports.E_APPROVAL_IBAN_VALIDATION_ERROR = 'E_APPROVAL_IBAN_VALIDATION_ERROR';
@@ -1,4 +1,5 @@
1
1
  import { DeliveryMethod, PaymentMethodType, PreferredLanguage, Timezone } from '../../../../bss/constants';
2
+ import { Builder } from '../../../helpers/helpers';
2
3
  export declare class ArsBillingAccountDto {
3
4
  preferredLanguage?: PreferredLanguage;
4
5
  timezone?: Timezone;
@@ -9,6 +10,9 @@ export declare class ArsBillingAccountDto {
9
10
  lastName: string;
10
11
  deliveryAddress: string;
11
12
  }
13
+ export declare class ArsBillingAccountDtoBuilder extends Builder<ArsBillingAccountDto> {
14
+ setDefaults(): ArsBillingAccountDto;
15
+ }
12
16
  export declare class ArsPaymentMethodDto {
13
17
  type: PaymentMethodType;
14
18
  billingAccount: string;
@@ -1,13 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ArsPaymentMethodDto = exports.ArsBillingAccountDto = void 0;
3
+ exports.ArsPaymentMethodDto = exports.ArsBillingAccountDtoBuilder = exports.ArsBillingAccountDto = void 0;
4
4
  const openapi = require("@nestjs/swagger");
5
+ const constants_1 = require("../../../../bss/constants");
6
+ const _helpers_1 = require("../../../helpers/helpers");
7
+ const faker_1 = require("@faker-js/faker");
5
8
  class ArsBillingAccountDto {
6
9
  static _OPENAPI_METADATA_FACTORY() {
7
10
  return { preferredLanguage: { required: false, enum: require("../../../../bss/constants/bp.constants").PreferredLanguage }, timezone: { required: false, enum: require("../../../../bss/constants/bp.constants").Timezone }, customerAccount: { required: true, type: () => String }, deliveryMethod: { required: true, enum: require("../../../../bss/constants/bp.constants").DeliveryMethod }, billingCycle: { required: true, type: () => String }, firstName: { required: true, type: () => String }, lastName: { required: true, type: () => String }, deliveryAddress: { required: true, type: () => String } };
8
11
  }
9
12
  }
10
13
  exports.ArsBillingAccountDto = ArsBillingAccountDto;
14
+ class ArsBillingAccountDtoBuilder extends _helpers_1.Builder {
15
+ setDefaults() {
16
+ return {
17
+ customerAccount: faker_1.faker.string.numeric(10),
18
+ deliveryMethod: faker_1.faker.helpers.enumValue(constants_1.DeliveryMethod),
19
+ billingCycle: faker_1.faker.string.alphanumeric(25),
20
+ firstName: faker_1.faker.person.firstName(),
21
+ lastName: faker_1.faker.person.lastName(),
22
+ deliveryAddress: faker_1.faker.string.numeric(5)
23
+ };
24
+ }
25
+ static _OPENAPI_METADATA_FACTORY() {
26
+ return {};
27
+ }
28
+ }
29
+ exports.ArsBillingAccountDtoBuilder = ArsBillingAccountDtoBuilder;
11
30
  class ArsPaymentMethodDto {
12
31
  static _OPENAPI_METADATA_FACTORY() {
13
32
  return { type: { required: true, type: () => String, enum: require("../../../../bss/constants/bp.constants").PaymentMethodType }, billingAccount: { required: true, type: () => String }, iban: { required: true, type: () => String }, owner: { required: true, type: () => String } };
@@ -1,6 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { BpRelatedPartyDto } from '../../../../bss/bearingpoint/customer/related-party.entity';
3
3
  import { AccountState, BusinessSegmentType, CustomerAccountHistoryType, CustomerAccountOrganizationEntityType, DocumentType, IdentificationType, PersonTitle, PreferredContactTime, PreferredLanguage, Timezone } from '../../../../bss/constants';
4
+ import { Builder } from '../../../helpers/helpers';
4
5
  import { CustomerType } from '../../../../sys03/shopping-cart';
5
6
  import { PassThrough } from 'stream';
6
7
  export declare class ArsCustomerAccountDto {
@@ -22,6 +23,9 @@ export declare class ArsCustomerAccountIdentificationDto {
22
23
  number: string;
23
24
  country: string;
24
25
  }
26
+ export declare class ArsCustomerAccountIdentificationDtoBuilder extends Builder<ArsCustomerAccountIdentificationDto> {
27
+ setDefaults(): ArsCustomerAccountIdentificationDto;
28
+ }
25
29
  export declare enum ArsContactMediumType {
26
30
  MOBILE = "MOBILE",
27
31
  FIXED_LINE = "FIXED_LINE",
@@ -51,6 +55,9 @@ export declare class ArsOrganizationCustomerDto {
51
55
  contactMediums: ArsContactMediumDto[];
52
56
  relatedParties?: BpRelatedPartyDto[];
53
57
  }
58
+ export declare class ArsOrganizationCustomerDtoBuilder extends Builder<ArsOrganizationCustomerDto> {
59
+ setDefaults(): ArsOrganizationCustomerDto;
60
+ }
54
61
  export declare class ArsCustomerAccountNoteDto {
55
62
  creator: string;
56
63
  text: string;
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ArsCustomerAccountDocumentDto = exports.ArsCustomerAccountHistoryDto = exports.ArsCustomerAccountNoteDto = exports.ArsOrganizationCustomerDto = exports.ArsIndividualCustomerDto = exports.ArsContactMediumDto = exports.ArsContactMediumType = exports.ArsCustomerAccountIdentificationDto = exports.ArsCustomerAccountDto = void 0;
3
+ exports.ArsCustomerAccountDocumentDto = exports.ArsCustomerAccountHistoryDto = exports.ArsCustomerAccountNoteDto = exports.ArsOrganizationCustomerDtoBuilder = exports.ArsOrganizationCustomerDto = exports.ArsIndividualCustomerDto = exports.ArsContactMediumDto = exports.ArsContactMediumType = exports.ArsCustomerAccountIdentificationDtoBuilder = exports.ArsCustomerAccountIdentificationDto = exports.ArsCustomerAccountDto = void 0;
4
4
  const openapi = require("@nestjs/swagger");
5
+ const constants_1 = require("../../../../bss/constants");
6
+ const _helpers_1 = require("../../../helpers/helpers");
7
+ const faker_1 = require("@faker-js/faker");
5
8
  class ArsCustomerAccountDto {
6
9
  static _OPENAPI_METADATA_FACTORY() {
7
10
  return { billingAccount: { required: false, type: () => Number }, state: { required: false, enum: require("../../../../bss/constants/bp.constants").AccountState }, preferredLanguage: { required: false, enum: require("../../../../bss/constants/bp.constants").PreferredLanguage }, timezone: { required: false, enum: require("../../../../bss/constants/bp.constants").Timezone }, channel: { required: false, type: () => String }, companyType: { required: false, enum: require("../../../../bss/constants/bp.constants").CustomerAccountOrganizationEntityType }, segment: { required: false, enum: require("../../../../bss/constants/bp.constants").BusinessSegmentType }, additionalContactPhone: { required: false, type: () => String }, preferredContactTime: { required: false, enum: require("../../../../bss/constants/bp.constants").PreferredContactTime }, customerType: { required: false, enum: require("../../../../sys03/shopping-cart/shopping-cart.constants").CustomerType }, relatedParties: { required: false, type: () => [require("../../../../bss/bearingpoint/customer/related-party.entity").BpRelatedPartyDto] }, parameters: { required: false, type: () => Object } };
@@ -14,6 +17,19 @@ class ArsCustomerAccountIdentificationDto {
14
17
  }
15
18
  }
16
19
  exports.ArsCustomerAccountIdentificationDto = ArsCustomerAccountIdentificationDto;
20
+ class ArsCustomerAccountIdentificationDtoBuilder extends _helpers_1.Builder {
21
+ setDefaults() {
22
+ return {
23
+ type: faker_1.faker.helpers.enumValue(constants_1.IdentificationType),
24
+ number: faker_1.faker.string.alphanumeric(9),
25
+ country: faker_1.faker.location.countryCode('alpha-2')
26
+ };
27
+ }
28
+ static _OPENAPI_METADATA_FACTORY() {
29
+ return {};
30
+ }
31
+ }
32
+ exports.ArsCustomerAccountIdentificationDtoBuilder = ArsCustomerAccountIdentificationDtoBuilder;
17
33
  var ArsContactMediumType;
18
34
  (function (ArsContactMediumType) {
19
35
  ArsContactMediumType["MOBILE"] = "MOBILE";
@@ -39,6 +55,20 @@ class ArsOrganizationCustomerDto {
39
55
  }
40
56
  }
41
57
  exports.ArsOrganizationCustomerDto = ArsOrganizationCustomerDto;
58
+ class ArsOrganizationCustomerDtoBuilder extends _helpers_1.Builder {
59
+ setDefaults() {
60
+ return {
61
+ tradingName: faker_1.faker.company.name(),
62
+ companyType: faker_1.faker.helpers.enumValue(constants_1.CustomerAccountOrganizationEntityType),
63
+ identification: new ArsCustomerAccountIdentificationDtoBuilder().build(),
64
+ contactMediums: []
65
+ };
66
+ }
67
+ static _OPENAPI_METADATA_FACTORY() {
68
+ return {};
69
+ }
70
+ }
71
+ exports.ArsOrganizationCustomerDtoBuilder = ArsOrganizationCustomerDtoBuilder;
42
72
  class ArsCustomerAccountNoteDto {
43
73
  static _OPENAPI_METADATA_FACTORY() {
44
74
  return { creator: { required: true, type: () => String }, text: { required: true, type: () => String } };
@@ -71,9 +71,14 @@ export declare class PartialSaleProcessContractCustomerDto extends PartialSalePr
71
71
  preferredContactLanguage?: string;
72
72
  customerAssociation?: string;
73
73
  }
74
- export declare class PartialSaleProcessBusinessInfoDto {
74
+ export declare class PartialSaleProcessBillingInfoBaseDto {
75
75
  tradingName: string;
76
76
  legalName: string;
77
+ }
78
+ export declare class PartialSaleProcessBillingInfoBaseWithIdentificationDto extends PartialSaleProcessBillingInfoBaseDto {
79
+ identification: BusinessIdentificationDto;
80
+ }
81
+ export declare class PartialSaleProcessBusinessInfoDto extends PartialSaleProcessBillingInfoBaseDto {
77
82
  companyType: CustomerAccountOrganizationEntityType;
78
83
  identification?: BusinessIdentificationDto;
79
84
  }
@@ -187,11 +192,18 @@ export declare class PatchSaleProcessNoCoverageWebDto {
187
192
  customer?: PartialNearByFhContactNoCoverageCustomerDto;
188
193
  addressSearch?: PartialNearByFhContactNoCoverageAddressSearchDto;
189
194
  }
190
- export declare class PartialSaleProcessPendingIbanValidationDto {
195
+ export declare class PartialSaleProcessPendingIbanValidationPersonDto {
191
196
  iban: string;
192
197
  billingInfo: PartialSaleProcessBillingInfoFirstAndLastNameDto;
193
198
  customer: PartialSaleProcessCustomerBaseWithoutTypeDto;
194
199
  }
195
- export declare class PatchSaleProcessPendingIbanValidationDto extends PartialSaleProcessPendingIbanValidationDto {
200
+ export declare class PatchSaleProcessPendingIbanValidationPersonDto extends PartialSaleProcessPendingIbanValidationPersonDto {
201
+ status: SaleProcessStatusType;
202
+ }
203
+ export declare class PartialSaleProcessPendingIbanValidationCompanyDto {
204
+ iban: string;
205
+ businessInfo: PartialSaleProcessBillingInfoBaseWithIdentificationDto;
206
+ }
207
+ export declare class PatchSaleProcessPendingIbanValidationCompanyDto extends PartialSaleProcessPendingIbanValidationCompanyDto {
196
208
  status: SaleProcessStatusType;
197
209
  }