@d19n/youfibre-odin-sdk 1.0.346 → 1.0.349-beta.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/README.md CHANGED
@@ -351,7 +351,7 @@ This SDK includes **163** entities across **12** modules.
351
351
 
352
352
  ## Actions
353
353
 
354
- This SDK includes **539** actions.
354
+ This SDK includes **538** actions.
355
355
 
356
356
  ### Action Types
357
357
 
@@ -1099,7 +1099,6 @@ This SDK includes **539** actions.
1099
1099
  | `CreateCashbackReward` | CREATE | k1.t-hEOJjsDb.CrmModule.Reward.Create.CreateCashbackReward |
1100
1100
  | `MoveCashbackRewardToAwarded` | STAGE_TRANSITION | k1.t-hEOJjsDb.CrmModule.Reward.Transition.MoveCashbackRewardToAwarded |
1101
1101
  | `MoveCashbackRewardToFailed` | STAGE_TRANSITION | k1.t-hEOJjsDb.CrmModule.Reward.Transition.MoveCashbackRewardToFailed |
1102
- | `UpdateCashbackRewardRefund` | UPDATE | k1.t-hEOJjsDb.CrmModule.Reward.Update.UpdateCashbackRewardRefund |
1103
1102
 
1104
1103
  **MoveCashbackRewardToAwarded Target Stages:** `CashBackFlowStageAwarded`
1105
1104
 
@@ -23,7 +23,7 @@ export interface CreateCashbackRewardMessage extends OdinRecordCreatedEvent<Crea
23
23
  * Properties for CreateCashbackReward action
24
24
  *
25
25
  * @property Required fields: 5
26
- * @property Optional fields: 1
26
+ * @property Optional fields: 0
27
27
  */
28
28
  export interface CreateCashbackRewardProperties {
29
29
  /**
@@ -66,13 +66,6 @@ export interface CreateCashbackRewardProperties {
66
66
  * @required
67
67
  */
68
68
  ContactId: string;
69
- /**
70
- * PaymentMethodRefundId
71
- *
72
- * PaymentMethodRefund reference
73
- * @type {LOOKUP}
74
- */
75
- PaymentMethodRefundId?: string | null;
76
69
  }
77
70
  /**
78
71
  * CreateCashbackReward
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
12
  */
13
- import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
13
+ import { OdinRecord, OdinRecordCreateDto, OdinRecordCreatedEvent, OdinRecordLinkDto } from '@d19n/odin-types/dist/core';
14
14
  /**
15
15
  * RabbitMQ message payload for CreatePaymentMethodRefundForContact created events
16
16
  *
@@ -21,7 +21,7 @@ export interface CreatePaymentMethodRefundForContactMessage extends OdinRecordCr
21
21
  /**
22
22
  * Properties for CreatePaymentMethodRefundForContact action
23
23
  *
24
- * @property Required fields: 3
24
+ * @property Required fields: 4
25
25
  * @property Optional fields: 0
26
26
  */
