@payrails/web-sdk 1.1.9 → 1.1.10
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/package.json +1 -1
- package/payrails.d.ts +39 -39
package/package.json
CHANGED
package/payrails.d.ts
CHANGED
|
@@ -139,7 +139,7 @@ declare enum PAYMENT_INSTRUMENT_STATUS {
|
|
|
139
139
|
}
|
|
140
140
|
declare class WorkflowExecution {
|
|
141
141
|
private executionResponse;
|
|
142
|
-
constructor(executionResponse:
|
|
142
|
+
constructor(executionResponse: WorkflowExecutionResponse);
|
|
143
143
|
get lookup(): {
|
|
144
144
|
httpCode: number;
|
|
145
145
|
body: {
|
|
@@ -177,7 +177,7 @@ declare class WorkflowExecution {
|
|
|
177
177
|
type: string;
|
|
178
178
|
}[];
|
|
179
179
|
get url(): string;
|
|
180
|
-
get response():
|
|
180
|
+
get response(): WorkflowExecutionResponse;
|
|
181
181
|
get meta(): {
|
|
182
182
|
customer?: {
|
|
183
183
|
country?: {
|
|
@@ -188,7 +188,7 @@ declare class WorkflowExecution {
|
|
|
188
188
|
get availablePaymentMethods(): (GooglePayCompositionOption | CardCompositionOption)[];
|
|
189
189
|
get authorizeLink(): string | undefined;
|
|
190
190
|
}
|
|
191
|
-
interface
|
|
191
|
+
interface WorkflowExecutionResponse {
|
|
192
192
|
id: string;
|
|
193
193
|
merchantReference: string;
|
|
194
194
|
holderReference: string;
|
|
@@ -276,40 +276,6 @@ declare class CardList extends PayrailsElement {
|
|
|
276
276
|
reset(): void;
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
-
interface CardPaymentButtonOptions {
|
|
280
|
-
events?: PaymentEvents;
|
|
281
|
-
translations?: {
|
|
282
|
-
label: string;
|
|
283
|
-
};
|
|
284
|
-
styles?: {
|
|
285
|
-
base?: Partial<CSSStyleDeclaration>;
|
|
286
|
-
disabled?: Partial<CSSStyleDeclaration>;
|
|
287
|
-
loading?: Partial<CSSStyleDeclaration>;
|
|
288
|
-
hover?: Partial<CSSStyleDeclaration>;
|
|
289
|
-
};
|
|
290
|
-
}
|
|
291
|
-
declare class CardPaymentButton extends PayrailsElement {
|
|
292
|
-
private readonly sdkConfig;
|
|
293
|
-
private readonly execution;
|
|
294
|
-
private readonly options;
|
|
295
|
-
selectedCard: SavedCreditCard | null;
|
|
296
|
-
private paymentExecutor;
|
|
297
|
-
private storeInstrument;
|
|
298
|
-
private cardForm;
|
|
299
|
-
constructor(sdkConfig: SdkConfiguration, execution: WorkflowExecution, options: CardPaymentButtonOptions);
|
|
300
|
-
setDisabled(isDisabled: boolean): void;
|
|
301
|
-
private setStyles;
|
|
302
|
-
private removeStyles;
|
|
303
|
-
setLabel(label: string): void;
|
|
304
|
-
setCardForm(cardForm: CardForm): void;
|
|
305
|
-
triggerLoading(isLoading: boolean): void;
|
|
306
|
-
private onAuthorizationFailed;
|
|
307
|
-
private onPay;
|
|
308
|
-
private handleAuthorizationResult;
|
|
309
|
-
private handle3ds;
|
|
310
|
-
private tokenizeCard;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
279
|
interface GooglePayButtonOptions {
|
|
314
280
|
environment?: 'TEST' | 'PRODUCTION';
|
|
315
281
|
events?: PaymentEvents & {
|
|
@@ -476,11 +442,45 @@ interface SdkConfiguration {
|
|
|
476
442
|
};
|
|
477
443
|
};
|
|
478
444
|
};
|
|
479
|
-
execution:
|
|
445
|
+
execution: WorkflowExecutionResponse;
|
|
480
446
|
}
|
|
481
447
|
interface PayrailsAmount {
|
|
482
448
|
value: string;
|
|
483
449
|
currency: string;
|
|
484
450
|
}
|
|
485
451
|
|
|
486
|
-
|
|
452
|
+
interface CardPaymentButtonOptions {
|
|
453
|
+
events?: PaymentEvents;
|
|
454
|
+
translations?: {
|
|
455
|
+
label: string;
|
|
456
|
+
};
|
|
457
|
+
styles?: {
|
|
458
|
+
base?: Partial<CSSStyleDeclaration>;
|
|
459
|
+
disabled?: Partial<CSSStyleDeclaration>;
|
|
460
|
+
loading?: Partial<CSSStyleDeclaration>;
|
|
461
|
+
hover?: Partial<CSSStyleDeclaration>;
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
declare class CardPaymentButton extends PayrailsElement {
|
|
465
|
+
private readonly sdkConfig;
|
|
466
|
+
private readonly execution;
|
|
467
|
+
private readonly options;
|
|
468
|
+
selectedCard: SavedCreditCard | null;
|
|
469
|
+
private paymentExecutor;
|
|
470
|
+
private storeInstrument;
|
|
471
|
+
private cardForm;
|
|
472
|
+
constructor(sdkConfig: SdkConfiguration, execution: WorkflowExecution, options: CardPaymentButtonOptions);
|
|
473
|
+
setDisabled(isDisabled: boolean): void;
|
|
474
|
+
private setStyles;
|
|
475
|
+
private removeStyles;
|
|
476
|
+
setLabel(label: string): void;
|
|
477
|
+
setCardForm(cardForm: CardForm): void;
|
|
478
|
+
triggerLoading(isLoading: boolean): void;
|
|
479
|
+
private onAuthorizationFailed;
|
|
480
|
+
private onPay;
|
|
481
|
+
private handleAuthorizationResult;
|
|
482
|
+
private handle3ds;
|
|
483
|
+
private tokenizeCard;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
export { CardFormOptions, CardListOptions, CardPaymentButtonOptions, ElementType, GooglePayButtonOptions, InitOptions, PaymentEvents, Payrails, PayrailsAmount, PayrailsClientOptions, WorkflowExecutionResponse };
|