Skip to content

Commit

Permalink
feat(customer): improve customer payload with required fields (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgcmarins authored Oct 30, 2023
1 parent de01a2b commit 04d2735
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 28 deletions.
2 changes: 1 addition & 1 deletion src/swaggers/woovi.json

Large diffs are not rendered by default.

130 changes: 104 additions & 26 deletions src/swaggers/woovi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2792,7 +2792,6 @@ paths:
SubAccount:
name: test-sub-account
pixKey: c4249323-b4ca-43f2-8139-8232aab09b93
balance: 0
'400':
description: An error message
content:
Expand Down Expand Up @@ -2973,6 +2972,12 @@ components:
value:
type: string
description: value of object
enableCashbackPercentage:
type: boolean
description: true to enable cashback and false to disable.
enableCashbackExclusivePercentage:
type: boolean
description: true to enable fidelity cashback and false to disable.
required:
- correlationID
- value
Expand Down Expand Up @@ -3053,40 +3058,113 @@ components:
country:
type: string
CustomerPayload:
type: object
properties:
name:
type: string
email:
type: string
phone:
type: string
taxID:
type: string
correlationID:
type: string
address:
type: object
description:
Customer field is not required. However, if you decide to send it,
you must send at least one of the following combinations, name + taxID
or name + email or name + phone.
oneOf:
- type: object
properties:
zipcode:
name:
type: string
street:
email:
type: string
number:
phone:
type: string
neighborhood:
taxID:
type: string
city:
correlationID:
type: string
state:
address:
type: object
properties:
zipcode:
type: string
street:
type: string
number:
type: string
neighborhood:
type: string
city:
type: string
state:
type: string
complement:
type: string
country:
type: string
required:
- name
- taxID
- type: object
properties:
name:
type: string
complement:
email:
type: string
country:
phone:
type: string
required:
- name
- taxID
taxID:
type: string
correlationID:
type: string
address:
type: object
properties:
zipcode:
type: string
street:
type: string
number:
type: string
neighborhood:
type: string
city:
type: string
state:
type: string
complement:
type: string
country:
type: string
required:
- name
- email
- type: object
properties:
name:
type: string
email:
type: string
phone:
type: string
taxID:
type: string
correlationID:
type: string
address:
type: object
properties:
zipcode:
type: string
street:
type: string
number:
type: string
neighborhood:
type: string
city:
type: string
state:
type: string
complement:
type: string
country:
type: string
required:
- name
- phone
End:
type: string
format: date-time
Expand Down
2 changes: 1 addition & 1 deletion static/wooviPostman.json

Large diffs are not rendered by default.

0 comments on commit 04d2735

Please sign in to comment.