@d19n/youfibre-odin-sdk 2.0.304 → 2.0.306
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/dist/actions-v2/CreateAmcoCollectionBookedEmailDto.d.ts +8 -1
- package/dist/actions-v2/CreateAmcoCollectionChargeEmailDto.d.ts +8 -1
- package/dist/actions-v2/CreateAmcoCollectionCompleteEmailDto.d.ts +8 -1
- package/dist/actions-v2/CreateAmcoCollectionReceivedEmailDto.d.ts +8 -1
- package/dist/actions-v2/CreateAmcoCollectionReminder10DayEmailDto.d.ts +8 -1
- package/dist/actions-v2/CreateAmcoCollectionReminder5DayEmailDto.d.ts +8 -1
- package/dist/actions-v2/CreateAmcoDispatchConfirmedEmailDto.d.ts +8 -1
- package/dist/actions-v2/CreateAmcoDispatchDeliveredEmailDto.d.ts +8 -1
- package/dist/actions-v2/CreateAmcoDispatchSentEmailDto.d.ts +8 -1
- package/dist/api-sdk-v2/PaymentMethodRefundApi.d.ts +2 -2
- package/dist/api-sdk-v2/PaymentMethodRefundApi.js +6 -6
- package/dist/db-sdk-v2/PaymentMethodRefundDb.d.ts +2 -2
- package/dist/db-sdk-v2/PaymentMethodRefundDb.js +6 -6
- package/dist/entities-v2/PaymentMethodRefund.d.ts +3 -3
- package/dist/records-v2/PaymentMethodRefundRecord.d.ts +20 -20
- package/dist/records-v2/PaymentMethodRefundRecord.js +33 -33
- package/package.json +2 -2
|
@@ -23,7 +23,7 @@ export interface CreateAmcoCollectionBookedEmailMessage extends OdinRecordCreate
|
|
|
23
23
|
* Properties for CreateAmcoCollectionBookedEmail action
|
|
24
24
|
*
|
|
25
25
|
* @property Required fields: 0
|
|
26
|
-
* @property Optional fields:
|
|
26
|
+
* @property Optional fields: 11
|
|
27
27
|
*/
|
|
28
28
|
export interface CreateAmcoCollectionBookedEmailProperties {
|
|
29
29
|
/**
|
|
@@ -96,6 +96,13 @@ export interface CreateAmcoCollectionBookedEmailProperties {
|
|
|
96
96
|
* @type {TEXT}
|
|
97
97
|
*/
|
|
98
98
|
To?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Work Order
|
|
101
|
+
*
|
|
102
|
+
* WorkOrder
|
|
103
|
+
* @type {LOOKUP}
|
|
104
|
+
*/
|
|
105
|
+
WorkOrder?: string | null;
|
|
99
106
|
}
|
|
100
107
|
/**
|
|
101
108
|
* CreateAmcoCollectionBookedEmail
|
|
@@ -23,7 +23,7 @@ export interface CreateAmcoCollectionChargeEmailMessage extends OdinRecordCreate
|
|
|
23
23
|
* Properties for CreateAmcoCollectionChargeEmail action
|
|
24
24
|
*
|
|
25
25
|
* @property Required fields: 0
|
|
26
|
-
* @property Optional fields:
|
|
26
|
+
* @property Optional fields: 11
|
|
27
27
|
*/
|
|
28
28
|
export interface CreateAmcoCollectionChargeEmailProperties {
|
|
29
29
|
/**
|
|
@@ -96,6 +96,13 @@ export interface CreateAmcoCollectionChargeEmailProperties {
|
|
|
96
96
|
* @type {TEXT}
|
|
97
97
|
*/
|
|
98
98
|
To?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Work Order
|
|
101
|
+
*
|
|
102
|
+
* WorkOrder
|
|
103
|
+
* @type {LOOKUP}
|
|
104
|
+
*/
|
|
105
|
+
WorkOrder?: string | null;
|
|
99
106
|
}
|
|
100
107
|
/**
|
|
101
108
|
* CreateAmcoCollectionChargeEmail
|
|
@@ -23,7 +23,7 @@ export interface CreateAmcoCollectionCompleteEmailMessage extends OdinRecordCrea
|
|
|
23
23
|
* Properties for CreateAmcoCollectionCompleteEmail action
|
|
24
24
|
*
|
|
25
25
|
* @property Required fields: 0
|
|
26
|
-
* @property Optional fields:
|
|
26
|
+
* @property Optional fields: 11
|
|
27
27
|
*/
|
|
28
28
|
export interface CreateAmcoCollectionCompleteEmailProperties {
|
|
29
29
|
/**
|
|
@@ -96,6 +96,13 @@ export interface CreateAmcoCollectionCompleteEmailProperties {
|
|
|
96
96
|
* @type {TEXT}
|
|
97
97
|
*/
|
|
98
98
|
To?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Work Order
|
|
101
|
+
*
|
|
102
|
+
* WorkOrder
|
|
103
|
+
* @type {LOOKUP}
|
|
104
|
+
*/
|
|
105
|
+
WorkOrder?: string | null;
|
|
99
106
|
}
|
|
100
107
|
/**
|
|
101
108
|
* CreateAmcoCollectionCompleteEmail
|
|
@@ -23,7 +23,7 @@ export interface CreateAmcoCollectionReceivedEmailMessage extends OdinRecordCrea
|
|
|
23
23
|
* Properties for CreateAmcoCollectionReceivedEmail action
|
|
24
24
|
*
|
|
25
25
|
* @property Required fields: 0
|
|
26
|
-
* @property Optional fields:
|
|
26
|
+
* @property Optional fields: 11
|
|
27
27
|
*/
|
|
28
28
|
export interface CreateAmcoCollectionReceivedEmailProperties {
|
|
29
29
|
/**
|
|
@@ -96,6 +96,13 @@ export interface CreateAmcoCollectionReceivedEmailProperties {
|
|
|
96
96
|
* @type {TEXT}
|
|
97
97
|
*/
|
|
98
98
|
To?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Work Order
|
|
101
|
+
*
|
|
102
|
+
* WorkOrder
|
|
103
|
+
* @type {LOOKUP}
|
|
104
|
+
*/
|
|
105
|
+
WorkOrder?: string | null;
|
|
99
106
|
}
|
|
100
107
|
/**
|
|
101
108
|
* CreateAmcoCollectionReceivedEmail
|
|
@@ -23,7 +23,7 @@ export interface CreateAmcoCollectionReminder10DayEmailMessage extends OdinRecor
|
|
|
23
23
|
* Properties for CreateAmcoCollectionReminder10DayEmail action
|
|
24
24
|
*
|
|
25
25
|
* @property Required fields: 0
|
|
26
|
-
* @property Optional fields:
|
|
26
|
+
* @property Optional fields: 11
|
|
27
27
|
*/
|
|
28
28
|
export interface CreateAmcoCollectionReminder10DayEmailProperties {
|
|
29
29
|
/**
|
|
@@ -96,6 +96,13 @@ export interface CreateAmcoCollectionReminder10DayEmailProperties {
|
|
|
96
96
|
* @type {TEXT}
|
|
97
97
|
*/
|
|
98
98
|
To?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Work Order
|
|
101
|
+
*
|
|
102
|
+
* WorkOrder
|
|
103
|
+
* @type {LOOKUP}
|
|
104
|
+
*/
|
|
105
|
+
WorkOrder?: string | null;
|
|
99
106
|
}
|
|
100
107
|
/**
|
|
101
108
|
* CreateAmcoCollectionReminder10DayEmail
|
|
@@ -23,7 +23,7 @@ export interface CreateAmcoCollectionReminder5DayEmailMessage extends OdinRecord
|
|
|
23
23
|
* Properties for CreateAmcoCollectionReminder5DayEmail action
|
|
24
24
|
*
|
|
25
25
|
* @property Required fields: 0
|
|
26
|
-
* @property Optional fields:
|
|
26
|
+
* @property Optional fields: 11
|
|
27
27
|
*/
|
|
28
28
|
export interface CreateAmcoCollectionReminder5DayEmailProperties {
|
|
29
29
|
/**
|
|
@@ -96,6 +96,13 @@ export interface CreateAmcoCollectionReminder5DayEmailProperties {
|
|
|
96
96
|
* @type {TEXT}
|
|
97
97
|
*/
|
|
98
98
|
To?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Work Order
|
|
101
|
+
*
|
|
102
|
+
* WorkOrder
|
|
103
|
+
* @type {LOOKUP}
|
|
104
|
+
*/
|
|
105
|
+
WorkOrder?: string | null;
|
|
99
106
|
}
|
|
100
107
|
/**
|
|
101
108
|
* CreateAmcoCollectionReminder5DayEmail
|
|
@@ -23,7 +23,7 @@ export interface CreateAmcoDispatchConfirmedEmailMessage extends OdinRecordCreat
|
|
|
23
23
|
* Properties for CreateAmcoDispatchConfirmedEmail action
|
|
24
24
|
*
|
|
25
25
|
* @property Required fields: 0
|
|
26
|
-
* @property Optional fields:
|
|
26
|
+
* @property Optional fields: 11
|
|
27
27
|
*/
|
|
28
28
|
export interface CreateAmcoDispatchConfirmedEmailProperties {
|
|
29
29
|
/**
|
|
@@ -96,6 +96,13 @@ export interface CreateAmcoDispatchConfirmedEmailProperties {
|
|
|
96
96
|
* @type {TEXT}
|
|
97
97
|
*/
|
|
98
98
|
To?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Work Order
|
|
101
|
+
*
|
|
102
|
+
* WorkOrder
|
|
103
|
+
* @type {LOOKUP}
|
|
104
|
+
*/
|
|
105
|
+
WorkOrder?: string | null;
|
|
99
106
|
}
|
|
100
107
|
/**
|
|
101
108
|
* CreateAmcoDispatchConfirmedEmail
|
|
@@ -23,7 +23,7 @@ export interface CreateAmcoDispatchDeliveredEmailMessage extends OdinRecordCreat
|
|
|
23
23
|
* Properties for CreateAmcoDispatchDeliveredEmail action
|
|
24
24
|
*
|
|
25
25
|
* @property Required fields: 0
|
|
26
|
-
* @property Optional fields:
|
|
26
|
+
* @property Optional fields: 11
|
|
27
27
|
*/
|
|
28
28
|
export interface CreateAmcoDispatchDeliveredEmailProperties {
|
|
29
29
|
/**
|
|
@@ -96,6 +96,13 @@ export interface CreateAmcoDispatchDeliveredEmailProperties {
|
|
|
96
96
|
* @type {TEXT}
|
|
97
97
|
*/
|
|
98
98
|
To?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Work Order
|
|
101
|
+
*
|
|
102
|
+
* WorkOrder
|
|
103
|
+
* @type {LOOKUP}
|
|
104
|
+
*/
|
|
105
|
+
WorkOrder?: string | null;
|
|
99
106
|
}
|
|
100
107
|
/**
|
|
101
108
|
* CreateAmcoDispatchDeliveredEmail
|
|
@@ -23,7 +23,7 @@ export interface CreateAmcoDispatchSentEmailMessage extends OdinRecordCreatedEve
|
|
|
23
23
|
* Properties for CreateAmcoDispatchSentEmail action
|
|
24
24
|
*
|
|
25
25
|
* @property Required fields: 0
|
|
26
|
-
* @property Optional fields:
|
|
26
|
+
* @property Optional fields: 11
|
|
27
27
|
*/
|
|
28
28
|
export interface CreateAmcoDispatchSentEmailProperties {
|
|
29
29
|
/**
|
|
@@ -96,6 +96,13 @@ export interface CreateAmcoDispatchSentEmailProperties {
|
|
|
96
96
|
* @type {TEXT}
|
|
97
97
|
*/
|
|
98
98
|
To?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Work Order
|
|
101
|
+
*
|
|
102
|
+
* WorkOrder
|
|
103
|
+
* @type {LOOKUP}
|
|
104
|
+
*/
|
|
105
|
+
WorkOrder?: string | null;
|
|
99
106
|
}
|
|
100
107
|
/**
|
|
101
108
|
* CreateAmcoDispatchSentEmail
|
|
@@ -26,8 +26,8 @@ export declare class PaymentMethodRefundApi extends ApiProvider {
|
|
|
26
26
|
private _workorder?;
|
|
27
27
|
private _invoice?;
|
|
28
28
|
private _activity?;
|
|
29
|
-
private _transaction?;
|
|
30
29
|
private _contractbuyout?;
|
|
30
|
+
private _transaction?;
|
|
31
31
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
32
32
|
get reward(): ApiRecordLinkManager;
|
|
33
33
|
get file(): ApiRecordLinkManager;
|
|
@@ -38,8 +38,8 @@ export declare class PaymentMethodRefundApi extends ApiProvider {
|
|
|
38
38
|
get workorder(): ApiRecordLinkManager;
|
|
39
39
|
get invoice(): ApiRecordLinkManager;
|
|
40
40
|
get activity(): ApiRecordLinkManager;
|
|
41
|
-
get transaction(): ApiRecordLinkManager;
|
|
42
41
|
get contractbuyout(): ApiRecordLinkManager;
|
|
42
|
+
get transaction(): ApiRecordLinkManager;
|
|
43
43
|
setRecord(sourceRecord: any): void;
|
|
44
44
|
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
45
45
|
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<PaymentMethodRefundProperties>>>;
|
|
@@ -87,18 +87,18 @@ class PaymentMethodRefundApi extends api_provider_1.ApiProvider {
|
|
|
87
87
|
}
|
|
88
88
|
return this._activity;
|
|
89
89
|
}
|
|
90
|
-
get transaction() {
|
|
91
|
-
if (!this._transaction) {
|
|
92
|
-
this._transaction = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'BillingModule:PaymentMethodRefund', 'BillingModule:Transaction', 'PaymentMethodRefund__Transaction');
|
|
93
|
-
}
|
|
94
|
-
return this._transaction;
|
|
95
|
-
}
|
|
96
90
|
get contractbuyout() {
|
|
97
91
|
if (!this._contractbuyout) {
|
|
98
92
|
this._contractbuyout = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'BillingModule:PaymentMethodRefund', 'OrderModule:ContractBuyOut', 'ContractBuyOut__PaymentMethodRefund');
|
|
99
93
|
}
|
|
100
94
|
return this._contractbuyout;
|
|
101
95
|
}
|
|
96
|
+
get transaction() {
|
|
97
|
+
if (!this._transaction) {
|
|
98
|
+
this._transaction = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'BillingModule:PaymentMethodRefund', 'BillingModule:Transaction', 'PaymentMethodRefund__Transaction');
|
|
99
|
+
}
|
|
100
|
+
return this._transaction;
|
|
101
|
+
}
|
|
102
102
|
// ============================================
|
|
103
103
|
// STANDARD METHODS (Unchanged API)
|
|
104
104
|
// ============================================
|
|
@@ -30,8 +30,8 @@ export declare class PaymentMethodRefundDb extends DbProvider {
|
|
|
30
30
|
private _workorder?;
|
|
31
31
|
private _invoice?;
|
|
32
32
|
private _activity?;
|
|
33
|
-
private _transaction?;
|
|
34
33
|
private _contractbuyout?;
|
|
34
|
+
private _transaction?;
|
|
35
35
|
constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
|
|
36
36
|
get reward(): DbRecordLinkManager;
|
|
37
37
|
get file(): DbRecordLinkManager;
|
|
@@ -42,8 +42,8 @@ export declare class PaymentMethodRefundDb extends DbProvider {
|
|
|
42
42
|
get workorder(): DbRecordLinkManager;
|
|
43
43
|
get invoice(): DbRecordLinkManager;
|
|
44
44
|
get activity(): DbRecordLinkManager;
|
|
45
|
-
get transaction(): DbRecordLinkManager;
|
|
46
45
|
get contractbuyout(): DbRecordLinkManager;
|
|
46
|
+
get transaction(): DbRecordLinkManager;
|
|
47
47
|
setRecord(sourceRecord: any): void;
|
|
48
48
|
/**
|
|
49
49
|
* Search records with manual pagination control
|
|
@@ -92,18 +92,18 @@ class PaymentMethodRefundDb extends db_provider_1.DbProvider {
|
|
|
92
92
|
}
|
|
93
93
|
return this._activity;
|
|
94
94
|
}
|
|
95
|
-
get transaction() {
|
|
96
|
-
if (!this._transaction) {
|
|
97
|
-
this._transaction = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'BillingModule:PaymentMethodRefund', 'BillingModule:Transaction', 'PaymentMethodRefund__Transaction');
|
|
98
|
-
}
|
|
99
|
-
return this._transaction;
|
|
100
|
-
}
|
|
101
95
|
get contractbuyout() {
|
|
102
96
|
if (!this._contractbuyout) {
|
|
103
97
|
this._contractbuyout = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'BillingModule:PaymentMethodRefund', 'OrderModule:ContractBuyOut', 'ContractBuyOut__PaymentMethodRefund');
|
|
104
98
|
}
|
|
105
99
|
return this._contractbuyout;
|
|
106
100
|
}
|
|
101
|
+
get transaction() {
|
|
102
|
+
if (!this._transaction) {
|
|
103
|
+
this._transaction = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'BillingModule:PaymentMethodRefund', 'BillingModule:Transaction', 'PaymentMethodRefund__Transaction');
|
|
104
|
+
}
|
|
105
|
+
return this._transaction;
|
|
106
|
+
}
|
|
107
107
|
// ============================================
|
|
108
108
|
// STANDARD METHODS
|
|
109
109
|
// ============================================
|
|
@@ -20,8 +20,8 @@ import { ContactProperties } from './Contact';
|
|
|
20
20
|
import { WorkOrderProperties } from './WorkOrder';
|
|
21
21
|
import { InvoiceProperties } from './Invoice';
|
|
22
22
|
import { ActivityProperties } from './Activity';
|
|
23
|
-
import { TransactionProperties } from './Transaction';
|
|
24
23
|
import { ContractBuyOutProperties } from './ContractBuyOut';
|
|
24
|
+
import { TransactionProperties } from './Transaction';
|
|
25
25
|
/**
|
|
26
26
|
* Available types for PaymentMethodRefund records
|
|
27
27
|
*/
|
|
@@ -221,10 +221,10 @@ export declare class PaymentMethodRefund extends OdinRecord<PaymentMethodRefundP
|
|
|
221
221
|
Invoice: OdinLink<LinkedOdinRecord<InvoiceProperties>>;
|
|
222
222
|
/** Linked Activity records (PaymentMethodRefund__Activity) */
|
|
223
223
|
Activity: OdinLink<LinkedOdinRecord<ActivityProperties>>;
|
|
224
|
-
/** Linked Transaction records (PaymentMethodRefund__Transaction) */
|
|
225
|
-
Transaction: OdinLink<LinkedOdinRecord<TransactionProperties>>;
|
|
226
224
|
/** Linked ContractBuyOut records (ContractBuyOut__PaymentMethodRefund) */
|
|
227
225
|
ContractBuyOut: OdinLink<LinkedOdinRecord<ContractBuyOutProperties>>;
|
|
226
|
+
/** Linked Transaction records (PaymentMethodRefund__Transaction) */
|
|
227
|
+
Transaction: OdinLink<LinkedOdinRecord<TransactionProperties>>;
|
|
228
228
|
}
|
|
229
229
|
/**
|
|
230
230
|
* RabbitMQ routing keys for PaymentMethodRefund events
|
|
@@ -35,8 +35,8 @@ import { ContactRecord } from './ContactRecord';
|
|
|
35
35
|
import { WorkOrderRecord } from './WorkOrderRecord';
|
|
36
36
|
import { InvoiceRecord } from './InvoiceRecord';
|
|
37
37
|
import { ActivityRecord } from './ActivityRecord';
|
|
38
|
-
import { TransactionRecord } from './TransactionRecord';
|
|
39
38
|
import { ContractBuyOutRecord } from './ContractBuyOutRecord';
|
|
39
|
+
import { TransactionRecord } from './TransactionRecord';
|
|
40
40
|
/**
|
|
41
41
|
* Builder for action execution with dryRun support
|
|
42
42
|
*
|
|
@@ -171,8 +171,8 @@ export declare class PaymentMethodRefundRecord<TProps = PaymentMethodRefundPrope
|
|
|
171
171
|
private _workOrders?;
|
|
172
172
|
private _invoices?;
|
|
173
173
|
private _activities?;
|
|
174
|
-
private _transactions?;
|
|
175
174
|
private _contractBuyOuts?;
|
|
175
|
+
private _transactions?;
|
|
176
176
|
/**
|
|
177
177
|
* Create a record wrapper.
|
|
178
178
|
* @param record - The underlying record, or null for create operations
|
|
@@ -362,24 +362,6 @@ export declare class PaymentMethodRefundRecord<TProps = PaymentMethodRefundPrope
|
|
|
362
362
|
* ```
|
|
363
363
|
*/
|
|
364
364
|
get activities(): RecordLinkManager<ActivityRecord, typeof PaymentMethodRefundRecord['activitiesLabels'][number]>;
|
|
365
|
-
/** Valid labels for Transaction associations */
|
|
366
|
-
static readonly transactionsLabels: readonly ["PaymentMethodRefund__Transaction"];
|
|
367
|
-
/**
|
|
368
|
-
* Access linked Transaction records
|
|
369
|
-
* @remarks Available labels: PaymentMethodRefund__Transaction
|
|
370
|
-
* @throws Error if called on a new (unsaved) record
|
|
371
|
-
*
|
|
372
|
-
* @example
|
|
373
|
-
* ```typescript
|
|
374
|
-
* // Get all linked Transaction records
|
|
375
|
-
* const items = await record.transactions.list();
|
|
376
|
-
* const first = await record.transactions.first();
|
|
377
|
-
*
|
|
378
|
-
* // Filter by label
|
|
379
|
-
* const specific = await record.transactions.first({ label: 'PaymentMethodRefund__Transaction' });
|
|
380
|
-
* ```
|
|
381
|
-
*/
|
|
382
|
-
get transactions(): RecordLinkManager<TransactionRecord, typeof PaymentMethodRefundRecord['transactionsLabels'][number]>;
|
|
383
365
|
/** Valid labels for ContractBuyOut associations */
|
|
384
366
|
static readonly contractBuyOutsLabels: readonly ["ContractBuyOut__PaymentMethodRefund"];
|
|
385
367
|
/**
|
|
@@ -398,6 +380,24 @@ export declare class PaymentMethodRefundRecord<TProps = PaymentMethodRefundPrope
|
|
|
398
380
|
* ```
|
|
399
381
|
*/
|
|
400
382
|
get contractBuyOuts(): RecordLinkManager<ContractBuyOutRecord, typeof PaymentMethodRefundRecord['contractBuyOutsLabels'][number]>;
|
|
383
|
+
/** Valid labels for Transaction associations */
|
|
384
|
+
static readonly transactionsLabels: readonly ["PaymentMethodRefund__Transaction"];
|
|
385
|
+
/**
|
|
386
|
+
* Access linked Transaction records
|
|
387
|
+
* @remarks Available labels: PaymentMethodRefund__Transaction
|
|
388
|
+
* @throws Error if called on a new (unsaved) record
|
|
389
|
+
*
|
|
390
|
+
* @example
|
|
391
|
+
* ```typescript
|
|
392
|
+
* // Get all linked Transaction records
|
|
393
|
+
* const items = await record.transactions.list();
|
|
394
|
+
* const first = await record.transactions.first();
|
|
395
|
+
*
|
|
396
|
+
* // Filter by label
|
|
397
|
+
* const specific = await record.transactions.first({ label: 'PaymentMethodRefund__Transaction' });
|
|
398
|
+
* ```
|
|
399
|
+
*/
|
|
400
|
+
get transactions(): RecordLinkManager<TransactionRecord, typeof PaymentMethodRefundRecord['transactionsLabels'][number]>;
|
|
401
401
|
/**
|
|
402
402
|
* Queue a link to be created with the next action.
|
|
403
403
|
* Works for both create and update actions.
|
|
@@ -40,8 +40,8 @@ const ContactRecord_1 = require("./ContactRecord");
|
|
|
40
40
|
const WorkOrderRecord_1 = require("./WorkOrderRecord");
|
|
41
41
|
const InvoiceRecord_1 = require("./InvoiceRecord");
|
|
42
42
|
const ActivityRecord_1 = require("./ActivityRecord");
|
|
43
|
-
const TransactionRecord_1 = require("./TransactionRecord");
|
|
44
43
|
const ContractBuyOutRecord_1 = require("./ContractBuyOutRecord");
|
|
44
|
+
const TransactionRecord_1 = require("./TransactionRecord");
|
|
45
45
|
/**
|
|
46
46
|
* Builder for action execution with dryRun support
|
|
47
47
|
*
|
|
@@ -531,36 +531,6 @@ class PaymentMethodRefundRecord {
|
|
|
531
531
|
}
|
|
532
532
|
return this._activities;
|
|
533
533
|
}
|
|
534
|
-
/**
|
|
535
|
-
* Access linked Transaction records
|
|
536
|
-
* @remarks Available labels: PaymentMethodRefund__Transaction
|
|
537
|
-
* @throws Error if called on a new (unsaved) record
|
|
538
|
-
*
|
|
539
|
-
* @example
|
|
540
|
-
* ```typescript
|
|
541
|
-
* // Get all linked Transaction records
|
|
542
|
-
* const items = await record.transactions.list();
|
|
543
|
-
* const first = await record.transactions.first();
|
|
544
|
-
*
|
|
545
|
-
* // Filter by label
|
|
546
|
-
* const specific = await record.transactions.first({ label: 'PaymentMethodRefund__Transaction' });
|
|
547
|
-
* ```
|
|
548
|
-
*/
|
|
549
|
-
get transactions() {
|
|
550
|
-
var _a;
|
|
551
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
552
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
553
|
-
if (!this._transactions) {
|
|
554
|
-
this._transactions = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
555
|
-
sourceEntity: 'BillingModule:PaymentMethodRefund',
|
|
556
|
-
targetEntity: 'BillingModule:Transaction',
|
|
557
|
-
targetModuleName: 'BillingModule',
|
|
558
|
-
targetEntityName: 'Transaction',
|
|
559
|
-
labels: ['PaymentMethodRefund__Transaction'],
|
|
560
|
-
}, TransactionRecord_1.TransactionRecord);
|
|
561
|
-
}
|
|
562
|
-
return this._transactions;
|
|
563
|
-
}
|
|
564
534
|
/**
|
|
565
535
|
* Access linked ContractBuyOut records
|
|
566
536
|
* @remarks Available labels: ContractBuyOut__PaymentMethodRefund
|
|
@@ -591,6 +561,36 @@ class PaymentMethodRefundRecord {
|
|
|
591
561
|
}
|
|
592
562
|
return this._contractBuyOuts;
|
|
593
563
|
}
|
|
564
|
+
/**
|
|
565
|
+
* Access linked Transaction records
|
|
566
|
+
* @remarks Available labels: PaymentMethodRefund__Transaction
|
|
567
|
+
* @throws Error if called on a new (unsaved) record
|
|
568
|
+
*
|
|
569
|
+
* @example
|
|
570
|
+
* ```typescript
|
|
571
|
+
* // Get all linked Transaction records
|
|
572
|
+
* const items = await record.transactions.list();
|
|
573
|
+
* const first = await record.transactions.first();
|
|
574
|
+
*
|
|
575
|
+
* // Filter by label
|
|
576
|
+
* const specific = await record.transactions.first({ label: 'PaymentMethodRefund__Transaction' });
|
|
577
|
+
* ```
|
|
578
|
+
*/
|
|
579
|
+
get transactions() {
|
|
580
|
+
var _a;
|
|
581
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
582
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
583
|
+
if (!this._transactions) {
|
|
584
|
+
this._transactions = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
585
|
+
sourceEntity: 'BillingModule:PaymentMethodRefund',
|
|
586
|
+
targetEntity: 'BillingModule:Transaction',
|
|
587
|
+
targetModuleName: 'BillingModule',
|
|
588
|
+
targetEntityName: 'Transaction',
|
|
589
|
+
labels: ['PaymentMethodRefund__Transaction'],
|
|
590
|
+
}, TransactionRecord_1.TransactionRecord);
|
|
591
|
+
}
|
|
592
|
+
return this._transactions;
|
|
593
|
+
}
|
|
594
594
|
// ============================================
|
|
595
595
|
// LINK MANAGEMENT
|
|
596
596
|
// ============================================
|
|
@@ -924,10 +924,10 @@ PaymentMethodRefundRecord.workOrdersLabels = ['PaymentMethodRefund__WorkOrder'];
|
|
|
924
924
|
PaymentMethodRefundRecord.invoicesLabels = ['PaymentMethodRefund__Invoice'];
|
|
925
925
|
/** Valid labels for Activity associations */
|
|
926
926
|
PaymentMethodRefundRecord.activitiesLabels = ['PaymentMethodRefund__Activity'];
|
|
927
|
-
/** Valid labels for Transaction associations */
|
|
928
|
-
PaymentMethodRefundRecord.transactionsLabels = ['PaymentMethodRefund__Transaction'];
|
|
929
927
|
/** Valid labels for ContractBuyOut associations */
|
|
930
928
|
PaymentMethodRefundRecord.contractBuyOutsLabels = ['ContractBuyOut__PaymentMethodRefund'];
|
|
929
|
+
/** Valid labels for Transaction associations */
|
|
930
|
+
PaymentMethodRefundRecord.transactionsLabels = ['PaymentMethodRefund__Transaction'];
|
|
931
931
|
/** Type guard to check if an object is a PaymentMethodRefundRecord */
|
|
932
932
|
function isPaymentMethodRefundRecord(obj) {
|
|
933
933
|
return obj instanceof PaymentMethodRefundRecord;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d19n/youfibre-odin-sdk",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.306",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "@d19n",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@d19n/odin-sdk-generator": "^3.0.244",
|
|
47
|
-
"@d19n/odin-types": "^3.6.
|
|
47
|
+
"@d19n/odin-types": "^3.6.8"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"test:wholesale-provider": "npx --yes tsx src/wholesale-provider/test/netomnia-provider.spec.ts && npx --yes tsx src/wholesale-provider/test/kci-effect-bridge.spec.ts",
|