From 74b55e59493a83324863c5b43970c29e5d0738e8 Mon Sep 17 00:00:00 2001 From: Randall Keur Date: Thu, 14 Nov 2024 09:51:45 -0500 Subject: [PATCH] change back sdk class name --- .speakeasy/gen.yaml | 2 +- .speakeasy/tests.yaml | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 .speakeasy/tests.yaml diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 016cdee..3120ebe 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -1,6 +1,6 @@ configVersion: 2.0.0 generation: - sdkClassName: Shippo + sdkClassName: ShippoSDK maintainOpenAPIOrder: true usageSnippets: optionalPropertyRendering: withExample diff --git a/.speakeasy/tests.yaml b/.speakeasy/tests.yaml new file mode 100644 index 0000000..fc3408a --- /dev/null +++ b/.speakeasy/tests.yaml @@ -0,0 +1,43 @@ +testsVersion: 0.0.1 +tests: + CreateOrder: + - name: Successfully create order + parameters: + header: + application/json: + - $ref: '#/.public-api/components/parameters/ShippoApiVersionHeader' + requestBody: + application/json: + - $ref: '#/.public-api/components/schemas/OrderCreateRequest' + responses: + '201': + application/json: + - $ref: '#/.public-api/components/responses/orderResponse' + + ListOrders: + - name: Successfully get all orders + parameters: + query: + application/json: + - $ref: '#/.public-api/components/parameters/PageNumberQueryParam' + - $ref: '#/.public-api/components/parameters/ResultsPerPageQueryParam' + header: + application/json: + - $ref: '#/.public-api/components/parameters/ShippoApiVersionHeader' + responses: + '200': + application/json: + - $ref: '#/.public-api/components/responses/orderPaginatedResponse' + + GetOrder: + - name: Successfully get an order + parameters: + header: + application/json: + - $ref: '#/.public-api/components/parameters/ShippoApiVersionHeader' + path: + OrderId: '1267ab11165b44ff993634b28e5d9ce5' + responses: + '200': + application/json: + - $ref: '#/.public-api/components/responses/orderResponse' \ No newline at end of file