@payrails/web-sdk 5.29.1-RC.3 → 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.3",
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;
@@ -172,7 +172,6 @@ declare class WorkflowExecution {
172
172
  installments?: PaymentInstallmentsConfig;
173
173
  supportsBillingInfo?: boolean;
174
174
  schema?: JSONSchemaType;
175
- additionalConfig?: any;
176
175
  };
177
176
  paymentMethodCode: PAYMENT_METHOD_CODES;
178
177
  } | undefined;
@@ -188,7 +187,6 @@ declare class WorkflowExecution {
188
187
  installments?: PaymentInstallmentsConfig;
189
188
  supportsBillingInfo?: boolean;
190
189
  schema?: JSONSchemaType;
191
- additionalConfig?: any;
192
190
  };
193
191
  paymentMethodCode: PAYMENT_METHOD_CODES;
194
192
  };
@@ -277,7 +275,6 @@ interface StorablePaymentCompositionOption<I = CardMetadata | PayPalMetadata, C
277
275
  installments?: PaymentInstallmentsConfig;
278
276
  supportsBillingInfo?: boolean;
279
277
  schema?: JSONSchemaType;
280
- additionalConfig?: any;
281
278
  };
282
279
  paymentInstruments?: Array<StoredPaymentInstrument<I>>;
283
280
  }
@@ -285,21 +282,9 @@ interface GooglePayConfig {
285
282
  parameters: {
286
283
  allowedAuthMethods: google.payments.api.CardAuthMethod[];
287
284
  allowedCardNetworks: google.payments.api.CardNetwork[];
288
- billingAddressParameters?: {
289
- format?: string;
290
- };
291
- billingAddressRequired?: boolean;
292
285
  };
293
286
  tokenizationSpecification: google.payments.api.PaymentMethodTokenizationSpecification;
294
287
  type: google.payments.api.PaymentMethodType;
295
- apiVersion?: number;
296
- apiVersionMinor?: number;
297
- allowedPaymentMethods?: google.payments.api.PaymentMethodSpecification[];
298
- emailRequired?: boolean;
299
- shippingAddressRequired?: boolean;
300
- shippingAddressParameters?: google.payments.api.ShippingAddressParameters;
301
- merchantInfo?: google.payments.api.MerchantInfo;
302
- existingPaymentMethodRequired?: boolean;
303
288
  }
304
289
  interface PayPalConfig {
305
290
  clientId: string;
@@ -1230,7 +1215,6 @@ interface LoadingScreenStyles {
1230
1215
  [StyleKeys.loader]?: Partial<CSSStyleDeclaration>;
1231
1216
  }
1232
1217
 
1233
- type GooglePayConfigInput = google.payments.api.IsReadyToPayPaymentMethodSpecification[] | GooglePayConfig;
1234
1218
  interface GooglePayButtonOptions extends StoreInstrumentElementOptions {
1235
1219
  environment?: PayrailsEnvironment;
1236
1220
  merchantInfo?: google.payments.api.MerchantInfo;
@@ -1253,9 +1237,8 @@ declare class GooglePayButton extends PayrailsElementWithStoreInstrumentCheckbox
1253
1237
  private static googleSDKClient;
1254
1238
  private sdkLoadedCalled;
1255
1239
  private buttonElement;
1256
- private static getGooglePayConfigAsArray;
1257
1240
  private static getSDKClient;
1258
- 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>;
1259
1242
  constructor(options: GooglePayButtonOptions);
1260
1243
  private sdkLoaded;
1261
1244
  private onLoadPaymentData;