From d0a1f806003b8a181c928322467761ba3779ee84 Mon Sep 17 00:00:00 2001 From: Arman Tuyakbayev Date: Wed, 7 Feb 2024 19:08:53 +0600 Subject: [PATCH] Add expand param to Storefront rich billing portals (#1779) * Add expand param to Storefront rich billing portals * Add subscription * Update openapi/components/schemas/StorefrontRichBillingPortal.yaml Co-authored-by: Alexander Shkarpetin --------- Co-authored-by: Alexander Shkarpetin --- .../components/schemas/StorefrontRichBillingPortal.yaml | 7 +++++++ openapi/paths/storefront/rich-billing-portals@{id}.yaml | 2 ++ 2 files changed, 9 insertions(+) diff --git a/openapi/components/schemas/StorefrontRichBillingPortal.yaml b/openapi/components/schemas/StorefrontRichBillingPortal.yaml index 29902e58ab..777b2c2b75 100644 --- a/openapi/components/schemas/StorefrontRichBillingPortal.yaml +++ b/openapi/components/schemas/StorefrontRichBillingPortal.yaml @@ -57,3 +57,10 @@ properties: $ref: ./UpdatedTime.yaml _links: $ref: ./SelfLink.yaml + _embedded: + type: object + description: Embedded objects that are requested by the `expand` query parameter. + readOnly: true + properties: + subscription: + type: object diff --git a/openapi/paths/storefront/rich-billing-portals@{id}.yaml b/openapi/paths/storefront/rich-billing-portals@{id}.yaml index 0ef8e24bd8..0f9df6f34f 100644 --- a/openapi/paths/storefront/rich-billing-portals@{id}.yaml +++ b/openapi/paths/storefront/rich-billing-portals@{id}.yaml @@ -11,6 +11,8 @@ get: x-sdk-operation-name: get security: [] description: Retrieves a rich billing portal. + parameters: + - $ref: ../../components/parameters/collectionExpand.yaml responses: '200': description: Billing portal retrieved.