Skip to content

Commit

Permalink
Updating to use existing DCRTSA
Browse files Browse the repository at this point in the history
  • Loading branch information
CoryKleinjanCACI committed May 10, 2024
1 parent dff5823 commit 08447c2
Show file tree
Hide file tree
Showing 58 changed files with 912 additions and 1,060 deletions.
10 changes: 5 additions & 5 deletions cmd/prime-api-client/prime/create_mto_service_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ type dDFSITParams struct {
type domesticCratingParams struct {
Body primemessages.MTOServiceItemDomesticCrating `json:"body"`
}
type standaloneCratingParams struct {
Body primemessages.MTOServiceItemStandaloneCrating `json:"body"`
type domesticStandaloneCratingParams struct {
Body primemessages.MTOServiceItemDomesticStandaloneCrating `json:"body"`
}
type shuttleParams struct {
Body primemessages.MTOServiceItemShuttle `json:"body"`
Expand Down Expand Up @@ -145,8 +145,8 @@ func CreateMTOServiceItem(cmd *cobra.Command, args []string) error {
var params domesticCratingParams
err = utils.DecodeJSONFileToPayload(filename, utils.ContainsDash(args), &params)
serviceItemParams.SetBody(&params.Body)
case primemessages.MTOServiceItemModelTypeMTOServiceItemStandaloneCrating:
var params standaloneCratingParams
case primemessages.MTOServiceItemModelTypeMTOServiceItemDomesticStandaloneCrating:
var params domesticStandaloneCratingParams
err = utils.DecodeJSONFileToPayload(filename, utils.ContainsDash(args), &params)
serviceItemParams.SetBody(&params.Body)
case primemessages.MTOServiceItemModelTypeMTOServiceItemShuttle:
Expand All @@ -158,7 +158,7 @@ func CreateMTOServiceItem(cmd *cobra.Command, args []string) error {
primemessages.MTOServiceItemModelTypeMTOServiceItemDestSIT,
primemessages.MTOServiceItemModelTypeMTOServiceItemOriginSIT,
primemessages.MTOServiceItemModelTypeMTOServiceItemDomesticCrating,
primemessages.MTOServiceItemModelTypeMTOServiceItemStandaloneCrating,
primemessages.MTOServiceItemModelTypeMTOServiceItemDomesticStandaloneCrating,
primemessages.MTOServiceItemModelTypeMTOServiceItemShuttle,
})
}
Expand Down
1 change: 0 additions & 1 deletion migrations/app/migrations_manifest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -922,4 +922,3 @@
20240405190435_add_safety_privilege.up.sql
20240411201158_add_application_parameter_and_validation_code_table.up.sql
20240416145256_update_safety_privilege_label.up.sql
20240509191218_adding_standalone_crate_service_codes.up.sql

This file was deleted.

226 changes: 112 additions & 114 deletions pkg/gen/primeapi/embedded_spec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions pkg/gen/primemessages/m_t_o_service_item.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 08447c2

Please sign in to comment.