From cccce65ef99e04064cf79041f4cbdc941ca36c06 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Wed, 11 Dec 2024 18:32:58 +0200 Subject: [PATCH] docs: fix bugs in API reference (#10557) --- .../Shell/store_carts_{id}_line-items/post.sh | 4 +- .../post.sh | 4 +- .../Shell/store_carts_{id}_promotions/post.sh | 4 +- .../store_carts_{id}_shipping-methods/post.sh | 4 +- .../Shell/store_customers/post.sh | 4 +- .../Shell/store_customers_me/post.sh | 4 +- .../store_customers_me_addresses/post.sh | 4 +- .../delete.sh | 4 +- .../post.sh | 4 +- .../Shell/store_payment-collections/post.sh | 4 +- .../post.sh | 4 +- .../code_samples/Shell/store_return/post.sh | 4 +- .../specs/store/openapi.full.yaml | 48 +++++++++---------- .../docs-ui/src/components/CodeTabs/index.tsx | 23 +++++++-- ...ore_customers_me_addresses_[address_id].ts | 4 +- .../store/post_store_carts_[id]_line-items.ts | 4 +- ...t_store_carts_[id]_line-items_[line_id].ts | 4 +- .../store/post_store_carts_[id]_promotions.ts | 4 +- .../post_store_carts_[id]_shipping-methods.ts | 4 +- .../operations/store/post_store_customers.ts | 4 +- .../store/post_store_customers_me.ts | 4 +- .../post_store_customers_me_addresses.ts | 4 +- ...ore_customers_me_addresses_[address_id].ts | 4 +- .../store/post_store_payment-collections.ts | 4 +- ...yment-collections_[id]_payment-sessions.ts | 4 +- .../operations/store/post_store_return.ts | 4 +- 26 files changed, 91 insertions(+), 76 deletions(-) diff --git a/www/apps/api-reference/specs/store/code_samples/Shell/store_carts_{id}_line-items/post.sh b/www/apps/api-reference/specs/store/code_samples/Shell/store_carts_{id}_line-items/post.sh index 63abc4e754..739abfc53a 100644 --- a/www/apps/api-reference/specs/store/code_samples/Shell/store_carts_{id}_line-items/post.sh +++ b/www/apps/api-reference/specs/store/code_samples/Shell/store_carts_{id}_line-items/post.sh @@ -1,6 +1,6 @@ curl -X POST '{backend_url}/store/carts/{id}/line-items' \ --H 'Content-Type: application/json' \ \ --H 'x-publishable-api-key: {your_publishable_api_key}' +-H 'Content-Type: application/json' \ +-H 'x-publishable-api-key: {your_publishable_api_key}' \ --data-raw '{ "variant_id": "{value}", "quantity": 3360689747918848, diff --git a/www/apps/api-reference/specs/store/code_samples/Shell/store_carts_{id}_line-items_{line_id}/post.sh b/www/apps/api-reference/specs/store/code_samples/Shell/store_carts_{id}_line-items_{line_id}/post.sh index aea2f820a8..423ae597cb 100644 --- a/www/apps/api-reference/specs/store/code_samples/Shell/store_carts_{id}_line-items_{line_id}/post.sh +++ b/www/apps/api-reference/specs/store/code_samples/Shell/store_carts_{id}_line-items_{line_id}/post.sh @@ -1,6 +1,6 @@ curl -X POST '{backend_url}/store/carts/{id}/line-items/{line_id}' \ --H 'Content-Type: application/json' \ \ --H 'x-publishable-api-key: {your_publishable_api_key}' +-H 'Content-Type: application/json' \ +-H 'x-publishable-api-key: {your_publishable_api_key}' \ --data-raw '{ "quantity": 8980402259623936, "metadata": {} diff --git a/www/apps/api-reference/specs/store/code_samples/Shell/store_carts_{id}_promotions/post.sh b/www/apps/api-reference/specs/store/code_samples/Shell/store_carts_{id}_promotions/post.sh index ec622e670e..ab16d763ac 100644 --- a/www/apps/api-reference/specs/store/code_samples/Shell/store_carts_{id}_promotions/post.sh +++ b/www/apps/api-reference/specs/store/code_samples/Shell/store_carts_{id}_promotions/post.sh @@ -1,6 +1,6 @@ curl -X POST '{backend_url}/store/carts/{id}/promotions' \ --H 'Content-Type: application/json' \ \ --H 'x-publishable-api-key: {your_publishable_api_key}' +-H 'Content-Type: application/json' \ +-H 'x-publishable-api-key: {your_publishable_api_key}' \ --data-raw '{ "promo_codes": [ "{value}" diff --git a/www/apps/api-reference/specs/store/code_samples/Shell/store_carts_{id}_shipping-methods/post.sh b/www/apps/api-reference/specs/store/code_samples/Shell/store_carts_{id}_shipping-methods/post.sh index b91dbb7473..0a74b62314 100644 --- a/www/apps/api-reference/specs/store/code_samples/Shell/store_carts_{id}_shipping-methods/post.sh +++ b/www/apps/api-reference/specs/store/code_samples/Shell/store_carts_{id}_shipping-methods/post.sh @@ -1,6 +1,6 @@ curl -X POST '{backend_url}/store/carts/{id}/shipping-methods' \ --H 'Content-Type: application/json' \ \ --H 'x-publishable-api-key: {your_publishable_api_key}' +-H 'Content-Type: application/json' \ +-H 'x-publishable-api-key: {your_publishable_api_key}' \ --data-raw '{ "option_id": "{value}" }' \ No newline at end of file diff --git a/www/apps/api-reference/specs/store/code_samples/Shell/store_customers/post.sh b/www/apps/api-reference/specs/store/code_samples/Shell/store_customers/post.sh index f56806ef6d..c0942527bf 100644 --- a/www/apps/api-reference/specs/store/code_samples/Shell/store_customers/post.sh +++ b/www/apps/api-reference/specs/store/code_samples/Shell/store_customers/post.sh @@ -1,7 +1,7 @@ curl -X POST '{backend_url}/store/customers' \ -H 'Authorization: Bearer {token}' \ --H 'Content-Type: application/json' \ \ --H 'x-publishable-api-key: {your_publishable_api_key}' +-H 'Content-Type: application/json' \ +-H 'x-publishable-api-key: {your_publishable_api_key}' \ --data-raw '{ "email": "Monserrate.Leannon88@yahoo.com", "company_name": "{value}", diff --git a/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me/post.sh b/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me/post.sh index 49c62f4568..81912fae51 100644 --- a/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me/post.sh +++ b/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me/post.sh @@ -1,7 +1,7 @@ curl -X POST '{backend_url}/store/customers/me' \ -H 'Authorization: Bearer {access_token}' \ --H 'Content-Type: application/json' \ \ --H 'x-publishable-api-key: {your_publishable_api_key}' +-H 'Content-Type: application/json' \ +-H 'x-publishable-api-key: {your_publishable_api_key}' \ --data-raw '{ "company_name": "{value}", "first_name": "{value}", diff --git a/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_addresses/post.sh b/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_addresses/post.sh index 6bac572177..9a1d35eb15 100644 --- a/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_addresses/post.sh +++ b/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_addresses/post.sh @@ -1,7 +1,7 @@ curl -X POST '{backend_url}/store/customers/me/addresses' \ -H 'Authorization: Bearer {access_token}' \ --H 'Content-Type: application/json' \ \ --H 'x-publishable-api-key: {your_publishable_api_key}' +-H 'Content-Type: application/json' \ +-H 'x-publishable-api-key: {your_publishable_api_key}' \ --data-raw '{ "metadata": {}, "first_name": "{value}", diff --git a/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_addresses_{address_id}/delete.sh b/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_addresses_{address_id}/delete.sh index e2103679b6..3fef8431e2 100644 --- a/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_addresses_{address_id}/delete.sh +++ b/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_addresses_{address_id}/delete.sh @@ -1,3 +1,3 @@ -curl -X DELETE '{backend_url}/store/customers/me/addresses/{address_id}' \ \ --H 'x-publishable-api-key: {your_publishable_api_key}' +curl -X DELETE '{backend_url}/store/customers/me/addresses/{address_id}' \ +-H 'x-publishable-api-key: {your_publishable_api_key}' \ -H 'Authorization: Bearer {access_token}' \ No newline at end of file diff --git a/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_addresses_{address_id}/post.sh b/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_addresses_{address_id}/post.sh index 1c53259149..b05b62b4bc 100644 --- a/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_addresses_{address_id}/post.sh +++ b/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_addresses_{address_id}/post.sh @@ -1,7 +1,7 @@ curl -X POST '{backend_url}/store/customers/me/addresses/{address_id}' \ -H 'Authorization: Bearer {access_token}' \ --H 'Content-Type: application/json' \ \ --H 'x-publishable-api-key: {your_publishable_api_key}' +-H 'Content-Type: application/json' \ +-H 'x-publishable-api-key: {your_publishable_api_key}' \ --data-raw '{ "first_name": "{value}", }' \ No newline at end of file diff --git a/www/apps/api-reference/specs/store/code_samples/Shell/store_payment-collections/post.sh b/www/apps/api-reference/specs/store/code_samples/Shell/store_payment-collections/post.sh index 075f748a9a..4f3103eb4e 100644 --- a/www/apps/api-reference/specs/store/code_samples/Shell/store_payment-collections/post.sh +++ b/www/apps/api-reference/specs/store/code_samples/Shell/store_payment-collections/post.sh @@ -1,6 +1,6 @@ curl -X POST '{backend_url}/store/payment-collections' \ --H 'Content-Type: application/json' \ \ --H 'x-publishable-api-key: {your_publishable_api_key}' +-H 'Content-Type: application/json' \ +-H 'x-publishable-api-key: {your_publishable_api_key}' \ --data-raw '{ "cart_id": "{value}" }' \ No newline at end of file diff --git a/www/apps/api-reference/specs/store/code_samples/Shell/store_payment-collections_{id}_payment-sessions/post.sh b/www/apps/api-reference/specs/store/code_samples/Shell/store_payment-collections_{id}_payment-sessions/post.sh index d97b019f93..5a96ae1c41 100644 --- a/www/apps/api-reference/specs/store/code_samples/Shell/store_payment-collections_{id}_payment-sessions/post.sh +++ b/www/apps/api-reference/specs/store/code_samples/Shell/store_payment-collections_{id}_payment-sessions/post.sh @@ -1,6 +1,6 @@ curl -X POST '{backend_url}/store/payment-collections/{id}/payment-sessions' \ --H 'Content-Type: application/json' \ \ --H 'x-publishable-api-key: {your_publishable_api_key}' +-H 'Content-Type: application/json' \ +-H 'x-publishable-api-key: {your_publishable_api_key}' \ --data-raw '{ "provider_id": "{value}" }' \ No newline at end of file diff --git a/www/apps/api-reference/specs/store/code_samples/Shell/store_return/post.sh b/www/apps/api-reference/specs/store/code_samples/Shell/store_return/post.sh index 350d798b0c..2472a20acf 100644 --- a/www/apps/api-reference/specs/store/code_samples/Shell/store_return/post.sh +++ b/www/apps/api-reference/specs/store/code_samples/Shell/store_return/post.sh @@ -1,6 +1,6 @@ curl -X POST '{backend_url}/store/return' \ --H 'Content-Type: application/json' \ \ --H 'x-publishable-api-key: {your_publishable_api_key}' +-H 'Content-Type: application/json' \ +-H 'x-publishable-api-key: {your_publishable_api_key}' \ --data-raw '{ "order_id": "{value}", "items": [ diff --git a/www/apps/api-reference/specs/store/openapi.full.yaml b/www/apps/api-reference/specs/store/openapi.full.yaml index 2fb0296649..1decbdc88c 100644 --- a/www/apps/api-reference/specs/store/openapi.full.yaml +++ b/www/apps/api-reference/specs/store/openapi.full.yaml @@ -935,8 +935,8 @@ paths: label: cURL source: |- curl -X POST '{backend_url}/store/carts/{id}/line-items' \ - -H 'Content-Type: application/json' \ \ - -H 'x-publishable-api-key: {your_publishable_api_key}' + -H 'Content-Type: application/json' \ + -H 'x-publishable-api-key: {your_publishable_api_key}' \ --data-raw '{ "variant_id": "{value}", "quantity": 3360689747918848, @@ -1007,8 +1007,8 @@ paths: label: cURL source: |- curl -X POST '{backend_url}/store/carts/{id}/line-items/{line_id}' \ - -H 'Content-Type: application/json' \ \ - -H 'x-publishable-api-key: {your_publishable_api_key}' + -H 'Content-Type: application/json' \ + -H 'x-publishable-api-key: {your_publishable_api_key}' \ --data-raw '{ "quantity": 8980402259623936, "metadata": {} @@ -1167,8 +1167,8 @@ paths: label: cURL source: |- curl -X POST '{backend_url}/store/carts/{id}/promotions' \ - -H 'Content-Type: application/json' \ \ - -H 'x-publishable-api-key: {your_publishable_api_key}' + -H 'Content-Type: application/json' \ + -H 'x-publishable-api-key: {your_publishable_api_key}' \ --data-raw '{ "promo_codes": [ "{value}" @@ -1303,8 +1303,8 @@ paths: label: cURL source: |- curl -X POST '{backend_url}/store/carts/{id}/shipping-methods' \ - -H 'Content-Type: application/json' \ \ - -H 'x-publishable-api-key: {your_publishable_api_key}' + -H 'Content-Type: application/json' \ + -H 'x-publishable-api-key: {your_publishable_api_key}' \ --data-raw '{ "option_id": "{value}" }' @@ -2252,8 +2252,8 @@ paths: source: |- curl -X POST '{backend_url}/store/customers' \ -H 'Authorization: Bearer {token}' \ - -H 'Content-Type: application/json' \ \ - -H 'x-publishable-api-key: {your_publishable_api_key}' + -H 'Content-Type: application/json' \ + -H 'x-publishable-api-key: {your_publishable_api_key}' \ --data-raw '{ "email": "Monserrate.Leannon88@yahoo.com", "company_name": "{value}", @@ -2371,8 +2371,8 @@ paths: source: |- curl -X POST '{backend_url}/store/customers/me' \ -H 'Authorization: Bearer {access_token}' \ - -H 'Content-Type: application/json' \ \ - -H 'x-publishable-api-key: {your_publishable_api_key}' + -H 'Content-Type: application/json' \ + -H 'x-publishable-api-key: {your_publishable_api_key}' \ --data-raw '{ "company_name": "{value}", "first_name": "{value}", @@ -2625,8 +2625,8 @@ paths: source: |- curl -X POST '{backend_url}/store/customers/me/addresses' \ -H 'Authorization: Bearer {access_token}' \ - -H 'Content-Type: application/json' \ \ - -H 'x-publishable-api-key: {your_publishable_api_key}' + -H 'Content-Type: application/json' \ + -H 'x-publishable-api-key: {your_publishable_api_key}' \ --data-raw '{ "metadata": {}, "first_name": "{value}", @@ -2815,8 +2815,8 @@ paths: source: |- curl -X POST '{backend_url}/store/customers/me/addresses/{address_id}' \ -H 'Authorization: Bearer {access_token}' \ - -H 'Content-Type: application/json' \ \ - -H 'x-publishable-api-key: {your_publishable_api_key}' + -H 'Content-Type: application/json' \ + -H 'x-publishable-api-key: {your_publishable_api_key}' \ --data-raw '{ "first_name": "{value}", }' @@ -2875,8 +2875,8 @@ paths: - lang: Shell label: cURL source: |- - curl -X DELETE '{backend_url}/store/customers/me/addresses/{address_id}' \ \ - -H 'x-publishable-api-key: {your_publishable_api_key}' + curl -X DELETE '{backend_url}/store/customers/me/addresses/{address_id}' \ + -H 'x-publishable-api-key: {your_publishable_api_key}' \ -H 'Authorization: Bearer {access_token}' tags: - Customers @@ -3430,8 +3430,8 @@ paths: label: cURL source: |- curl -X POST '{backend_url}/store/payment-collections' \ - -H 'Content-Type: application/json' \ \ - -H 'x-publishable-api-key: {your_publishable_api_key}' + -H 'Content-Type: application/json' \ + -H 'x-publishable-api-key: {your_publishable_api_key}' \ --data-raw '{ "cart_id": "{value}" }' @@ -3494,8 +3494,8 @@ paths: label: cURL source: |- curl -X POST '{backend_url}/store/payment-collections/{id}/payment-sessions' \ - -H 'Content-Type: application/json' \ \ - -H 'x-publishable-api-key: {your_publishable_api_key}' + -H 'Content-Type: application/json' \ + -H 'x-publishable-api-key: {your_publishable_api_key}' \ --data-raw '{ "provider_id": "{value}" }' @@ -5451,8 +5451,8 @@ paths: label: cURL source: |- curl -X POST '{backend_url}/store/return' \ - -H 'Content-Type: application/json' \ \ - -H 'x-publishable-api-key: {your_publishable_api_key}' + -H 'Content-Type: application/json' \ + -H 'x-publishable-api-key: {your_publishable_api_key}' \ --data-raw '{ "order_id": "{value}", "items": [ diff --git a/www/packages/docs-ui/src/components/CodeTabs/index.tsx b/www/packages/docs-ui/src/components/CodeTabs/index.tsx index 20e6d3e789..419dea3cd9 100644 --- a/www/packages/docs-ui/src/components/CodeTabs/index.tsx +++ b/www/packages/docs-ui/src/components/CodeTabs/index.tsx @@ -107,15 +107,30 @@ export const CodeTabs = ({ return } - const codeBlockProps = codeBlock.props as CodeBlockProps + let codeBlockProps = codeBlock.props as CodeBlockProps + + const commonProps = { + badgeLabel: undefined, + hasTabs: true, + className: clsx("!my-0", codeBlockProps.className), + } + + if ( + typeof codeBlock.type !== "string" && + "name" in codeBlock.type && + codeBlock.type.name === "CodeBlock" + ) { + codeBlockProps = { + ...codeBlockProps, + ...commonProps, + } + } const modifiedProps: CodeBlockProps = { ...(getCodeBlockProps(codeBlock) || { source: "", }), - badgeLabel: undefined, - hasTabs: true, - className: clsx("!my-0", codeBlockProps.className), + ...commonProps, } tempTabs.push({ diff --git a/www/utils/generated/oas-output/operations/store/delete_store_customers_me_addresses_[address_id].ts b/www/utils/generated/oas-output/operations/store/delete_store_customers_me_addresses_[address_id].ts index b313756f03..b460484425 100644 --- a/www/utils/generated/oas-output/operations/store/delete_store_customers_me_addresses_[address_id].ts +++ b/www/utils/generated/oas-output/operations/store/delete_store_customers_me_addresses_[address_id].ts @@ -34,8 +34,8 @@ * - lang: Shell * label: cURL * source: |- - * curl -X DELETE '{backend_url}/store/customers/me/addresses/{address_id}' \ \ - * -H 'x-publishable-api-key: {your_publishable_api_key}' + * curl -X DELETE '{backend_url}/store/customers/me/addresses/{address_id}' \ + * -H 'x-publishable-api-key: {your_publishable_api_key}' \ * -H 'Authorization: Bearer {access_token}' * tags: * - Customers diff --git a/www/utils/generated/oas-output/operations/store/post_store_carts_[id]_line-items.ts b/www/utils/generated/oas-output/operations/store/post_store_carts_[id]_line-items.ts index 94f84be1a9..09f2896b9b 100644 --- a/www/utils/generated/oas-output/operations/store/post_store_carts_[id]_line-items.ts +++ b/www/utils/generated/oas-output/operations/store/post_store_carts_[id]_line-items.ts @@ -37,8 +37,8 @@ * label: cURL * source: |- * curl -X POST '{backend_url}/store/carts/{id}/line-items' \ - * -H 'Content-Type: application/json' \ \ - * -H 'x-publishable-api-key: {your_publishable_api_key}' + * -H 'Content-Type: application/json' \ + * -H 'x-publishable-api-key: {your_publishable_api_key}' \ * --data-raw '{ * "variant_id": "{value}", * "quantity": 3360689747918848, diff --git a/www/utils/generated/oas-output/operations/store/post_store_carts_[id]_line-items_[line_id].ts b/www/utils/generated/oas-output/operations/store/post_store_carts_[id]_line-items_[line_id].ts index 86b4a7b40c..c0bd685977 100644 --- a/www/utils/generated/oas-output/operations/store/post_store_carts_[id]_line-items_[line_id].ts +++ b/www/utils/generated/oas-output/operations/store/post_store_carts_[id]_line-items_[line_id].ts @@ -43,8 +43,8 @@ * label: cURL * source: |- * curl -X POST '{backend_url}/store/carts/{id}/line-items/{line_id}' \ - * -H 'Content-Type: application/json' \ \ - * -H 'x-publishable-api-key: {your_publishable_api_key}' + * -H 'Content-Type: application/json' \ + * -H 'x-publishable-api-key: {your_publishable_api_key}' \ * --data-raw '{ * "quantity": 8980402259623936, * "metadata": {} diff --git a/www/utils/generated/oas-output/operations/store/post_store_carts_[id]_promotions.ts b/www/utils/generated/oas-output/operations/store/post_store_carts_[id]_promotions.ts index 5947900e40..c2b429a487 100644 --- a/www/utils/generated/oas-output/operations/store/post_store_carts_[id]_promotions.ts +++ b/www/utils/generated/oas-output/operations/store/post_store_carts_[id]_promotions.ts @@ -45,8 +45,8 @@ * label: cURL * source: |- * curl -X POST '{backend_url}/store/carts/{id}/promotions' \ - * -H 'Content-Type: application/json' \ \ - * -H 'x-publishable-api-key: {your_publishable_api_key}' + * -H 'Content-Type: application/json' \ + * -H 'x-publishable-api-key: {your_publishable_api_key}' \ * --data-raw '{ * "promo_codes": [ * "{value}" diff --git a/www/utils/generated/oas-output/operations/store/post_store_carts_[id]_shipping-methods.ts b/www/utils/generated/oas-output/operations/store/post_store_carts_[id]_shipping-methods.ts index 073592307a..d86a066b3e 100644 --- a/www/utils/generated/oas-output/operations/store/post_store_carts_[id]_shipping-methods.ts +++ b/www/utils/generated/oas-output/operations/store/post_store_carts_[id]_shipping-methods.ts @@ -51,8 +51,8 @@ * label: cURL * source: |- * curl -X POST '{backend_url}/store/carts/{id}/shipping-methods' \ - * -H 'Content-Type: application/json' \ \ - * -H 'x-publishable-api-key: {your_publishable_api_key}' + * -H 'Content-Type: application/json' \ + * -H 'x-publishable-api-key: {your_publishable_api_key}' \ * --data-raw '{ * "option_id": "{value}" * }' diff --git a/www/utils/generated/oas-output/operations/store/post_store_customers.ts b/www/utils/generated/oas-output/operations/store/post_store_customers.ts index f531c8c605..dd4ae36819 100644 --- a/www/utils/generated/oas-output/operations/store/post_store_customers.ts +++ b/www/utils/generated/oas-output/operations/store/post_store_customers.ts @@ -31,8 +31,8 @@ * source: |- * curl -X POST '{backend_url}/store/customers' \ * -H 'Authorization: Bearer {token}' \ - * -H 'Content-Type: application/json' \ \ - * -H 'x-publishable-api-key: {your_publishable_api_key}' + * -H 'Content-Type: application/json' \ + * -H 'x-publishable-api-key: {your_publishable_api_key}' \ * --data-raw '{ * "email": "Monserrate.Leannon88@yahoo.com", * "company_name": "{value}", diff --git a/www/utils/generated/oas-output/operations/store/post_store_customers_me.ts b/www/utils/generated/oas-output/operations/store/post_store_customers_me.ts index f11f68e5a7..8060355394 100644 --- a/www/utils/generated/oas-output/operations/store/post_store_customers_me.ts +++ b/www/utils/generated/oas-output/operations/store/post_store_customers_me.ts @@ -34,8 +34,8 @@ * source: |- * curl -X POST '{backend_url}/store/customers/me' \ * -H 'Authorization: Bearer {access_token}' \ - * -H 'Content-Type: application/json' \ \ - * -H 'x-publishable-api-key: {your_publishable_api_key}' + * -H 'Content-Type: application/json' \ + * -H 'x-publishable-api-key: {your_publishable_api_key}' \ * --data-raw '{ * "company_name": "{value}", * "first_name": "{value}", diff --git a/www/utils/generated/oas-output/operations/store/post_store_customers_me_addresses.ts b/www/utils/generated/oas-output/operations/store/post_store_customers_me_addresses.ts index 15e086d51d..c09726a405 100644 --- a/www/utils/generated/oas-output/operations/store/post_store_customers_me_addresses.ts +++ b/www/utils/generated/oas-output/operations/store/post_store_customers_me_addresses.ts @@ -92,8 +92,8 @@ * source: |- * curl -X POST '{backend_url}/store/customers/me/addresses' \ * -H 'Authorization: Bearer {access_token}' \ - * -H 'Content-Type: application/json' \ \ - * -H 'x-publishable-api-key: {your_publishable_api_key}' + * -H 'Content-Type: application/json' \ + * -H 'x-publishable-api-key: {your_publishable_api_key}' \ * --data-raw '{ * "metadata": {}, * "first_name": "{value}", diff --git a/www/utils/generated/oas-output/operations/store/post_store_customers_me_addresses_[address_id].ts b/www/utils/generated/oas-output/operations/store/post_store_customers_me_addresses_[address_id].ts index 14860fac3e..6a60bc180c 100644 --- a/www/utils/generated/oas-output/operations/store/post_store_customers_me_addresses_[address_id].ts +++ b/www/utils/generated/oas-output/operations/store/post_store_customers_me_addresses_[address_id].ts @@ -98,8 +98,8 @@ * source: |- * curl -X POST '{backend_url}/store/customers/me/addresses/{address_id}' \ * -H 'Authorization: Bearer {access_token}' \ - * -H 'Content-Type: application/json' \ \ - * -H 'x-publishable-api-key: {your_publishable_api_key}' + * -H 'Content-Type: application/json' \ + * -H 'x-publishable-api-key: {your_publishable_api_key}' \ * --data-raw '{ * "first_name": "{value}", * }' diff --git a/www/utils/generated/oas-output/operations/store/post_store_payment-collections.ts b/www/utils/generated/oas-output/operations/store/post_store_payment-collections.ts index 21ab679ba8..5fec1a5c80 100644 --- a/www/utils/generated/oas-output/operations/store/post_store_payment-collections.ts +++ b/www/utils/generated/oas-output/operations/store/post_store_payment-collections.ts @@ -30,8 +30,8 @@ * label: cURL * source: |- * curl -X POST '{backend_url}/store/payment-collections' \ - * -H 'Content-Type: application/json' \ \ - * -H 'x-publishable-api-key: {your_publishable_api_key}' + * -H 'Content-Type: application/json' \ + * -H 'x-publishable-api-key: {your_publishable_api_key}' \ * --data-raw '{ * "cart_id": "{value}" * }' diff --git a/www/utils/generated/oas-output/operations/store/post_store_payment-collections_[id]_payment-sessions.ts b/www/utils/generated/oas-output/operations/store/post_store_payment-collections_[id]_payment-sessions.ts index a6423f39df..d825414b84 100644 --- a/www/utils/generated/oas-output/operations/store/post_store_payment-collections_[id]_payment-sessions.ts +++ b/www/utils/generated/oas-output/operations/store/post_store_payment-collections_[id]_payment-sessions.ts @@ -38,8 +38,8 @@ * label: cURL * source: |- * curl -X POST '{backend_url}/store/payment-collections/{id}/payment-sessions' \ - * -H 'Content-Type: application/json' \ \ - * -H 'x-publishable-api-key: {your_publishable_api_key}' + * -H 'Content-Type: application/json' \ + * -H 'x-publishable-api-key: {your_publishable_api_key}' \ * --data-raw '{ * "provider_id": "{value}" * }' diff --git a/www/utils/generated/oas-output/operations/store/post_store_return.ts b/www/utils/generated/oas-output/operations/store/post_store_return.ts index 412e9346a9..b651f6a5ca 100644 --- a/www/utils/generated/oas-output/operations/store/post_store_return.ts +++ b/www/utils/generated/oas-output/operations/store/post_store_return.ts @@ -14,8 +14,8 @@ * label: cURL * source: |- * curl -X POST '{backend_url}/store/return' \ - * -H 'Content-Type: application/json' \ \ - * -H 'x-publishable-api-key: {your_publishable_api_key}' + * -H 'Content-Type: application/json' \ + * -H 'x-publishable-api-key: {your_publishable_api_key}' \ * --data-raw '{ * "order_id": "{value}", * "items": [