Skip to content

Commit

Permalink
Rename GetEvents200ResponseInner into Events
Browse files Browse the repository at this point in the history
  • Loading branch information
rubyistdotjs committed Jun 6, 2023
1 parent 39409a5 commit 638433c
Show file tree
Hide file tree
Showing 8 changed files with 133 additions and 131 deletions.
4 changes: 2 additions & 2 deletions api/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ docs/EmptyIndicatorCode.md
docs/EquipmentEvent.md
docs/EquipmentEventTypeCode.md
docs/EventsApi.md
docs/EventsInner.md
docs/FacilityCodeListProvider.md
docs/FacilityTypeCodeTRN.md
docs/GetEvents200ResponseInner.md
docs/InlineResponseDefault.md
docs/InlineResponseDefaultAllOf.md
docs/InlineResponseDefaultAllOf1.md
Expand Down Expand Up @@ -175,9 +175,9 @@ model_empty_indicator_code.go
model_equipment_event.go
model_equipment_event_type_code.go
model_error.go
model_events_inner.go
model_facility_code_list_provider.go
model_facility_type_code_trn.go
model_get_events_200_response_inner.go
model_inline_response_default.go
model_inline_response_default_all_of.go
model_inline_response_default_all_of_1.go
Expand Down
2 changes: 1 addition & 1 deletion api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ Class | Method | HTTP request | Description
- [EmptyIndicatorCode](docs/EmptyIndicatorCode.md)
- [EquipmentEvent](docs/EquipmentEvent.md)
- [EquipmentEventTypeCode](docs/EquipmentEventTypeCode.md)
- [EventsInner](docs/EventsInner.md)
- [FacilityCodeListProvider](docs/FacilityCodeListProvider.md)
- [FacilityTypeCodeTRN](docs/FacilityTypeCodeTRN.md)
- [GetEvents200ResponseInner](docs/GetEvents200ResponseInner.md)
- [InlineResponseDefault](docs/InlineResponseDefault.md)
- [InlineResponseDefaultAllOf](docs/InlineResponseDefaultAllOf.md)
- [InlineResponseDefaultAllOf1](docs/InlineResponseDefaultAllOf1.md)
Expand Down
5 changes: 3 additions & 2 deletions api/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ paths:
application/json:
schema:
items:
$ref: '#/components/schemas/GetEvents_200_response_inner'
$ref: '#/components/schemas/Events_inner'
title: Events
type: array
description: Successful operation
default:
Expand Down Expand Up @@ -888,7 +889,7 @@ components:
- message
- reason
type: object
GetEvents_200_response_inner:
Events_inner:
anyOf:
- $ref: '#/components/schemas/transportEvent'
- $ref: '#/components/schemas/shipmentEvent'
Expand Down
12 changes: 6 additions & 6 deletions api/api_events.go

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

6 changes: 3 additions & 3 deletions api/docs/EventsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Method | HTTP request | Description

## GetEvents

> []GetEvents200ResponseInner GetEvents(ctx).CarrierBookingReference(carrierBookingReference).TransportDocumentReference(transportDocumentReference).EquipmentReference(equipmentReference).Execute()
> []EventsInner GetEvents(ctx).CarrierBookingReference(carrierBookingReference).TransportDocumentReference(transportDocumentReference).EquipmentReference(equipmentReference).Execute()
Find events.

Expand Down Expand Up @@ -40,7 +40,7 @@ func main() {
fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GetEvents``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEvents`: []GetEvents200ResponseInner
// response from `GetEvents`: []EventsInner
fmt.Fprintf(os.Stdout, "Response from `EventsApi.GetEvents`: %v\n", resp)
}
```
Expand All @@ -62,7 +62,7 @@ Name | Type | Description | Notes

### Return type

[**[]GetEvents200ResponseInner**](GetEvents200ResponseInner.md)
[**[]EventsInner**](EventsInner.md)

### Authorization

Expand Down
Loading

0 comments on commit 638433c

Please sign in to comment.