Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP: Update PUT /customer response #960

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions openapi/anchor-platform/bundled-callbacks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/PutCustomerResponse'
$ref: '#/components/schemas/GetCustomerResponse'
'400':
description: Invalid data.
content:
Expand Down Expand Up @@ -937,11 +937,6 @@ components:
type: string
email_address_verification:
type: string
PutCustomerResponse:
type: object
properties:
id:
type: string
StatusSEP24:
type: string
description: Possible status value for SEP-24 transactions
Expand Down
2 changes: 1 addition & 1 deletion openapi/anchor-platform/main-callbacks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ paths:
content:
application/json:
schema:
$ref: './schemas.yaml#/components/schemas/PutCustomerResponse'
$ref: './schemas.yaml#/components/schemas/GetCustomerResponse'
'400':
description: Invalid data.
content:
Expand Down
6 changes: 0 additions & 6 deletions openapi/anchor-platform/schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,6 @@ components:
email_address_verification:
type: string

PutCustomerResponse:
type: object
properties:
id:
type: string

PutCustomerCallbackRequest:
type: object
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ The `~=` is defined as equality within rounding error.
value={"Example (from schema)"}
>
<ResponseSamples
responseExample={"{\n \"rate\": {\n \"id\": \"string\",\n \"expires_at\": \"2024-08-26T18:34:22.608Z\",\n \"price\": \"string\",\n \"sell_amount\": \"string\",\n \"buy_amount\": \"string\",\n \"fee\": {\n \"total\": \"string\",\n \"asset\": \"string\",\n \"details\": [\n {\n \"name\": \"string\",\n \"description\": \"string\",\n \"amount\": \"string\"\n }\n ]\n }\n }\n}"}
responseExample={"{\n \"rate\": {\n \"id\": \"string\",\n \"expires_at\": \"2024-09-04T18:47:41.277Z\",\n \"price\": \"string\",\n \"sell_amount\": \"string\",\n \"buy_amount\": \"string\",\n \"fee\": {\n \"total\": \"string\",\n \"asset\": \"string\",\n \"details\": [\n {\n \"name\": \"string\",\n \"description\": \"string\",\n \"amount\": \"string\"\n }\n ]\n }\n }\n}"}
language={"json"}
>

