@payrails/web-sdk 5.29.1-RC.2 → 5.29.1-RC.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payrails/web-sdk",
3
- "version": "5.29.1-RC.2",
3
+ "version": "5.29.1-RC.4",
4
4
  "description": "SDK providing tokenization options on the client for merchants",
5
5
  "main": "index.js",
6
6
  "types": "payrails.d.ts",
package/payrails.d.ts CHANGED
@@ -125,7 +125,7 @@ declare class WorkflowExecution {
125
125
  static get savedGooglePayAccounts(): StoredPaymentInstrument<CardMetadata>[];
126
126
  static get savedApplePayAccounts(): StoredPaymentInstrument<CardMetadata>[];
127
127
  static get paypalConfig(): PayPalConfig;
128
- static get googlePayConfig(): any;
128
+ static get googlePayConfig(): GooglePayConfig[];
129
129
  static isPaymentMethodAvailable(paymentMethod: PAYMENT_METHOD_CODES): boolean;
130
130
  static get applePayConfig(): {
131
131
  merchantIdentifier: string;
@@ -133,6 +133,7 @@ declare class WorkflowExecution {
133
133
  countryCode: string;
134
134
  merchantCapabilities: ApplePayJS.ApplePayMerchantCapability[];
135
135
  requiredBillingContactFields?: ApplePayJS.ApplePayContactField[];
136
+ requiredShippingContactFields?: ApplePayJS.ApplePayContactField[];
136
137
  };
137
138
  static get url(): string;
138
139
  static get meta(): {
@@ -171,7 +172,6 @@ declare class WorkflowExecution {
171
172
  installments?: PaymentInstallmentsConfig;
172
173
  supportsBillingInfo?: boolean;
173
174
  schema?: JSONSchemaType;
174
- additionalConfig?: any;
175
175
  };
176
176
  paymentMethodCode: PAYMENT_METHOD_CODES;
177
177
  } | undefined;
@@ -187,7 +187,6 @@ declare class WorkflowExecution {
187
187
  installments?: PaymentInstallmentsConfig;
188
188
  supportsBillingInfo?: boolean;
189
189
  schema?: JSONSchemaType;
190
- additionalConfig?: any;
191
190
  };
192
191
  paymentMethodCode: PAYMENT_METHOD_CODES;
193
192
  };
@@ -276,7 +275,6 @@ interface StorablePaymentCompositionOption<I = CardMetadata | PayPalMetadata, C
276
275
  installments?: PaymentInstallmentsConfig;
277
276
  supportsBillingInfo?: boolean;
278
277
  schema?: JSONSchemaType;
279
- additionalConfig?: any;
280
278
  };
281
279
  paymentInstruments?: Array<StoredPaymentInstrument<I>>;
282
280
  }
@@ -284,21 +282,9 @@ interface GooglePayConfig {
284
282
  parameters: {
285
283
  allowedAuthMethods: google.payments.api.CardAuthMethod[];
286
284
  allowedCardNetworks: google.payments.api.CardNetwork[];
287
- billingAddressParameters?: {
288
- format?: string;
289
- };
290
- billingAddressRequired?: boolean;
291
285
  };
292
286
  tokenizationSpecification: google.payments.api.PaymentMethodTokenizationSpecification;
293
287
  type: google.payments.api.PaymentMethodType;
294
- apiVersion?: number;
295
- apiVersionMinor?: number;
296
- allowedPaymentMethods?: google.payments.api.PaymentMethodSpecification[];
297
- emailRequired?: boolean;
298
- shippingAddressRequired?: boolean;
299
- shippingAddressParameters?: google.payments.api.ShippingAddressParameters;
300
- merchantInfo?: google.payments.api.MerchantInfo;
301
- existingPaymentMethodRequired?: boolean;
302
288
  }
303
289
  interface PayPalConfig {
304
290
  clientId: string;
@@ -313,6 +299,7 @@ interface ApplePayConfig {
313
299
  countryCode: string;
314
300
  merchantCapabilities: ApplePayJS.ApplePayMerchantCapability[];
315
301
  requiredBillingContactFields?: ApplePayJS.ApplePayContactField[];
302
+ requiredShippingContactFields?: ApplePayJS.ApplePayContactField[];
316
303
  };
317
304
  type: string;
318
305
  }
@@ -1228,7 +1215,6 @@ interface LoadingScreenStyles {
1228
1215
  [StyleKeys.loader]?: Partial<CSSStyleDeclaration>;
1229
1216
  }
1230
1217
 
1231
- type GooglePayConfigInput = google.payments.api.IsReadyToPayPaymentMethodSpecification[] | GooglePayConfig;
1232
1218
  interface GooglePayButtonOptions extends StoreInstrumentElementOptions {
1233
1219
  environment?: PayrailsEnvironment;
1234
1220
  merchantInfo?: google.payments.api.MerchantInfo;
@@ -1251,9 +1237,8 @@ declare class GooglePayButton extends PayrailsElementWithStoreInstrumentCheckbox
1251
1237
  private static googleSDKClient;
1252
1238
  private sdkLoadedCalled;
1253
1239
  private buttonElement;
1254
- private static getGooglePayConfigAsArray;
1255
1240
  private static getSDKClient;
1256
- static isGooglePayAvailable(allowedPaymentMethods: GooglePayConfigInput, environment?: PayrailsEnvironment, merchantInfo?: google.payments.api.MerchantInfo): Promise<boolean>;
1241
+ static isGooglePayAvailable(allowedPaymentMethods: google.payments.api.IsReadyToPayPaymentMethodSpecification[], environment?: PayrailsEnvironment, merchantInfo?: google.payments.api.MerchantInfo): Promise<boolean>;
1257
1242
  constructor(options: GooglePayButtonOptions);
1258
1243
  private sdkLoaded;
1259
1244
  private onLoadPaymentData;