@leatcom/portal-sessions 0.0.77 → 0.0.79

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.
@@ -61,6 +61,7 @@ declare type PortalSessionProps = {
61
61
  onRedeemVoucher?: (voucher: VoucherResource) => void;
62
62
  onUseGiftcard?: (giftcardTransaction: GiftcardTransactionResource) => void;
63
63
  onCreateTransaction?: (creditReceptionId: number) => void;
64
+ onCreatePrepaidTransaction?: (prepaidTransaction: PrepaidTransaction) => void;
64
65
  primaryIdentificationMethod?: PrimaryIdentificationMethod;
65
66
  };
66
67
 
@@ -70,6 +71,7 @@ export declare enum PortalType {
70
71
  REDEEM_GIFTCARD = "REDEEM_GIFTCARD",
71
72
  TOP_UP_GIFTCARD = "TOP_UP_GIFTCARD",
72
73
  PORTAL = "PORTAL",
74
+ PREPAID = "PREPAID",
73
75
  PAY_PREPAID = "PAY_PREPAID",
74
76
  TOP_UP_PREPAID = "TOP_UP_PREPAID",
75
77
  POINTS_TRANSACTION = "POINTS_TRANSACTION",
@@ -80,6 +82,30 @@ declare type PrepaidBalance = {
80
82
  balance_in_cents: number;
81
83
  };
82
84
 
85
+ declare type PrepaidTransaction = {
86
+ amount_in_cents: number;
87
+ channel: string;
88
+ contact: {
89
+ uuid: string;
90
+ email: string;
91
+ };
92
+ contact_identifier: {
93
+ name: string;
94
+ value: string;
95
+ active: boolean;
96
+ };
97
+ created_at: string;
98
+ shop: {
99
+ uuid: string;
100
+ name: string;
101
+ };
102
+ prepaid_balance: {
103
+ balance_in_cents: number;
104
+ balance: string;
105
+ };
106
+ uuid: string;
107
+ };
108
+
83
109
  export declare enum PrimaryIdentificationMethod {
84
110
  IDENTIFIER = "identifier",
85
111
  EMAIL = "email",
@@ -107,7 +133,7 @@ export declare type RewardResource = {
107
133
  stock: number;
108
134
  } & { [attributeKey: string]: string | number | boolean };
109
135
 
110
- export declare function UuidSession({ uuid }: UuidSessionProps): JSX_2.Element;
136
+ export declare function UuidSession({ uuid, host }: UuidSessionProps): JSX_2.Element;
111
137
 
112
138
  declare type UuidSessionProps = {
113
139
  uuid: string;