@alipay/ams-checkout 0.0.1710212811-dev.0 → 0.0.1710212811-dev.3

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.
@@ -6,7 +6,7 @@
6
6
  * 2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.
7
7
  */
8
8
  import { IGetMerchantSession, ICompletePaymentAuthorized, ICompleteApplePay, ILogError, IApplePayTrace } from './interface';
9
- import { IpaymentSessionMetaData } from '../../types';
9
+ import { ApplePaySubTypeEnum, IpaymentSessionMetaData } from '../../types';
10
10
  /**
11
11
  * Apple Pay Service
12
12
  */
@@ -30,9 +30,11 @@ declare class ApplePayService {
30
30
  */
31
31
  setApplePayParams(getMerchantSession: IGetMerchantSession, completePaymentAuthorized: ICompletePaymentAuthorized, completeApplePay: ICompleteApplePay, logError: ILogError, applePayTrace: IApplePayTrace): void;
32
32
  /**
33
- * Apple Pay is enabled
33
+ * Is Apple Pay Enabled
34
+ * @param subTypeEnum
35
+ * @returns
34
36
  */
35
- isEnabled: () => boolean;
37
+ canMakePayments(subTypeEnum?: ApplePaySubTypeEnum): any;
36
38
  /**
37
39
  * has Active Card in Apple Pay
38
40
  * @param merchantIdentifier
@@ -16,6 +16,9 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
16
16
  * 2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.
17
17
  */
18
18
  /* eslint-disable @typescript-eslint/no-explicit-any */
19
+ import { APPLE_PAY_VERSION, APPLE_PAY_RECURRING_VERSION } from "./interface";
20
+ import { ApplePaySubTypeEnum } from "../../types";
21
+
19
22
  /**
20
23
  * Apple Pay Service
21
24
  */
@@ -31,12 +34,6 @@ var ApplePayService = /*#__PURE__*/function () {
31
34
  _defineProperty(this, "completeApplePay", void 0);
32
35
  _defineProperty(this, "logError", void 0);
33
36
  _defineProperty(this, "applePayTrace", void 0);
34
- /**
35
- * Apple Pay is enabled
36
- */
37
- _defineProperty(this, "isEnabled", function () {
38
- return window.ApplePaySession ? window.ApplePaySession.canMakePayments() : false;
39
- });
40
37
  _defineProperty(this, "onvalidatemerchant", function (event) {
41
38
  _this.applePayTrace('onValidateMerchant');
42
39
  _this.getMerchantSession({
@@ -88,23 +85,71 @@ var ApplePayService = /*#__PURE__*/function () {
88
85
  throw Error('ApplePaySession is null in window');
89
86
  }
90
87
  var paymentSessionFactor = param.paymentSessionFactor;
91
- var applePay = paymentSessionFactor.applePay,
88
+ var extendInfo = paymentSessionFactor.extendInfo,
92
89
  merchantInfo = paymentSessionFactor.merchantInfo,
93
90
  paymentAmount = paymentSessionFactor.paymentAmount,
94
- order = paymentSessionFactor.order;
91
+ order = paymentSessionFactor.order,
92
+ recurringInfo = paymentSessionFactor.recurringInfo;
95
93
  _this.merchantIdentifier = merchantInfo === null || merchantInfo === void 0 ? void 0 : merchantInfo.partnerId;
96
- var request = {
97
- merchantCapabilities: applePay === null || applePay === void 0 ? void 0 : applePay.merchantCapabilities,
98
- supportedNetworks: applePay === null || applePay === void 0 ? void 0 : applePay.supportedNetworks,
99
- countryCode: merchantInfo === null || merchantInfo === void 0 ? void 0 : merchantInfo.registeredCountry,
100
- currencyCode: paymentAmount === null || paymentAmount === void 0 ? void 0 : paymentAmount.currency,
101
- total: {
102
- type: 'final',
103
- label: order === null || order === void 0 ? void 0 : order.orderDescription,
104
- amount: paymentAmount === null || paymentAmount === void 0 ? void 0 : paymentAmount.value
94
+ if (!(extendInfo !== null && extendInfo !== void 0 && extendInfo.merchantCapabilities) || !(extendInfo !== null && extendInfo !== void 0 && extendInfo.supportedNetworks) || !(merchantInfo !== null && merchantInfo !== void 0 && merchantInfo.registeredCountry) || !(paymentAmount !== null && paymentAmount !== void 0 && paymentAmount.currency) || !(paymentAmount !== null && paymentAmount !== void 0 && paymentAmount.value)) {
95
+ _this.logError("invalid session data");
96
+ return;
97
+ }
98
+ // todo 补充参数校验
99
+ if (recurringInfo) {
100
+ var _recurringInfo$interv;
101
+ if (!(order !== null && order !== void 0 && order.orderDescription) || recurringInfo !== null && recurringInfo !== void 0 && recurringInfo.managementURL) {
102
+ _this.logError("invalid session data");
103
+ return;
105
104
  }
106
- };
107
- _this.session = new ApplePaySession(2, request);
105
+ // && order
106
+ var lineItem = {
107
+ type: 'final',
108
+ label: recurringInfo.title,
109
+ amount: paymentAmount === null || paymentAmount === void 0 ? void 0 : paymentAmount.value,
110
+ paymentTiming: "recurring",
111
+ recurringPaymentStartDate: recurringInfo !== null && recurringInfo !== void 0 && recurringInfo.startDate ? new Date(recurringInfo.startDate) : null,
112
+ recurringPaymentEndDate: recurringInfo !== null && recurringInfo !== void 0 && recurringInfo.endDate ? new Date(recurringInfo.endDate) : null,
113
+ recurringPaymentIntervalUnit: recurringInfo !== null && recurringInfo !== void 0 && recurringInfo.intervalUnit ? recurringInfo.intervalUnit : "month",
114
+ recurringPaymentIntervalCount: (_recurringInfo$interv = recurringInfo === null || recurringInfo === void 0 ? void 0 : recurringInfo.intervalCount) !== null && _recurringInfo$interv !== void 0 ? _recurringInfo$interv : 1
115
+ };
116
+ var recurringRequest = {
117
+ // 不知道显示在哪里
118
+ paymentDescription: order === null || order === void 0 ? void 0 : order.orderDescription,
119
+ billingAgreement: recurringInfo.agreementDescription,
120
+ // todo
121
+ regularBilling: lineItem,
122
+ managementURL: recurringInfo === null || recurringInfo === void 0 ? void 0 : recurringInfo.managementURL,
123
+ tokenNotificationURL: recurringInfo === null || recurringInfo === void 0 ? void 0 : recurringInfo.tokenNotificationURL
124
+ };
125
+ var request = {
126
+ merchantCapabilities: extendInfo === null || extendInfo === void 0 ? void 0 : extendInfo.merchantCapabilities,
127
+ supportedNetworks: extendInfo === null || extendInfo === void 0 ? void 0 : extendInfo.supportedNetworks,
128
+ countryCode: merchantInfo === null || merchantInfo === void 0 ? void 0 : merchantInfo.registeredCountry,
129
+ currencyCode: paymentAmount === null || paymentAmount === void 0 ? void 0 : paymentAmount.currency,
130
+ total: {
131
+ type: 'final',
132
+ label: extendInfo === null || extendInfo === void 0 ? void 0 : extendInfo.merchantName,
133
+ amount: paymentAmount === null || paymentAmount === void 0 ? void 0 : paymentAmount.value
134
+ },
135
+ recurringPaymentRequest: recurringRequest,
136
+ lineItems: [lineItem]
137
+ };
138
+ _this.session = new ApplePaySession(APPLE_PAY_RECURRING_VERSION, request);
139
+ } else {
140
+ var _request = {
141
+ merchantCapabilities: extendInfo === null || extendInfo === void 0 ? void 0 : extendInfo.merchantCapabilities,
142
+ supportedNetworks: extendInfo === null || extendInfo === void 0 ? void 0 : extendInfo.supportedNetworks,
143
+ countryCode: merchantInfo === null || merchantInfo === void 0 ? void 0 : merchantInfo.registeredCountry,
144
+ currencyCode: paymentAmount === null || paymentAmount === void 0 ? void 0 : paymentAmount.currency,
145
+ total: {
146
+ type: 'final',
147
+ label: extendInfo === null || extendInfo === void 0 ? void 0 : extendInfo.merchantName,
148
+ amount: paymentAmount === null || paymentAmount === void 0 ? void 0 : paymentAmount.value
149
+ }
150
+ };
151
+ _this.session = new ApplePaySession(APPLE_PAY_VERSION, _request);
152
+ }
108
153
  _this.session.onvalidatemerchant = _this.onvalidatemerchant;
109
154
  _this.session.onpaymentauthorized = _this.onpaymentauthorized;
110
155
  _this.session.oncancel = function () {
@@ -133,14 +178,28 @@ var ApplePayService = /*#__PURE__*/function () {
133
178
  this.logError = logError;
134
179
  this.applePayTrace = applePayTrace;
135
180
  }
181
+
182
+ /**
183
+ * Is Apple Pay Enabled
184
+ * @param subTypeEnum
185
+ * @returns
186
+ */
136
187
  }, {
137
- key: "hasActiveCard",
138
- value: (
188
+ key: "canMakePayments",
189
+ value: function canMakePayments(subTypeEnum) {
190
+ if (ApplePaySubTypeEnum.ApplePayRecurringPayment === subTypeEnum) {
191
+ return window.ApplePaySession ? window.ApplePaySession.canMakePayments() && window.ApplePaySession.supportsVersion(APPLE_PAY_RECURRING_VERSION) : false;
192
+ }
193
+ return window.ApplePaySession ? window.ApplePaySession.canMakePayments() && window.ApplePaySession.supportsVersion(APPLE_PAY_VERSION) : false;
194
+ }
195
+
139
196
  /**
140
197
  * has Active Card in Apple Pay
141
198
  * @param merchantIdentifier
142
199
  */
143
- function () {
200
+ }, {
201
+ key: "hasActiveCard",
202
+ value: (function () {
144
203
  var _hasActiveCard = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(merchantIdentifier) {
145
204
  var _window3, ApplePaySession;
146
205
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -6,6 +6,8 @@
6
6
  * 2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.
7
7
  */
8
8
  export type Version = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
9
+ export declare const APPLE_PAY_VERSION = 2;
10
+ export declare const APPLE_PAY_RECURRING_VERSION = 14;
9
11
  export interface IApplePayValidateMerchantEvent {
10
12
  validationURL: string;
11
13
  }
@@ -35,10 +37,41 @@ export interface IApplePayPaymentContact {
35
37
  countryCode: string;
36
38
  }
37
39
  export type IApplePayLineItemType = 'final' | 'pending';
40
+ export type ApplePayPaymentTiming = "immediate" | "recurring" | "deferred" | "automaticReload";
41
+ export type ApplePayRecurringPaymentDateUnit = "year" | "month" | "day" | "hour" | "minute";
42
+ /**
43
+ *
44
+ {
45
+ "label": "Subscription",
46
+ "amount": "20.00",
47
+ "type": "final",
48
+ "paymentTiming": "recurring",
49
+ "recurringPaymentStartDate": new Date("2022-01-01T00:00:00"),
50
+ "recurringPaymentIntervalUnit": "month",
51
+ "recurringPaymentIntervalCount": 6,
52
+ "recurringPaymentEndDate": new Date("2024-01-01T00:00:00"),
53
+ }
54
+ */
38
55
  export interface IApplePayLineItem {
56
+ /**
57
+ * A value that indicates whether the line item is final or pending.
58
+ */
39
59
  type: IApplePayLineItemType;
60
+ /**
61
+ * A required value that’s a short, localized description of the line item.
62
+ */
40
63
  label: string;
64
+ /**
65
+ * A required value that’s the monetary amount of the line item.
66
+ */
41
67
  amount: string;
68
+ paymentTiming?: ApplePayPaymentTiming;
69
+ recurringPaymentStartDate?: Date;
70
+ recurringPaymentEndDate?: Date;
71
+ recurringPaymentIntervalUnit?: ApplePayRecurringPaymentDateUnit;
72
+ recurringPaymentIntervalCount?: number;
73
+ deferredPaymentDate?: Date;
74
+ automaticReloadPaymentThresholdAmount?: string;
42
75
  }
43
76
  export type applePayShippingType = 'shipping' | 'delivery' | 'storePickup' | 'servicePickup';
44
77
  export interface IApplePayShippingMethod {
@@ -75,6 +108,34 @@ export interface IApplePayPaymentRequest {
75
108
  currencyCode: string;
76
109
  shippingType?: applePayShippingType;
77
110
  shippingMethods?: IApplePayShippingMethod[];
111
+ recurringPaymentRequest?: IApplePayRecurringPaymentRequest;
112
+ }
113
+ export interface IApplePayRecurringPaymentRequest {
114
+ /**
115
+ * A description of the recurring payment that Apple Pay displays to the user in the payment sheet.
116
+ */
117
+ paymentDescription: string;
118
+ /**
119
+ * A localized billing agreement that the payment sheet displays to the user before the user authorizes the payment.
120
+ */
121
+ billingAgreement?: string;
122
+ /**
123
+ * The regular billing cycle for the recurring payment, including start and end dates, an interval, and an interval count.
124
+ */
125
+ regularBilling: IApplePayLineItem;
126
+ /**
127
+ * 订阅试用的周期控制,暂时不需要
128
+ * The trial billing cycle for the recurring payment.
129
+ */
130
+ trialBilling?: IApplePayLineItem;
131
+ /**
132
+ * A URL to a web page where the user can update or delete the payment method for the recurring payment.
133
+ */
134
+ managementURL: string;
135
+ /**
136
+ * A URL you provide for receiving life-cycle notifications from the Apple Pay servers about the Apple Pay merchant token for the recurring payment.
137
+ */
138
+ tokenNotificationURL?: string;
78
139
  }
79
140
  export interface IApplePaySession {
80
141
  supportsVersion?: (version: Version) => boolean;
@@ -1 +1,73 @@
1
- export {};
1
+ /**
2
+ * Copyright (c) 2022 International Business Group, Ant Group. All rights reserved.
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, and/or distribute the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5
+ * 1. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE; and
6
+ * 2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.
7
+ */
8
+ /* eslint-disable @typescript-eslint/no-explicit-any */
9
+ // https://developer.apple.com/documentation/apple_pay_on_the_web/apple_pay_on_the_web_version_history
10
+
11
+ export var APPLE_PAY_VERSION = 2;
12
+ export var APPLE_PAY_RECURRING_VERSION = 14;
13
+
14
+ // https://developer.apple.com/documentation/apple_pay_on_the_web/applepayvalidatemerchantevent
15
+
16
+ // https://developer.apple.com/documentation/apple_pay_on_the_web/applepaymerchantcapability
17
+
18
+ // https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypaymentrequest/1916122-supportednetworks
19
+
20
+ // https://developer.apple.com/documentation/apple_pay_on_the_web/applepaycontactfield
21
+
22
+ // https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypaymentcontact
23
+
24
+ // https://developer.apple.com/documentation/apple_pay_on_the_web/applepaylineitemtype
25
+
26
+ //https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypaymenttiming
27
+
28
+ //https://developer.apple.com/documentation/apple_pay_on_the_web/applepayrecurringpaymentdateunit
29
+
30
+ // https://developer.apple.com/documentation/apple_pay_on_the_web/applepaylineitem
31
+ /**
32
+ *
33
+ {
34
+ "label": "Subscription",
35
+ "amount": "20.00",
36
+ "type": "final",
37
+ "paymentTiming": "recurring",
38
+ "recurringPaymentStartDate": new Date("2022-01-01T00:00:00"),
39
+ "recurringPaymentIntervalUnit": "month",
40
+ "recurringPaymentIntervalCount": 6,
41
+ "recurringPaymentEndDate": new Date("2024-01-01T00:00:00"),
42
+ }
43
+ */
44
+
45
+ // https://developer.apple.com/documentation/apple_pay_on_the_web/applepayshippingtype
46
+
47
+ // https://developer.apple.com/documentation/apple_pay_on_the_web/applepayshippingmethod
48
+
49
+ // https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypayment
50
+
51
+ // https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypaymentauthorizedevent
52
+
53
+ // https://developer.apple.com/documentation/apple_pay_on_the_web/apple_pay_js_api/apple_pay_status_codes
54
+
55
+ // https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypaymentauthorizationresult
56
+
57
+ // https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypaymentrequest
58
+
59
+ // https://developer.apple.com/documentation/apple_pay_on_the_web/applepayrecurringpaymentrequest
60
+
61
+ // https://developer.apple.com/documentation/apple_pay_on_the_web/applepaysession
62
+
63
+ // IGetMerchantSession spi type
64
+
65
+ // ICompletePaymentAuthorized spi type
66
+
67
+ // ICompleteApplePay spi type
68
+
69
+ // ILogError spi type
70
+
71
+ // trace msg type
72
+
73
+ // IApplePayTrace spi type
@@ -5,7 +5,7 @@
5
5
  * 1. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE; and
6
6
  * 2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.
7
7
  */
8
- import { IApplePayOptionsParams } from '../../types';
8
+ import { ApplePaySubTypeEnum, IApplePayOptionsParams } from '../../types';
9
9
  import CoreInstance from '../instance';
10
10
  /**
11
11
  * Apple pay Component
@@ -20,8 +20,10 @@ declare class ApplePayComponent extends CoreInstance {
20
20
  private logDeviceId;
21
21
  /**
22
22
  * Is Apple Pay Enabled
23
+ * @param subTypeEnum
24
+ * @returns
23
25
  */
24
- isAppPayEnabled(): boolean;
26
+ canMakePayments(subTypeEnum?: ApplePaySubTypeEnum): any;
25
27
  /**
26
28
  * Submit Pay
27
29
  * @param paymentSessionData
@@ -132,11 +132,13 @@ var ApplePayComponent = /*#__PURE__*/function (_CoreInstance) {
132
132
 
133
133
  /**
134
134
  * Is Apple Pay Enabled
135
+ * @param subTypeEnum
136
+ * @returns
135
137
  */
136
138
  }, {
137
- key: "isAppPayEnabled",
138
- value: function isAppPayEnabled() {
139
- return this._applePayService.isEnabled();
139
+ key: "canMakePayments",
140
+ value: function canMakePayments(subTypeEnum) {
141
+ return window.ApplePaySession ? this._applePayService.canMakePayments(subTypeEnum) : false;
140
142
  }
141
143
 
142
144
  /**
@@ -356,7 +358,6 @@ var ApplePayComponent = /*#__PURE__*/function (_CoreInstance) {
356
358
  biz: 'sdk'
357
359
  }).send();
358
360
  };
359
-
360
361
  // set Apple Pay params
361
362
  this._applePayService.setApplePayParams(getMerchantSession, completePaymentAuthorized, completeApplePay, logError, applePayTrace);
362
363
 
@@ -135,16 +135,17 @@ export interface IpaymentSessionMetaData {
135
135
  skipSdkQuery: boolean;
136
136
  };
137
137
  paymentSessionFactor?: {
138
- applePay?: {
138
+ extendInfo?: {
139
139
  merchantCapabilities?: string[];
140
140
  supportedNetworks?: string[];
141
+ merchantName?: string;
141
142
  };
142
143
  merchantInfo?: {
143
144
  registeredCountry?: string;
144
145
  partnerId?: string;
145
146
  };
146
147
  order?: {
147
- orderDescription?: string;
148
+ orderDescription: string;
148
149
  };
149
150
  paymentAmount?: {
150
151
  value?: string;
@@ -156,6 +157,43 @@ export interface IpaymentSessionMetaData {
156
157
  paymentMethodViewMetaData?: any;
157
158
  paymentRequestId?: string;
158
159
  supportedLanguages?: any;
160
+ /**
161
+ * 当前为苹果分期场景的信息
162
+ */
163
+ recurringInfo?: {
164
+ /**
165
+ * 代扣协议开始日期 不传为当前系统时间
166
+ */
167
+ startDate?: number;
168
+ /**
169
+ * 代扣协议结束日期 不传不限制结束时间
170
+ */
171
+ endDate?: number;
172
+ /**
173
+ * 付款时间间隔单位,支持:"year" "month" "day" "hour" "minute" 不传默认month
174
+ */
175
+ intervalUnit?: string;
176
+ /**
177
+ * 付款时间间隔。比如每过6个月付款一次,intervalCount就是6, 不传默认为1
178
+ */
179
+ intervalCount?: number;
180
+ /**
181
+ * 分期标题信息
182
+ */
183
+ title?: string;
184
+ /**
185
+ * 分期管理页面
186
+ */
187
+ managementURL?: string;
188
+ /**
189
+ * 苹果通知ipay MAPN信息变更的地址
190
+ */
191
+ tokenNotificationURL?: string;
192
+ /**
193
+ * 分期协议描述
194
+ */
195
+ agreementDescription?: string;
196
+ };
159
197
  };
160
198
  }
161
199
  export declare enum localeEnum {
@@ -433,4 +471,11 @@ export interface CallbackEventInfo {
433
471
  export interface MultipleCallbackEvents {
434
472
  [key: string]: CallbackEventInfo;
435
473
  }
474
+ export declare enum PaymentMethodTypeEnum {
475
+ ApplePay = "ApplePay"
476
+ }
477
+ export declare enum ApplePaySubTypeEnum {
478
+ ApplePayRecurringPayment = "ApplePayRecurringPayment"
479
+ }
480
+ export type SubPaymentMethodTypeEnum = ApplePaySubTypeEnum;
436
481
  export {};
@@ -164,4 +164,12 @@ export var RedirectType = /*#__PURE__*/function (RedirectType) {
164
164
  RedirectType["NormalUrl"] = "NormalUrl";
165
165
  RedirectType["Unknown"] = "Unknown";
166
166
  return RedirectType;
167
+ }({});
168
+ export var PaymentMethodTypeEnum = /*#__PURE__*/function (PaymentMethodTypeEnum) {
169
+ PaymentMethodTypeEnum["ApplePay"] = "ApplePay";
170
+ return PaymentMethodTypeEnum;
171
+ }({});
172
+ export var ApplePaySubTypeEnum = /*#__PURE__*/function (ApplePaySubTypeEnum) {
173
+ ApplePaySubTypeEnum["ApplePayRecurringPayment"] = "ApplePayRecurringPayment";
174
+ return ApplePaySubTypeEnum;
167
175
  }({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1710212811-dev.0",
3
+ "version": "0.0.1710212811-dev.3",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",