@d19n/youfibre-odin-sdk 2.0.204 → 2.0.206

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.
@@ -0,0 +1,89 @@
1
+ /**
2
+ * UpdateCallRecordingDetails Action DTO
3
+ *
4
+ * Update with call recording details
5
+ *
6
+ * @module NotificationModule
7
+ * @entity Call
8
+ * @actionKey UpdateCallRecordingDetails
9
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallRecordingDetails
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for UpdateCallRecordingDetails updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallRecordingDetails
18
+ */
19
+ export interface UpdateCallRecordingDetailsMessage extends OdinRecordUpdatedEvent<UpdateCallRecordingDetailsDto, UpdateCallRecordingDetailsProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateCallRecordingDetails action
23
+ *
24
+ * @property Required fields: 3
25
+ * @property Optional fields: 0
26
+ */
27
+ export interface UpdateCallRecordingDetailsProperties {
28
+ /**
29
+ * RecordingSid
30
+ *
31
+ * Twilio ID for Recording (Communications - Call)
32
+ * @type {TEXT}
33
+ * @required
34
+ */
35
+ RecordingSid: string;
36
+ /**
37
+ * RecordingDuration
38
+ *
39
+ * RecordingDuration (Communications - Call)
40
+ * @type {NUMBER}
41
+ * @required
42
+ */
43
+ RecordingDuration: number;
44
+ /**
45
+ * RecordingUrl
46
+ *
47
+ * RecordingUrl (Communications - Call)
48
+ * @type {TEXT}
49
+ * @required
50
+ */
51
+ RecordingUrl: string;
52
+ }
53
+ /**
54
+ * UpdateCallRecordingDetails
55
+ *
56
+ * Update with call recording details
57
+ *
58
+ * @actionType UPDATE - Updates an existing Call record
59
+ * @module NotificationModule
60
+ * @entity Call
61
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallRecordingDetails
62
+ * @permission schema.action.updatecallrecordingdetails.trigger
63
+ * @benchmark This action is tracked for performance benchmarks
64
+ */
65
+ export declare class UpdateCallRecordingDetailsDto extends OdinRecordUpdateDto<UpdateCallRecordingDetailsProperties> {
66
+ /** Used by SDK generators to identify action type */
67
+ static readonly ACTION_TYPE = "UPDATE";
68
+ static readonly ACTION_KEY = "UpdateCallRecordingDetails";
69
+ static readonly MODULE_NAME = "NotificationModule";
70
+ static readonly ENTITIES: string[];
71
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallRecordingDetails";
72
+ static readonly PERMISSION = "schema.action.updatecallrecordingdetails.trigger";
73
+ /** Step metadata - entity this action targets */
74
+ static readonly STEP_ENTITY = "NotificationModule:Call";
75
+ static readonly STEP_SCHEMA_ID = "e157f15c-6846-4bfb-bc92-aed4c4084e9f";
76
+ static readonly STEP_SCHEMA_ACTION_ID = "929b0409-decf-4942-834c-c2f0ba01bedf";
77
+ static readonly AUTO_LINK_PARENT = false;
78
+ readonly actionName: string;
79
+ readonly schemaActionId: string;
80
+ readonly entity: string;
81
+ constructor(record: OdinRecord<any> | {
82
+ id: string;
83
+ entity: string;
84
+ type?: string;
85
+ }, properties: UpdateCallRecordingDetailsProperties, options?: {
86
+ journeyId?: string;
87
+ stageKey?: string;
88
+ });
89
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateCallRecordingDetails Action DTO
4
+ *
5
+ * Update with call recording details
6
+ *
7
+ * @module NotificationModule
8
+ * @entity Call
9
+ * @actionKey UpdateCallRecordingDetails
10
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallRecordingDetails
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateCallRecordingDetailsDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateCallRecordingDetails
19
+ *
20
+ * Update with call recording details
21
+ *
22
+ * @actionType UPDATE - Updates an existing Call record
23
+ * @module NotificationModule
24
+ * @entity Call
25
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallRecordingDetails
26
+ * @permission schema.action.updatecallrecordingdetails.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateCallRecordingDetailsDto extends core_1.OdinRecordUpdateDto {
30
+ constructor(record, properties, options) {
31
+ super({
32
+ id: record.id,
33
+ entity: record.entity,
34
+ type: record.type,
35
+ properties,
36
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
37
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
38
+ });
39
+ this.actionName = 'UpdateCallRecordingDetails';
40
+ this.schemaActionId = '929b0409-decf-4942-834c-c2f0ba01bedf';
41
+ this.entity = 'NotificationModule:Call';
42
+ }
43
+ }
44
+ exports.UpdateCallRecordingDetailsDto = UpdateCallRecordingDetailsDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateCallRecordingDetailsDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateCallRecordingDetailsDto.ACTION_KEY = 'UpdateCallRecordingDetails';
48
+ UpdateCallRecordingDetailsDto.MODULE_NAME = 'NotificationModule';
49
+ UpdateCallRecordingDetailsDto.ENTITIES = ['Call'];
50
+ UpdateCallRecordingDetailsDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallRecordingDetails';
51
+ UpdateCallRecordingDetailsDto.PERMISSION = 'schema.action.updatecallrecordingdetails.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdateCallRecordingDetailsDto.STEP_ENTITY = 'NotificationModule:Call';
54
+ UpdateCallRecordingDetailsDto.STEP_SCHEMA_ID = 'e157f15c-6846-4bfb-bc92-aed4c4084e9f';
55
+ UpdateCallRecordingDetailsDto.STEP_SCHEMA_ACTION_ID = '929b0409-decf-4942-834c-c2f0ba01bedf';
56
+ UpdateCallRecordingDetailsDto.AUTO_LINK_PARENT = false;
@@ -55,7 +55,9 @@ export declare enum DefaultPgPaymentMethodStageNames {
55
55
  /** Instruction Rejected (fail) */
56
56
  InstructionRejected = "Instruction Rejected",
57
57
  /** Invalid (fail) */
58
- Invalid = "Invalid"
58
+ Invalid = "Invalid",
59
+ /** Reallocating */
60
+ Reallocating = "Reallocating"
59
61
  }
60
62
  /**
61
63
  * Pipeline stage keys for DEFAULT PgPaymentMethod
@@ -89,7 +91,9 @@ export declare enum DefaultPgPaymentMethodStageKeys {
89
91
  /** Instruction Rejected */
90
92
  StatusStageInstructionRejected = "StatusStageInstructionRejected",
91
93
  /** Invalid */
92
- StatusStageInvalid = "StatusStageInvalid"
94
+ StatusStageInvalid = "StatusStageInvalid",
95
+ /** Reallocating */
96
+ StatusStageReallocating = "StatusStageReallocating"
93
97
  }
