@bizzsv/bizz-payment 1.4.0 → 1.4.2-dev

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.
package/dist/index.d.ts CHANGED
@@ -19,6 +19,7 @@ export declare class BizzPaymentForm {
19
19
  private currentAmount;
20
20
  private currentValues;
21
21
  private pointsPaymentContext;
22
+ private nakaPollingInterval;
22
23
  constructor(config: PaymentFormConfig);
23
24
  /**
24
25
  * Subscribe to host-side events.
@@ -42,6 +43,9 @@ export declare class BizzPaymentForm {
42
43
  private sendReadyEmitter;
43
44
  private sendSizingEmitter;
44
45
  private sendSuccess;
46
+ private handleCryptoPayment;
47
+ private startNakaPolling;
48
+ private stopNakaPolling;
45
49
  destroy(): void;
46
50
  }
47
51
 
@@ -55,6 +59,8 @@ declare interface FormCustomHeader {
55
59
  date?: boolean;
56
60
  }
57
61
 
62
+ declare type NakaTransactionStatus = 'IN_PROGRESS' | 'SUCCESS' | 'EXPIRED' | 'UNDERPAID' | 'OVERPAID' | 'CANCELED';
63
+
58
64
  export declare interface PaymentFormConfig {
59
65
  iframeTarget: string;
60
66
  i18n?: PaymentFormI18n;
@@ -143,11 +149,23 @@ export declare type PaymentFormMessage = {
143
149
  default: string;
144
150
  points: string;
145
151
  installments: string;
152
+ crypto?: string;
146
153
  };
154
+ } | {
155
+ type: 'payment-form:naka-checkout';
156
+ redirectUrl: string;
157
+ chargeId: string;
158
+ } | {
159
+ type: 'payment-form:naka-status';
160
+ status: NakaTransactionStatus;
161
+ } | {
162
+ type: 'payment-form:load-crypto-countries';
147
163
  } | {
148
164
  type: 'payment-form:sizing';
149
165
  width: number;
150
166
  height: number;
167
+ } | {
168
+ type: 'payment-form:return-initial';
151
169
  };
152
170
 
153
171
  declare interface PaymentFormSizingPayloadEmitter {