17 Commits

Author SHA1 Message Date
Sketch
479edf4534 Improve cas support 2022-10-18 13:33:15 -04:00
Sketch
a943188958 Fix bug in cas where if Limit was PR, the LimitStruct would omit a node. 2022-10-17 07:24:36 -04:00
Spotlight
f27c980c44
Implement purchasing 2022-01-09 06:45:43 -06:00
Spotlight
ca35a37589
Migrate getKey to be apart of Envelope
We do not need to specify e.doc repeatedly.
2022-01-09 05:29:55 -06:00
Spotlight
bd48515bf9
Properly handle ErrorMessage
Some ECDK versions print ErrorMessage to the common EC log.
2021-09-03 11:18:26 -05:00
Spotlight
e1325a2681
Prefer two spaces over a tab
Goes with BroadOn's presumed XML standards.
2021-05-23 16:43:27 -05:00
Spotlight
80601c7788
Add debug config option 2021-05-23 16:42:41 -05:00
Spotlight
346859afe5
Use pgx for connections 2021-05-03 18:37:02 -05:00
Spotlight
67df1d307c
Add proper account querying 2020-09-10 19:24:32 -05:00
Spotlight
37fb20d8df
Restructure requests to route-based format
Instead of individual handlers, each request deals with one Envelope. This allows fine-tuned error control, along with what's effectively middleware for authentication.
2020-09-05 08:58:01 -05:00
Spotlight
5cbf9f81a8
Add proper registration response 2020-08-20 23:19:21 -05:00
Spotlight
de5c682dd5
Use more precise timestamp 2020-08-18 22:35:13 -05:00
Spotlight
7c7ac06509
Avoid redundant field struct usage 2020-08-18 14:38:28 -05:00
Spotlight
f32e2a5f2e
Convert sprintf-based XML handling to struct-based marshalling
This allows the opportunity to have various handler methods for inserting XML data, instead of a jungle between properly parsing and string-based prayer.
2020-08-18 05:35:53 -05:00
Spotlight
e588ba6e68
Refactor HTTP handling logic
This is an extraordinarily large commit, and in hindsight would have benefitied from being written separately.

To summarise:

-  Converts namespace URI parsing to a regex, instead of convoluted string logic
 - Removes per-request XML structures in favor of normalised XPath queries
 - Moves common variables for all requests to a k/v map of their name and contents, in order to reduce function parameter count
 - Changes the name of the ECS action "NotifiedETicketsSynced" to its hardcoded (tenseless) name, "NotifyETicketsSynced"
 - Improved properly reporting errors to the end user in areas
2020-08-16 23:06:09 -05:00
Spotlight
9088111c4e
Split responses into templates 2020-07-28 04:24:02 -05:00
Spotlight
ce7afd94ec
Split handlers into their individual files
Eventually, this will allow for us to cover further namespaces, such as CCS or NUS proper.
2020-07-28 03:47:14 -05:00