Skip to content

Commit 2c1ba5e

Browse files
authored
Merge pull request #355 from bcgov/PaymentCodeFix
Updated cohort lookup for paymennt validation
2 parents e270dec + 2a7768e commit 2c1ba5e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

OFM.Infrastructure.WebAPI/Models/DataverseModels.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ public class PaymentLine
451451
[Required(ErrorMessage = "Payment method is mandatory.")]
452452
public new int? ofm_payment_method { get; set; }
453453

454-
[JsonPropertyName("Ack.ofm_cohort")]
454+
[JsonPropertyName("Ack.ofm_cohortid")]
455455
[Required(ErrorMessage = "Cohort cannot be blank on funding, and a corresponding acknowledgement number is required.")]
456456
public string? ofm_cohort { get; set; } = string.Empty;
457457

OFM.Infrastructure.WebAPI/Services/Processes/Payments/P530ValidatePaymentRequest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ public string RequestPaymentLineUri
8989
<attribute name="name" />
9090
</link-entity>
9191
<link-entity name="ofm_funding" from="ofm_fundingid" to="ofm_funding" link-type="inner" alias="Funding">
92-
<attribute name="ofm_cohort" />
93-
<link-entity name="ofm_ack_codes" from="ofm_cohort" to="ofm_cohort" link-type="outer" alias="Ack">
94-
<attribute name="ofm_cohort" />
92+
<attribute name="ofm_cohortid" />
93+
<link-entity name="ofm_ack_codes" from="ofm_cohortid" to="ofm_cohortid" link-type="outer" alias="Ack">
94+
<attribute name="ofm_cohortid" />
9595
</link-entity>
9696
</link-entity>
9797
</entity>

0 commit comments

Comments
 (0)