@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.
@@ -691,6 +691,35 @@ class PgTransactionRecord {
691
691
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovePgTransactionChargeToReady', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'ChargeStatusStageReady' }, options);
692
692
  return new ActionBuilder(this._provider, 'BillingModule', 'PgTransaction', payload, () => { this._pendingLinks = []; });
693
693
  }
694
+ /**
695
+ * MovePgTransactionChargeToReallocating
696
+ *
697
+ * Transitions this PgTransaction record to a new pipeline stage.
698
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
699
+ *
700
+ * @remarks Transitions to stage: ChargeStatusStageReallocating
701
+ *
702
+ * @param options - Optional settings
703
+ * @param options.journeyId - Associate with a journey
704
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
705
+ * @throws Error if called on a new (unsaved) record
706
+ *
707
+ * @example
708
+ * ```typescript
709
+ * const record = await odinClient.pgTransactions.get(id);
710
+ * await record.movePgTransactionChargeToReallocating().execute();
711
+ *
712
+ * // Dry run (for debugging)
713
+ * const payload = record.movePgTransactionChargeToReallocating().dryRun();
714
+ * ```
715
+ */
716
+ movePgTransactionChargeToReallocating(options) {
717
+ var _a;
718
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
719
+ throw new Error('movePgTransactionChargeToReallocating requires an existing record. Use accessor.get() first.');
720
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovePgTransactionChargeToReallocating', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'ChargeStatusStageReallocating' }, options);
721
+ return new ActionBuilder(this._provider, 'BillingModule', 'PgTransaction', payload, () => { this._pendingLinks = []; });
722
+ }
694
723
  /**
695
724
  * MovePgTransactionChargeToSubmissionFailed
696
725
  *
@@ -1039,6 +1068,35 @@ class PgTransactionRecord {
1039
1068
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovePgTransactionRefundToReady', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'RefundStatusStageReady' }, options);
1040
1069
  return new ActionBuilder(this._provider, 'BillingModule', 'PgTransaction', payload, () => { this._pendingLinks = []; });
1041
1070
  }
1071
+ /**
1072
+ * MovePgTransactionRefundToReallocating
1073
+ *
1074
+ * Transitions this PgTransaction record to a new pipeline stage.
1075
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
1076
+ *
1077
+ * @remarks Transitions to stage: RefundStatusStageReallocating
1078
+ *
1079
+ * @param options - Optional settings
1080
+ * @param options.journeyId - Associate with a journey
1081
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
1082
+ * @throws Error if called on a new (unsaved) record
1083
+ *
1084
+ * @example
1085
+ * ```typescript
1086
+ * const record = await odinClient.pgTransactions.get(id);
1087
+ * await record.movePgTransactionRefundToReallocating().execute();
1088
+ *
1089
+ * // Dry run (for debugging)
1090
+ * const payload = record.movePgTransactionRefundToReallocating().dryRun();
1091
+ * ```
1092
+ */
1093
+ movePgTransactionRefundToReallocating(options) {
1094
+ var _a;
1095
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1096
+ throw new Error('movePgTransactionRefundToReallocating requires an existing record. Use accessor.get() first.');
1097
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovePgTransactionRefundToReallocating', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'RefundStatusStageReallocating' }, options);
1098
+ return new ActionBuilder(this._provider, 'BillingModule', 'PgTransaction', payload, () => { this._pendingLinks = []; });
1099
+ }
1042
1100
  /**
1043
1101
  * MovePgTransactionRefundToSubmissionFailed
1044
1102
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.204",
3
+ "version": "2.0.206",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",