11import { ValueOf } from './helpers' ;
2- import { PixCompositeFn , PixDynamicFn , PixStaticFn } from './pixFunctions' ;
2+ import { PixDynamicFn , PixRecurrenceFn , PixStaticFn } from './pixFunctions' ;
33
44export interface PixEmvMandatoryElements {
55 readonly merchantCategoryCode : string ; // EL52
@@ -15,20 +15,20 @@ export interface PixEmvBasicElements extends PixEmvMandatoryElements {
1515
1616export enum PixElementType {
1717 DYNAMIC = 'DYNAMIC' ,
18- COMPOSITE = 'COMPOSITE' ,
1918 STATIC = 'STATIC' ,
19+ RECURRENCE = 'RECURRENCE' ,
2020 INVALID = 'INVALID' ,
2121}
2222
2323export interface DynamicPixEmvElements extends PixEmvBasicElements {
2424 readonly type : PixElementType . DYNAMIC ;
2525 readonly url : string ;
26- readonly urlRec : undefined ;
26+ readonly urlRec ?: string ;
2727}
2828
29- export interface CompositePixEmvElements extends PixEmvBasicElements {
30- readonly type : PixElementType . COMPOSITE ;
31- readonly url ?: string ;
29+ export interface RecurrencePixEmvElements extends PixEmvBasicElements {
30+ readonly type : PixElementType . RECURRENCE ;
31+ readonly url : undefined ;
3232 readonly urlRec : string ;
3333}
3434
@@ -51,18 +51,18 @@ export type PixElement = {
5151 [ PixElementType . DYNAMIC ] : DynamicPixEmvElements ;
5252 [ PixElementType . STATIC ] : StaticPixEmvElements ;
5353 [ PixElementType . INVALID ] : InvalidPixEmvElements ;
54- [ PixElementType . COMPOSITE ] : CompositePixEmvElements ;
54+ [ PixElementType . RECURRENCE ] : RecurrencePixEmvElements ;
5555} ;
5656export type PixElements =
5757 | StaticPixEmvElements
5858 | DynamicPixEmvElements
59- | CompositePixEmvElements ;
59+ | RecurrencePixEmvElements ;
6060
6161export type PixObject = {
6262 [ PixElementType . DYNAMIC ] : DynamicPixEmvElements ;
6363 [ PixElementType . STATIC ] : StaticPixEmvElements ;
6464 [ PixElementType . INVALID ] : InvalidPixEmvElements ;
65- [ PixElementType . COMPOSITE ] : CompositePixEmvElements ;
65+ [ PixElementType . RECURRENCE ] : RecurrencePixEmvElements ;
6666} ;
6767
6868export type PixObjects = ValueOf < PixObject > ;
@@ -71,4 +71,4 @@ export type PixStaticObject = StaticPixEmvElements & PixStaticFn;
7171
7272export type PixDynamicObject = DynamicPixEmvElements & PixDynamicFn ;
7373
74- export type PixCompositeObject = CompositePixEmvElements & PixCompositeFn ;
74+ export type PixRecurrenceObject = RecurrencePixEmvElements & PixRecurrenceFn ;
0 commit comments