Expand Down
148 changes: 143 additions & 5 deletions platforms/anchor-platform/api-reference/callbacks/post-event.api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: "Receive a JSON object representing an event."
sidebar_label: "Receive an Event"
hide_title: true
hide_table_of_contents: true
api: eJylWEtz2zgS/isoXHKhJEf2ZLK8ZVyeqmztTDwj72VtlwwRTREJCTBo0LJKpf++1QAokpL8kMcXi2j0A41+fI0Nd2KJPL3lV4+gHfL7hD+NEGq/Nru6Hn3iif8/vYg/zj/SJlODFU4Z/VXylNcGnRfAEy4BM6tqovGU/w0ZqEdggv179u1PZhbfIXPMQm0BQTull0xoBsQ7vtM84RZ+NoDuNyPXPN3wzGhHctMNF3VdqswrnXxHkr7hmBVQCfrl1jXwlAcFPOG1JROdAiSqkr096KzSS75N4sI+IeGgm4oc4KzQKDJSOc8sCAeSJ4NVdMI1OM8KoZcHRLDWWJ7wn41x0BOQNehMBXbe1NIv3e+77aYA1pMUHMTIzDG7FJotgBkNzOTMFcByU5ZmpfQyvdMj9nDE6gc2YmIgcSWQRSJzhTXNsvCyZlfXDLSsjdIOx4wMqcW6NEIyhUxpv6mv4oHlCko5PlA9dA1ZQKxhlSwf2lOQPWHrP9LqfU7K/A9WW5MBIsWZG/r0ZC2DWwwO9UsDVz4q0brx/DP7cv31WTWet1Pgw1FVgE5U9bGYzI2thOMpp5AZ0VZiiYJfz4DeqejTaPiW8/T2kI0SUFm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fUMmaUTE4VDiO5l7tDs7ke44d4NDJiwqzx5t0/Q28TenuuwSdh8R9myOkVGy+hrKT3Ayuz/3Kuy+8BDiXo2Xrxk2/eB9jbwqe76qoK/nRDZ0dHOeShtn3DMf1PnmD0AVJMDyP0vHYSX2jHX/3Z7fwgnkZd7FT1oF8hlqNe9wJH4etXln4xFBWnS5gN0yMU+Jg1jiSQ+e4fetq8YdVYSPQktX5Pgo437NEcBx/q9295vsc0fIrjEWNEDfnqmFCxqxhY1xl4klovyxHI87+8n4ZiweavdV90nh8Odk+/EgS9aR4UomONQwo4wMcuaKxN48Atj2xb6fVGIrFIhwWErJ0mBW7ty/an9OL9OIoap2vZVFpJVVnyHVo6wYfDohpoRBlePEipRpjaj80kNuaWYSPiKEQzbjh4rRcDiViBhKqjSEN40AWfhrayVtVogYiHGaKHlFYz0ZKrRoE1y6+SPQ45+DUg/QY5JPZASuDmM5WYGBQzcoS3wNHmvfpj6lws88OzO6ON3coiCa0FgVI4+I7RP6XlhUVkJm7hgFNZdPparVKmdtNlV5OA6uZ/uvr9c2f85vJLL1IK9vUDvchVGuYjATvXjglOfoEGr1hvv81NEr2aVtjam+D9ZsAF++ph4uPCa0QRmb3dLNZMAP/1fV2i8s/O9Brmt0/Ii7Vgi3QaffYGSpgHEN4B2CvvaWTOw//A4w9fHkdodfbb/M7TPvwYtsojjyarbBwsRXNKMX34tB3Nn5tQ2sml51v/l4m/v0fTIK45w==
sidebar_class_name: "post api-method"
info_path: platforms/anchor-platform/api-reference/callbacks/callbacks-server
custom_edit_url: null
Expand Down Expand Up @@ -385,7 +385,7 @@ Receive a JSON object representing an event.
<strong
className={"openapi-schema__property"}
>
amount_fee
fee_details
</strong><span
className={"openapi-schema__name"}
>
Expand All @@ -397,7 +397,7 @@ Receive a JSON object representing an event.
>
<SchemaItem
collapsible={false}
name={"amount"}
name={"total"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
Expand All @@ -413,6 +413,75 @@ Receive a JSON object representing an event.
schema={{"type":"string"}}
>

</SchemaItem><SchemaItem
collapsible={true}
className={"schemaItem"}
>
<details
style={{}}
className={"openapi-markdown__details"}
>
<summary
style={{}}
>
<span
className={"openapi-schema__container"}
>
<strong
className={"openapi-schema__property"}
>
details
</strong><span
className={"openapi-schema__name"}
>
object[]
</span>
</span>
</summary><div
style={{"marginLeft":"1rem"}}
>
<li>
<div
style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem","paddingBottom":".5rem"}}
>
Array [
</div>
</li><SchemaItem
collapsible={false}
name={"name"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string"}}
>

</SchemaItem><SchemaItem
collapsible={false}
name={"amount"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string"}}
>

</SchemaItem><SchemaItem
collapsible={false}
name={"description"}
required={false}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string"}}
>

</SchemaItem><li>
<div
style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem"}}
>
]
</div>
</li>
</div>
</details>
</SchemaItem>
</div>
</details>
Expand Down Expand Up @@ -1282,7 +1351,7 @@ Receive a JSON object representing an event.
<strong
className={"openapi-schema__property"}
>
amount_fee
fee_details
</strong><span
className={"openapi-schema__name"}
>
Expand All @@ -1294,7 +1363,7 @@ Receive a JSON object representing an event.
>
<SchemaItem
collapsible={false}
name={"amount"}
name={"total"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
Expand All @@ -1310,6 +1379,75 @@ Receive a JSON object representing an event.
schema={{"type":"string"}}
>

</SchemaItem><SchemaItem
collapsible={true}
className={"schemaItem"}
>
<details
style={{}}
className={"openapi-markdown__details"}
>
<summary
style={{}}
>
<span
className={"openapi-schema__container"}
>
<strong
className={"openapi-schema__property"}
>
details
</strong><span
className={"openapi-schema__name"}
>
object[]
</span>
</span>
</summary><div
style={{"marginLeft":"1rem"}}
>
<li>
<div
style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem","paddingBottom":".5rem"}}
>
Array [
</div>
</li><SchemaItem
collapsible={false}
name={"name"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string"}}
>

</SchemaItem><SchemaItem
collapsible={false}
name={"amount"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string"}}
>

</SchemaItem><SchemaItem
collapsible={false}
name={"description"}
required={false}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string"}}
>

</SchemaItem><li>
<div
style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem"}}
>
]
</div>
</li>
</div>
</details>
</SchemaItem>
</div>
</details>
Expand Down
Loading
Loading