@d19n/youfibre-odin-sdk 2.0.94 → 2.0.98

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.
Files changed (30) hide show
  1. package/README.md +9 -2
  2. package/dist/actions-v2/CreateTeamDto.d.ts +8 -1
  3. package/dist/actions-v2/MovePgTransactionChargeToCancelledDto.d.ts +70 -0
  4. package/dist/actions-v2/MovePgTransactionChargeToCancelledDto.js +62 -0
  5. package/dist/actions-v2/MovePgTransactionRefundToCancelledDto.d.ts +70 -0
  6. package/dist/actions-v2/MovePgTransactionRefundToCancelledDto.js +62 -0
  7. package/dist/actions-v2/UpdateTeamDto.d.ts +8 -1
  8. package/dist/api-sdk-v2/AddressInteractionApi.d.ts +45 -0
  9. package/dist/api-sdk-v2/AddressInteractionApi.js +151 -0
  10. package/dist/db-sdk-v2/AddressInteractionDb.d.ts +117 -0
  11. package/dist/db-sdk-v2/AddressInteractionDb.js +200 -0
  12. package/dist/entities-v2/AddressInteraction.d.ts +159 -0
  13. package/dist/entities-v2/AddressInteraction.js +102 -0
  14. package/dist/entities-v2/Call.d.ts +0 -14
  15. package/dist/entities-v2/Call.js +0 -4
  16. package/dist/entities-v2/CallLeg.d.ts +0 -35
  17. package/dist/entities-v2/CallLeg.js +0 -10
  18. package/dist/entities-v2/CallTransfer.d.ts +0 -7
  19. package/dist/entities-v2/CallTransfer.js +0 -2
  20. package/dist/entities-v2/Case.d.ts +2 -0
  21. package/dist/entities-v2/Case.js +2 -0
  22. package/dist/entities-v2/PgTransaction.d.ts +12 -4
  23. package/dist/entities-v2/PgTransaction.js +8 -0
  24. package/dist/entities-v2/RemediationRequiredReason.d.ts +26 -19
  25. package/dist/entities-v2/RemediationRequiredReason.js +26 -19
  26. package/dist/entities-v2/Team.d.ts +8 -1
  27. package/dist/entities-v2/Team.js +2 -0
  28. package/dist/records-v2/PgTransactionRecord.d.ts +50 -0
  29. package/dist/records-v2/PgTransactionRecord.js +58 -0
  30. package/package.json +1 -1
@@ -488,6 +488,35 @@ class PgTransactionRecord {
488
488
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovePgTransactionChargeToAllocated', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'ChargeStatusStageAllocated' }, options);
489
489
  return new ActionBuilder(this._provider, 'BillingModule', 'PgTransaction', payload, () => { this._pendingLinks = []; });
490
490
  }
491
+ /**
492
+ * MovePgTransactionChargeToCancelled
493
+ *
494
+ * Transitions this PgTransaction record to a new pipeline stage.
495
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
496
+ *
497
+ * @remarks Transitions to stage: ChargeStatusStageCancelled
498
+ *
499
+ * @param options - Optional settings
500
+ * @param options.journeyId - Associate with a journey
501
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
502
+ * @throws Error if called on a new (unsaved) record
503
+ *
504
+ * @example
505
+ * ```typescript
506
+ * const record = await odinClient.pgTransactions.get(id);
507
+ * await record.movePgTransactionChargeToCancelled().execute();
508
+ *
509
+ * // Dry run (for debugging)
510
+ * const payload = record.movePgTransactionChargeToCancelled().dryRun();
511
+ * ```
512
+ */
513
+ movePgTransactionChargeToCancelled(options) {
514
+ var _a;
515
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
516
+ throw new Error('movePgTransactionChargeToCancelled requires an existing record. Use accessor.get() first.');
517
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovePgTransactionChargeToCancelled', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'ChargeStatusStageCancelled' }, options);
518
+ return new ActionBuilder(this._provider, 'BillingModule', 'PgTransaction', payload, () => { this._pendingLinks = []; });
519
+ }
491
520
  /**
492
521
  * MovePgTransactionChargeToFailed
493
522
  *
@@ -807,6 +836,35 @@ class PgTransactionRecord {
807
836
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovePgTransactionRefundToAllocated', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'RefundStatusStageAllocated' }, options);
808
837
  return new ActionBuilder(this._provider, 'BillingModule', 'PgTransaction', payload, () => { this._pendingLinks = []; });
809
838
  }
839
+ /**
840
+ * MovePgTransactionRefundToCancelled
841
+ *
842
+ * Transitions this PgTransaction record to a new pipeline stage.
843
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
844
+ *
845
+ * @remarks Transitions to stage: RefundStatusStageCancelled
846
+ *
847
+ * @param options - Optional settings
848
+ * @param options.journeyId - Associate with a journey
849
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
850
+ * @throws Error if called on a new (unsaved) record
851
+ *
852
+ * @example
853
+ * ```typescript
854
+ * const record = await odinClient.pgTransactions.get(id);
855
+ * await record.movePgTransactionRefundToCancelled().execute();
856
+ *
857
+ * // Dry run (for debugging)
858
+ * const payload = record.movePgTransactionRefundToCancelled().dryRun();
859
+ * ```
860
+ */
861
+ movePgTransactionRefundToCancelled(options) {
862
+ var _a;
863
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
864
+ throw new Error('movePgTransactionRefundToCancelled requires an existing record. Use accessor.get() first.');
865
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovePgTransactionRefundToCancelled', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'RefundStatusStageCancelled' }, options);
866
+ return new ActionBuilder(this._provider, 'BillingModule', 'PgTransaction', payload, () => { this._pendingLinks = []; });
867
+ }
810
868
  /**
811
869
  * MovePgTransactionRefundToFailed
812
870
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.94",
3
+ "version": "2.0.98",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",