Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fix `CreditCard` data structure

Tsuyoshi Hoshino541ef5b807e8
diff --git a/api/docs/v2/storefront/index.yaml b/api/docs/v2/storefront/index.yaml
index 58f2aef29a..3604100cba 100644
--- a/api/docs/v2/storefront/index.yaml
+++ b/api/docs/v2/storefront/index.yaml
@@ -2394,8 +2394,6 @@ components:
default: credit_card
attributes:
type: object
- required:
- - relationships
properties:
cc_type:
type: string
@@ -2424,18 +2422,19 @@ components:
type: boolean
example: true
description: Defines if this is the default CC for a signed in user
- relationships:
- type: object
- properties:
- payment_method:
- type: object
- properties:
- data:
- $ref: '#/components/schemas/Relation'
+ relationships:
+ type: object
+ properties:
+ payment_method:
+ type: object
+ properties:
+ data:
+ $ref: '#/components/schemas/Relation'
required:
- id
- type
- attributes
+ - relationships
CreditCardIncludes:
x-internal: true
title: Credit Card Includes