@fiado/type-kit 3.615.0 → 3.617.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/_test_/unit/loanOfferings/segmentCohorts.test.ts +11 -2
  2. package/_test_/unit/loanRetailAudit/m8AuditCatalog.test.ts +58 -0
  3. package/_test_/unit/reconciliation/reconciliationCatalogs.test.ts +126 -0
  4. package/_test_/unit/reconciliation/reconciliationRequests.test.ts +208 -0
  5. package/_test_/unit/reconciliation/reconciliationShapes.test.ts +74 -0
  6. package/_test_/unit/retailWizard/privateGetSale.test.ts +59 -0
  7. package/_test_/unit/transaction/transactionCreateRequestM8.test.ts +27 -0
  8. package/_test_/unit/transactionProcessor/reconciliationAdjustment.test.ts +63 -0
  9. package/_test_/unit/transferNote/transferNoteConfigAndPrivate.test.ts +202 -0
  10. package/_test_/unit/transferNote/transferNoteEventsAndFeeds.test.ts +112 -0
  11. package/_test_/unit/transferNote/transferNoteRequests.test.ts +138 -0
  12. package/bin/index.d.ts +2 -0
  13. package/bin/index.js +7 -1
  14. package/bin/loanOfferings/dtos/requests/CreateSegmentRequest.d.ts +2 -0
  15. package/bin/loanOfferings/dtos/requests/CreateSegmentRequest.js +7 -0
  16. package/bin/loanOfferings/dtos/requests/UpdateSegmentRequest.d.ts +2 -0
  17. package/bin/loanOfferings/dtos/requests/UpdateSegmentRequest.js +7 -0
  18. package/bin/loanOfferings/dtos/responses/SegmentResponse.d.ts +2 -0
  19. package/bin/loanRetailAudit/enums/AuditTrailActionEnum.d.ts +12 -1
  20. package/bin/loanRetailAudit/enums/AuditTrailActionEnum.js +12 -0
  21. package/bin/loanRetailAudit/enums/LoanAuditEntityTypeEnum.d.ts +5 -1
  22. package/bin/loanRetailAudit/enums/LoanAuditEntityTypeEnum.js +4 -0
  23. package/bin/reconciliation/constants/reconciliationErrorHttpStatus.d.ts +6 -0
  24. package/bin/reconciliation/constants/reconciliationErrorHttpStatus.js +23 -0
  25. package/bin/reconciliation/constants/reconciliationValidation.d.ts +8 -0
  26. package/bin/reconciliation/constants/reconciliationValidation.js +11 -0
  27. package/bin/reconciliation/dtos/ReconciliationDefinition.d.ts +42 -0
  28. package/bin/reconciliation/dtos/ReconciliationDefinition.js +2 -0
  29. package/bin/reconciliation/dtos/ReconciliationFeedRecord.d.ts +42 -0
  30. package/bin/reconciliation/dtos/ReconciliationFeedRecord.js +2 -0
  31. package/bin/reconciliation/dtos/ReconciliationItem.d.ts +77 -0
  32. package/bin/reconciliation/dtos/ReconciliationItem.js +2 -0
  33. package/bin/reconciliation/dtos/ReconciliationRun.d.ts +28 -0
  34. package/bin/reconciliation/dtos/ReconciliationRun.js +2 -0
  35. package/bin/reconciliation/dtos/requests/PrivateReconciliationRequests.d.ts +80 -0
  36. package/bin/reconciliation/dtos/requests/PrivateReconciliationRequests.js +215 -0
  37. package/bin/reconciliation/dtos/requests/ReconciliationActionRequests.d.ts +30 -0
  38. package/bin/reconciliation/dtos/requests/ReconciliationActionRequests.js +105 -0
  39. package/bin/reconciliation/dtos/requests/ReconciliationFeedRequests.d.ts +23 -0
  40. package/bin/reconciliation/dtos/requests/ReconciliationFeedRequests.js +71 -0
  41. package/bin/reconciliation/dtos/requests/ReconciliationQueries.d.ts +54 -0
  42. package/bin/reconciliation/dtos/requests/ReconciliationQueries.js +192 -0
  43. package/bin/reconciliation/dtos/requests/reconciliationRequestDecorators.d.ts +7 -0
  44. package/bin/reconciliation/dtos/requests/reconciliationRequestDecorators.js +39 -0
  45. package/bin/reconciliation/dtos/responses/PrivateReconciliationResponses.d.ts +13 -0
  46. package/bin/reconciliation/dtos/responses/PrivateReconciliationResponses.js +2 -0
  47. package/bin/reconciliation/dtos/responses/ReconciliationFeedResponses.d.ts +7 -0
  48. package/bin/reconciliation/dtos/responses/ReconciliationFeedResponses.js +2 -0
  49. package/bin/reconciliation/dtos/responses/ReconciliationResponses.d.ts +81 -0
  50. package/bin/reconciliation/dtos/responses/ReconciliationResponses.js +2 -0
  51. package/bin/reconciliation/enums/ReconciliationDefinitionStatusEnum.d.ts +6 -0
  52. package/bin/reconciliation/enums/ReconciliationDefinitionStatusEnum.js +10 -0
  53. package/bin/reconciliation/enums/ReconciliationErrorCodeEnum.d.ts +24 -0
  54. package/bin/reconciliation/enums/ReconciliationErrorCodeEnum.js +28 -0
  55. package/bin/reconciliation/enums/ReconciliationExportFormatEnum.d.ts +5 -0
  56. package/bin/reconciliation/enums/ReconciliationExportFormatEnum.js +9 -0
  57. package/bin/reconciliation/enums/ReconciliationFeedConceptEnum.d.ts +16 -0
  58. package/bin/reconciliation/enums/ReconciliationFeedConceptEnum.js +20 -0
  59. package/bin/reconciliation/enums/ReconciliationFeedErrorCodeEnum.d.ts +4 -0
  60. package/bin/reconciliation/enums/ReconciliationFeedErrorCodeEnum.js +8 -0
  61. package/bin/reconciliation/enums/ReconciliationFeedOwnerEnum.d.ts +9 -0
  62. package/bin/reconciliation/enums/ReconciliationFeedOwnerEnum.js +13 -0
  63. package/bin/reconciliation/enums/ReconciliationItemStateEnum.d.ts +23 -0
  64. package/bin/reconciliation/enums/ReconciliationItemStateEnum.js +27 -0
  65. package/bin/reconciliation/enums/ReconciliationLayerEnum.d.ts +8 -0
  66. package/bin/reconciliation/enums/ReconciliationLayerEnum.js +12 -0
  67. package/bin/reconciliation/enums/ReconciliationPeriodEnum.d.ts +6 -0
  68. package/bin/reconciliation/enums/ReconciliationPeriodEnum.js +10 -0
  69. package/bin/reconciliation/enums/ReconciliationResolutionArchiveReasonEnum.d.ts +6 -0
  70. package/bin/reconciliation/enums/ReconciliationResolutionArchiveReasonEnum.js +10 -0
  71. package/bin/reconciliation/enums/ReconciliationResolutionStatusEnum.d.ts +9 -0
  72. package/bin/reconciliation/enums/ReconciliationResolutionStatusEnum.js +13 -0
  73. package/bin/reconciliation/enums/ReconciliationResolutionTypeEnum.d.ts +7 -0
  74. package/bin/reconciliation/enums/ReconciliationResolutionTypeEnum.js +11 -0
  75. package/bin/reconciliation/enums/ReconciliationRuleTypeEnum.d.ts +7 -0
  76. package/bin/reconciliation/enums/ReconciliationRuleTypeEnum.js +11 -0
  77. package/bin/reconciliation/enums/ReconciliationRunStatusEnum.d.ts +6 -0
  78. package/bin/reconciliation/enums/ReconciliationRunStatusEnum.js +10 -0
  79. package/bin/reconciliation/enums/ReconciliationSourceRoleEnum.d.ts +6 -0
  80. package/bin/reconciliation/enums/ReconciliationSourceRoleEnum.js +10 -0
  81. package/bin/reconciliation/events/ReconciliationItemMatchedEventDetail.d.ts +22 -0
  82. package/bin/reconciliation/events/ReconciliationItemMatchedEventDetail.js +14 -0
  83. package/bin/reconciliation/index.d.ts +29 -0
  84. package/bin/reconciliation/index.js +51 -0
  85. package/bin/retailWizard/catalog/privateSaleDetailFields.d.ts +3 -0
  86. package/bin/retailWizard/catalog/privateSaleDetailFields.js +16 -0
  87. package/bin/retailWizard/constants/retailWizardValidation.d.ts +2 -0
  88. package/bin/retailWizard/constants/retailWizardValidation.js +5 -0
  89. package/bin/retailWizard/dtos/requests/PrivateGetSaleRequest.d.ts +8 -0
  90. package/bin/retailWizard/dtos/requests/PrivateGetSaleRequest.js +42 -0
  91. package/bin/retailWizard/dtos/responses/PrivateGetSaleResponse.d.ts +16 -0
  92. package/bin/retailWizard/dtos/responses/PrivateGetSaleResponse.js +2 -0
  93. package/bin/retailWizard/index.d.ts +4 -0
  94. package/bin/retailWizard/index.js +5 -0
  95. package/bin/transaction/dtos/TransactionCreateRequest.d.ts +4 -0
  96. package/bin/transaction/dtos/TransactionCreateRequest.js +12 -0
  97. package/bin/transactionProcessor/dtos/PrivateAuthorizeReconciliationAdjustmentRequest.d.ts +30 -0
  98. package/bin/transactionProcessor/dtos/PrivateAuthorizeReconciliationAdjustmentRequest.js +107 -0
  99. package/bin/transactionProcessor/dtos/PrivateAuthorizeReconciliationAdjustmentResponse.d.ts +7 -0
  100. package/bin/transactionProcessor/dtos/PrivateAuthorizeReconciliationAdjustmentResponse.js +2 -0
  101. package/bin/transactionProcessor/dtos/ReconciliationAdjustmentReference.d.ts +5 -0
  102. package/bin/transactionProcessor/dtos/ReconciliationAdjustmentReference.js +30 -0
  103. package/bin/transactionProcessor/index.d.ts +3 -0
  104. package/bin/transactionProcessor/index.js +3 -0
  105. package/bin/transferNote/constants/transferNoteDefaultFees.d.ts +5 -0
  106. package/bin/transferNote/constants/transferNoteDefaultFees.js +9 -0
  107. package/bin/transferNote/constants/transferNoteErrorHttpStatus.d.ts +3 -0
  108. package/bin/transferNote/constants/transferNoteErrorHttpStatus.js +30 -0
  109. package/bin/transferNote/constants/transferNoteValidation.d.ts +7 -0
  110. package/bin/transferNote/constants/transferNoteValidation.js +10 -0
  111. package/bin/transferNote/dtos/TransferNote.d.ts +81 -0
  112. package/bin/transferNote/dtos/TransferNote.js +2 -0
  113. package/bin/transferNote/dtos/TransferNoteConfigRecords.d.ts +50 -0
  114. package/bin/transferNote/dtos/TransferNoteConfigRecords.js +2 -0
  115. package/bin/transferNote/dtos/TransferNoteFeedRecords.d.ts +38 -0
  116. package/bin/transferNote/dtos/TransferNoteFeedRecords.js +2 -0
  117. package/bin/transferNote/dtos/TransferNoteHistoryEntry.d.ts +16 -0
  118. package/bin/transferNote/dtos/TransferNoteHistoryEntry.js +2 -0
  119. package/bin/transferNote/dtos/TransferNoteItem.d.ts +36 -0
  120. package/bin/transferNote/dtos/TransferNoteItem.js +2 -0
  121. package/bin/transferNote/dtos/TransferNoteSignedUrl.d.ts +5 -0
  122. package/bin/transferNote/dtos/TransferNoteSignedUrl.js +2 -0
  123. package/bin/transferNote/dtos/requests/PrivateTransferNoteRequests.d.ts +105 -0
  124. package/bin/transferNote/dtos/requests/PrivateTransferNoteRequests.js +256 -0
  125. package/bin/transferNote/dtos/requests/RetailerTransferNoteRequests.d.ts +20 -0
  126. package/bin/transferNote/dtos/requests/RetailerTransferNoteRequests.js +47 -0
  127. package/bin/transferNote/dtos/requests/TransferNoteActionRequests.d.ts +33 -0
  128. package/bin/transferNote/dtos/requests/TransferNoteActionRequests.js +104 -0
  129. package/bin/transferNote/dtos/requests/TransferNoteConfigRequests.d.ts +38 -0
  130. package/bin/transferNote/dtos/requests/TransferNoteConfigRequests.js +152 -0
  131. package/bin/transferNote/dtos/requests/TransferNoteQueries.d.ts +29 -0
  132. package/bin/transferNote/dtos/requests/TransferNoteQueries.js +107 -0
  133. package/bin/transferNote/dtos/requests/transferNoteRequestDecorators.d.ts +14 -0
  134. package/bin/transferNote/dtos/requests/transferNoteRequestDecorators.js +73 -0
  135. package/bin/transferNote/dtos/responses/PrivateTransferNoteResponses.d.ts +26 -0
  136. package/bin/transferNote/dtos/responses/PrivateTransferNoteResponses.js +2 -0
  137. package/bin/transferNote/dtos/responses/RetailerTransferNoteResponses.d.ts +13 -0
  138. package/bin/transferNote/dtos/responses/RetailerTransferNoteResponses.js +2 -0
  139. package/bin/transferNote/dtos/responses/TransferNoteConfigResponses.d.ts +6 -0
  140. package/bin/transferNote/dtos/responses/TransferNoteConfigResponses.js +2 -0
  141. package/bin/transferNote/dtos/responses/TransferNoteResponses.d.ts +44 -0
  142. package/bin/transferNote/dtos/responses/TransferNoteResponses.js +2 -0
  143. package/bin/transferNote/enums/TransferNoteConceptEnum.d.ts +16 -0
  144. package/bin/transferNote/enums/TransferNoteConceptEnum.js +20 -0
  145. package/bin/transferNote/enums/TransferNoteConceptSignEnum.d.ts +5 -0
  146. package/bin/transferNote/enums/TransferNoteConceptSignEnum.js +9 -0
  147. package/bin/transferNote/enums/TransferNoteConfigRecordTypeEnum.d.ts +7 -0
  148. package/bin/transferNote/enums/TransferNoteConfigRecordTypeEnum.js +11 -0
  149. package/bin/transferNote/enums/TransferNoteConfirmationSourceEnum.d.ts +5 -0
  150. package/bin/transferNote/enums/TransferNoteConfirmationSourceEnum.js +9 -0
  151. package/bin/transferNote/enums/TransferNoteConfirmationTypeEnum.d.ts +5 -0
  152. package/bin/transferNote/enums/TransferNoteConfirmationTypeEnum.js +9 -0
  153. package/bin/transferNote/enums/TransferNoteDisputeCategoryEnum.d.ts +7 -0
  154. package/bin/transferNote/enums/TransferNoteDisputeCategoryEnum.js +11 -0
  155. package/bin/transferNote/enums/TransferNoteDisputeDecisionEnum.d.ts +5 -0
  156. package/bin/transferNote/enums/TransferNoteDisputeDecisionEnum.js +9 -0
  157. package/bin/transferNote/enums/TransferNoteErrorCodeEnum.d.ts +32 -0
  158. package/bin/transferNote/enums/TransferNoteErrorCodeEnum.js +36 -0
  159. package/bin/transferNote/enums/TransferNoteFeedConceptEnum.d.ts +5 -0
  160. package/bin/transferNote/enums/TransferNoteFeedConceptEnum.js +9 -0
  161. package/bin/transferNote/enums/TransferNoteHistoryActionEnum.d.ts +13 -0
  162. package/bin/transferNote/enums/TransferNoteHistoryActionEnum.js +17 -0
  163. package/bin/transferNote/enums/TransferNoteIssueOriginEnum.d.ts +6 -0
  164. package/bin/transferNote/enums/TransferNoteIssueOriginEnum.js +10 -0
  165. package/bin/transferNote/enums/TransferNoteItemStatusEnum.d.ts +5 -0
  166. package/bin/transferNote/enums/TransferNoteItemStatusEnum.js +9 -0
  167. package/bin/transferNote/enums/TransferNotePartyTypeEnum.d.ts +6 -0
  168. package/bin/transferNote/enums/TransferNotePartyTypeEnum.js +10 -0
  169. package/bin/transferNote/enums/TransferNoteStatusEnum.d.ts +9 -0
  170. package/bin/transferNote/enums/TransferNoteStatusEnum.js +13 -0
  171. package/bin/transferNote/events/TransferNoteReconciledEventDetail.d.ts +17 -0
  172. package/bin/transferNote/events/TransferNoteReconciledEventDetail.js +13 -0
  173. package/bin/transferNote/index.d.ts +34 -0
  174. package/bin/transferNote/index.js +56 -0
  175. package/bin/transferNote/validators/IsTransferNoteSelectionConstraint.d.ts +6 -0
  176. package/bin/transferNote/validators/IsTransferNoteSelectionConstraint.js +28 -0
  177. package/package.json +1 -1
  178. package/src/index.ts +8 -0
  179. package/src/loanOfferings/dtos/requests/CreateSegmentRequest.ts +7 -0
  180. package/src/loanOfferings/dtos/requests/UpdateSegmentRequest.ts +7 -0
  181. package/src/loanOfferings/dtos/responses/SegmentResponse.ts +2 -0
  182. package/src/loanRetailAudit/enums/AuditTrailActionEnum.ts +12 -0
  183. package/src/loanRetailAudit/enums/LoanAuditEntityTypeEnum.ts +4 -0
  184. package/src/reconciliation/constants/reconciliationErrorHttpStatus.ts +22 -0
  185. package/src/reconciliation/constants/reconciliationValidation.ts +11 -0
  186. package/src/reconciliation/dtos/ReconciliationDefinition.ts +44 -0
  187. package/src/reconciliation/dtos/ReconciliationFeedRecord.ts +44 -0
  188. package/src/reconciliation/dtos/ReconciliationItem.ts +84 -0
  189. package/src/reconciliation/dtos/ReconciliationRun.ts +31 -0
  190. package/src/reconciliation/dtos/requests/PrivateReconciliationRequests.ts +166 -0
  191. package/src/reconciliation/dtos/requests/ReconciliationActionRequests.ts +77 -0
  192. package/src/reconciliation/dtos/requests/ReconciliationFeedRequests.ts +47 -0
  193. package/src/reconciliation/dtos/requests/ReconciliationQueries.ts +148 -0
  194. package/src/reconciliation/dtos/requests/reconciliationRequestDecorators.ts +32 -0
  195. package/src/reconciliation/dtos/responses/PrivateReconciliationResponses.ts +27 -0
  196. package/src/reconciliation/dtos/responses/ReconciliationFeedResponses.ts +9 -0
  197. package/src/reconciliation/dtos/responses/ReconciliationResponses.ts +101 -0
  198. package/src/reconciliation/enums/ReconciliationDefinitionStatusEnum.ts +6 -0
  199. package/src/reconciliation/enums/ReconciliationErrorCodeEnum.ts +24 -0
  200. package/src/reconciliation/enums/ReconciliationExportFormatEnum.ts +5 -0
  201. package/src/reconciliation/enums/ReconciliationFeedConceptEnum.ts +19 -0
  202. package/src/reconciliation/enums/ReconciliationFeedErrorCodeEnum.ts +4 -0
  203. package/src/reconciliation/enums/ReconciliationFeedOwnerEnum.ts +9 -0
  204. package/src/reconciliation/enums/ReconciliationItemStateEnum.ts +23 -0
  205. package/src/reconciliation/enums/ReconciliationLayerEnum.ts +8 -0
  206. package/src/reconciliation/enums/ReconciliationPeriodEnum.ts +6 -0
  207. package/src/reconciliation/enums/ReconciliationResolutionArchiveReasonEnum.ts +6 -0
  208. package/src/reconciliation/enums/ReconciliationResolutionStatusEnum.ts +9 -0
  209. package/src/reconciliation/enums/ReconciliationResolutionTypeEnum.ts +7 -0
  210. package/src/reconciliation/enums/ReconciliationRuleTypeEnum.ts +7 -0
  211. package/src/reconciliation/enums/ReconciliationRunStatusEnum.ts +6 -0
  212. package/src/reconciliation/enums/ReconciliationSourceRoleEnum.ts +6 -0
  213. package/src/reconciliation/events/ReconciliationItemMatchedEventDetail.ts +25 -0
  214. package/src/reconciliation/index.ts +40 -0
  215. package/src/retailWizard/catalog/privateSaleDetailFields.ts +15 -0
  216. package/src/retailWizard/constants/retailWizardValidation.ts +2 -0
  217. package/src/retailWizard/dtos/requests/PrivateGetSaleRequest.ts +26 -0
  218. package/src/retailWizard/dtos/responses/PrivateGetSaleResponse.ts +16 -0
  219. package/src/retailWizard/index.ts +6 -0
  220. package/src/transaction/dtos/TransactionCreateRequest.ts +12 -0
  221. package/src/transactionProcessor/dtos/PrivateAuthorizeReconciliationAdjustmentRequest.ts +101 -0
  222. package/src/transactionProcessor/dtos/PrivateAuthorizeReconciliationAdjustmentResponse.ts +7 -0
  223. package/src/transactionProcessor/dtos/ReconciliationAdjustmentReference.ts +15 -0
  224. package/src/transactionProcessor/index.ts +3 -0
  225. package/src/transferNote/constants/transferNoteDefaultFees.ts +7 -0
  226. package/src/transferNote/constants/transferNoteErrorHttpStatus.ts +28 -0
  227. package/src/transferNote/constants/transferNoteValidation.ts +10 -0
  228. package/src/transferNote/dtos/TransferNote.ts +89 -0
  229. package/src/transferNote/dtos/TransferNoteConfigRecords.ts +55 -0
  230. package/src/transferNote/dtos/TransferNoteFeedRecords.ts +35 -0
  231. package/src/transferNote/dtos/TransferNoteHistoryEntry.ts +17 -0
  232. package/src/transferNote/dtos/TransferNoteItem.ts +38 -0
  233. package/src/transferNote/dtos/TransferNoteSignedUrl.ts +5 -0
  234. package/src/transferNote/dtos/requests/PrivateTransferNoteRequests.ts +195 -0
  235. package/src/transferNote/dtos/requests/RetailerTransferNoteRequests.ts +28 -0
  236. package/src/transferNote/dtos/requests/TransferNoteActionRequests.ts +72 -0
  237. package/src/transferNote/dtos/requests/TransferNoteConfigRequests.ts +115 -0
  238. package/src/transferNote/dtos/requests/TransferNoteQueries.ts +78 -0
  239. package/src/transferNote/dtos/requests/transferNoteRequestDecorators.ts +72 -0
  240. package/src/transferNote/dtos/responses/PrivateTransferNoteResponses.ts +36 -0
  241. package/src/transferNote/dtos/responses/RetailerTransferNoteResponses.ts +19 -0
  242. package/src/transferNote/dtos/responses/TransferNoteConfigResponses.ts +8 -0
  243. package/src/transferNote/dtos/responses/TransferNoteResponses.ts +51 -0
  244. package/src/transferNote/enums/TransferNoteConceptEnum.ts +16 -0
  245. package/src/transferNote/enums/TransferNoteConceptSignEnum.ts +5 -0
  246. package/src/transferNote/enums/TransferNoteConfigRecordTypeEnum.ts +7 -0
  247. package/src/transferNote/enums/TransferNoteConfirmationSourceEnum.ts +5 -0
  248. package/src/transferNote/enums/TransferNoteConfirmationTypeEnum.ts +5 -0
  249. package/src/transferNote/enums/TransferNoteDisputeCategoryEnum.ts +7 -0
  250. package/src/transferNote/enums/TransferNoteDisputeDecisionEnum.ts +5 -0
  251. package/src/transferNote/enums/TransferNoteErrorCodeEnum.ts +34 -0
  252. package/src/transferNote/enums/TransferNoteFeedConceptEnum.ts +5 -0
  253. package/src/transferNote/enums/TransferNoteHistoryActionEnum.ts +13 -0
  254. package/src/transferNote/enums/TransferNoteIssueOriginEnum.ts +6 -0
  255. package/src/transferNote/enums/TransferNoteItemStatusEnum.ts +5 -0
  256. package/src/transferNote/enums/TransferNotePartyTypeEnum.ts +6 -0
  257. package/src/transferNote/enums/TransferNoteStatusEnum.ts +9 -0
  258. package/src/transferNote/events/TransferNoteReconciledEventDetail.ts +22 -0
  259. package/src/transferNote/index.ts +45 -0
  260. package/src/transferNote/validators/IsTransferNoteSelectionConstraint.ts +16 -0
