@pay-com/js 1.1.14 → 1.1.16

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.
@@ -146,11 +146,6 @@ export interface UniversalToggles {
146
146
  * A title to display above the Universal form.
147
147
  */
148
148
  title?: string
149
-
150
- /**
151
- * If false, the form will render without the save for future usage checkbox.
152
- */
153
- disableSetupFutureUsageCheckbox?: boolean
154
149
  }
155
150
 
156
151
  export type LanguageLocalizationOverride = {
@@ -309,6 +304,8 @@ export interface CheckoutOpts {
309
304
  displayFailureMessages: boolean
310
305
  displayEndOfSessionFailureMessages?: boolean
311
306
  disableAdditionalFields?: boolean
307
+ whiteLabel?: boolean
308
+ disableSetupFutureUsageCheckbox?: boolean
312
309
  }
313
310
  locale?: Locale
314
311
  }
@@ -356,6 +353,7 @@ export enum ELEMENT_TYPES {
356
353
  CHECKOUT = 'checkout',
357
354
  UNIVERSAL = 'universal',
358
355
  PAYPAL = 'paypal'
356
+ // UNIVERSAL_V2 = 'universal-v2'
359
357
  }
360
358
 
361
359
  enum TransactionStatusEnum {
@@ -436,7 +434,7 @@ export type UpdateTransactionDetailsOpts = {
436
434
  state?: string
437
435
  countryAlpha2: string
438
436
  }
439
- customFieldsValues: Record<string, string | number | boolean>
437
+ customFieldsValues?: Record<string, string | number | boolean>
440
438
  }
441
439
 
442
440
  export type PayOpts = {
@@ -465,6 +463,7 @@ export type CheckoutObject = {
465
463
  validate: ValidateFn
466
464
  reset: ResetFn
467
465
  pay: PayFn
466
+ // universalV2: UniversalFn
468
467
  }
469
468
 
470
469
  export type CheckoutFunction = (opts: CheckoutOpts) => CheckoutObject
package/lib/index.d.ts CHANGED
@@ -151,11 +151,6 @@ interface UniversalToggles {
151
151
  * A title to display above the Universal form.
152
152
  */
153
153
  title?: string
154
-
155
- /**
156
- * If false, the form will render without the save for future usage checkbox.
157
- */
158
- disableSetupFutureUsageCheckbox?: boolean
159
154
  }
160
155
 
161
156
  type LanguageLocalizationOverride = {
@@ -314,6 +309,8 @@ interface CheckoutOpts {
314
309
  displayFailureMessages: boolean
315
310
  displayEndOfSessionFailureMessages?: boolean
316
311
  disableAdditionalFields?: boolean
312
+ whiteLabel?: boolean
313
+ disableSetupFutureUsageCheckbox?: boolean
317
314
  }
318
315
  locale?: Locale
319
316
  }
@@ -355,6 +352,7 @@ enum ELEMENT_TYPES {
355
352
  CHECKOUT = 'checkout',
356
353
  UNIVERSAL = 'universal',
357
354
  PAYPAL = 'paypal'
355
+ // UNIVERSAL_V2 = 'universal-v2'
358
356
  }
359
357
 
360
358
  enum TransactionStatusEnum {
@@ -435,7 +433,7 @@ type UpdateTransactionDetailsOpts = {
435
433
  state?: string
436
434
  countryAlpha2: string
437
435
  }
438
- customFieldsValues: Record<string, string | number | boolean>
436
+ customFieldsValues?: Record<string, string | number | boolean>
439
437
  }
440
438
 
441
439
  type PayOpts = {
@@ -464,6 +462,7 @@ type CheckoutObject = {
464
462
  validate: ValidateFn
465
463
  reset: ResetFn
466
464
  pay: PayFn
465
+ // universalV2: UniversalFn
467
466
  }
468
467
 
469
468
  type CheckoutFunction = (opts: CheckoutOpts) => CheckoutObject
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pay-com/js",
3
- "version": "1.1.14",
3
+ "version": "1.1.16",
4
4
  "description": "Pay.com JS loading utility",
5
5
  "keywords": [
6
6
  "Pay.com",