docs/v2/storefront/index.yaml in spree_api-4.1.0.rc2 vs docs/v2/storefront/index.yaml in spree_api-4.1.0.rc3
- old
+ new
@@ -455,10 +455,11 @@
<pre>PATCH /checkout</pre>
<br />
<pre>
order: {
email: 'john@snow.org',
+ special_instructions: 'Please leave at door',
bill_address_attributes: {
firstname: 'John',
lastname: 'Snow',
address1: '7735 Old Georgetown Road',
city: 'Bethesda',
@@ -517,22 +518,20 @@
<pre>
{
order: {
payments_attributes: [
{
- payment_method_id: 1
+ payment_method_id: 1,
+ source_attributes: {
+ number: '4111111111111111',
+ month: '01',
+ year: '2022',
+ verification_value: '123',
+ name: 'John Doe'
+ }
}
]
- },
- payment_source: {
- 1: {
- number: '4111111111111111',
- month: '01',
- year: '2022',
- verification_value: '123',
- name: 'John Doe'
- }
}
}
</pre>
<br />
<p>
@@ -581,10 +580,13 @@
type: object
properties:
email:
type: string
example: 'john@snow.org'
+ special_instructions:
+ type: string
+ example: 'Please leave at door'
bill_address_attributes:
$ref: '#/components/schemas/AddressPayload'
ship_address_attributes:
$ref: '#/components/schemas/AddressPayload'
payments_attributes:
@@ -594,14 +596,14 @@
properties:
payment_method_id:
type: number
example: 1
description: 'ID of selected payment method'
+ source_attributes:
+ $ref: '#/components/schemas/PaymentSource'
shipments_attributes:
type: object
- payment_source:
- type: object
'/checkout/next':
patch:
description: Goes to the next Checkout step
tags:
@@ -2414,9 +2416,32 @@
city: 'Bethesda'
phone: '3014445002'
zipcode: '20814'
state_name: 'MD'
country_iso: 'US'
+ PaymentSource:
+ properties:
+ number:
+ type: string
+ description: 'Credit card number'
+ month:
+ type: string
+ year:
+ type: string
+ verification_value:
+ type: string
+ cc_type:
+ type: string
+ description: 'Credit Card Brand'
+ name:
+ type: string
+ example:
+ number: '4111111111111111'
+ month: '01'
+ year: '2022'
+ verification_value: '123'
+ cc_type: 'visa'
+ name: 'John Doe'
parameters:
CreditCardIncludeParam:
name: include
in: query