27
27
  export interface CreatePaymentMethodRefundForContactProperties {
@@ -49,6 +49,61 @@ export interface CreatePaymentMethodRefundForContactProperties {
49
49
  * @required
50
50
  */
51
51
  Description: string;
52
+ /**
53
+ * Reward Ref
54
+ *
55
+ * Reward for which the payment was triggered
56
+ * @type {LOOKUP}
57
+ * @required
58
+ */
59
+ RewardRef: string;
60
+ }
61
+ /**
62
+ * Builder for CreatePaymentMethodRefundForContact action
63
+ *
64
+ * Provides fluent API for adding associations before executing the action.
65
+ * Use .link*() methods to add associations, then call .execute() to run.
66
+ *
67
+ * @example
68
+ * ```typescript
69
+ * await record.createPaymentMethodRefundForContact({ ...properties })
70
+ * .linkAssociation_1770639007207({ id: '...', entity: '...' })
71
+ * .execute();
72
+ * ```
73
+ */
74
+ export declare class CreatePaymentMethodRefundForContactBuilder {
75
+ private _associations;
76
+ private _properties;
77
+ private _pendingLinks;
78
+ private _options?;
79
+ constructor(properties: CreatePaymentMethodRefundForContactProperties, pendingLinks: OdinRecordLinkDto[], options?: {
80
+ journeyId?: string;
81
+ stageKey?: string;
82
+ });
83
+ /**
84
+ * Link PaymentMethod__PaymentMethodRefund
85
+ * @schemaAssociationId af41e2c2-aad2-46b3-9a4b-02e11a38244a
86
+ * @required
87
+ * @param target - The record to link
88
+ * @returns this (for method chaining)
89
+ */
90
+ linkAssociation_1770639007207(target: OdinRecord<any> | {
91
+ id: string;
92
+ entity: string;
93
+ }): this;
94
+ /**
95
+ * Get the action payload without executing
96
+ * @returns The action data that would be sent
97
+ */
98
+ getData(): {
99
+ entity: string;
100
+ type: string | undefined;
101
+ actionName: string;
102
+ properties: CreatePaymentMethodRefundForContactProperties;
103
+ associations?: OdinRecordLinkDto[];
104
+ journeyId?: string;
105
+ stageKey?: string;
106
+ };
52
107
  }
53
108
  /**
54
109
  * CreatePaymentMethodRefundForContact
@@ -75,6 +130,15 @@ export declare class CreatePaymentMethodRefundForContactDto extends OdinRecordCr
75
130
  static readonly STEP_SCHEMA_ID = "f47de64e-c385-4980-922c-89a1a1559bc5";
76
131
  static readonly STEP_SCHEMA_ACTION_ID = "f7aa2ec7-dc9f-4785-924f-1759dcfaa418";
77
132
  static readonly AUTO_LINK_PARENT = true;
133
+ static readonly HAS_ASSOCIATIONS = true;
134
+ static readonly HAS_REQUIRED_ASSOCIATIONS = true;
135
+ static readonly BUILDER_CLASS = "CreatePaymentMethodRefundForContactBuilder";
136
+ static readonly ASSOCIATION_FIELDS: readonly [{
137
+ readonly name: "Association_1770639007207";
138
+ readonly methodName: "linkAssociation_1770639007207";
139
+ readonly required: true;
140
+ readonly schemaAssociationId: "af41e2c2-aad2-46b3-9a4b-02e11a38244a";
141
+ }];
78
142
  readonly actionName: string;
79
143
  readonly schemaActionId: string;
80
144
  readonly entity: string;
@@ -12,8 +12,61 @@
12
12
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.CreatePaymentMethodRefundForContactDto = void 0;
15
+ exports.CreatePaymentMethodRefundForContactDto = exports.CreatePaymentMethodRefundForContactBuilder = void 0;
16
16
  const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * Builder for CreatePaymentMethodRefundForContact action
19
+ *
20
+ * Provides fluent API for adding associations before executing the action.
21
+ * Use .link*() methods to add associations, then call .execute() to run.
22
+ *
23
+ * @example
24
+ * ```typescript
25
+ * await record.createPaymentMethodRefundForContact({ ...properties })
26
+ * .linkAssociation_1770639007207({ id: '...', entity: '...' })
27
+ * .execute();
28
+ * ```
29
+ */
30
+ class CreatePaymentMethodRefundForContactBuilder {
31
+ constructor(properties, pendingLinks, options) {
32
+ this._associations = [];
33
+ this._properties = properties;
34
+ this._pendingLinks = pendingLinks;
35
+ this._options = options;
36
+ }
37
+ /**
38
+ * Link PaymentMethod__PaymentMethodRefund
39
+ * @schemaAssociationId af41e2c2-aad2-46b3-9a4b-02e11a38244a
40
+ * @required
41
+ * @param target - The record to link
42
+ * @returns this (for method chaining)
43
+ */
44
+ linkAssociation_1770639007207(target) {
45
+ this._associations.push(new core_1.OdinRecordLinkDto({
46
+ id: target.id,
47
+ entity: 'entity' in target ? target.entity : target.entity,
48
+ }));
49
+ return this;
50
+ }
51
+ /**
52
+ * Get the action payload without executing
53
+ * @returns The action data that would be sent
54
+ */
55
+ getData() {
56
+ var _a, _b;
57
+ const allAssociations = [...this._associations, ...this._pendingLinks];
58
+ return {
59
+ entity: 'BillingModule:PaymentMethodRefund',
60
+ type: undefined,
61
+ actionName: 'CreatePaymentMethodRefundForContact',
62
+ properties: this._properties,
63
+ associations: allAssociations.length > 0 ? allAssociations : undefined,
64
+ journeyId: (_a = this._options) === null || _a === void 0 ? void 0 : _a.journeyId,
65
+ stageKey: (_b = this._options) === null || _b === void 0 ? void 0 : _b.stageKey,
66
+ };
67
+ }
68
+ }
69
+ exports.CreatePaymentMethodRefundForContactBuilder = CreatePaymentMethodRefundForContactBuilder;
17
70
  /**
18
71
  * CreatePaymentMethodRefundForContact
19
72
  *
@@ -52,3 +105,7 @@ CreatePaymentMethodRefundForContactDto.STEP_ENTITY = 'BillingModule:PaymentMetho
52
105
  CreatePaymentMethodRefundForContactDto.STEP_SCHEMA_ID = 'f47de64e-c385-4980-922c-89a1a1559bc5';
53
106
  CreatePaymentMethodRefundForContactDto.STEP_SCHEMA_ACTION_ID = 'f7aa2ec7-dc9f-4785-924f-1759dcfaa418';
54
107
  CreatePaymentMethodRefundForContactDto.AUTO_LINK_PARENT = true;
108
+ CreatePaymentMethodRefundForContactDto.HAS_ASSOCIATIONS = true;
109
+ CreatePaymentMethodRefundForContactDto.HAS_REQUIRED_ASSOCIATIONS = true;
110
+ CreatePaymentMethodRefundForContactDto.BUILDER_CLASS = 'CreatePaymentMethodRefundForContactBuilder';
111
+ CreatePaymentMethodRefundForContactDto.ASSOCIATION_FIELDS = [{ "name": "Association_1770639007207", "methodName": "linkAssociation_1770639007207", "required": true, "schemaAssociationId": "af41e2c2-aad2-46b3-9a4b-02e11a38244a" }];
@@ -23,7 +23,7 @@ export interface CreateTransactionalEmailMessage extends OdinRecordCreatedEvent<
23
23
  * Properties for CreateTransactionalEmail action
24
24
  *
25
25
  * @property Required fields: 1
26
- * @property Optional fields: 22
26
+ * @property Optional fields: 23
27
27
  */
28
28
  export interface CreateTransactionalEmailProperties {
29
29
  /**
@@ -188,6 +188,13 @@ export interface CreateTransactionalEmailProperties {
188
188
  * @type {LOOKUP}
189
189
  */
190
190
  EmailSenderId?: string | null;
191
+ /**
192
+ * WorkOrder
193
+ *
194
+ * WorkOrder
195
+ * @type {LOOKUP}
196
+ */
197
+ WorkOrder?: string | null;
191
198
  }
192
199
  /**
193
200
  * CreateTransactionalEmail