Skip to content

Commit

Permalink
Merge pull request #319 from beckn/release-1.x-review
Browse files Browse the repository at this point in the history
Release 1.x review
  • Loading branch information
Ravi Prakash authored Oct 3, 2022
2 parents 65266b3 + 50b0dd7 commit f54bcc0
Show file tree
Hide file tree
Showing 13 changed files with 56 additions and 17 deletions.
6 changes: 3 additions & 3 deletions core/v0/api/components/schemas/CancellationTerm.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
description: Describes the cancellation policy of an item or an order. This can be referenced at an item or order level.
type: object
properties:
reason_required:
description: Indicates whether a reason is required to cancel the order
type: boolean
refund_eligible:
description: Indicates if cancellation will result in a refund
type: boolean
return_eligible:
description: Indicates if cancellation will result in a return to origin
type: boolean
replacement_eligible:
description: Indicates if cancellation will result in a replacement
type: boolean
fulfillment_state:
description: The state of fulfillment during which these terms are applicable.
allOf:
Expand Down
4 changes: 3 additions & 1 deletion core/v0/api/components/schemas/Category.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ properties:
ttl:
description: Time to live for an instance of this schema
tags:
$ref: "./Tags.yaml"
type: array
items:
$ref: "./Tag.yaml"

4 changes: 3 additions & 1 deletion core/v0/api/components/schemas/Contact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ properties:
type: object
description: A Jcard object as per draft-ietf-jcardcal-jcard-03 specification
tags:
$ref: "./Tags.yaml"
type: array
items:
$ref: "./Tag.yaml"

4 changes: 2 additions & 2 deletions core/v0/api/components/schemas/Error.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ properties:
description: Path to json schema generating the error. Used only during json schema validation errors
message:
type: string
description: Human readable message describing the error
description: Human readable message describing the error. Used mainly for logging. Not recommended to be shown to the user.
required:
- type
- code
- path
4 changes: 3 additions & 1 deletion core/v0/api/components/schemas/Fulfillment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ properties:
time:
$ref: "./Time.yaml"
tags:
$ref: "./Tags.yaml"
type: array
items:
$ref: "./Tag.yaml"
domain_extns:
type: object
properties:
Expand Down
4 changes: 3 additions & 1 deletion core/v0/api/components/schemas/Intent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ properties:
item:
$ref: "./Item.yaml"
tags:
$ref: "./Tags.yaml"
type: array
items:
$ref: "./Tag.yaml"

4 changes: 3 additions & 1 deletion core/v0/api/components/schemas/Item.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ properties:
ttl:
description: Time to live for an instance of this schema
tags:
$ref: "./Tags.yaml"
type: array
items:
$ref: "./Tag.yaml"
domain_extns:
type: object
properties:
Expand Down
8 changes: 8 additions & 0 deletions core/v0/api/components/schemas/Order.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ properties:
items:
type: string
description: ID of a previous order
type:
description: This is used to indicate the type of order being created to BPPs. Sometimes orders can be linked to previous orders, like a replacement order in a retail domain. A follow-up consultation in healthcare domain. A single order part of a subscription order. The list of order types can be standardized at the network level. Some recommendations for order types can be REPLACEMENT, FOLLOW-UP
type: string
default: DEFAULT
provider:
description: Details of the provider whose catalog items have been selected.
allOf:
Expand Down Expand Up @@ -68,4 +72,8 @@ properties:
updated_at:
type: string
format: date-time
tags:
type: array
items:
$ref: "./Tag.yaml"

4 changes: 3 additions & 1 deletion core/v0/api/components/schemas/Person.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ properties:
items:
$ref: "./Credential.yaml"
tags:
$ref: "./Tags.yaml"
type: array
items:
$ref: "./Tag.yaml"

4 changes: 3 additions & 1 deletion core/v0/api/components/schemas/Provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,7 @@ properties:
description: Time to live in seconds for an instance of this schema
type: integer
tags:
$ref: "./Tags.yaml"
type: array
items:
$ref: "./Tag.yaml"

2 changes: 1 addition & 1 deletion core/v0/api/components/schemas/RefundTerm.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
type: object
properties:
refund_within:
description: Time within which refund will be processed.
description: Time within which refund will be processed after successful cancellation.
allOf:
- $ref: "./Time.yaml"
external_ref:
Expand Down
21 changes: 21 additions & 0 deletions core/v0/api/components/schemas/Tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
description: A simple read-only key-value store which is used to contain extended metadata for search optimization, recommendations, and general information display purposes. Tags are read-only can cannot be changed once set.
type: object
properties:
namespace:
description: The namespace associated with the tag.
type: string
default: default
key:
description: The machine-readable name of the tag. Beckn protocol has reserved certain keywords from being re-defined in any namespaces.
type: string
label:
description: The human-readable name of the tag. This is usually for display purposes.
type: string
value:
description: The value of the tag key
type: string
hidden:
description: It indicates whether this tag is for display purposes or not.
type: boolean
default: false

4 changes: 0 additions & 4 deletions core/v0/api/components/schemas/Tags.yaml

This file was deleted.

0 comments on commit f54bcc0

Please sign in to comment.