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

feat(customer): improve customer payload with required fields #302

Merged
merged 1 commit into from
Oct 30, 2023
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
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.