Skip to content

EIFRCN-2131: DCG PUT API- Align Mandatory Fields#1834

Draft
swarooprath396 wants to merge 1 commit into
SAP-docs:mainfrom
swarooprath396:main
Draft

EIFRCN-2131: DCG PUT API- Align Mandatory Fields#1834
swarooprath396 wants to merge 1 commit into
SAP-docs:mainfrom
swarooprath396:main

Conversation

@swarooprath396

Copy link
Copy Markdown
Contributor

@swarooprath396 swarooprath396 marked this pull request as draft June 19, 2026 13:53
| `uuid`| `string` | - | Document UUID - field present in compliance document/Government doc unique id.| MX, PL | FR |
| `grossAmount` | `number` | - | Sum of amounts before discounts and taxes. | Yes | - |
| `currency` | `string` | `enum`: [`MXN`, `EUR`, `PLN`]| Currency used to express amounts (According to the ISO 4217 codes).| Yes | - |
| `exchangeRate` | `number` | - | Exchange Rate according to currency used. | FR, PL | MX |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is currency-dependent logic disguised as country-dependent, which is wrong: if an MX partner sends a transaction in USD, exchangeRate would also be required. Please check this point. Its in Discrepancy with Swagger May be.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exchange rate was hence to be considered optional as it is case to case basis for a given country.

| `buyer`| `object` | [Buyer schema](#buyer-schema)| Details of the buyer.| - | Yes |
| `code` | `string` | - | Prefix of receipt, an alphanumeric field that can refer to a physical place (POS, branch, factory, warehouse, office, etc.) or any other criteria (like business, line of product, etc.) | - | Yes |
| `documentPostalCode`| `string` | - | Postal code of place of receipt issue.| - | Yes |
| `paymentType` | `string` | `enum`: [`Cash`, `Credit Card`, `Digital Wallet`] | Means of payment.| - | Yes |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Old markdown had: enum: ["01, 02, 03"], description: "01 (Cash), 02 (Cheque), 03 (Bank Transfer/Digital Wallet)"

New markdown has: enum: [Cash, Credit Card, Digital Wallet]

Two problems:

Cheque was replaced by Credit Card — these are different payment methods, not a rename
Bank Transfer/Digital Wallet was split and only Digital Wallet remains

Is this expected?

| `issueDateTime` | `string` | YYYY-MM-DDTHH:mm:ssZ | Date and time when the document was created in the local timezone where it was issued.| Yes | - |
| `uuid`| `string` | - | Document UUID - field present in compliance document/Government doc unique id.| MX, PL | FR |
| `grossAmount` | `number` | - | Sum of amounts before discounts and taxes. | Yes | - |
| `currency` | `string` | `enum`: [`MXN`, `EUR`, `PLN`]| Currency used to express amounts (According to the ISO 4217 codes).| Yes | - |

@majumdergaurab-coder majumdergaurab-coder Jul 2, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing INR, USD, and the open-ended ... could break partners in other countries if they ever onboard. This should be confirmed as intentional.

relevant with this comment

@tarunkhatri20 tarunkhatri20 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep in draft until release of FR pull functionality.

| `uuid`| `string` | - | Document UUID - field present in compliance document/Government doc unique id.| MX, PL | FR |
| `grossAmount` | `number` | - | Sum of amounts before discounts and taxes. | Yes | - |
| `currency` | `string` | `enum`: [`MXN`, `EUR`, `PLN`]| Currency used to express amounts (According to the ISO 4217 codes).| Yes | - |
| `exchangeRate` | `number` | - | Exchange Rate according to currency used. | FR, PL | MX |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exchange rate was hence to be considered optional as it is case to case basis for a given country.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants