@d19n/youfibre-odin-sdk 1.0.348 → 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 +1 -2
- package/dist/actions-v2/CreateCashbackRewardDto.d.ts +1 -8
- package/dist/actions-v2/CreatePaymentMethodRefundForContactDto.d.ts +66 -2
- package/dist/actions-v2/CreatePaymentMethodRefundForContactDto.js +58 -1
- package/dist/entities-v2/PaymentMethodRefund.d.ts +30 -23
- package/dist/entities-v2/PaymentMethodRefund.js +10 -8
- package/dist/records-v2/RewardRecord.d.ts +0 -28
- package/dist/records-v2/RewardRecord.js +0 -37
- package/package.json +1 -1
- package/dist/actions-v2/UpdateCashbackRewardRefundDto.d.ts +0 -77
- package/dist/actions-v2/UpdateCashbackRewardRefundDto.js +0 -61
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 **
|
|
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:
|
|
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:
|
|
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" }];
|
|
@@ -74,24 +74,26 @@ export declare enum PaymentMethodRefundOutcome {
|
|
|
74
74
|
* Use these constants instead of string literals for type safety
|
|
75
75
|
*/
|
|
76
76
|
export declare enum PaymentMethodRefundPropertyKeys {
|
|
77
|
-
/** Monetary value field for PaymentMethodRefund. Used by Finance team for financial tracking. */
|
|
78
|
-
Amount = "Amount",
|
|
79
|
-
/** Authorized By (Finance - PaymentMethodRefund) */
|
|
80
|
-
AuthorizedBy = "AuthorizedBy",
|
|
81
77
|
/** Reference identifier for PaymentMethodRefund relationships. Used for data integrity. */
|
|
82
78
|
ContactId = "ContactId",
|
|
79
|
+
/** Work Order Ref (Finance - PaymentMethodRefund) */
|
|
80
|
+
WorkOrderRef = "WorkOrderRef",
|
|
83
81
|
/** Description (Finance - PaymentMethodRefund) */
|
|
84
82
|
Description = "Description",
|
|
83
|
+
/** Status indicator for PaymentMethodRefund records. Tracks lifecycle state. Used by Finance team. */
|
|
84
|
+
Status = "Status",
|
|
85
85
|
/** Reference identifier for PaymentMethodRefund relationships. Used for data integrity. */
|
|
86
86
|
InvoiceRef = "InvoiceRef",
|
|
87
|
+
/** Monetary value field for PaymentMethodRefund. Used by Finance team for financial tracking. */
|
|
88
|
+
Amount = "Amount",
|
|
87
89
|
/** Reference identifier for PaymentMethodRefund relationships. Used for data integrity. */
|
|
88
90
|
OrderRef = "OrderRef",
|
|
89
91
|
/** Data field for PaymentMethodRefund records. Used by Finance team. */
|
|
90
92
|
Outcome = "Outcome",
|
|
91
|
-
/**
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
|
|
93
|
+
/** Authorized By (Finance - PaymentMethodRefund) */
|
|
94
|
+
AuthorizedBy = "AuthorizedBy",
|
|
95
|
+
/** Reward for which the payment was triggered */
|
|
96
|
+
RewardRef = "RewardRef"
|
|
95
97
|
}
|
|
96
98
|
/**
|
|
97
99
|
* Properties for PaymentMethodRefund records
|
|
@@ -99,32 +101,38 @@ export declare enum PaymentMethodRefundPropertyKeys {
|
|
|
99
101
|
* @see BillingModule:PaymentMethodRefund
|
|
100
102
|
*/
|
|
101
103
|
export interface PaymentMethodRefundProperties {
|
|
102
|
-
/** Monetary value field for PaymentMethodRefund. Used by Finance team for financial tracking.
|
|
103
|
-
*
|
|
104
|
-
* @type {CURRENCY}
|
|
105
|
-
*/
|
|
106
|
-
Amount: string;
|
|
107
|
-
/** Authorized By (Finance - PaymentMethodRefund)
|
|
108
|
-
*
|
|
109
|
-
* @type {TEXT}
|
|
110
|
-
*/
|
|
111
|
-
AuthorizedBy: string;
|
|
112
104
|
/** Reference identifier for PaymentMethodRefund relationships. Used for data integrity.
|
|
113
105
|
*
|
|
114
106
|
* @type {LOOKUP}
|
|
115
107
|
* @hidden This field is hidden in the UI
|
|
116
108
|
*/
|
|
117
109
|
ContactId: string;
|
|
110
|
+
/** Work Order Ref (Finance - PaymentMethodRefund)
|
|
111
|
+
*
|
|
112
|
+
* @type {LOOKUP}
|
|
113
|
+
*/
|
|
114
|
+
WorkOrderRef: string;
|
|
118
115
|
/** Description (Finance - PaymentMethodRefund)
|
|
119
116
|
*
|
|
120
117
|
* @type {TEXT}
|
|
121
118
|
*/
|
|
122
119
|
Description: string;
|
|
120
|
+
/** Status indicator for PaymentMethodRefund records. Tracks lifecycle state. Used by Finance team.
|
|
121
|
+
*
|
|
122
|
+
* @type {TEXT}
|
|
123
|
+
* @hidden This field is hidden in the UI
|
|
124
|
+
*/
|
|
125
|
+
Status: string;
|
|
123
126
|
/** Reference identifier for PaymentMethodRefund relationships. Used for data integrity.
|
|
124
127
|
*
|
|
125
128
|
* @type {LOOKUP}
|
|
126
129
|
*/
|
|
127
130
|
InvoiceRef: string;
|
|
131
|
+
/** Monetary value field for PaymentMethodRefund. Used by Finance team for financial tracking.
|
|
132
|
+
*
|
|
133
|
+
* @type {CURRENCY}
|
|
134
|
+
*/
|
|
135
|
+
Amount: string;
|
|
128
136
|
/** Reference identifier for PaymentMethodRefund relationships. Used for data integrity.
|
|
129
137
|
*
|
|
130
138
|
* @type {LOOKUP}
|
|
@@ -136,17 +144,16 @@ export interface PaymentMethodRefundProperties {
|
|
|
136
144
|
* @enum {PaymentMethodRefundOutcome}
|
|
137
145
|
*/
|
|
138
146
|
Outcome: PaymentMethodRefundOutcome;
|
|
139
|
-
/**
|
|
147
|
+
/** Authorized By (Finance - PaymentMethodRefund)
|
|
140
148
|
*
|
|
141
149
|
* @type {TEXT}
|
|
142
|
-
* @hidden This field is hidden in the UI
|
|
143
150
|
*/
|
|
144
|
-
|
|
145
|
-
/**
|
|
151
|
+
AuthorizedBy: string;
|
|
152
|
+
/** Reward for which the payment was triggered
|
|
146
153
|
*
|
|
147
154
|
* @type {LOOKUP}
|
|
148
155
|
*/
|
|
149
|
-
|
|
156
|
+
RewardRef: string;
|
|
150
157
|
}
|
|
151
158
|
/**
|
|
152
159
|
* PaymentMethodRefund entity from BillingModule
|
|
@@ -73,24 +73,26 @@ var PaymentMethodRefundOutcome;
|
|
|
73
73
|
*/
|
|
74
74
|
var PaymentMethodRefundPropertyKeys;
|
|
75
75
|
(function (PaymentMethodRefundPropertyKeys) {
|
|
76
|
-
/** Monetary value field for PaymentMethodRefund. Used by Finance team for financial tracking. */
|
|
77
|
-
PaymentMethodRefundPropertyKeys["Amount"] = "Amount";
|
|
78
|
-
/** Authorized By (Finance - PaymentMethodRefund) */
|
|
79
|
-
PaymentMethodRefundPropertyKeys["AuthorizedBy"] = "AuthorizedBy";
|
|
80
76
|
/** Reference identifier for PaymentMethodRefund relationships. Used for data integrity. */
|
|
81
77
|
PaymentMethodRefundPropertyKeys["ContactId"] = "ContactId";
|
|
78
|
+
/** Work Order Ref (Finance - PaymentMethodRefund) */
|
|
79
|
+
PaymentMethodRefundPropertyKeys["WorkOrderRef"] = "WorkOrderRef";
|
|
82
80
|
/** Description (Finance - PaymentMethodRefund) */
|
|
83
81
|
PaymentMethodRefundPropertyKeys["Description"] = "Description";
|
|
82
|
+
/** Status indicator for PaymentMethodRefund records. Tracks lifecycle state. Used by Finance team. */
|
|
83
|
+
PaymentMethodRefundPropertyKeys["Status"] = "Status";
|
|
84
84
|
/** Reference identifier for PaymentMethodRefund relationships. Used for data integrity. */
|
|
85
85
|
PaymentMethodRefundPropertyKeys["InvoiceRef"] = "InvoiceRef";
|
|
86
|
+
/** Monetary value field for PaymentMethodRefund. Used by Finance team for financial tracking. */
|
|
87
|
+
PaymentMethodRefundPropertyKeys["Amount"] = "Amount";
|
|
86
88
|
/** Reference identifier for PaymentMethodRefund relationships. Used for data integrity. */
|
|
87
89
|
PaymentMethodRefundPropertyKeys["OrderRef"] = "OrderRef";
|
|
88
90
|
/** Data field for PaymentMethodRefund records. Used by Finance team. */
|
|
89
91
|
PaymentMethodRefundPropertyKeys["Outcome"] = "Outcome";
|
|
90
|
-
/**
|
|
91
|
-
PaymentMethodRefundPropertyKeys["
|
|
92
|
-
/**
|
|
93
|
-
PaymentMethodRefundPropertyKeys["
|
|
92
|
+
/** Authorized By (Finance - PaymentMethodRefund) */
|
|
93
|
+
PaymentMethodRefundPropertyKeys["AuthorizedBy"] = "AuthorizedBy";
|
|
94
|
+
/** Reward for which the payment was triggered */
|
|
95
|
+
PaymentMethodRefundPropertyKeys["RewardRef"] = "RewardRef";
|
|
94
96
|
})(PaymentMethodRefundPropertyKeys = exports.PaymentMethodRefundPropertyKeys || (exports.PaymentMethodRefundPropertyKeys = {}));
|
|
95
97
|
/**
|
|
96
98
|
* PaymentMethodRefund entity from BillingModule
|
|
@@ -24,7 +24,6 @@ import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
|
24
24
|
import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
|
|
25
25
|
import { RewardProperties, CashbackRewardProperties } from '../entities-v2/Reward';
|
|
26
26
|
import { CreateCashbackRewardProperties } from '../actions-v2/CreateCashbackRewardDto';
|
|
27
|
-
import { UpdateCashbackRewardRefundProperties } from '../actions-v2/UpdateCashbackRewardRefundDto';
|
|
28
27
|
import { CampaignRecord } from './CampaignRecord';
|
|
29
28
|
import { ContactRecord } from './ContactRecord';
|
|
30
29
|
import { AffiliateCodeRecord } from './AffiliateCodeRecord';
|
|
@@ -282,33 +281,6 @@ export declare class RewardRecord<TProps = RewardProperties> {
|
|
|
282
281
|
moveCashbackRewardToFailed(options?: {
|
|
283
282
|
journeyId?: string;
|
|
284
283
|
}): ActionBuilder;
|
|
285
|
-
/**
|
|
286
|
-
* UpdateCashbackRewardRefund
|
|
287
|
-
*
|
|
288
|
-
* Updates this Reward record.
|
|
289
|
-
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
290
|
-
*
|
|
291
|
-
* @param propertiesOrOptions - Properties to update, or options object
|
|
292
|
-
* @param options - Optional settings (journeyId, stageKey)
|
|
293
|
-
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
294
|
-
* @throws Error if called on a new (unsaved) record
|
|
295
|
-
*
|
|
296
|
-
* @example
|
|
297
|
-
* ```typescript
|
|
298
|
-
* const record = await odinClient.rewards.get(id);
|
|
299
|
-
* await record.updateCashbackRewardRefund({ ... }).execute();
|
|
300
|
-
*
|
|
301
|
-
* // Dry run (for debugging)
|
|
302
|
-
* const payload = record.updateCashbackRewardRefund({ ... }).dryRun();
|
|
303
|
-
* ```
|
|
304
|
-
*/
|
|
305
|
-
updateCashbackRewardRefund(propertiesOrOptions?: UpdateCashbackRewardRefundProperties | {
|
|
306
|
-
journeyId?: string;
|
|
307
|
-
stageKey?: string;
|
|
308
|
-
}, options?: {
|
|
309
|
-
journeyId?: string;
|
|
310
|
-
stageKey?: string;
|
|
311
|
-
}): ActionBuilder;
|
|
312
284
|
}
|
|
313
285
|
/** Type guard to check if an object is a RewardRecord */
|
|
314
286
|
export declare function isRewardRecord(obj: any): obj is RewardRecord;
|
|
@@ -385,43 +385,6 @@ class RewardRecord {
|
|
|
385
385
|
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveCashbackRewardToFailed', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'CashBackFlowStageFailed' }, options);
|
|
386
386
|
return new ActionBuilder(this._provider, 'CrmModule', 'Reward', payload, () => { this._pendingLinks = []; });
|
|
387
387
|
}
|
|
388
|
-
/**
|
|
389
|
-
* UpdateCashbackRewardRefund
|
|
390
|
-
*
|
|
391
|
-
* Updates this Reward record.
|
|
392
|
-
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
393
|
-
*
|
|
394
|
-
* @param propertiesOrOptions - Properties to update, or options object
|
|
395
|
-
* @param options - Optional settings (journeyId, stageKey)
|
|
396
|
-
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
397
|
-
* @throws Error if called on a new (unsaved) record
|
|
398
|
-
*
|
|
399
|
-
* @example
|
|
400
|
-
* ```typescript
|
|
401
|
-
* const record = await odinClient.rewards.get(id);
|
|
402
|
-
* await record.updateCashbackRewardRefund({ ... }).execute();
|
|
403
|
-
*
|
|
404
|
-
* // Dry run (for debugging)
|
|
405
|
-
* const payload = record.updateCashbackRewardRefund({ ... }).dryRun();
|
|
406
|
-
* ```
|
|
407
|
-
*/
|
|
408
|
-
updateCashbackRewardRefund(propertiesOrOptions, options) {
|
|
409
|
-
var _a;
|
|
410
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
411
|
-
throw new Error('updateCashbackRewardRefund requires an existing record. Use accessor.get() first.');
|
|
412
|
-
let properties = {};
|
|
413
|
-
let opts = options;
|
|
414
|
-
if (propertiesOrOptions) {
|
|
415
|
-
if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
|
|
416
|
-
opts = propertiesOrOptions;
|
|
417
|
-
}
|
|
418
|
-
else {
|
|
419
|
-
properties = propertiesOrOptions;
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCashbackRewardRefund', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
|
|
423
|
-
return new ActionBuilder(this._provider, 'CrmModule', 'Reward', payload, () => { this._pendingLinks = []; });
|
|
424
|
-
}
|
|
425
388
|
}
|
|
426
389
|
exports.RewardRecord = RewardRecord;
|
|
427
390
|
// ============================================
|
package/package.json
CHANGED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UpdateCashbackRewardRefund Action DTO
|
|
3
|
-
*
|
|
4
|
-
* Set refund reference to track the process
|
|
5
|
-
*
|
|
6
|
-
* @module CrmModule
|
|
7
|
-
* @entity Reward
|
|
8
|
-
* @entityType CASHBACK
|
|
9
|
-
* @actionKey UpdateCashbackRewardRefund
|
|
10
|
-
* @event k1.t-hEOJjsDb.CrmModule.Reward.Update.UpdateCashbackRewardRefund
|
|
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 UpdateCashbackRewardRefund updated events
|
|
17
|
-
*
|
|
18
|
-
* @event k1.t-hEOJjsDb.CrmModule.Reward.Update.UpdateCashbackRewardRefund
|
|
19
|
-
*/
|
|
20
|
-
export interface UpdateCashbackRewardRefundMessage extends OdinRecordUpdatedEvent<UpdateCashbackRewardRefundDto, UpdateCashbackRewardRefundProperties> {
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Properties for UpdateCashbackRewardRefund action
|
|
24
|
-
*
|
|
25
|
-
* @property Required fields: 0
|
|
26
|
-
* @property Optional fields: 1
|
|
27
|
-
*/
|
|
28
|
-
export interface UpdateCashbackRewardRefundProperties {
|
|
29
|
-
/**
|
|
30
|
-
* PaymentMethodRefundId
|
|
31
|
-
*
|
|
32
|
-
* PaymentMethodRefund reference
|
|
33
|
-
* @type {LOOKUP}
|
|
34
|
-
*/
|
|
35
|
-
PaymentMethodRefundId?: string | null;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* UpdateCashbackRewardRefund
|
|
39
|
-
*
|
|
40
|
-
* Set refund reference to track the process
|
|
41
|
-
*
|
|
42
|
-
* @actionType UPDATE - Updates an existing Reward record
|
|
43
|
-
* @module CrmModule
|
|
44
|
-
* @entity Reward
|
|
45
|
-
* @entityType CASHBACK (CASHBACK)
|
|
46
|
-
* @event k1.t-hEOJjsDb.CrmModule.Reward.Update.UpdateCashbackRewardRefund
|
|
47
|
-
* @permission schema.action.updatecashbackrewardrefund.trigger
|
|
48
|
-
* @benchmark This action is tracked for performance benchmarks
|
|
49
|
-
*/
|
|
50
|
-
export declare class UpdateCashbackRewardRefundDto extends OdinRecordUpdateDto<UpdateCashbackRewardRefundProperties> {
|
|
51
|
-
/** Used by SDK generators to identify action type */
|
|
52
|
-
static readonly ACTION_TYPE = "UPDATE";
|
|
53
|
-
static readonly ACTION_KEY = "UpdateCashbackRewardRefund";
|
|
54
|
-
static readonly MODULE_NAME = "CrmModule";
|
|
55
|
-
static readonly ENTITIES: string[];
|
|
56
|
-
static readonly ENTITY_TYPE = "CASHBACK";
|
|
57
|
-
static readonly EVENT_NAME = "k1.t-hEOJjsDb.CrmModule.Reward.Update.UpdateCashbackRewardRefund";
|
|
58
|
-
static readonly PERMISSION = "schema.action.updatecashbackrewardrefund.trigger";
|
|
59
|
-
/** Step metadata - entity this action targets */
|
|
60
|
-
static readonly STEP_ENTITY = "CrmModule:Reward";
|
|
61
|
-
static readonly STEP_SCHEMA_ID = "5047247a-31ca-4a1c-aa06-c27fefbb543d";
|
|
62
|
-
static readonly STEP_SCHEMA_ACTION_ID = "192f3a10-aedc-4b56-b439-0349751e14f5";
|
|
63
|
-
static readonly STEP_SCHEMA_TYPE_ID = "54d3e893-dd2c-45af-aeec-9df5c753e887";
|
|
64
|
-
static readonly STEP_TYPE = "CASHBACK";
|
|
65
|
-
static readonly AUTO_LINK_PARENT = false;
|
|
66
|
-
readonly actionName: string;
|
|
67
|
-
readonly schemaActionId: string;
|
|
68
|
-
readonly entity: string;
|
|
69
|
-
constructor(record: OdinRecord<any> | {
|
|
70
|
-
id: string;
|
|
71
|
-
entity: string;
|
|
72
|
-
type?: string;
|
|
73
|
-
}, properties: UpdateCashbackRewardRefundProperties, options?: {
|
|
74
|
-
journeyId?: string;
|
|
75
|
-
stageKey?: string;
|
|
76
|
-
});
|
|
77
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* UpdateCashbackRewardRefund Action DTO
|
|
4
|
-
*
|
|
5
|
-
* Set refund reference to track the process
|
|
6
|
-
*
|
|
7
|
-
* @module CrmModule
|
|
8
|
-
* @entity Reward
|
|
9
|
-
* @entityType CASHBACK
|
|
10
|
-
* @actionKey UpdateCashbackRewardRefund
|
|
11
|
-
* @event k1.t-hEOJjsDb.CrmModule.Reward.Update.UpdateCashbackRewardRefund
|
|
12
|
-
*
|
|
13
|
-
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.UpdateCashbackRewardRefundDto = void 0;
|
|
17
|
-
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
-
/**
|
|
19
|
-
* UpdateCashbackRewardRefund
|
|
20
|
-
*
|
|
21
|
-
* Set refund reference to track the process
|
|
22
|
-
*
|
|
23
|
-
* @actionType UPDATE - Updates an existing Reward record
|
|
24
|
-
* @module CrmModule
|
|
25
|
-
* @entity Reward
|
|
26
|
-
* @entityType CASHBACK (CASHBACK)
|
|
27
|
-
* @event k1.t-hEOJjsDb.CrmModule.Reward.Update.UpdateCashbackRewardRefund
|
|
28
|
-
* @permission schema.action.updatecashbackrewardrefund.trigger
|
|
29
|
-
* @benchmark This action is tracked for performance benchmarks
|
|
30
|
-
*/
|
|
31
|
-
class UpdateCashbackRewardRefundDto 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 = 'UpdateCashbackRewardRefund';
|
|
42
|
-
this.schemaActionId = '192f3a10-aedc-4b56-b439-0349751e14f5';
|
|
43
|
-
this.entity = 'CrmModule:Reward';
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
exports.UpdateCashbackRewardRefundDto = UpdateCashbackRewardRefundDto;
|
|
47
|
-
/** Used by SDK generators to identify action type */
|
|
48
|
-
UpdateCashbackRewardRefundDto.ACTION_TYPE = 'UPDATE';
|
|
49
|
-
UpdateCashbackRewardRefundDto.ACTION_KEY = 'UpdateCashbackRewardRefund';
|
|
50
|
-
UpdateCashbackRewardRefundDto.MODULE_NAME = 'CrmModule';
|
|
51
|
-
UpdateCashbackRewardRefundDto.ENTITIES = ['Reward'];
|
|
52
|
-
UpdateCashbackRewardRefundDto.ENTITY_TYPE = 'CASHBACK';
|
|
53
|
-
UpdateCashbackRewardRefundDto.EVENT_NAME = 'k1.t-hEOJjsDb.CrmModule.Reward.Update.UpdateCashbackRewardRefund';
|
|
54
|
-
UpdateCashbackRewardRefundDto.PERMISSION = 'schema.action.updatecashbackrewardrefund.trigger';
|
|
55
|
-
/** Step metadata - entity this action targets */
|
|
56
|
-
UpdateCashbackRewardRefundDto.STEP_ENTITY = 'CrmModule:Reward';
|
|
57
|
-
UpdateCashbackRewardRefundDto.STEP_SCHEMA_ID = '5047247a-31ca-4a1c-aa06-c27fefbb543d';
|
|
58
|
-
UpdateCashbackRewardRefundDto.STEP_SCHEMA_ACTION_ID = '192f3a10-aedc-4b56-b439-0349751e14f5';
|
|
59
|
-
UpdateCashbackRewardRefundDto.STEP_SCHEMA_TYPE_ID = '54d3e893-dd2c-45af-aeec-9df5c753e887';
|
|
60
|
-
UpdateCashbackRewardRefundDto.STEP_TYPE = 'CASHBACK';
|
|
61
|
-
UpdateCashbackRewardRefundDto.AUTO_LINK_PARENT = false;
|