bcgov / SIMS

Student Information Management System. Post-Secondary Student Financial Aid System
Apache License 2.0
24 stars 13 forks source link

CAS Integration 3B - Get Supplier & Update Existing Site #3602

Open CarlyCotton opened 1 month ago

CarlyCotton commented 1 month ago

User Story:

As a Ministry user (Finance team), I want to keep supplier/site information in CAS up to date with the information we have in SIMS. When a student who has a Supplier/Site assigned to them, we need to update the address in CAS if they update their address with us. If we find a matching supplier/site for a new student and the mailing address (line 1) does not perfectly match the one we have in SIMs, we should create a new SITE for that supplier

Acceptance Criteria:

Get Supplier (Last Name and SIN)

image.png

Get Supplier Response - Found & Active

Get Supplier Response - Not Found OR Not Active

Update Existing Supplier Site

When a student updates their address (address line 1, city, postal code, or country) or email address:


Technical Context

Sample CURL to create

curl --location '${BASEURL}/cfs/supplier/' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ${TOKEN}' \
--data-raw '{
    SupplierName: '\''Skywalker, Leia'\'',
    SubCategory: '\''Individual'\'',
    Sin: '\''422233197'\'',
    SupplierAddress: [
    {
        AddressLine1: '\''1012 Douglas St'\'',
        City: '\''Victoria'\'',
        Province: '\''BC'\'',
        Postalcode: '\''V8W 2C3'\'',
        Country: '\''Canada'\'',
        EmailAddress: '\''stephen.laws@gov.bc.ca'\'',
    }]
}'

Response:

{"SUPPLIER_NUMBER":"2007638","SUPPLIER_SITE_CODE":"[001] ","CAS-Returned-Messages":"SUCCEEDED"}

Business Context Supplier Web Service RESTful Client Onboarding v02_01.pdf Individual Supplier Web Service Field Requirements (All Requests) JAN2023.xlsx


Update Existing Supplier Site

Command 2 { "SupplierNumber":"2002492", "SupplierAddress":[ { "SupplierSiteCode":"001", "AddressLine1":"3350 CLEARBROOK RD", "AddressLine2":"", "AddressLine3":"", "City":"ABBOTSFORD", "Province":"BC", "Country":"CA", "PostalCode":"V2T4T4", "EmailAddress":"abc@xyz.com", "EftAdvicePref":"E" } ] }

Success Response: { "Supplier_Number":"123456789", "Supplier_Site_Code":"001", "CAS-Returned-Messages":"SUCCESS" }

Error Response { "Supplier_Number":"123456789", "Supplier_Site_Code":"001", "CAS-Returned-Messages":"Error Message" }

CarlyCotton commented 1 month ago

Takeaways: student change last name

image.png

multiple supplier/site and address updates from SIMS confirm with CAS re changing last name/sin and multiple supplier numbers for the same person. Can we create new sites/new suppliers?