94
98
  /**
95
99
  * Valid values for PgPaymentMethod.Company
@@ -132,8 +136,6 @@ export declare enum PgPaymentMethodPublicView {
132
136
  * Use these constants instead of string literals for type safety
133
137
  */
134
138
  export declare enum PgPaymentMethodPropertyKeys {
135
- /** Account Number */
136
- AccountNumber = "AccountNumber",
137
139
  /** Activated Datetime */
138
140
  ActivatedDatetime = "ActivatedDatetime",
139
141
  /** Contact */
@@ -142,6 +144,8 @@ export declare enum PgPaymentMethodPropertyKeys {
142
144
  Message = "Message",
143
145
  /** Payment method to be used for the customer, if true */
144
146
  InUse = "InUse",
147
+ /** Account Number */
148
+ AccountNumber = "AccountNumber",
145
149
  /** Company */
146
150
  Company = "Company",
147
151
  /** Fingerprint */
@@ -160,10 +164,10 @@ export declare enum PgPaymentMethodPropertyKeys {
160
164
  PublicView = "PublicView",
161
165
  /** Mandate */
162
166
  Mandate = "Mandate",
163
- /** BankName */
164
- BankName = "BankName",
165
167
  /** Bacs Reference */
166
- BacsReference = "BacsReference"
168
+ BacsReference = "BacsReference",
169
+ /** BankName */
170
+ BankName = "BankName"
167
171
  }
168
172
  /**
169
173
  * Properties for PgPaymentMethod records
@@ -171,11 +175,6 @@ export declare enum PgPaymentMethodPropertyKeys {
171
175
  * @see BillingModule:PgPaymentMethod
172
176
  */
173
177
  export interface PgPaymentMethodProperties {
174
- /** Account Number
175
- *
176
- * @type {TEXT}
177
- */
178
- AccountNumber: string;
179
178
  /** Activated Datetime
180
179
  *
181
180
  * @type {DATE_TIME}
@@ -196,6 +195,11 @@ export interface PgPaymentMethodProperties {
196
195
  * @type {BOOLEAN}
197
196
  */
198
197
  InUse: boolean;
198
+ /** Account Number
199
+ *
200
+ * @type {TEXT}
201
+ */
202
+ AccountNumber: string;
199
203
  /** Company
200
204
  *
201
205
  * @type {ENUM}
@@ -245,16 +249,16 @@ export interface PgPaymentMethodProperties {
245
249
  * @type {UUID}
246
250
  */
247
251
  Mandate: string;
248
- /** BankName
252
+ /** Bacs Reference
249
253
  *
250
254
  * @type {TEXT}
251
255
  */
252
- BankName: string;
253
- /** Bacs Reference
256
+ BacsReference: string;
257
+ /** BankName
254
258
  *
255
259
  * @type {TEXT}
256
260
  */
257
- BacsReference: string;
261
+ BankName: string;
258
262
  }
259
263
  /**
260
264
  * PgPaymentMethod entity from BillingModule
@@ -57,6 +57,8 @@ var DefaultPgPaymentMethodStageNames;
57
57
  DefaultPgPaymentMethodStageNames["InstructionRejected"] = "Instruction Rejected";
58
58
  /** Invalid (fail) */
59
59
  DefaultPgPaymentMethodStageNames["Invalid"] = "Invalid";
60
+ /** Reallocating */
61
+ DefaultPgPaymentMethodStageNames["Reallocating"] = "Reallocating";
60
62
  })(DefaultPgPaymentMethodStageNames = exports.DefaultPgPaymentMethodStageNames || (exports.DefaultPgPaymentMethodStageNames = {}));
