@d19n/youfibre-odin-sdk 1.0.354 → 1.0.356
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/README.md +1 -1
- package/dist/actions-v2/CreateContactFromBrskDto.d.ts +107 -0
- package/dist/actions-v2/CreateContactFromBrskDto.js +52 -0
- package/dist/actions-v2/CreateLeadFromBrskDto.d.ts +8 -1
- package/dist/entities-v2/Contact.d.ts +8 -1
- package/dist/entities-v2/Contact.js +2 -0
- package/dist/entities-v2/PgPaymentMethod.d.ts +3 -3
- package/dist/entities-v2/PgPaymentMethod.js +3 -3
- package/dist/records-v2/ContactRecord.d.ts +29 -0
- package/dist/records-v2/ContactRecord.js +36 -0
- package/dist/records-v2/PgPaymentMethodRecord.d.ts +0 -27
- package/dist/records-v2/PgPaymentMethodRecord.js +0 -29
- package/package.json +1 -1
- package/dist/actions-v2/UpdatePgPaymentMethodFailedReasonDto.d.ts +0 -78
- package/dist/actions-v2/UpdatePgPaymentMethodFailedReasonDto.js +0 -61
package/README.md
CHANGED
|
@@ -1117,6 +1117,7 @@ This SDK includes **538** actions.
|
|
|
1117
1117
|
| Action | Type | Event |
|
|
1118
1118
|
|--------|------|-------|
|
|
1119
1119
|
| `CreateContact` | CREATE | k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContact |
|
|
1120
|
+
| `CreateContactFromBrsk` | CREATE | k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactFromBrsk |
|
|
1120
1121
|
| `UpdateAdditionalCare` | UPDATE | k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateAdditionalCare |
|
|
1121
1122
|
| `UpdateContact` | UPDATE | k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateContact |
|
|
1122
1123
|
| `UpdateReferralCode` | UPDATE | k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateReferralCode |
|
|
@@ -1347,7 +1348,6 @@ This SDK includes **538** actions.
|
|
|
1347
1348
|
| `MovePgPaymentMethodToValidated` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgPaymentMethod.Transition.MovePgPaymentMethodToValidated |
|
|
1348
1349
|
| `UpdatePgPaymentMethodActivatedDatetime` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgPaymentMethod.Update.UpdatePgPaymentMethodActivatedDatetime |
|
|
1349
1350
|
| `UpdatePgPaymentMethod` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgPaymentMethod.Update.UpdatePgPaymentMethod |
|
|
1350
|
-
| `UpdatePgPaymentMethodFailedReason` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgPaymentMethod.Update.UpdatePgPaymentMethodFailedReason |
|
|
1351
1351
|
| `UpdatePgPaymentMethodFirstTransactionProcessed` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgPaymentMethod.Update.UpdatePgPaymentMethodFirstTransactionProcessed |
|
|
1352
1352
|
| `UpdatePgPaymentMethodMessage` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgPaymentMethod.Update.UpdatePgPaymentMethodMessage |
|
|
1353
1353
|
| `UpdatePgPaymentMethodValidatedDatetime` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgPaymentMethod.Update.UpdatePgPaymentMethodValidatedDatetime |
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateContactFromBrsk Action DTO
|
|
3
|
+
*
|
|
4
|
+
* CreateContactFromBrsk
|
|
5
|
+
*
|
|
6
|
+
* @module CrmModule
|
|
7
|
+
* @entity Contact
|
|
8
|
+
* @actionKey CreateContactFromBrsk
|
|
9
|
+
* @event k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactFromBrsk
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for CreateContactFromBrsk created events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactFromBrsk
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateContactFromBrskMessage extends OdinRecordCreatedEvent<CreateContactFromBrskDto, CreateContactFromBrskProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for CreateContactFromBrsk action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 0
|
|
25
|
+
* @property Optional fields: 7
|
|
26
|
+
*/
|
|
27
|
+
export interface CreateContactFromBrskProperties {
|
|
28
|
+
/**
|
|
29
|
+
* External Reference
|
|
30
|
+
*
|
|
31
|
+
* External Reference
|
|
32
|
+
* @type {TEXT}
|
|
33
|
+
*/
|
|
34
|
+
ExternalReference?: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* email address
|
|
37
|
+
*
|
|
38
|
+
* Contacts Email Address (Sales - Contact)
|
|
39
|
+
* @type {EMAIL}
|
|
40
|
+
*/
|
|
41
|
+
EmailAddress?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* first name
|
|
44
|
+
*
|
|
45
|
+
* Contacts First Name (Sales - Contact)
|
|
46
|
+
* @type {TEXT}
|
|
47
|
+
*/
|
|
48
|
+
FirstName?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* last name
|
|
51
|
+
*
|
|
52
|
+
* Contacts Last Name (Sales - Contact)
|
|
53
|
+
* @type {TEXT}
|
|
54
|
+
*/
|
|
55
|
+
LastName?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* phone
|
|
58
|
+
*
|
|
59
|
+
* Phone number (Sales - Contact)
|
|
60
|
+
* @type {PHONE_NUMBER}
|
|
61
|
+
*/
|
|
62
|
+
Phone?: string | null;
|
|
63
|
+
/**
|
|
64
|
+
* Additional Care Required?
|
|
65
|
+
*
|
|
66
|
+
* Marks if the customer requires additional care (Ofcom vulnerable customer handling). (Sales - Contact)
|
|
67
|
+
* @type {BOOLEAN}
|
|
68
|
+
*/
|
|
69
|
+
AdditionalCareRequired?: boolean | null;
|
|
70
|
+
/**
|
|
71
|
+
* I am happy to hear from YouFibre by email, WhatsApp and SMS about YouFibre’s broadband packages and any special offers. I am aware that I can opt-out at any time. For details on how we manage your data, please see our privacy policy.
|
|
72
|
+
*
|
|
73
|
+
* Marketing Consent (Sales - Contact)
|
|
74
|
+
* @type {BOOLEAN}
|
|
75
|
+
*/
|
|
76
|
+
MarketingConsent?: boolean | null;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* CreateContactFromBrsk
|
|
80
|
+
*
|
|
81
|
+
* @actionType CREATE - Creates a new Contact record
|
|
82
|
+
* @module CrmModule
|
|
83
|
+
* @entity Contact
|
|
84
|
+
* @event k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactFromBrsk
|
|
85
|
+
* @permission schema.action.createcontactfrombrsk.trigger
|
|
86
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
87
|
+
*/
|
|
88
|
+
export declare class CreateContactFromBrskDto extends OdinRecordCreateDto<CreateContactFromBrskProperties> {
|
|
89
|
+
/** Used by SDK generators to identify action type */
|
|
90
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
91
|
+
static readonly ACTION_KEY = "CreateContactFromBrsk";
|
|
92
|
+
static readonly MODULE_NAME = "CrmModule";
|
|
93
|
+
static readonly ENTITIES: string[];
|
|
94
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactFromBrsk";
|
|
95
|
+
static readonly PERMISSION = "schema.action.createcontactfrombrsk.trigger";
|
|
96
|
+
/** Step metadata - entity this action targets */
|
|
97
|
+
static readonly STEP_ENTITY = "CrmModule:Contact";
|
|
98
|
+
static readonly STEP_SCHEMA_ID = "ff4313f0-9929-4481-bdf4-c90ff9624014";
|
|
99
|
+
static readonly STEP_SCHEMA_ACTION_ID = "d559c9ed-5798-4eb9-b315-3e0a602283a7";
|
|
100
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
101
|
+
readonly actionName: string;
|
|
102
|
+
readonly schemaActionId: string;
|
|
103
|
+
readonly entity: string;
|
|
104
|
+
constructor(properties: CreateContactFromBrskProperties, options?: {
|
|
105
|
+
journeyId?: string;
|
|
106
|
+
});
|
|
107
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreateContactFromBrsk Action DTO
|
|
4
|
+
*
|
|
5
|
+
* CreateContactFromBrsk
|
|
6
|
+
*
|
|
7
|
+
* @module CrmModule
|
|
8
|
+
* @entity Contact
|
|
9
|
+
* @actionKey CreateContactFromBrsk
|
|
10
|
+
* @event k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactFromBrsk
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CreateContactFromBrskDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* CreateContactFromBrsk
|
|
19
|
+
*
|
|
20
|
+
* @actionType CREATE - Creates a new Contact record
|
|
21
|
+
* @module CrmModule
|
|
22
|
+
* @entity Contact
|
|
23
|
+
* @event k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactFromBrsk
|
|
24
|
+
* @permission schema.action.createcontactfrombrsk.trigger
|
|
25
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
26
|
+
*/
|
|
27
|
+
class CreateContactFromBrskDto extends core_1.OdinRecordCreateDto {
|
|
28
|
+
constructor(properties, options) {
|
|
29
|
+
super({
|
|
30
|
+
entity: 'CrmModule:Contact',
|
|
31
|
+
type: undefined,
|
|
32
|
+
properties,
|
|
33
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
34
|
+
});
|
|
35
|
+
this.actionName = 'CreateContactFromBrsk';
|
|
36
|
+
this.schemaActionId = 'd559c9ed-5798-4eb9-b315-3e0a602283a7';
|
|
37
|
+
this.entity = 'CrmModule:Contact';
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.CreateContactFromBrskDto = CreateContactFromBrskDto;
|
|
41
|
+
/** Used by SDK generators to identify action type */
|
|
42
|
+
CreateContactFromBrskDto.ACTION_TYPE = 'CREATE';
|
|
43
|
+
CreateContactFromBrskDto.ACTION_KEY = 'CreateContactFromBrsk';
|
|
44
|
+
CreateContactFromBrskDto.MODULE_NAME = 'CrmModule';
|
|
45
|
+
CreateContactFromBrskDto.ENTITIES = ['Contact'];
|
|
46
|
+
CreateContactFromBrskDto.EVENT_NAME = 'k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactFromBrsk';
|
|
47
|
+
CreateContactFromBrskDto.PERMISSION = 'schema.action.createcontactfrombrsk.trigger';
|
|
48
|
+
/** Step metadata - entity this action targets */
|
|
49
|
+
CreateContactFromBrskDto.STEP_ENTITY = 'CrmModule:Contact';
|
|
50
|
+
CreateContactFromBrskDto.STEP_SCHEMA_ID = 'ff4313f0-9929-4481-bdf4-c90ff9624014';
|
|
51
|
+
CreateContactFromBrskDto.STEP_SCHEMA_ACTION_ID = 'd559c9ed-5798-4eb9-b315-3e0a602283a7';
|
|
52
|
+
CreateContactFromBrskDto.AUTO_LINK_PARENT = true;
|
|
@@ -22,7 +22,7 @@ export interface CreateLeadFromBrskMessage extends OdinRecordCreatedEvent<Create
|
|
|
22
22
|
* Properties for CreateLeadFromBrsk action
|
|
23
23
|
*
|
|
24
24
|
* @property Required fields: 4
|
|
25
|
-
* @property Optional fields:
|
|
25
|
+
* @property Optional fields: 3
|
|
26
26
|
*/
|
|
27
27
|
export interface CreateLeadFromBrskProperties {
|
|
28
28
|
/**
|
|
@@ -71,6 +71,13 @@ export interface CreateLeadFromBrskProperties {
|
|
|
71
71
|
* @type {TEXT}
|
|
72
72
|
*/
|
|
73
73
|
LastName?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* name
|
|
76
|
+
*
|
|
77
|
+
* Display name/title for Lead records. Primary identifier for Sales team.
|
|
78
|
+
* @type {TEXT}
|
|
79
|
+
*/
|
|
80
|
+
Name?: string | null;
|
|
74
81
|
}
|
|
75
82
|
/**
|
|
76
83
|
* CreateLeadFromBrsk
|
|
@@ -360,7 +360,9 @@ export declare enum ContactPropertyKeys {
|
|
|
360
360
|
/** The date that the customer signed up or registered to the customer platforms (Sales - Contact) */
|
|
361
361
|
ActivationDate = "ActivationDate",
|
|
362
362
|
/** Is the customer medically dependant on their broadband (Sales - Contact) */
|
|
363
|
-
MedicallyDependant = "MedicallyDependant"
|
|
363
|
+
MedicallyDependant = "MedicallyDependant",
|
|
364
|
+
/** External Reference */
|
|
365
|
+
ExternalReference = "ExternalReference"
|
|
364
366
|
}
|
|
365
367
|
/**
|
|
366
368
|
* Properties for Contact records
|
|
@@ -679,6 +681,11 @@ export interface ContactProperties {
|
|
|
679
681
|
* @default FALSE
|
|
680
682
|
*/
|
|
681
683
|
MedicallyDependant: boolean;
|
|
684
|
+
/** External Reference
|
|
685
|
+
*
|
|
686
|
+
* @type {TEXT}
|
|
687
|
+
*/
|
|
688
|
+
ExternalReference: string;
|
|
682
689
|
}
|
|
683
690
|
/**
|
|
684
691
|
* Contact entity from CrmModule
|
|
@@ -344,6 +344,8 @@ var ContactPropertyKeys;
|
|
|
344
344
|
ContactPropertyKeys["ActivationDate"] = "ActivationDate";
|
|
345
345
|
/** Is the customer medically dependant on their broadband (Sales - Contact) */
|
|
346
346
|
ContactPropertyKeys["MedicallyDependant"] = "MedicallyDependant";
|
|
347
|
+
/** External Reference */
|
|
348
|
+
ContactPropertyKeys["ExternalReference"] = "ExternalReference";
|
|
347
349
|
})(ContactPropertyKeys = exports.ContactPropertyKeys || (exports.ContactPropertyKeys = {}));
|
|
348
350
|
/**
|
|
349
351
|
* Contact entity from CrmModule
|
|
@@ -48,11 +48,11 @@ export declare enum DefaultPgPaymentMethodStageNames {
|
|
|
48
48
|
CancellationPending = "Cancellation Pending",
|
|
49
49
|
/** Cancelled */
|
|
50
50
|
Cancelled = "Cancelled",
|
|
51
|
-
/** Submission Failed */
|
|
51
|
+
/** Submission Failed (fail) */
|
|
52
52
|
SubmissionFailed = "Submission Failed",
|
|
53
|
-
/** File Rejected */
|
|
53
|
+
/** File Rejected (fail) */
|
|
54
54
|
FileRejected = "File Rejected",
|
|
55
|
-
/** Instruction Rejected */
|
|
55
|
+
/** Instruction Rejected (fail) */
|
|
56
56
|
InstructionRejected = "Instruction Rejected",
|
|
57
57
|
/** Invalid (fail) */
|
|
58
58
|
Invalid = "Invalid"
|
|
@@ -49,11 +49,11 @@ var DefaultPgPaymentMethodStageNames;
|
|
|
49
49
|
DefaultPgPaymentMethodStageNames["CancellationPending"] = "Cancellation Pending";
|
|
50
50
|
/** Cancelled */
|
|
51
51
|
DefaultPgPaymentMethodStageNames["Cancelled"] = "Cancelled";
|
|
52
|
-
/** Submission Failed */
|
|
52
|
+
/** Submission Failed (fail) */
|
|
53
53
|
DefaultPgPaymentMethodStageNames["SubmissionFailed"] = "Submission Failed";
|
|
54
|
-
/** File Rejected */
|
|
54
|
+
/** File Rejected (fail) */
|
|
55
55
|
DefaultPgPaymentMethodStageNames["FileRejected"] = "File Rejected";
|
|
56
|
-
/** Instruction Rejected */
|
|
56
|
+
/** Instruction Rejected (fail) */
|
|
57
57
|
DefaultPgPaymentMethodStageNames["InstructionRejected"] = "Instruction Rejected";
|
|
58
58
|
/** Invalid (fail) */
|
|
59
59
|
DefaultPgPaymentMethodStageNames["Invalid"] = "Invalid";
|
|
@@ -24,6 +24,7 @@ import { ContactProperties } from '../entities-v2/Contact';
|
|
|
24
24
|
import { CreateCaseProperties } from '../actions-v2/CreateCaseFromContactDto';
|
|
25
25
|
import { AssignCaseProperties } from '../actions-v2/CreateCaseFromContactDto';
|
|
26
26
|
import { CreateContactProperties } from '../actions-v2/CreateContactDto';
|
|
27
|
+
import { CreateContactFromBrskProperties } from '../actions-v2/CreateContactFromBrskDto';
|
|
27
28
|
import { UpdateAdditionalCareProperties } from '../actions-v2/UpdateAdditionalCareDto';
|
|
28
29
|
import { UpdateContactProperties } from '../actions-v2/UpdateContactDto';
|
|
29
30
|
import { UpdateReferralCodeProperties } from '../actions-v2/UpdateReferralCodeDto';
|
|
@@ -724,6 +725,34 @@ export declare class ContactRecord<TProps = ContactProperties> {
|
|
|
724
725
|
journeyId?: string;
|
|
725
726
|
stageKey?: string;
|
|
726
727
|
}): ActionBuilder;
|
|
728
|
+
/**
|
|
729
|
+
* CreateContactFromBrsk
|
|
730
|
+
*
|
|
731
|
+
* Creates a new Contact record with the specified properties.
|
|
732
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
733
|
+
*
|
|
734
|
+
* @param properties - The properties for the new record
|
|
735
|
+
* @param options - Optional settings
|
|
736
|
+
* @param options.type - Override the record type
|
|
737
|
+
* @param options.journeyId - Associate with a journey
|
|
738
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
739
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
740
|
+
*
|
|
741
|
+
* @example
|
|
742
|
+
* ```typescript
|
|
743
|
+
* // Create with properties
|
|
744
|
+
* const record = odinClient.contacts.new();
|
|
745
|
+
* await record.createContactFromBrsk({ ... }).execute();
|
|
746
|
+
*
|
|
747
|
+
* // Dry run (for debugging)
|
|
748
|
+
* const payload = record.createContactFromBrsk({ ... }).dryRun();
|
|
749
|
+
* ```
|
|
750
|
+
*/
|
|
751
|
+
createContactFromBrsk(properties?: CreateContactFromBrskProperties, options?: {
|
|
752
|
+
type?: string;
|
|
753
|
+
journeyId?: string;
|
|
754
|
+
stageKey?: string;
|
|
755
|
+
}): ActionBuilder;
|
|
727
756
|
/**
|
|
728
757
|
* CreateCaseFromContact
|
|
729
758
|
*
|
|
@@ -1118,6 +1118,42 @@ class ContactRecord {
|
|
|
1118
1118
|
};
|
|
1119
1119
|
return new ActionBuilder(this._provider, 'CrmModule', 'Contact', payload, () => { this._pendingLinks = []; });
|
|
1120
1120
|
}
|
|
1121
|
+
/**
|
|
1122
|
+
* CreateContactFromBrsk
|
|
1123
|
+
*
|
|
1124
|
+
* Creates a new Contact record with the specified properties.
|
|
1125
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
1126
|
+
*
|
|
1127
|
+
* @param properties - The properties for the new record
|
|
1128
|
+
* @param options - Optional settings
|
|
1129
|
+
* @param options.type - Override the record type
|
|
1130
|
+
* @param options.journeyId - Associate with a journey
|
|
1131
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
1132
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
1133
|
+
*
|
|
1134
|
+
* @example
|
|
1135
|
+
* ```typescript
|
|
1136
|
+
* // Create with properties
|
|
1137
|
+
* const record = odinClient.contacts.new();
|
|
1138
|
+
* await record.createContactFromBrsk({ ... }).execute();
|
|
1139
|
+
*
|
|
1140
|
+
* // Dry run (for debugging)
|
|
1141
|
+
* const payload = record.createContactFromBrsk({ ... }).dryRun();
|
|
1142
|
+
* ```
|
|
1143
|
+
*/
|
|
1144
|
+
createContactFromBrsk(properties, options) {
|
|
1145
|
+
var _a, _b;
|
|
1146
|
+
const payload = {
|
|
1147
|
+
entity: 'CrmModule:Contact',
|
|
1148
|
+
type: (_a = options === null || options === void 0 ? void 0 : options.type) !== null && _a !== void 0 ? _a : (_b = this._record) === null || _b === void 0 ? void 0 : _b.type,
|
|
1149
|
+
actionName: 'CreateContactFromBrsk',
|
|
1150
|
+
properties: properties || {},
|
|
1151
|
+
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
1152
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
1153
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
1154
|
+
};
|
|
1155
|
+
return new ActionBuilder(this._provider, 'CrmModule', 'Contact', payload, () => { this._pendingLinks = []; });
|
|
1156
|
+
}
|
|
1121
1157
|
// ============================================
|
|
1122
1158
|
// UPDATE ACTIONS (require existing record)
|
|
1123
1159
|
// ============================================
|
|
@@ -26,7 +26,6 @@ import { PgPaymentMethodProperties } from '../entities-v2/PgPaymentMethod';
|
|
|
26
26
|
import { CreatePgPaymentMethodProperties } from '../actions-v2/CreatePgPaymentMethodDto';
|
|
27
27
|
import { UpdatePgPaymentMethodActivatedDatetimeProperties } from '../actions-v2/UpdatePgPaymentMethodActivatedDatetimeDto';
|
|
28
28
|
import { UpdatePgPaymentMethodProperties } from '../actions-v2/UpdatePgPaymentMethodDto';
|
|
29
|
-
import { UpdatePgPaymentMethodFailedReasonProperties } from '../actions-v2/UpdatePgPaymentMethodFailedReasonDto';
|
|
30
29
|
import { UpdatePgPaymentMethodFirstTransactionProcessedProperties } from '../actions-v2/UpdatePgPaymentMethodFirstTransactionProcessedDto';
|
|
31
30
|
import { UpdatePgPaymentMethodMessageProperties } from '../actions-v2/UpdatePgPaymentMethodMessageDto';
|
|
32
31
|
import { UpdatePgPaymentMethodValidatedDatetimeProperties } from '../actions-v2/UpdatePgPaymentMethodValidatedDatetimeDto';
|
|
@@ -615,32 +614,6 @@ export declare class PgPaymentMethodRecord<TProps = PgPaymentMethodProperties> {
|
|
|
615
614
|
journeyId?: string;
|
|
616
615
|
stageKey?: string;
|
|
617
616
|
}): ActionBuilder;
|
|
618
|
-
/**
|
|
619
|
-
* UpdatePgPaymentMethodFailedReason
|
|
620
|
-
*
|
|
621
|
-
* Updates this PgPaymentMethod record with the specified properties.
|
|
622
|
-
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
623
|
-
*
|
|
624
|
-
* @param properties - Required properties for this action
|
|
625
|
-
* @param options - Optional settings
|
|
626
|
-
* @param options.journeyId - Associate with a journey
|
|
627
|
-
* @param options.stageKey - Transition to pipeline stage
|
|
628
|
-
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
629
|
-
* @throws Error if called on a new (unsaved) record
|
|
630
|
-
*
|
|
631
|
-
* @example
|
|
632
|
-
* ```typescript
|
|
633
|
-
* const record = await odinClient.pgPaymentMethods.get(id);
|
|
634
|
-
* await record.updatePgPaymentMethodFailedReason({ ... }).execute();
|
|
635
|
-
*
|
|
636
|
-
* // Dry run (for debugging)
|
|
637
|
-
* const payload = record.updatePgPaymentMethodFailedReason({ ... }).dryRun();
|
|
638
|
-
* ```
|
|
639
|
-
*/
|
|
640
|
-
updatePgPaymentMethodFailedReason(properties: UpdatePgPaymentMethodFailedReasonProperties, options?: {
|
|
641
|
-
journeyId?: string;
|
|
642
|
-
stageKey?: string;
|
|
643
|
-
}): ActionBuilder;
|
|
644
617
|
/**
|
|
645
618
|
* UpdatePgPaymentMethodFirstTransactionProcessed
|
|
646
619
|
*
|
|
@@ -770,35 +770,6 @@ class PgPaymentMethodRecord {
|
|
|
770
770
|
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdatePgPaymentMethod', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
|
|
771
771
|
return new ActionBuilder(this._provider, 'BillingModule', 'PgPaymentMethod', payload, () => { this._pendingLinks = []; });
|
|
772
772
|
}
|
|
773
|
-
/**
|
|
774
|
-
* UpdatePgPaymentMethodFailedReason
|
|
775
|
-
*
|
|
776
|
-
* Updates this PgPaymentMethod record with the specified properties.
|
|
777
|
-
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
778
|
-
*
|
|
779
|
-
* @param properties - Required properties for this action
|
|
780
|
-
* @param options - Optional settings
|
|
781
|
-
* @param options.journeyId - Associate with a journey
|
|
782
|
-
* @param options.stageKey - Transition to pipeline stage
|
|
783
|
-
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
784
|
-
* @throws Error if called on a new (unsaved) record
|
|
785
|
-
*
|
|
786
|
-
* @example
|
|
787
|
-
* ```typescript
|
|
788
|
-
* const record = await odinClient.pgPaymentMethods.get(id);
|
|
789
|
-
* await record.updatePgPaymentMethodFailedReason({ ... }).execute();
|
|
790
|
-
*
|
|
791
|
-
* // Dry run (for debugging)
|
|
792
|
-
* const payload = record.updatePgPaymentMethodFailedReason({ ... }).dryRun();
|
|
793
|
-
* ```
|
|
794
|
-
*/
|
|
795
|
-
updatePgPaymentMethodFailedReason(properties, options) {
|
|
796
|
-
var _a;
|
|
797
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
798
|
-
throw new Error('updatePgPaymentMethodFailedReason requires an existing record. Use accessor.get() first.');
|
|
799
|
-
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdatePgPaymentMethodFailedReason', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
800
|
-
return new ActionBuilder(this._provider, 'BillingModule', 'PgPaymentMethod', payload, () => { this._pendingLinks = []; });
|
|
801
|
-
}
|
|
802
773
|
/**
|
|
803
774
|
* UpdatePgPaymentMethodFirstTransactionProcessed
|
|
804
775
|
*
|
package/package.json
CHANGED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UpdatePgPaymentMethodFailedReason Action DTO
|
|
3
|
-
*
|
|
4
|
-
* Update PG Payment Method Failed Reason
|
|
5
|
-
*
|
|
6
|
-
* @module BillingModule
|
|
7
|
-
* @entity PgPaymentMethod
|
|
8
|
-
* @entityType DEFAULT
|
|
9
|
-
* @actionKey UpdatePgPaymentMethodFailedReason
|
|
10
|
-
* @event k1.t-hEOJjsDb.BillingModule.PgPaymentMethod.Update.UpdatePgPaymentMethodFailedReason
|
|
11
|
-
*
|
|
12
|
-
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
-
*/
|
|
14
|
-
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
15
|
-
/**
|
|
16
|
-
* RabbitMQ message payload for UpdatePgPaymentMethodFailedReason updated events
|
|
17
|
-
*
|
|
18
|
-
* @event k1.t-hEOJjsDb.BillingModule.PgPaymentMethod.Update.UpdatePgPaymentMethodFailedReason
|
|
19
|
-
*/
|
|
20
|
-
export interface UpdatePgPaymentMethodFailedReasonMessage extends OdinRecordUpdatedEvent<UpdatePgPaymentMethodFailedReasonDto, UpdatePgPaymentMethodFailedReasonProperties> {
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Properties for UpdatePgPaymentMethodFailedReason action
|
|
24
|
-
*
|
|
25
|
-
* @property Required fields: 1
|
|
26
|
-
* @property Optional fields: 0
|
|
27
|
-
*/
|
|
28
|
-
export interface UpdatePgPaymentMethodFailedReasonProperties {
|
|
29
|
-
/**
|
|
30
|
-
* FailedReason
|
|
31
|
-
*
|
|
32
|
-
* Failed Reason
|
|
33
|
-
* @type {TEXT}
|
|
34
|
-
* @required
|
|
35
|
-
*/
|
|
36
|
-
FailedReason: string;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* UpdatePgPaymentMethodFailedReason
|
|
40
|
-
*
|
|
41
|
-
* Update PG Payment Method Failed Reason
|
|
42
|
-
*
|
|
43
|
-
* @actionType UPDATE - Updates an existing PgPaymentMethod record
|
|
44
|
-
* @module BillingModule
|
|
45
|
-
* @entity PgPaymentMethod
|
|
46
|
-
* @entityType DEFAULT (Default)
|
|
47
|
-
* @event k1.t-hEOJjsDb.BillingModule.PgPaymentMethod.Update.UpdatePgPaymentMethodFailedReason
|
|
48
|
-
* @permission schema.action.updatepgpaymentmethodfailedreason.trigger
|
|
49
|
-
* @benchmark This action is tracked for performance benchmarks
|
|
50
|
-
*/
|
|
51
|
-
export declare class UpdatePgPaymentMethodFailedReasonDto extends OdinRecordUpdateDto<UpdatePgPaymentMethodFailedReasonProperties> {
|
|
52
|
-
/** Used by SDK generators to identify action type */
|
|
53
|
-
static readonly ACTION_TYPE = "UPDATE";
|
|
54
|
-
static readonly ACTION_KEY = "UpdatePgPaymentMethodFailedReason";
|
|
55
|
-
static readonly MODULE_NAME = "BillingModule";
|
|
56
|
-
static readonly ENTITIES: string[];
|
|
57
|
-
static readonly ENTITY_TYPE = "DEFAULT";
|
|
58
|
-
static readonly EVENT_NAME = "k1.t-hEOJjsDb.BillingModule.PgPaymentMethod.Update.UpdatePgPaymentMethodFailedReason";
|
|
59
|
-
static readonly PERMISSION = "schema.action.updatepgpaymentmethodfailedreason.trigger";
|
|
60
|
-
/** Step metadata - entity this action targets */
|
|
61
|
-
static readonly STEP_ENTITY = "BillingModule:PgPaymentMethod";
|
|
62
|
-
static readonly STEP_SCHEMA_ID = "4f25d495-d508-493f-b5e4-97ef1639c884";
|
|
63
|
-
static readonly STEP_SCHEMA_ACTION_ID = "79964f7d-fcb3-483f-b24b-7cf7417b9e6b";
|
|
64
|
-
static readonly STEP_SCHEMA_TYPE_ID = "02fb9e15-150e-4d37-b220-5c89615311da";
|
|
65
|
-
static readonly STEP_TYPE = "DEFAULT";
|
|
66
|
-
static readonly AUTO_LINK_PARENT = false;
|
|
67
|
-
readonly actionName: string;
|
|
68
|
-
readonly schemaActionId: string;
|
|
69
|
-
readonly entity: string;
|
|
70
|
-
constructor(record: OdinRecord<any> | {
|
|
71
|
-
id: string;
|
|
72
|
-
entity: string;
|
|
73
|
-
type?: string;
|
|
74
|
-
}, properties: UpdatePgPaymentMethodFailedReasonProperties, options?: {
|
|
75
|
-
journeyId?: string;
|
|
76
|
-
stageKey?: string;
|
|
77
|
-
});
|
|
78
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* UpdatePgPaymentMethodFailedReason Action DTO
|
|
4
|
-
*
|
|
5
|
-
* Update PG Payment Method Failed Reason
|
|
6
|
-
*
|
|
7
|
-
* @module BillingModule
|
|
8
|
-
* @entity PgPaymentMethod
|
|
9
|
-
* @entityType DEFAULT
|
|
10
|
-
* @actionKey UpdatePgPaymentMethodFailedReason
|
|
11
|
-
* @event k1.t-hEOJjsDb.BillingModule.PgPaymentMethod.Update.UpdatePgPaymentMethodFailedReason
|
|
12
|
-
*
|
|
13
|
-
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.UpdatePgPaymentMethodFailedReasonDto = void 0;
|
|
17
|
-
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
-
/**
|
|
19
|
-
* UpdatePgPaymentMethodFailedReason
|
|
20
|
-
*
|
|
21
|
-
* Update PG Payment Method Failed Reason
|
|
22
|
-
*
|
|
23
|
-
* @actionType UPDATE - Updates an existing PgPaymentMethod record
|
|
24
|
-
* @module BillingModule
|
|
25
|
-
* @entity PgPaymentMethod
|
|
26
|
-
* @entityType DEFAULT (Default)
|
|
27
|
-
* @event k1.t-hEOJjsDb.BillingModule.PgPaymentMethod.Update.UpdatePgPaymentMethodFailedReason
|
|
28
|
-
* @permission schema.action.updatepgpaymentmethodfailedreason.trigger
|
|
29
|
-
* @benchmark This action is tracked for performance benchmarks
|
|
30
|
-
*/
|
|
31
|
-
class UpdatePgPaymentMethodFailedReasonDto extends core_1.OdinRecordUpdateDto {
|
|
32
|
-
constructor(record, properties, options) {
|
|
33
|
-
super({
|
|
34
|
-
id: record.id,
|
|
35
|
-
entity: record.entity,
|
|
36
|
-
type: record.type,
|
|
37
|
-
properties,
|
|
38
|
-
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
39
|
-
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
40
|
-
});
|
|
41
|
-
this.actionName = 'UpdatePgPaymentMethodFailedReason';
|
|
42
|
-
this.schemaActionId = '79964f7d-fcb3-483f-b24b-7cf7417b9e6b';
|
|
43
|
-
this.entity = 'BillingModule:PgPaymentMethod';
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
exports.UpdatePgPaymentMethodFailedReasonDto = UpdatePgPaymentMethodFailedReasonDto;
|
|
47
|
-
/** Used by SDK generators to identify action type */
|
|
48
|
-
UpdatePgPaymentMethodFailedReasonDto.ACTION_TYPE = 'UPDATE';
|
|
49
|
-
UpdatePgPaymentMethodFailedReasonDto.ACTION_KEY = 'UpdatePgPaymentMethodFailedReason';
|
|
50
|
-
UpdatePgPaymentMethodFailedReasonDto.MODULE_NAME = 'BillingModule';
|
|
51
|
-
UpdatePgPaymentMethodFailedReasonDto.ENTITIES = ['PgPaymentMethod'];
|
|
52
|
-
UpdatePgPaymentMethodFailedReasonDto.ENTITY_TYPE = 'DEFAULT';
|
|
53
|
-
UpdatePgPaymentMethodFailedReasonDto.EVENT_NAME = 'k1.t-hEOJjsDb.BillingModule.PgPaymentMethod.Update.UpdatePgPaymentMethodFailedReason';
|
|
54
|
-
UpdatePgPaymentMethodFailedReasonDto.PERMISSION = 'schema.action.updatepgpaymentmethodfailedreason.trigger';
|
|
55
|
-
/** Step metadata - entity this action targets */
|
|
56
|
-
UpdatePgPaymentMethodFailedReasonDto.STEP_ENTITY = 'BillingModule:PgPaymentMethod';
|
|
57
|
-
UpdatePgPaymentMethodFailedReasonDto.STEP_SCHEMA_ID = '4f25d495-d508-493f-b5e4-97ef1639c884';
|
|
58
|
-
UpdatePgPaymentMethodFailedReasonDto.STEP_SCHEMA_ACTION_ID = '79964f7d-fcb3-483f-b24b-7cf7417b9e6b';
|
|
59
|
-
UpdatePgPaymentMethodFailedReasonDto.STEP_SCHEMA_TYPE_ID = '02fb9e15-150e-4d37-b220-5c89615311da';
|
|
60
|
-
UpdatePgPaymentMethodFailedReasonDto.STEP_TYPE = 'DEFAULT';
|
|
61
|
-
UpdatePgPaymentMethodFailedReasonDto.AUTO_LINK_PARENT = false;
|