Skip to content

Commit

Permalink
[SPDBT-3268]Screening - To remove the "Download Receipt" option (#1902)
Browse files Browse the repository at this point in the history
# Description

This PR includes the following proposed change(s):

- BE code: return PaymentTypeCode to FE.
  • Loading branch information
peggy-quartech authored Nov 25, 2024
1 parent c429a57 commit ca860cb
Show file tree
Hide file tree
Showing 7 changed files with 11,091 additions and 2,314 deletions.
1 change: 1 addition & 0 deletions src/Spd.Manager.Screening/ApplicationContract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ public record ApplicationResponse : Application
public record ApplicationPaymentResponse : ApplicationResponse
{
public DateTimeOffset? PaidOn { get; set; }
public PaymentTypeCode? PaymentTypeCode { get; set; }
public int? NumberOfAttempts { get; set; }
}

Expand Down
14 changes: 14 additions & 0 deletions src/Spd.Manager.Shared/Contract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,18 @@ public enum ApplicationOriginTypeCode
[Description("Organization Submitted")]
OrganizationSubmitted
}

public enum PaymentTypeCode
{
PayBC_OnSubmission,
Cash,
CreditCard,
MoneyOrder,
Cheque,
CertifiedCheque,
CreditAccount,
JournalVoucher,
NoPayment,
PayBC_SecurePaymentLink,
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Spd.Resource.Repository.ApplicationInvite;
using Spd.Resource.Repository.Incident;
using Spd.Resource.Repository.Payment;

namespace Spd.Resource.Repository.Application;

Expand Down Expand Up @@ -155,6 +156,7 @@ public record ApplicationResult
public ServiceTypeEnum? ServiceType { get; set; }
public ScreenTypeEnum? ScreeningType { get; set; }
public DateTimeOffset? PaidOn { get; set; }
public PaymentTypeEnum? PaymentTypeCode { get; set; }
public int? NumberOfAttempts { get; set; }
public Guid? ApplicantId { get; set; }
}
Expand Down
2 changes: 2 additions & 0 deletions src/Spd.Resource.Repository/Application/Mappings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Microsoft.Dynamics.CRM;
using Spd.Resource.Repository.ApplicationInvite;
using Spd.Resource.Repository.Incident;
using Spd.Resource.Repository.Payment;
using Spd.Utilities.Dynamics;
using Spd.Utilities.Shared.Tools;

Expand Down Expand Up @@ -93,6 +94,7 @@ public Mappings()
.ForMember(d => d.OrgName, opt => opt.MapFrom(s => s.spd_OrganizationId.name))
.ForMember(d => d.ServiceType, opt => opt.MapFrom(s => GetServiceType(s._spd_servicetypeid_value)))
.ForMember(d => d.PaidOn, opt => opt.MapFrom(s => s.spd_paidon))
.ForMember(d => d.PaymentTypeCode, opt => opt.MapFrom(s => SharedMappingFuncs.GetEnum<PaymentTypeOptionSet, PaymentTypeEnum>(s.spd_paymenttype)))
.ForMember(d => d.ScreeningType, opt => opt.MapFrom(s => GetScreenType(s.spd_screeningrequesttype)))
.ForMember(d => d.NumberOfAttempts, opt => opt.MapFrom(s => s.spd_numberofattempts))
.ForMember(d => d.ApplicantId, opt => opt.MapFrom(s => s._spd_applicantid_value));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"MakeTypesInternal": false,
"OpenGeneratedFilesInIDE": false,
"GenerateMultipleFiles": false,
"CustomHttpHeaders": "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ims0Y3BkRmdybU0yMHJhcThYVVRxMVlpaXNISSIsImtpZCI6Ims0Y3BkRmdybU0yMHJhcThYVVRxMVlpaXNISSJ9.eyJhdWQiOiJodHRwczovL3NwZC1zcGFyYy5kZXYuamFnLmdvdi5iYy5jYS9hcGkvZGF0YS92OS4wLyIsImlzcyI6Imh0dHA6Ly9zdHN0ZXN0Lmdvdi5iYy5jYS9hZGZzL3NlcnZpY2VzL3RydXN0IiwiaWF0IjoxNzMxMDE3MTE1LCJuYmYiOjE3MzEwMTcxMTUsImV4cCI6MTczMTAyMDcxNSwidXBuIjoic3BkX29zYWRAZ292LmJjLmNhIiwidW5pcXVlX25hbWUiOiJJRElSXFxTUERfT1NBRCIsImFwcHR5cGUiOiJDb25maWRlbnRp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iOiJDb25maWRlbnRpYWwiLCJhcHBpZCI6IjAxNzRiMjAzLWNkY2YtNDE2NC04NTMyLTBhNGM0ZmRmZGY2MiIsImF1dGhtZXRob2QiOiJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YWM6Y2xhc3NlczpQYXNzd29yZFByb3RlY3RlZFRyYW5zcG9ydCIsImF1dGhfdGltZSI6IjIwMjQtMTEtMjVUMjI6NTU6MjIuMjcwWiIsInZlciI6IjEuMCIsInNjcCI6Im9wZW5pZCJ9.eNB4tXkmo4E3n_WOBW3sSwmSHsOmRF5sJnRq6sel6ljy-ka6pskUeJrn6CaMj8ycix6UIAwdoRePyMrvPqzBxz5Hf2E24U-XvUwcYzDJQeiRvc3_UY6kG3K_zUQaW828Kq_CmG6LvuxcNSjx5WMNZv7jx7klEozMlGzSEt19voAmm2wMZhoq6QnTGZKfAwvxGVv3ZBmfsvEuy5n8VLV1P608FwpHNwvBelxdnllNfZaGHqzZ--zNDFeGtKr_ffJbIYnAgg6Uih7cWsepg1lmJuprlkyDdvhYIv2lLdcpcEU6Mv7EmHiL0TiR_NvD4QxiKXPNrxwxJyHAoDjG8pIX5w",
"IncludeWebProxy": false,
"WebProxyHost": null,
"IncludeWebProxyNetworkCredentials": false,
Expand Down
Loading

0 comments on commit ca860cb

Please sign in to comment.