61
63
  /**
62
64
  * Pipeline stage keys for DEFAULT PgPaymentMethod
@@ -92,6 +94,8 @@ var DefaultPgPaymentMethodStageKeys;
92
94
  DefaultPgPaymentMethodStageKeys["StatusStageInstructionRejected"] = "StatusStageInstructionRejected";
93
95
  /** Invalid */
94
96
  DefaultPgPaymentMethodStageKeys["StatusStageInvalid"] = "StatusStageInvalid";
97
+ /** Reallocating */
98
+ DefaultPgPaymentMethodStageKeys["StatusStageReallocating"] = "StatusStageReallocating";
95
99
  })(DefaultPgPaymentMethodStageKeys = exports.DefaultPgPaymentMethodStageKeys || (exports.DefaultPgPaymentMethodStageKeys = {}));
96
100
  /**
97
101
  * Valid values for PgPaymentMethod.Company
@@ -137,8 +141,6 @@ var PgPaymentMethodPublicView;
137
141
  */
138
142
  var PgPaymentMethodPropertyKeys;
139
143
  (function (PgPaymentMethodPropertyKeys) {
140
- /** Account Number */
141
- PgPaymentMethodPropertyKeys["AccountNumber"] = "AccountNumber";
142
144
  /** Activated Datetime */
143
145
  PgPaymentMethodPropertyKeys["ActivatedDatetime"] = "ActivatedDatetime";
144
146
  /** Contact */
@@ -147,6 +149,8 @@ var PgPaymentMethodPropertyKeys;
147
149
  PgPaymentMethodPropertyKeys["Message"] = "Message";
148
150
  /** Payment method to be used for the customer, if true */
149
151
  PgPaymentMethodPropertyKeys["InUse"] = "InUse";
152
+ /** Account Number */
153
+ PgPaymentMethodPropertyKeys["AccountNumber"] = "AccountNumber";
150
154
  /** Company */
151
155
  PgPaymentMethodPropertyKeys["Company"] = "Company";
152
156
  /** Fingerprint */
@@ -165,10 +169,10 @@ var PgPaymentMethodPropertyKeys;
165
169
  PgPaymentMethodPropertyKeys["PublicView"] = "PublicView";
166
170
  /** Mandate */
167
171
  PgPaymentMethodPropertyKeys["Mandate"] = "Mandate";
168
- /** BankName */
169
- PgPaymentMethodPropertyKeys["BankName"] = "BankName";
170
172
  /** Bacs Reference */
171
173
  PgPaymentMethodPropertyKeys["BacsReference"] = "BacsReference";
174
+ /** BankName */
175
+ PgPaymentMethodPropertyKeys["BankName"] = "BankName";
172
176
  })(PgPaymentMethodPropertyKeys = exports.PgPaymentMethodPropertyKeys || (exports.PgPaymentMethodPropertyKeys = {}));
