@tap-payments/apple-pay-button 1.0.5-test → 1.0.6-test

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.
@@ -23,12 +23,48 @@ export interface ApplePayPaymentContact {
23
23
  country?: string;
24
24
  countryCode?: string;
25
25
  }
26
+ export interface ApplePayPaymentTokenContext {
27
+ merchantIdentifier: string;
28
+ externalIdentifier: string;
29
+ merchantName: string;
30
+ merchantDomain?: string;
31
+ amount: string;
32
+ }
26
33
  export interface ApplePayPaymentMethod {
27
34
  displayName?: string;
28
35
  network?: string;
29
36
  type?: ApplePayPaymentMethodType;
30
37
  billingContact?: ApplePayPaymentContact;
31
38
  }
39
+ export interface ApplePayAutomaticReloadPaymentRequest {
40
+ paymentDescription: string;
41
+ automaticReloadBilling: ApplePayLineItem;
42
+ billingAgreement?: string;
43
+ managementURL: string;
44
+ tokenNotificationURL?: string;
45
+ }
46
+ export interface ApplePayRecurringPaymentRequest {
47
+ paymentDescription: string;
48
+ regularBilling: ApplePayLineItem;
49
+ trialBilling?: ApplePayLineItem;
50
+ billingAgreement?: string;
51
+ managementURL: string;
52
+ tokenNotificationURL?: string;
53
+ }
54
+ export interface ApplePayDeferredPaymentRequest {
55
+ billingAgreement?: string;
56
+ deferredBilling: ApplePayLineItem;
57
+ freeCancellationDate?: Date;
58
+ freeCancellationDateTimeZone?: string;
59
+ managementURL: string;
60
+ paymentDescription: string;
61
+ tokenNotificationURL?: string;
62
+ }
63
+ export interface ApplePayError {
64
+ code: string;
65
+ contactField: string;
66
+ message: string;
67
+ }
32
68
  export interface ApplePayLineItem {
33
69
  type?: 'final' | 'pending';
34
70
  label?: string;
@@ -44,6 +80,12 @@ export interface ApplePayLineItem {
44
80
  export interface ApplePayUpdateData {
45
81
  newTotal: ApplePayLineItem;
46
82
  newLineItems?: ApplePayLineItem[];
83
+ newMultiTokenContexts?: ApplePayPaymentTokenContext[];
84
+ newAutomaticReloadPaymentRequest?: ApplePayAutomaticReloadPaymentRequest;
85
+ newRecurringPaymentRequest?: ApplePayRecurringPaymentRequest;
86
+ newDeferredPaymentRequest?: ApplePayDeferredPaymentRequest;
87
+ errors?: ApplePayError[];
88
+ newShippingMethods?: ApplePayShippingMethod[];
47
89
  }
48
90
  export interface ApplePayRequestData {
49
91
  countryCode: string;
@@ -285,7 +285,7 @@ export var useApplePay = function (_a) {
285
285
  case 1:
286
286
  response = _b.sent();
287
287
  if (response) {
288
- session_1.completePaymentMethodSelection(response);
288
+ session_1.completeShippingMethodSelection(response);
289
289
  }
290
290
  return [2];
291
291
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/apple-pay-button",
3
- "version": "1.0.5-test",
3
+ "version": "1.0.6-test",
4
4
  "description": "Apple Pay Button React Component",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.js",