@defra-fish/dynamics-lib 1.57.0-rc.5 → 1.57.0-rc.6
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defra-fish/dynamics-lib",
|
|
3
|
-
"version": "1.57.0-rc.
|
|
3
|
+
"version": "1.57.0-rc.6",
|
|
4
4
|
"description": "Framework to support integration with dynamics",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"simple-oauth2": "^4.3.0",
|
|
44
44
|
"uuid": "^8.3.2"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "5c21e5443b8224f43c980c6a53746c593196500b"
|
|
47
47
|
}
|
|
@@ -17,8 +17,6 @@ describe('recurring payment entity', () => {
|
|
|
17
17
|
recurringPayment.agreementId = 'c9267c6e-573d-488b-99ab-ea18431fc472'
|
|
18
18
|
recurringPayment.publicId = '649-213'
|
|
19
19
|
recurringPayment.status = 1
|
|
20
|
-
recurringPayment.contactId = 'b3d33cln-2e83-ea11-a811-000d3a649213'
|
|
21
|
-
recurringPayment.activePermission = 'a5b24adf-2e83-ea11-a811-000d3a649213'
|
|
22
20
|
|
|
23
21
|
recurringPayment.bindToEntity(RecurringPayment.definition.relationships.contact, contact)
|
|
24
22
|
recurringPayment.bindToEntity(RecurringPayment.definition.relationships.activePermission, permission)
|
|
@@ -66,9 +64,7 @@ describe('recurring payment entity', () => {
|
|
|
66
64
|
endDate: '2019-12-15T00:00:00Z',
|
|
67
65
|
agreementId: 'c9267c6e-573d-488b-99ab-ea18431fc472',
|
|
68
66
|
publicId: '649-213',
|
|
69
|
-
status: 1
|
|
70
|
-
activePermission: 'a5b24adf-2e83-ea11-a811-000d3a649213',
|
|
71
|
-
contactId: 'b3d33cln-2e83-ea11-a811-000d3a649213'
|
|
67
|
+
status: 1
|
|
72
68
|
})
|
|
73
69
|
)
|
|
74
70
|
})
|
|
@@ -93,8 +89,6 @@ describe('recurring payment entity', () => {
|
|
|
93
89
|
defra_agreementid: 'c9267c6e-573d-488b-99ab-ea18431fc472',
|
|
94
90
|
defra_publicid: '649-213',
|
|
95
91
|
statecode: 1,
|
|
96
|
-
_defra_activepermission_value: 'a5b24adf-2e83-ea11-a811-000d3a649213',
|
|
97
|
-
_defra_contact_value: 'b3d33cln-2e83-ea11-a811-000d3a649213',
|
|
98
92
|
'defra_Contact@odata.bind': `$${contact.uniqueContentId}`,
|
|
99
93
|
'defra_ActivePermission@odata.bind': `$${permission.uniqueContentId}`
|
|
100
94
|
})
|
|
@@ -121,9 +115,7 @@ describe('recurring payment entity', () => {
|
|
|
121
115
|
endDate: '2019-12-15T00:00:00Z',
|
|
122
116
|
agreementId: 'c9267c6e-573d-488b-99ab-ea18431fc472',
|
|
123
117
|
publicId: '649-213',
|
|
124
|
-
status: 1
|
|
125
|
-
activePermission: 'a5b24adf-2e83-ea11-a811-000d3a649213',
|
|
126
|
-
contactId: 'b3d33cln-2e83-ea11-a811-000d3a649213'
|
|
118
|
+
status: 1
|
|
127
119
|
})
|
|
128
120
|
)
|
|
129
121
|
})
|
|
@@ -143,8 +135,6 @@ describe('recurring payment entity', () => {
|
|
|
143
135
|
defra_agreementid: 'c9267c6e-573d-488b-99ab-ea18431fc472',
|
|
144
136
|
defra_publicid: '649-213',
|
|
145
137
|
statecode: 1,
|
|
146
|
-
_defra_activepermission_value: 'a5b24adf-2e83-ea11-a811-000d3a649213',
|
|
147
|
-
_defra_contact_value: 'b3d33cln-2e83-ea11-a811-000d3a649213',
|
|
148
138
|
'defra_Contact@odata.bind': `$${contact.uniqueContentId}`,
|
|
149
139
|
'defra_ActivePermission@odata.bind': `$${permission.uniqueContentId}`
|
|
150
140
|
})
|
|
@@ -134,28 +134,4 @@ export class RecurringPayment extends BaseEntity {
|
|
|
134
134
|
set status (status) {
|
|
135
135
|
super._setState('status', status)
|
|
136
136
|
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* The ID of the associated contact
|
|
140
|
-
* @type {string}
|
|
141
|
-
*/
|
|
142
|
-
get contactId () {
|
|
143
|
-
return super._getState('contactId')
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
set contactId (contactId) {
|
|
147
|
-
super._setState('contactId', contactId)
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* The ID of the associated active permission
|
|
152
|
-
* @type {string}
|
|
153
|
-
*/
|
|
154
|
-
get activePermission () {
|
|
155
|
-
return super._getState('activePermission')
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
set activePermission (activePermission) {
|
|
159
|
-
super._setState('activePermission', activePermission)
|
|
160
|
-
}
|
|
161
137
|
}
|