173
177
  /**
174
178
  * PgPaymentMethod entity from BillingModule
@@ -57,7 +57,9 @@ export declare enum ChargePgTransactionStageNames {
57
57
  /** Failed (fail) */
58
58
  Failed = "Failed",
59
59
  /** Cancelled */
60
- Cancelled = "Cancelled"
60
+ Cancelled = "Cancelled",
61
+ /** Reallocating */
62
+ Reallocating = "Reallocating"
61
63
  }
62
64
  /**
63
65
  * Pipeline stage keys for CHARGE PgTransaction
@@ -89,7 +91,9 @@ export declare enum ChargePgTransactionStageKeys {
89
91
  /** Failed */
90
92
  ChargeStatusStageFailed = "ChargeStatusStageFailed",
91
93
  /** Cancelled */
92
- ChargeStatusStageCancelled = "ChargeStatusStageCancelled"
94
+ ChargeStatusStageCancelled = "ChargeStatusStageCancelled",
95
+ /** Reallocating */
96
+ ChargeStatusStageReallocating = "ChargeStatusStageReallocating"
93
97
  }
94
98
  /**
95
99
  * Pipeline stage names for REFUND PgTransaction
@@ -122,7 +126,9 @@ export declare enum RefundPgTransactionStageNames {
122
126
  /** Failed (fail) */
123
127
  Failed = "Failed",
124
128
  /** Cancelled */
125
- Cancelled = "Cancelled"
129
+ Cancelled = "Cancelled",
130
+ /** Reallocating */
131
+ Reallocating = "Reallocating"
126
132
  }
127
133
  /**
128
134
  * Pipeline stage keys for REFUND PgTransaction
@@ -154,7 +160,9 @@ export declare enum RefundPgTransactionStageKeys {
154
160
  /** Failed */
155
161
  RefundStatusStageFailed = "RefundStatusStageFailed",
156
162
  /** Cancelled */
157
- RefundStatusStageCancelled = "RefundStatusStageCancelled"
163
+ RefundStatusStageCancelled = "RefundStatusStageCancelled",
164
+ /** Reallocating */
165
+ RefundStatusStageReallocating = "RefundStatusStageReallocating"
158
166
  }
159
167
  /**
160
168
  * Valid values for PgTransaction.PublicView
@@ -59,6 +59,8 @@ var ChargePgTransactionStageNames;
59
59
  ChargePgTransactionStageNames["Failed"] = "Failed";
60
60
  /** Cancelled */
61
61
  ChargePgTransactionStageNames["Cancelled"] = "Cancelled";
62
+ /** Reallocating */
63
+ ChargePgTransactionStageNames["Reallocating"] = "Reallocating";
62
64
  })(ChargePgTransactionStageNames = exports.ChargePgTransactionStageNames || (exports.ChargePgTransactionStageNames = {}));
63
65
  /**
64
66
  * Pipeline stage keys for CHARGE PgTransaction
@@ -92,6 +94,8 @@ var ChargePgTransactionStageKeys;
92
94
  ChargePgTransactionStageKeys["ChargeStatusStageFailed"] = "ChargeStatusStageFailed";
93
95
  /** Cancelled */
94
96
  ChargePgTransactionStageKeys["ChargeStatusStageCancelled"] = "ChargeStatusStageCancelled";
97
+ /** Reallocating */
98
+ ChargePgTransactionStageKeys["ChargeStatusStageReallocating"] = "ChargeStatusStageReallocating";
95
99
  })(ChargePgTransactionStageKeys = exports.ChargePgTransactionStageKeys || (exports.ChargePgTransactionStageKeys = {}));
96
100
  /**
97
101
  * Pipeline stage names for REFUND PgTransaction
@@ -126,6 +130,8 @@ var RefundPgTransactionStageNames;
126
130
  RefundPgTransactionStageNames["Failed"] = "Failed";
127
131
  /** Cancelled */
128
132
  RefundPgTransactionStageNames["Cancelled"] = "Cancelled";
133
+ /** Reallocating */
134
+ RefundPgTransactionStageNames["Reallocating"] = "Reallocating";
129
135
  })(RefundPgTransactionStageNames = exports.RefundPgTransactionStageNames || (exports.RefundPgTransactionStageNames = {}));