@@ -0,0 +1,38 @@
1
+ import { CurrencyId } from '../../currency/enums/CurrencyId';
2
+ import { TransferNoteConceptEnum } from '../enums/TransferNoteConceptEnum';
3
+ import { TransferNoteItemStatusEnum } from '../enums/TransferNoteItemStatusEnum';
4
+
5
+ /** Lista cerrada de ids que ligan un item con su origen; nunca datos personales. */
6
+ export interface TransferNoteItemRefs {
7
+ creditId?: string;
8
+ saleId?: string;
9
+ customerId?: string;
10
+ retailerId?: string;
11
+ promotionId?: string;
12
+ attemptId?: string;
13
+ }
14
+
15
+ /** Item de un par: en el pool no trae `noteId`. */
16
+ export interface TransferNoteItem {
17
+ itemId: string;
18
+ tenantId: string;
19
+ pairKey: string;
20
+ concept: TransferNoteConceptEnum;
21
+ /** Centavos con signo: positivo suma a lo que el pagador le debe al receptor. */
22
+ amountCents: number;
23
+ currency: CurrencyId;
24
+ status: TransferNoteItemStatusEnum;
25
+ /** Id del registro en el feed del dueño; con `concept` es la llave del candado SOURCE. */
26
+ sourceRecordId: string;
27
+ /** Fecha del movimiento en el origen, ISO 8601. */
28
+ occurredAt: string;
29
+ refs: TransferNoteItemRefs;
30
+ noteId?: string;
31
+ /** Item que esta reversa compensa. */
32
+ reversedItemId?: string;
33
+ /** Llave idempotente del ajuste y el item que corrige. */
34
+ adjustmentKey?: string;
35
+ adjustedItemId?: string;
36
+ pooledAt: string;
37
+ includedAt?: string;
38
+ }
@@ -0,0 +1,5 @@
1
+ /** URL firmada de S3 con su vencimiento ISO 8601. */
2
+ export interface TransferNoteSignedUrl {
3
+ url: string;
4
+ expiresAt: string;
5
+ }
@@ -0,0 +1,195 @@
1
+ import { Expose, Type } from 'class-transformer';
2
+ import { IsEnum, IsInt, Matches, NotEquals } from 'class-validator';
3
+ import { TRANSFER_NOTE_ISO_WEEK_PATTERN } from '../../constants/transferNoteValidation';
4
+ import { TransferNoteConceptEnum } from '../../enums/TransferNoteConceptEnum';
5
+ import {
6
+ CancelTransferNoteRequest,
7
+ CaptureTransferNoteSpeiRequest,
8
+ IssueTransferNoteRequest,
9
+ PreviewTransferNoteRequest,
10
+ ResolveTransferNoteDisputeRequest,
11
+ RevertTransferNoteSpeiRequest,
12
+ } from './TransferNoteActionRequests';
13
+ import { ListTransferNoteItemsQuery, ListTransferNotePoolQuery, ListTransferNotesQuery } from './TransferNoteQueries';
14
+ import { RequiredEmail, RequiredId, RequiredReason } from './transferNoteRequestDecorators';
15
+
16
+ /** Tenant y servicio que llama; el lambda valida `author` contra su lista permitida. */
17
+ export class PrivateTransferNoteCaller {
18
+ @RequiredId()
19
+ tenantId!: string;
20
+
21
+ @RequiredId()
22
+ author!: string;
23
+ }
24
+
25
+ /** Caller del espejo que llama fiado-dashboard; `actor` es el email del operador de la sesión. */
26
+ export class PrivateTransferNoteOperatorCaller extends PrivateTransferNoteCaller {
27
+ @RequiredEmail()
28
+ actor!: string;
29
+ }
30
+
31
+ /** Body de privatePreviewTransferNote. */
32
+ export class PrivatePreviewTransferNoteRequest extends PreviewTransferNoteRequest {
33
+ @RequiredId()
34
+ tenantId!: string;
35
+
36
+ @RequiredId()
37
+ author!: string;
38
+
39
+ @RequiredEmail()
40
+ actor!: string;
41
+ }
42
+
43
+ /** Body de privateIssueTransferNote. */
44
+ export class PrivateIssueTransferNoteRequest extends IssueTransferNoteRequest {
45
+ @RequiredId()
46
+ tenantId!: string;
47
+
48
+ @RequiredId()
49
+ author!: string;
50
+
51
+ @RequiredEmail()
52
+ actor!: string;
53
+ }
54
+
55
+ /** Body de privateCaptureTransferNoteSpei. */
56
+ export class PrivateCaptureTransferNoteSpeiRequest extends CaptureTransferNoteSpeiRequest {
57
+ @RequiredId()
58
+ tenantId!: string;
59
+
60
+ @RequiredId()
61
+ author!: string;
62
+
63
+ @RequiredEmail()
64
+ actor!: string;
65
+ }
66
+
67
+ /** Body de privateRevertTransferNoteSpei. */
68
+ export class PrivateRevertTransferNoteSpeiRequest extends RevertTransferNoteSpeiRequest {
69
+ @RequiredId()
70
+ tenantId!: string;
71
+
72
+ @RequiredId()
73
+ author!: string;
74
+
75
+ @RequiredEmail()
76
+ actor!: string;
77
+ }
78
+
79
+ /** Body de privateCancelTransferNote. */
80
+ export class PrivateCancelTransferNoteRequest extends CancelTransferNoteRequest {
81
+ @RequiredId()
82
+ tenantId!: string;
83
+
84
+ @RequiredId()
85
+ author!: string;
86
+
87
+ @RequiredEmail()
88
+ actor!: string;
89
+ }
90
+
91
+ /** Body de privateResolveTransferNoteDispute. */
92
+ export class PrivateResolveTransferNoteDisputeRequest extends ResolveTransferNoteDisputeRequest {
93
+ @RequiredId()
94
+ tenantId!: string;
95
+
96
+ @RequiredId()
97
+ author!: string;
98
+
99
+ @RequiredEmail()
100
+ actor!: string;
101
+ }
102
+
103
+ /** Body de privateConfirmTransferNoteReception. */
104
+ export class PrivateConfirmTransferNoteReceptionRequest extends PrivateTransferNoteOperatorCaller {}
105
+
106
+ /** Body de privateSendTransferNoteNotice. */
107
+ export class PrivateSendTransferNoteNoticeRequest extends PrivateTransferNoteOperatorCaller {}
108
+
109
+ /** Body de privateCreateSpeiReceiptUploadUrl. */
110
+ export class PrivateCreateSpeiReceiptUploadUrlRequest extends PrivateTransferNoteOperatorCaller {}
111
+
112
+ /** Body de privateConfirmTransferNoteSettlement: FSA confirma el SPEI en su estado de cuenta. */
113
+ export class PrivateConfirmTransferNoteSettlementRequest extends PrivateTransferNoteOperatorCaller {}
114
+
115
+ /** Query de privateGetTransferNote. */
116
+ export class PrivateGetTransferNoteQuery extends PrivateTransferNoteOperatorCaller {}
117
+
118
+ /** Query de privateGetTransferNoteHistory. */
119
+ export class PrivateGetTransferNoteHistoryQuery extends PrivateTransferNoteOperatorCaller {}
120
+
121
+ /** Query de privateGetTransferNotePdf. */
122
+ export class PrivateGetTransferNotePdfQuery extends PrivateTransferNoteOperatorCaller {}
123
+
124
+ /** Query de privateListTransferNotes. */
125
+ export class PrivateListTransferNotesQuery extends ListTransferNotesQuery {
126
+ @RequiredId()
127
+ tenantId!: string;
128
+
129
+ @RequiredId()
130
+ author!: string;
131
+
132
+ @RequiredEmail()
133
+ actor!: string;
134
+ }
135
+
136
+ /** Query de privateListTransferNotePool. */
137
+ export class PrivateListTransferNotePoolQuery extends ListTransferNotePoolQuery {
138
+ @RequiredId()
139
+ tenantId!: string;
140
+
141
+ @RequiredId()
142
+ author!: string;
143
+
144
+ @RequiredEmail()
145
+ actor!: string;
146
+ }
147
+
148
+ /** Query de privateListTransferNoteItems. */
149
+ export class PrivateListTransferNoteItemsQuery extends ListTransferNoteItemsQuery {
150
+ @RequiredId()
151
+ tenantId!: string;
152
+
153
+ @RequiredId()
154
+ author!: string;
155
+
156
+ @RequiredEmail()
157
+ actor!: string;
158
+ }
159
+
160
+ /** Body de privateRunTransferNoteCutoff: responde 202 con `runId` y corre asíncrono. */
161
+ export class PrivateRunTransferNoteCutoffRequest extends PrivateTransferNoteCaller {
162
+ @Expose()
163
+ @Matches(TRANSFER_NOTE_ISO_WEEK_PATTERN)
164
+ isoWeek!: string;
165
+ }
166
+
167
+ /** Body de privateCreateTransferNoteAdjustment; un `adjustmentKey` repetido devuelve el primer ajuste. */
168
+ export class PrivateCreateTransferNoteAdjustmentRequest extends PrivateTransferNoteCaller {
169
+ @RequiredId()
170
+ adjustmentKey!: string;
171
+
172
+ /** Item original; el ajuste va a su mismo par. */
173
+ @RequiredId()
174
+ sourceItemId!: string;
175
+
176
+ /** Centavos con signo, distinto de cero. */
177
+ @Expose()
178
+ @Type(() => Number)
179
+ @IsInt()
180
+ @NotEquals(0)
181
+ amountCents!: number;
182
+
183
+ @RequiredReason()
184
+ reason!: string;
185
+ }
186
+
187
+ /** Query de privateGetTransferNoteItemBySource; la llama el motor, sin operador. */
188
+ export class PrivateGetTransferNoteItemBySourceQuery extends PrivateTransferNoteCaller {
189
+ @Expose()
190
+ @IsEnum(TransferNoteConceptEnum)
191
+ concept!: TransferNoteConceptEnum;
192
+
193
+ @RequiredId()
194
+ sourceRecordId!: string;
195
+ }
@@ -0,0 +1,28 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { IsEnum } from 'class-validator';
3
+ import { TransferNoteDisputeCategoryEnum } from '../../enums/TransferNoteDisputeCategoryEnum';
4
+ import { CaptureTransferNoteSpeiRequest } from './TransferNoteActionRequests';
5
+ import { ListTransferNoteItemsQuery, ListTransferNotePoolQuery, ListTransferNotesQuery } from './TransferNoteQueries';
6
+ import { LongReason } from './transferNoteRequestDecorators';
7
+
8
+ /** Query de publicListRetailerTransferNotes; el retailer va en la ruta. */
9
+ export class ListRetailerTransferNotesQuery extends ListTransferNotesQuery {}
10
+
11
+ /** Query de publicListRetailerTransferNotePool. */
12
+ export class ListRetailerTransferNotePoolQuery extends ListTransferNotePoolQuery {}
13
+
14
+ /** Query de publicListRetailerTransferNoteItems. */
15
+ export class ListRetailerTransferNoteItemsQuery extends ListTransferNoteItemsQuery {}
16
+
17
+ /** Body de publicCaptureRetailerTransferNoteSpei. */
18
+ export class CaptureRetailerTransferNoteSpeiRequest extends CaptureTransferNoteSpeiRequest {}
19
+
20
+ /** Body de publicDisputeTransferNote; solo existe en las rutas de retailer. */
21
+ export class DisputeTransferNoteRequest {
22
+ @Expose()
23
+ @IsEnum(TransferNoteDisputeCategoryEnum)
24
+ category!: TransferNoteDisputeCategoryEnum;
25
+
26
+ @LongReason()
27
+ reason!: string;
28
+ }
@@ -0,0 +1,72 @@
1
+ import { Expose, Type } from 'class-transformer';
2
+ import { IsEnum, IsInt, IsISO8601, IsPositive, Validate } from 'class-validator';
3
+ import { TransferNoteDisputeDecisionEnum } from '../../enums/TransferNoteDisputeDecisionEnum';
4
+ import { IsTransferNoteSelectionConstraint } from '../../validators/IsTransferNoteSelectionConstraint';
5
+ import { LongReason, OptionalIsoWeek, RequiredId, RequiredReason } from './transferNoteRequestDecorators';
6
+
7
+ /** Body de publicPreviewTransferNote: items de un par por selección o por semana. */
8
+ export class PreviewTransferNoteRequest {
9
+ @RequiredId()
10
+ pairKey!: string;
11
+
12
+ @Expose()
13
+ @Validate(IsTransferNoteSelectionConstraint)
14
+ itemIds?: string[];
15
+
16
+ @OptionalIsoWeek()
17
+ isoWeek?: string;
18
+ }
19
+
20
+ /** Body de publicIssueTransferNote; la idempotencia va en el header `Idempotency-Key`. */
21
+ export class IssueTransferNoteRequest {
22
+ @RequiredId()
23
+ pairKey!: string;
24
+
25
+ @Expose()
26
+ @Validate(IsTransferNoteSelectionConstraint)
27
+ itemIds?: string[];
28
+
29
+ @OptionalIsoWeek()
30
+ isoWeek?: string;
31
+
32
+ @LongReason()
33
+ reason!: string;
34
+ }
35
+
36
+ /** Body de publicCaptureTransferNoteSpei; solo el pagador. */
37
+ export class CaptureTransferNoteSpeiRequest {
38
+ @RequiredId()
39
+ trackingKey!: string;
40
+
41
+ @Expose()
42
+ @IsISO8601()
43
+ paidAt!: string;
44
+
45
+ @Expose()
46
+ @Type(() => Number)
47
+ @IsInt()
48
+ @IsPositive()
49
+ amountCents!: number;
50
+ }
51
+
52
+ /** Body de publicRevertTransferNoteSpei. */
53
+ export class RevertTransferNoteSpeiRequest {
54
+ @RequiredReason()
55
+ reason!: string;
56
+ }
57
+
58
+ /** Body de publicCancelTransferNote. */
59
+ export class CancelTransferNoteRequest {
60
+ @RequiredReason()
61
+ reason!: string;
62
+ }
63
+
64
+ /** Body de publicResolveTransferNoteDispute. */
65
+ export class ResolveTransferNoteDisputeRequest {
66
+ @Expose()
67
+ @IsEnum(TransferNoteDisputeDecisionEnum)
68
+ decision!: TransferNoteDisputeDecisionEnum;
69
+
70
+ @RequiredReason()
71
+ reason!: string;
72
+ }
@@ -0,0 +1,115 @@
1
+ import { Expose, Type } from 'class-transformer';
2
+ import { IsDefined, IsEmail, IsEnum, IsInt, IsISO8601, IsOptional, Matches, Min, ValidateIf, ValidateNested } from 'class-validator';
3
+ import { CurrencyId } from '../../../currency/enums/CurrencyId';
4
+ import { TRANSFER_NOTE_CLABE_PATTERN } from '../../constants/transferNoteValidation';
5
+ import { TransferNoteConceptSignEnum } from '../../enums/TransferNoteConceptSignEnum';
6
+ import { TransferNoteConfigRecordTypeEnum as RecordType } from '../../enums/TransferNoteConfigRecordTypeEnum';
7
+ import { TransferNotePartyTypeEnum } from '../../enums/TransferNotePartyTypeEnum';
8
+ import { RequiredId } from './transferNoteRequestDecorators';
9
+
10
+ export class TransferNoteTenantSettingsInput {
11
+ @Expose()
12
+ @IsISO8601()
13
+ activeFrom!: string;
14
+
15
+ @Expose()
16
+ @IsEnum(CurrencyId)
17
+ currency!: CurrencyId;
18
+ }
19
+
20
+ /** El `partyId` sale del `recordKey` de la ruta. */
21
+ export class TransferNotePartySettingsInput {
22
+ @Expose()
23
+ @IsEnum(TransferNotePartyTypeEnum)
24
+ partyType!: TransferNotePartyTypeEnum;
25
+
26
+ @RequiredId()
27
+ displayName!: string;
28
+
29
+ @ValidateIf((o: TransferNotePartySettingsInput) => o.partyType === TransferNotePartyTypeEnum.RETAILER || o.retailerId !== undefined)
30
+ @RequiredId()
31
+ retailerId?: string;
32
+
33
+ @Expose()
34
+ @IsOptional()
35
+ @Matches(TRANSFER_NOTE_CLABE_PATTERN)
36
+ clabe?: string;
37
+
38
+ @Expose()
39
+ @IsOptional()
40
+ @IsEmail()
41
+ contactEmail?: string;
42
+ }
43
+
44
+ /** El `concept` sale del `recordKey` de la ruta. */
45
+ export class TransferNoteConceptSettingsInput {
46
+ @Expose()
47
+ @IsEnum(TransferNotePartyTypeEnum)
48
+ payerPartyType!: TransferNotePartyTypeEnum;
49
+
50
+ @Expose()
51
+ @IsEnum(TransferNotePartyTypeEnum)
52
+ payeePartyType!: TransferNotePartyTypeEnum;
53
+
54
+ @Expose()
55
+ @IsEnum(TransferNoteConceptSignEnum)
56
+ sign!: TransferNoteConceptSignEnum;
57
+
58
+ @Expose()
59
+ @IsISO8601()
60
+ activeFrom!: string;
61
+
62
+ @Expose()
63
+ @IsOptional()
64
+ @IsInt()
65
+ @Min(0)
66
+ rateCents?: number;
67
+ }
68
+
69
+ /** El `pairKey` sale del `recordKey` de la ruta. */
70
+ export class TransferNotePairSettingsInput {
71
+ @RequiredId()
72
+ payerPartyId!: string;
73
+
74
+ @RequiredId()
75
+ payeePartyId!: string;
76
+
77
+ @Expose()
78
+ @IsISO8601()
79
+ activeFrom!: string;
80
+ }
81
+
82
+ /** Body de publicUpdateTransferNoteConfig; da de alta el registro si no existe. */
83
+ export class UpdateTransferNoteConfigRequest {
84
+ @Expose()
85
+ @IsEnum(RecordType)
86
+ recordType!: RecordType;
87
+
88
+ @Expose()
89
+ @ValidateIf((o: UpdateTransferNoteConfigRequest) => o.recordType === RecordType.TENANT)
90
+ @IsDefined()
91
+ @ValidateNested()
92
+ @Type(() => TransferNoteTenantSettingsInput)
93
+ tenant?: TransferNoteTenantSettingsInput;
94
+
95
+ @Expose()
96
+ @ValidateIf((o: UpdateTransferNoteConfigRequest) => o.recordType === RecordType.PARTY)
97
+ @IsDefined()
98
+ @ValidateNested()
99
+ @Type(() => TransferNotePartySettingsInput)
100
+ party?: TransferNotePartySettingsInput;
101
+
102
+ @Expose()
103
+ @ValidateIf((o: UpdateTransferNoteConfigRequest) => o.recordType === RecordType.CONCEPT)
104
+ @IsDefined()
105
+ @ValidateNested()
106
+ @Type(() => TransferNoteConceptSettingsInput)
107
+ concept?: TransferNoteConceptSettingsInput;
108
+
109
+ @Expose()
110
+ @ValidateIf((o: UpdateTransferNoteConfigRequest) => o.recordType === RecordType.PAIR)
111
+ @IsDefined()
112
+ @ValidateNested()
113
+ @Type(() => TransferNotePairSettingsInput)
114
+ pair?: TransferNotePairSettingsInput;
115
+ }
@@ -0,0 +1,78 @@
1
+ import { Expose } from 'class-transformer';
2
+ import { IsEnum, IsISO8601, IsOptional, IsString } from 'class-validator';
3
+ import { TransferNoteConceptEnum } from '../../enums/TransferNoteConceptEnum';
4
+ import { TransferNoteIssueOriginEnum } from '../../enums/TransferNoteIssueOriginEnum';
5
+ import { TransferNoteItemStatusEnum } from '../../enums/TransferNoteItemStatusEnum';
6
+ import { TransferNoteStatusEnum } from '../../enums/TransferNoteStatusEnum';
7
+ import { OptionalIsoWeek, PageLimit, PageToken } from './transferNoteRequestDecorators';
8
+
9
+ /** Query de publicListTransferNotes. */
10
+ export class ListTransferNotesQuery {
11
+ @Expose()
12
+ @IsOptional()
13
+ @IsEnum(TransferNoteStatusEnum)
14
+ status?: TransferNoteStatusEnum;
15
+
16
+ @Expose()
17
+ @IsOptional()
18
+ @IsString()
19
+ pairKey?: string;
20
+
21
+ @OptionalIsoWeek()
22
+ isoWeek?: string;
23
+
24
+ @Expose()
25
+ @IsOptional()
26
+ @IsEnum(TransferNoteIssueOriginEnum)
27
+ issueOrigin?: TransferNoteIssueOriginEnum;
28
+
29
+ @PageLimit()
30
+ limit?: number;
31
+
32
+ @PageToken()
33
+ nextToken?: string;
34
+ }
35
+
36
+ /** Query de publicListTransferNotePool: items por par, estado, concepto y fecha. */
37
+ export class ListTransferNotePoolQuery {
38
+ @Expose()
39
+ @IsOptional()
40
+ @IsString()
41
+ pairKey?: string;
42
+
43
+ @Expose()
44
+ @IsOptional()
45
+ @IsEnum(TransferNoteItemStatusEnum)
46
+ status?: TransferNoteItemStatusEnum;
47
+
48
+ @Expose()
49
+ @IsOptional()
50
+ @IsEnum(TransferNoteConceptEnum)
51
+ concept?: TransferNoteConceptEnum;
52
+
53
+ /** Rango de `occurredAt`, fechas ISO 8601. */
54
+ @Expose()
55
+ @IsOptional()
56
+ @IsISO8601()
57
+ from?: string;
58
+
59
+ @Expose()
60
+ @IsOptional()
61
+ @IsISO8601()
62
+ to?: string;
63
+
64
+ @PageLimit()
65
+ limit?: number;
66
+
67
+ @PageToken()
68
+ nextToken?: string;
69
+ }
70
+
71
+ /** Query de publicListTransferNoteItems. */
72
+ export class ListTransferNoteItemsQuery {
73
+ @PageLimit()
74
+ limit?: number;
75
+
76
+ @PageToken()
77
+ nextToken?: string;
78
+ }
@@ -0,0 +1,72 @@
1
+ import { Expose, Transform, Type } from 'class-transformer';
2
+ import { IsEmail, IsInt, IsNotEmpty, IsOptional, IsString, Matches, Max, Min, MinLength } from 'class-validator';
3
+ import { TRANSFER_NOTE_ISO_WEEK_PATTERN, TRANSFER_NOTE_MAX_PAGE_SIZE, TRANSFER_NOTE_MIN_REASON_LENGTH } from '../../constants/transferNoteValidation';
4
+
5
+ const trim = Transform(({ value }) => (typeof value === 'string' ? value.trim() : value));
6
+
7
+ /** Razón obligatoria de 20+ caracteres sin contar espacios de relleno. */
8
+ export function LongReason(): PropertyDecorator {
9
+ return (target, key) => {
10
+ Expose()(target, key);
11
+ trim(target, key);
12
+ IsString()(target, key);
13
+ MinLength(TRANSFER_NOTE_MIN_REASON_LENGTH)(target, key);
14
+ };
15
+ }
16
+
17
+ /** Razón obligatoria no vacía sin contar espacios. */
18
+ export function RequiredReason(): PropertyDecorator {
19
+ return (target, key) => {
20
+ Expose()(target, key);
21
+ trim(target, key);
22
+ IsString()(target, key);
23
+ IsNotEmpty()(target, key);
24
+ };
25
+ }
26
+
27
+ /** String obligatorio no vacío. */
28
+ export function RequiredId(): PropertyDecorator {
29
+ return (target, key) => {
30
+ Expose()(target, key);
31
+ IsString()(target, key);
32
+ IsNotEmpty()(target, key);
33
+ };
34
+ }
35
+
36
+ /** Email obligatorio. */
37
+ export function RequiredEmail(): PropertyDecorator {
38
+ return (target, key) => {
39
+ Expose()(target, key);
40
+ IsEmail()(target, key);
41
+ };
42
+ }
43
+
44
+ /** Semana ISO opcional `YYYY-Www`. */
45
+ export function OptionalIsoWeek(): PropertyDecorator {
46
+ return (target, key) => {
47
+ Expose()(target, key);
48
+ IsOptional()(target, key);
49
+ Matches(TRANSFER_NOTE_ISO_WEEK_PATTERN)(target, key);
50
+ };
51
+ }
52
+
53
+ /** Tamaño de página opcional, 1 a 100, llega como string en el query. */
54
+ export function PageLimit(): PropertyDecorator {
55
+ return (target, key) => {
56
+ Expose()(target, key);
57
+ IsOptional()(target, key);
58
+ Type(() => Number)(target, key);
59
+ IsInt()(target, key);
60
+ Min(1)(target, key);
61
+ Max(TRANSFER_NOTE_MAX_PAGE_SIZE)(target, key);
62
+ };
63
+ }
64
+
65
+ /** Cursor opcional de paginación. */
66
+ export function PageToken(): PropertyDecorator {
67
+ return (target, key) => {
68
+ Expose()(target, key);
69
+ IsOptional()(target, key);
70
+ IsString()(target, key);
71
+ };
72
+ }
@@ -0,0 +1,36 @@
1
+ import { TransferNote } from '../TransferNote';
2
+ import { TransferNoteItem } from '../TransferNoteItem';
3
+ import { TransferNoteSignedUrl } from '../TransferNoteSignedUrl';
4
+ import {
5
+ GetTransferNoteHistoryResponse,
6
+ ListTransferNoteItemsResponse,
7
+ ListTransferNotePoolResponse,
8
+ ListTransferNotesResponse,
9
+ PreviewTransferNoteResponse,
10
+ ResolveTransferNoteDisputeResponse,
11
+ } from './TransferNoteResponses';
12
+
13
+ export type PrivateListTransferNotesResponse = ListTransferNotesResponse;
14
+ export type PrivateListTransferNotePoolResponse = ListTransferNotePoolResponse;
15
+ export type PrivateListTransferNoteItemsResponse = ListTransferNoteItemsResponse;
16
+ export type PrivateGetTransferNoteHistoryResponse = GetTransferNoteHistoryResponse;
17
+ export type PrivatePreviewTransferNoteResponse = PreviewTransferNoteResponse;
18
+ export type PrivateResolveTransferNoteDisputeResponse = ResolveTransferNoteDisputeResponse;
19
+ export type PrivateGetTransferNoteResponse = TransferNote;
20
+ export type PrivateIssueTransferNoteResponse = TransferNote;
21
+ export type PrivateCaptureTransferNoteSpeiResponse = TransferNote;
22
+ export type PrivateRevertTransferNoteSpeiResponse = TransferNote;
23
+ export type PrivateConfirmTransferNoteReceptionResponse = TransferNote;
24
+ export type PrivateCancelTransferNoteResponse = TransferNote;
25
+ export type PrivateConfirmTransferNoteSettlementResponse = TransferNote;
26
+ export type PrivateCreateSpeiReceiptUploadUrlResponse = TransferNoteSignedUrl;
27
+ export type PrivateGetTransferNotePdfResponse = TransferNoteSignedUrl;
28
+
29
+ /** Respuesta 202 del corte manual. */
30
+ export interface PrivateRunTransferNoteCutoffResponse {
31
+ runId: string;
32
+ }
33
+
34
+ /** El item de ajuste; un `adjustmentKey` repetido devuelve el primero. */
35
+ export type PrivateCreateTransferNoteAdjustmentResponse = TransferNoteItem;
36
+ export type PrivateGetTransferNoteItemBySourceResponse = TransferNoteItem;
@@ -0,0 +1,19 @@
1
+ import { TransferNote } from '../TransferNote';
2
+ import { TransferNoteSignedUrl } from '../TransferNoteSignedUrl';
3
+ import {
4
+ GetTransferNoteHistoryResponse,
5
+ ListTransferNoteItemsResponse,
6
+ ListTransferNotePoolResponse,
7
+ ListTransferNotesResponse,
8
+ } from './TransferNoteResponses';
9
+
10
+ export type ListRetailerTransferNotesResponse = ListTransferNotesResponse;
11
+ export type ListRetailerTransferNotePoolResponse = ListTransferNotePoolResponse;
12
+ export type ListRetailerTransferNoteItemsResponse = ListTransferNoteItemsResponse;
13
+ export type GetRetailerTransferNoteHistoryResponse = GetTransferNoteHistoryResponse;
14
+ export type GetRetailerTransferNoteResponse = TransferNote;
15
+ export type DisputeTransferNoteResponse = TransferNote;
16
+ export type CaptureRetailerTransferNoteSpeiResponse = TransferNote;
17
+ export type ConfirmRetailerTransferNoteReceptionResponse = TransferNote;
18
+ export type CreateRetailerSpeiReceiptUploadUrlResponse = TransferNoteSignedUrl;
19
+ export type GetRetailerTransferNotePdfResponse = TransferNoteSignedUrl;
@@ -0,0 +1,8 @@
1
+ import { TransferNoteConfigRecord } from '../TransferNoteConfigRecords';
2
+
3
+ /** Toda la configuración del tenant, un registro por TENANT, PARTY#, CONCEPT# y PAIR#. */
4
+ export interface GetTransferNoteConfigResponse {
5
+ records: TransferNoteConfigRecord[];
6
+ }
7
+
8
+ export type UpdateTransferNoteConfigResponse = TransferNoteConfigRecord;