ordercloud-api / ordercloud-javascript-sdk

The official Javascript SDK for the OrderCloud eCommerce platform
MIT License
16 stars 15 forks source link

OIDC models #67

Closed digitalParkour closed 2 years ago

digitalParkour commented 2 years ago

I see there are response models for the OrderCheckout integration type, such as models OrderCalculateResponse and ShipEstimateResponse.

It may be helpful to also include the request object types, CalculateOrderPayload, etc.

Similarly to cover the OpenIDConnect type models: OpenIDConnectIntegrationEvent CreateUserResponse SyncUserResponse

Models Reference: https://ordercloud.io/knowledge-base/sso-via-openid-connect

This would support leveraging the nextJs api routes as the middleware and consolidate the definitions across tools and implementations. There is already a type created in the catalyst project that may be better added to this project. (https://github.com/ordercloud-api/ordercloud-javascript-catalyst/blob/main/lib/Types/OrderCalculatePayload.ts)

Cheers

crhistianramirez commented 2 years ago

@digitalParkour thanks for the suggestion. We'll get those models and a few others that aren't included in the OpenAPI spec added.

crhistianramirez commented 2 years ago

Added in v4.6.5