130
136
  /**
131
137
  * Pipeline stage keys for REFUND PgTransaction
@@ -159,6 +165,8 @@ var RefundPgTransactionStageKeys;
159
165
  RefundPgTransactionStageKeys["RefundStatusStageFailed"] = "RefundStatusStageFailed";
160
166
  /** Cancelled */
161
167
  RefundPgTransactionStageKeys["RefundStatusStageCancelled"] = "RefundStatusStageCancelled";
168
+ /** Reallocating */
169
+ RefundPgTransactionStageKeys["RefundStatusStageReallocating"] = "RefundStatusStageReallocating";
162
170
  })(RefundPgTransactionStageKeys = exports.RefundPgTransactionStageKeys || (exports.RefundPgTransactionStageKeys = {}));
163
171
  /**
164
172
  * Valid values for PgTransaction.PublicView
@@ -39,6 +39,7 @@ import { UpdateCallOnOutboundCallCompletedProperties } from '../actions-v2/Updat
39
39
  import { UpdateCallOnOutboundDialActionProperties } from '../actions-v2/UpdateCallOnOutboundDialActionDto';
40
40
  import { UpdateCallOnTaskCanceledProperties } from '../actions-v2/UpdateCallOnTaskCanceledDto';
41
41
  import { UpdateCallOnTaskRouterAssignProperties } from '../actions-v2/UpdateCallOnTaskRouterAssignDto';
42
+ import { UpdateCallRecordingDetailsProperties } from '../actions-v2/UpdateCallRecordingDetailsDto';
42
43
  import { UpdateCallTranscriptionUrlProperties } from '../actions-v2/UpdateCallTranscriptionUrlDto';
43
44
  import { LeadRecord } from './LeadRecord';
44
45
  import { FileRecord } from './FileRecord';
@@ -713,6 +714,32 @@ export declare class CallRecord<TProps = CallProperties> {
713
714
  journeyId?: string;
714
715
  stageKey?: string;
715
716
  }): ActionBuilder;
717
+ /**
718
+ * UpdateCallRecordingDetails
719
+ *
720
+ * Updates this Call record with the specified properties.
721
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
722
+ *
723
+ * @param properties - Required properties for this action
724
+ * @param options - Optional settings
725
+ * @param options.journeyId - Associate with a journey
726
+ * @param options.stageKey - Transition to pipeline stage
727
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
728
+ * @throws Error if called on a new (unsaved) record
729
+ *
730
+ * @example
731
+ * ```typescript
732
+ * const record = await odinClient.calls.get(id);
733
+ * await record.updateCallRecordingDetails({ ... }).execute();
734
+ *
735
+ * // Dry run (for debugging)
736
+ * const payload = record.updateCallRecordingDetails({ ... }).dryRun();
737
+ * ```
738
+ */
739
+ updateCallRecordingDetails(properties: UpdateCallRecordingDetailsProperties, options?: {
740
+ journeyId?: string;
741
+ stageKey?: string;
742
+ }): ActionBuilder;
716
743
  /**
717
744
  * UpdateCallTranscriptionUrl
718
745
  *
@@ -902,6 +902,35 @@ class CallRecord {
902
902
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnTaskRouterAssign', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
903
903
  return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
904
904
  }
905
+ /**
906
+ * UpdateCallRecordingDetails
907
+ *
908
+ * Updates this Call record with the specified properties.
909
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
910
+ *
911
+ * @param properties - Required properties for this action
912
+ * @param options - Optional settings
913
+ * @param options.journeyId - Associate with a journey
914
+ * @param options.stageKey - Transition to pipeline stage
915
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
916
+ * @throws Error if called on a new (unsaved) record
917
+ *
918
+ * @example
919
+ * ```typescript
920
+ * const record = await odinClient.calls.get(id);
921
+ * await record.updateCallRecordingDetails({ ... }).execute();
922
+ *
923
+ * // Dry run (for debugging)
924
+ * const payload = record.updateCallRecordingDetails({ ... }).dryRun();
925
+ * ```
926
+ */
927
+ updateCallRecordingDetails(properties, options) {
928
+ var _a;
929
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
930
+ throw new Error('updateCallRecordingDetails requires an existing record. Use accessor.get() first.');
931
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallRecordingDetails', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
932
+ return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
933
+ }
905
934
  /**
906
935
  * UpdateCallTranscriptionUrl
907
936
  *
@@ -417,6 +417,31 @@ export declare class PgPaymentMethodRecord<TProps = PgPaymentMethodProperties> {
417
417
  movePgPaymentMethodToCancelled(options?: {
418
418
  journeyId?: string;
419
419
  }): ActionBuilder;
420
+ /**
421
+ * MovePgPaymentMethodToCreated
422
+ *
423
+ * Transitions this PgPaymentMethod record to a new pipeline stage.
424
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
425
+ *
426
+ * @remarks Transitions to stage: StatusStageCreated
427
+ *
428
+ * @param options - Optional settings
429
+ * @param options.journeyId - Associate with a journey
430
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
431
+ * @throws Error if called on a new (unsaved) record
432
+ *
433
+ * @example
434
+ * ```typescript
435
+ * const record = await odinClient.pgPaymentMethods.get(id);
436
+ * await record.movePgPaymentMethodToCreated().execute();
437
+ *
438
+ * // Dry run (for debugging)
439
+ * const payload = record.movePgPaymentMethodToCreated().dryRun();
440
+ * ```
441
+ */
442
+ movePgPaymentMethodToCreated(options?: {
443
+ journeyId?: string;
444
+ }): ActionBuilder;
420
445
  /**
421
446
  * MovePgPaymentMethodToFileRejected
422
447
  *
@@ -517,6 +542,31 @@ export declare class PgPaymentMethodRecord<TProps = PgPaymentMethodProperties> {
517
542
  movePgPaymentMethodToProcessing(options?: {
518
543
  journeyId?: string;
519
544
  }): ActionBuilder;
545
+ /**
546
+ * MovePgPaymentMethodToReallocating
547
+ *
548
+ * Transitions this PgPaymentMethod record to a new pipeline stage.
549
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
550
+ *
551
+ * @remarks Transitions to stage: StatusStageReallocating
552
+ *
553
+ * @param options - Optional settings
554
+ * @param options.journeyId - Associate with a journey
555
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
556
+ * @throws Error if called on a new (unsaved) record
557
+ *
558
+ * @example
559
+ * ```typescript
560
+ * const record = await odinClient.pgPaymentMethods.get(id);
561
+ * await record.movePgPaymentMethodToReallocating().execute();
562
+ *
563
+ * // Dry run (for debugging)
564
+ * const payload = record.movePgPaymentMethodToReallocating().dryRun();
565
+ * ```
566
+ */
567
+ movePgPaymentMethodToReallocating(options?: {
568
+ journeyId?: string;
569
+ }): ActionBuilder;
520
570
  /**
521
571
  * MovePgPaymentMethodToSubmissionFailed
522
572
  *
@@ -544,6 +544,35 @@ class PgPaymentMethodRecord {
544
544
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovePgPaymentMethodToCancelled', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'StatusStageCancelled' }, options);
545
545
  return new ActionBuilder(this._provider, 'BillingModule', 'PgPaymentMethod', payload, () => { this._pendingLinks = []; });
546
546
  }
547
+ /**
548
+ * MovePgPaymentMethodToCreated
549
+ *
550
+ * Transitions this PgPaymentMethod record to a new pipeline stage.
551
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
552
+ *
553
+ * @remarks Transitions to stage: StatusStageCreated
554
+ *
555
+ * @param options - Optional settings
556
+ * @param options.journeyId - Associate with a journey
557
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
558
+ * @throws Error if called on a new (unsaved) record
559
+ *
560
+ * @example
561
+ * ```typescript
562
+ * const record = await odinClient.pgPaymentMethods.get(id);
563
+ * await record.movePgPaymentMethodToCreated().execute();
564
+ *
565
+ * // Dry run (for debugging)
566
+ * const payload = record.movePgPaymentMethodToCreated().dryRun();
567
+ * ```
568
+ */
569
+ movePgPaymentMethodToCreated(options) {
570
+ var _a;
571
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
572
+ throw new Error('movePgPaymentMethodToCreated requires an existing record. Use accessor.get() first.');
573
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovePgPaymentMethodToCreated', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'StatusStageCreated' }, options);
574
+ return new ActionBuilder(this._provider, 'BillingModule', 'PgPaymentMethod', payload, () => { this._pendingLinks = []; });
575
+ }
547
576
  /**
548
577
  * MovePgPaymentMethodToFileRejected
549
578
  *
@@ -660,6 +689,35 @@ class PgPaymentMethodRecord {
660
689
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovePgPaymentMethodToProcessing', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'StatusStageProcessing' }, options);
661
690
  return new ActionBuilder(this._provider, 'BillingModule', 'PgPaymentMethod', payload, () => { this._pendingLinks = []; });
662
691
  }
692
+ /**
693
+ * MovePgPaymentMethodToReallocating
694
+ *
695
+ * Transitions this PgPaymentMethod record to a new pipeline stage.
696
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
697
+ *
698
+ * @remarks Transitions to stage: StatusStageReallocating
699
+ *
700
+ * @param options - Optional settings
701
+ * @param options.journeyId - Associate with a journey
702
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
703
+ * @throws Error if called on a new (unsaved) record
704
+ *
705
+ * @example
706
+ * ```typescript
707
+ * const record = await odinClient.pgPaymentMethods.get(id);
708
+ * await record.movePgPaymentMethodToReallocating().execute();
709
+ *
710
+ * // Dry run (for debugging)
711
+ * const payload = record.movePgPaymentMethodToReallocating().dryRun();
712
+ * ```
713
+ */
714
+ movePgPaymentMethodToReallocating(options) {
715
+ var _a;
716
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
717
+ throw new Error('movePgPaymentMethodToReallocating requires an existing record. Use accessor.get() first.');
718
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovePgPaymentMethodToReallocating', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'StatusStageReallocating' }, options);
719
+ return new ActionBuilder(this._provider, 'BillingModule', 'PgPaymentMethod', payload, () => { this._pendingLinks = []; });
720
+ }
663
721
  /**
664
722
  * MovePgPaymentMethodToSubmissionFailed
665
723
  *
@@ -550,6 +550,31 @@ export declare class PgTransactionRecord<TProps = PgTransactionProperties> {
550
550
  movePgTransactionChargeToReady(options?: {
551
551
  journeyId?: string;
552
552
  }): ActionBuilder;
553
+ /**
554
+ * MovePgTransactionChargeToReallocating
555
+ *
556
+ * Transitions this PgTransaction record to a new pipeline stage.
557
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
558
+ *
559
+ * @remarks Transitions to stage: ChargeStatusStageReallocating
560
+ *
561
+ * @param options - Optional settings
562
+ * @param options.journeyId - Associate with a journey
563
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
564
+ * @throws Error if called on a new (unsaved) record
565
+ *
566
+ * @example
567
+ * ```typescript
568
+ * const record = await odinClient.pgTransactions.get(id);
569
+ * await record.movePgTransactionChargeToReallocating().execute();
570
+ *
571
+ * // Dry run (for debugging)
572
+ * const payload = record.movePgTransactionChargeToReallocating().dryRun();
573
+ * ```
574
+ */
575
+ movePgTransactionChargeToReallocating(options?: {
576
+ journeyId?: string;
577
+ }): ActionBuilder;
553
578
  /**
554
579
  * MovePgTransactionChargeToSubmissionFailed
555
580
  *
@@ -850,6 +875,31 @@ export declare class PgTransactionRecord<TProps = PgTransactionProperties> {
850
875
  movePgTransactionRefundToReady(options?: {
851
876
  journeyId?: string;
852
877
  }): ActionBuilder;
878
+ /**
879
+ * MovePgTransactionRefundToReallocating
880
+ *
881
+ * Transitions this PgTransaction record to a new pipeline stage.
882
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
883
+ *
884
+ * @remarks Transitions to stage: RefundStatusStageReallocating
885
+ *
886
+ * @param options - Optional settings
887
+ * @param options.journeyId - Associate with a journey
888
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
889
+ * @throws Error if called on a new (unsaved) record
890
+ *
891
+ * @example
892
+ * ```typescript
893
+ * const record = await odinClient.pgTransactions.get(id);
894
+ * await record.movePgTransactionRefundToReallocating().execute();
895
+ *
896
+ * // Dry run (for debugging)
897
+ * const payload = record.movePgTransactionRefundToReallocating().dryRun();
898
+ * ```
899
+ */
900
+ movePgTransactionRefundToReallocating(options?: {
901
+ journeyId?: string;
902
+ }): ActionBuilder;
853
903
  /**
854
904
  * MovePgTransactionRefundToSubmissionFailed
855
905
  *