@primer-io/react-native 2.37.0 → 2.38.0

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.
Files changed (118) hide show
  1. package/android/build.gradle +1 -1
  2. package/ios/Sources/version.swift +1 -1
  3. package/lib/typescript/HeadlessUniversalCheckout/Components/NativeResourceView.d.ts +11 -0
  4. package/lib/typescript/HeadlessUniversalCheckout/Components/NativeResourceView.d.ts.map +1 -0
  5. package/lib/typescript/HeadlessUniversalCheckout/Components/PrimerGooglePayButton.d.ts +6 -0
  6. package/lib/typescript/HeadlessUniversalCheckout/Components/PrimerGooglePayButton.d.ts.map +1 -0
  7. package/lib/typescript/HeadlessUniversalCheckout/Components/PrimerKlarnaPaymentView.d.ts +2 -0
  8. package/lib/typescript/HeadlessUniversalCheckout/Components/PrimerKlarnaPaymentView.d.ts.map +1 -0
  9. package/lib/typescript/HeadlessUniversalCheckout/Managers/AssetsManager.d.ts +18 -0
  10. package/lib/typescript/HeadlessUniversalCheckout/Managers/AssetsManager.d.ts.map +1 -0
  11. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/AchManager.d.ts +53 -0
  12. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/AchManager.d.ts.map +1 -0
  13. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/AchMandateManager.d.ts +12 -0
  14. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/AchMandateManager.d.ts.map +1 -0
  15. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/ComponentWithRedirectManager.d.ts +69 -0
  16. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/ComponentWithRedirectManager.d.ts.map +1 -0
  17. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/KlarnaManager.d.ts +63 -0
  18. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/KlarnaManager.d.ts.map +1 -0
  19. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/NativeUIManager.d.ts +8 -0
  20. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/NativeUIManager.d.ts.map +1 -0
  21. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.d.ts +30 -0
  22. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/RawDataManager.d.ts.map +1 -0
  23. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/Utils/EventType.d.ts +3 -0
  24. package/lib/typescript/HeadlessUniversalCheckout/Managers/PaymentMethodManagers/Utils/EventType.d.ts.map +1 -0
  25. package/lib/typescript/HeadlessUniversalCheckout/Managers/VaultManager.d.ts +13 -0
  26. package/lib/typescript/HeadlessUniversalCheckout/Managers/VaultManager.d.ts.map +1 -0
  27. package/lib/typescript/HeadlessUniversalCheckout/PrimerHeadlessUniversalCheckout.d.ts +11 -0
  28. package/lib/typescript/HeadlessUniversalCheckout/PrimerHeadlessUniversalCheckout.d.ts.map +1 -0
  29. package/lib/typescript/HeadlessUniversalCheckout/RNPrimerHeadlessUniversalCheckout.d.ts +20 -0
  30. package/lib/typescript/HeadlessUniversalCheckout/RNPrimerHeadlessUniversalCheckout.d.ts.map +1 -0
  31. package/lib/typescript/HeadlessUniversalCheckout/types.d.ts +1 -0
  32. package/lib/typescript/HeadlessUniversalCheckout/types.d.ts.map +1 -0
  33. package/lib/typescript/Primer.d.ts +3 -0
  34. package/lib/typescript/Primer.d.ts.map +1 -0
  35. package/lib/typescript/RNPrimer.d.ts +34 -0
  36. package/lib/typescript/RNPrimer.d.ts.map +1 -0
  37. package/lib/typescript/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.d.ts +2 -0
  38. package/lib/typescript/RNTPrimerHeadlessUniversalCheckoutCardFormUIManager.d.ts.map +1 -0
  39. package/lib/typescript/index.d.ts +46 -0
  40. package/lib/typescript/index.d.ts.map +1 -0
  41. package/lib/typescript/models/IssuingBank.d.ts +9 -0
  42. package/lib/typescript/models/IssuingBank.d.ts.map +1 -0
  43. package/lib/typescript/models/NamedComponentStep.d.ts +12 -0
  44. package/lib/typescript/models/NamedComponentStep.d.ts.map +1 -0
  45. package/lib/typescript/models/NamedComponentValidatableData.d.ts +12 -0
  46. package/lib/typescript/models/NamedComponentValidatableData.d.ts.map +1 -0
  47. package/lib/typescript/models/PrimerCheckoutAdditionalInfo.d.ts +39 -0
  48. package/lib/typescript/models/PrimerCheckoutAdditionalInfo.d.ts.map +1 -0
  49. package/lib/typescript/models/PrimerCheckoutData.d.ts +18 -0
  50. package/lib/typescript/models/PrimerCheckoutData.d.ts.map +1 -0
  51. package/lib/typescript/models/PrimerCheckoutPaymentMethodData.d.ts +7 -0
  52. package/lib/typescript/models/PrimerCheckoutPaymentMethodData.d.ts.map +1 -0
  53. package/lib/typescript/models/PrimerClientSession.d.ts +53 -0
  54. package/lib/typescript/models/PrimerClientSession.d.ts.map +1 -0
  55. package/lib/typescript/models/PrimerComponentDataValidation.d.ts +54 -0
  56. package/lib/typescript/models/PrimerComponentDataValidation.d.ts.map +1 -0
  57. package/lib/typescript/models/PrimerCountryCode.d.ts +4 -0
  58. package/lib/typescript/models/PrimerCountryCode.d.ts.map +1 -0
  59. package/lib/typescript/models/PrimerCurrencyCode.d.ts +4 -0
  60. package/lib/typescript/models/PrimerCurrencyCode.d.ts.map +1 -0
  61. package/lib/typescript/models/PrimerError.d.ts +9 -0
  62. package/lib/typescript/models/PrimerError.d.ts.map +1 -0
  63. package/lib/typescript/models/PrimerHandlers.d.ts +22 -0
  64. package/lib/typescript/models/PrimerHandlers.d.ts.map +1 -0
  65. package/lib/typescript/models/PrimerHeadlessUniversalCheckoutPaymentMethod.d.ts +6 -0
  66. package/lib/typescript/models/PrimerHeadlessUniversalCheckoutPaymentMethod.d.ts.map +1 -0
  67. package/lib/typescript/models/PrimerImplementedRNCallbacks.d.ts +17 -0
  68. package/lib/typescript/models/PrimerImplementedRNCallbacks.d.ts.map +1 -0
  69. package/lib/typescript/models/PrimerInitializationData.d.ts +10 -0
  70. package/lib/typescript/models/PrimerInitializationData.d.ts.map +1 -0
  71. package/lib/typescript/models/PrimerInputElementType.d.ts +12 -0
  72. package/lib/typescript/models/PrimerInputElementType.d.ts.map +1 -0
  73. package/lib/typescript/models/PrimerInterfaces.d.ts +10 -0
  74. package/lib/typescript/models/PrimerInterfaces.d.ts.map +1 -0
  75. package/lib/typescript/models/PrimerPaymentMethodManagerCategory.d.ts +6 -0
  76. package/lib/typescript/models/PrimerPaymentMethodManagerCategory.d.ts.map +1 -0
  77. package/lib/typescript/models/PrimerPaymentMethodResource.d.ts +19 -0
  78. package/lib/typescript/models/PrimerPaymentMethodResource.d.ts.map +1 -0
  79. package/lib/typescript/models/PrimerPaymentMethodTokenData.d.ts +78 -0
  80. package/lib/typescript/models/PrimerPaymentMethodTokenData.d.ts.map +1 -0
  81. package/lib/typescript/models/PrimerRawData.d.ts +20 -0
  82. package/lib/typescript/models/PrimerRawData.d.ts.map +1 -0
  83. package/lib/typescript/models/PrimerSessionIntent.d.ts +5 -0
  84. package/lib/typescript/models/PrimerSessionIntent.d.ts.map +1 -0
  85. package/lib/typescript/models/PrimerSettings.d.ts +173 -0
  86. package/lib/typescript/models/PrimerSettings.d.ts.map +1 -0
  87. package/lib/typescript/models/PrimerTheme.d.ts +24 -0
  88. package/lib/typescript/models/PrimerTheme.d.ts.map +1 -0
  89. package/lib/typescript/models/PrimerValidationError.d.ts +7 -0
  90. package/lib/typescript/models/PrimerValidationError.d.ts.map +1 -0
  91. package/lib/typescript/models/PrimerValidationErrorResult.d.ts +6 -0
  92. package/lib/typescript/models/PrimerValidationErrorResult.d.ts.map +1 -0
  93. package/lib/typescript/models/PrimerVaultedPaymentMethod.d.ts +11 -0
  94. package/lib/typescript/models/PrimerVaultedPaymentMethod.d.ts.map +1 -0
  95. package/lib/typescript/models/PrimerVaultedPaymentMethodAdditionalData.d.ts +5 -0
  96. package/lib/typescript/models/PrimerVaultedPaymentMethodAdditionalData.d.ts.map +1 -0
  97. package/lib/typescript/models/PrimerVaultedPaymentMethodResult.d.ts +6 -0
  98. package/lib/typescript/models/PrimerVaultedPaymentMethodResult.d.ts.map +1 -0
  99. package/lib/typescript/models/RetailOutletsRetail.d.ts +9 -0
  100. package/lib/typescript/models/RetailOutletsRetail.d.ts.map +1 -0
  101. package/lib/typescript/models/ach/AchCollectableData.d.ts +25 -0
  102. package/lib/typescript/models/ach/AchCollectableData.d.ts.map +1 -0
  103. package/lib/typescript/models/ach/AchSteps.d.ts +28 -0
  104. package/lib/typescript/models/ach/AchSteps.d.ts.map +1 -0
  105. package/lib/typescript/models/banks/BanksCollectableData.d.ts +23 -0
  106. package/lib/typescript/models/banks/BanksCollectableData.d.ts.map +1 -0
  107. package/lib/typescript/models/banks/BanksSteps.d.ts +20 -0
  108. package/lib/typescript/models/banks/BanksSteps.d.ts.map +1 -0
  109. package/lib/typescript/models/klarna/KlarnaPaymentCategory.d.ts +24 -0
  110. package/lib/typescript/models/klarna/KlarnaPaymentCategory.d.ts.map +1 -0
  111. package/lib/typescript/models/klarna/KlarnaPaymentCollectableData.d.ts +24 -0
  112. package/lib/typescript/models/klarna/KlarnaPaymentCollectableData.d.ts.map +1 -0
  113. package/lib/typescript/models/klarna/KlarnaPaymentSteps.d.ts +36 -0
  114. package/lib/typescript/models/klarna/KlarnaPaymentSteps.d.ts.map +1 -0
  115. package/lib/typescript/utils/index.d.ts +4 -0
  116. package/lib/typescript/utils/index.d.ts.map +1 -0
  117. package/package.json +1 -1
  118. package/primer-io-react-native.podspec +1 -1
@@ -0,0 +1,39 @@
1
+ export type PrimerCheckoutAdditionalInfo = IPrimerCheckoutAdditionalInfo;
2
+ interface IPrimerCheckoutAdditionalInfo {
3
+ /**
4
+ * The name of this additional info.
5
+ */
6
+ additionalInfoName: string;
7
+ }
8
+ export type MultibancoCheckoutAdditionalInfo = IMultibancoCheckoutAdditionalInfo;
9
+ interface IMultibancoCheckoutAdditionalInfo extends IPrimerCheckoutAdditionalInfo {
10
+ expiresAt?: string;
11
+ entity?: string;
12
+ reference?: string;
13
+ additionalInfoName: 'MultibancoCheckoutAdditionalInfo';
14
+ }
15
+ export type PrimerCheckoutQRCodeInfo = IPrimerCheckoutQRCodeInfo;
16
+ interface IPrimerCheckoutQRCodeInfo extends IPrimerCheckoutAdditionalInfo {
17
+ }
18
+ export type PromptPayCheckoutAdditionalInfo = IPromptPayCheckoutAdditionalInfo;
19
+ interface IPromptPayCheckoutAdditionalInfo extends IPrimerCheckoutQRCodeInfo {
20
+ expiresAt: string;
21
+ qrCodeUrl?: string;
22
+ qrCodeBase64?: string;
23
+ additionalInfoName: 'PromptPayCheckoutAdditionalInfo';
24
+ }
25
+ export type PrimerCheckoutVoucherAdditionalInfo = IPrimerCheckoutVoucherAdditionalInfo;
26
+ interface IPrimerCheckoutVoucherAdditionalInfo extends IPrimerCheckoutAdditionalInfo {
27
+ }
28
+ export type XenditCheckoutVoucherAdditionalInfo = IXenditCheckoutVoucherAdditionalInfo;
29
+ interface IXenditCheckoutVoucherAdditionalInfo extends IPrimerCheckoutVoucherAdditionalInfo {
30
+ expiresAt: string;
31
+ couponCode: string;
32
+ retailerName: string;
33
+ additionalInfoName: 'XenditCheckoutVoucherAdditionalInfo';
34
+ }
35
+ export type DisplayStripeAchMandateAdditionalInfo = {
36
+ additionalInfoName: 'DisplayStripeAchMandateAdditionalInfo';
37
+ } & IPrimerCheckoutAdditionalInfo;
38
+ export {};
39
+ //# sourceMappingURL=PrimerCheckoutAdditionalInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimerCheckoutAdditionalInfo.d.ts","sourceRoot":"","sources":["../../../src/models/PrimerCheckoutAdditionalInfo.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,4BAA4B,GAAG,6BAA6B,CAAC;AAEzE,UAAU,6BAA6B;IACrC;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,MAAM,gCAAgC,GAAG,iCAAiC,CAAC;AACjF,UAAU,iCAAkC,SAAQ,6BAA6B;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,kCAAkC,CAAC;CACxD;AAED,MAAM,MAAM,wBAAwB,GAAG,yBAAyB,CAAC;AAEjE,UAAU,yBAA0B,SAAQ,6BAA6B;CAAG;AAE5E,MAAM,MAAM,+BAA+B,GAAG,gCAAgC,CAAC;AAC/E,UAAU,gCAAiC,SAAQ,yBAAyB;IAC1E,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,iCAAiC,CAAC;CACvD;AAED,MAAM,MAAM,mCAAmC,GAAG,oCAAoC,CAAC;AAEvF,UAAU,oCAAqC,SAAQ,6BAA6B;CAAG;AAEvF,MAAM,MAAM,mCAAmC,GAAG,oCAAoC,CAAC;AACvF,UAAU,oCAAqC,SAAQ,oCAAoC;IACzF,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,qCAAqC,CAAC;CAC3D;AAED,MAAM,MAAM,qCAAqC,GAAG;IAClD,kBAAkB,EAAE,uCAAuC,CAAC;CAC7D,GAAG,6BAA6B,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { PrimerCheckoutAdditionalInfo } from './PrimerCheckoutAdditionalInfo';
2
+ export type PrimerCheckoutData = IPrimerCheckoutData;
3
+ interface IPrimerCheckoutData {
4
+ payment?: IPrimerCheckoutDataPayment;
5
+ additionalInfo?: PrimerCheckoutAdditionalInfo;
6
+ }
7
+ export type PrimerCheckoutDataPayment = IPrimerCheckoutDataPayment;
8
+ interface IPrimerCheckoutDataPayment {
9
+ id?: string;
10
+ orderId?: string;
11
+ paymentFailureReason?: PrimerPaymentErrorCode;
12
+ }
13
+ declare enum PrimerPaymentErrorCode {
14
+ FAILED = "payment-failed",
15
+ CANCELLED_BY_CUSTOMER = "cancelled-by-customer"
16
+ }
17
+ export {};
18
+ //# sourceMappingURL=PrimerCheckoutData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimerCheckoutData.d.ts","sourceRoot":"","sources":["../../../src/models/PrimerCheckoutData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAEnF,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,CAAC;AAErD,UAAU,mBAAmB;IAC3B,OAAO,CAAC,EAAE,0BAA0B,CAAC;IACrC,cAAc,CAAC,EAAE,4BAA4B,CAAC;CAC/C;AAED,MAAM,MAAM,yBAAyB,GAAG,0BAA0B,CAAC;AAEnE,UAAU,0BAA0B;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,sBAAsB,CAAC;CAC/C;AAED,aAAK,sBAAsB;IACzB,MAAM,mBAAmB;IACzB,qBAAqB,0BAA0B;CAChD"}
@@ -0,0 +1,7 @@
1
+ export type PrimerCheckoutPaymentMethodData = IPrimerCheckoutPaymentMethodData;
2
+ interface IPrimerCheckoutPaymentMethodData {
3
+ paymentMethodType: string;
4
+ paymentMethod: string;
5
+ }
6
+ export {};
7
+ //# sourceMappingURL=PrimerCheckoutPaymentMethodData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimerCheckoutPaymentMethodData.d.ts","sourceRoot":"","sources":["../../../src/models/PrimerCheckoutPaymentMethodData.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,+BAA+B,GAAG,gCAAgC,CAAC;AAE/E,UAAU,gCAAgC;IAIxC,iBAAiB,EAAE,MAAM,CAAC;IAE1B,aAAa,EAAE,MAAM,CAAC;CACvB"}
@@ -0,0 +1,53 @@
1
+ export type PrimerClientSession = IPrimerClientSession;
2
+ interface IPrimerClientSession {
3
+ customerId?: string;
4
+ orderId?: string;
5
+ currencyCode?: string;
6
+ totalAmount?: number;
7
+ lineItems?: IPrimerLineItem[];
8
+ orderDetails?: IPrimerOrder;
9
+ customer?: IPrimerCustomer;
10
+ }
11
+ export type PrimerLineItem = IPrimerLineItem;
12
+ interface IPrimerLineItem {
13
+ itemId?: string;
14
+ itemDescription?: string;
15
+ amount?: number;
16
+ discountAmount?: number;
17
+ quantity?: number;
18
+ taxCode?: string;
19
+ taxAmount?: number;
20
+ }
21
+ export type PrimerOrder = IPrimerOrder;
22
+ interface IPrimerOrder {
23
+ countryCode?: string;
24
+ shipping?: IPrimerShipping;
25
+ }
26
+ interface IPrimerShipping {
27
+ amount?: number;
28
+ methodId?: string;
29
+ methodName?: string;
30
+ methodDescription?: string;
31
+ }
32
+ export type PrimerCustomer = IPrimerCustomer;
33
+ interface IPrimerCustomer {
34
+ emailAddress?: string;
35
+ mobileNumber?: string;
36
+ firstName?: string;
37
+ lastName?: string;
38
+ billingAddress?: IPrimerAddress;
39
+ shippingAddress?: IPrimerAddress;
40
+ }
41
+ export type PrimerAddress = IPrimerAddress;
42
+ interface IPrimerAddress {
43
+ firstName?: string;
44
+ lastName?: string;
45
+ addressLine1?: string;
46
+ addressLine2?: string;
47
+ postalCode?: string;
48
+ city?: string;
49
+ state?: string;
50
+ countryCode?: string;
51
+ }
52
+ export {};
53
+ //# sourceMappingURL=PrimerClientSession.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimerClientSession.d.ts","sourceRoot":"","sources":["../../../src/models/PrimerClientSession.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,CAAC;AAEvD,UAAU,oBAAoB;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,eAAe,EAAE,CAAC;IAC9B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,EAAE,eAAe,CAAC;CAC5B;AAED,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC;AAE7C,UAAU,eAAe;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC;AAEvC,UAAU,YAAY;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,eAAe,CAAC;CAC5B;AAED,UAAU,eAAe;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC;AAE7C,UAAU,eAAe;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,eAAe,CAAC,EAAE,cAAc,CAAC;CAClC;AAED,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC;AAE3C,UAAU,cAAc;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,54 @@
1
+ import { NamedComponentValidatableData } from './NamedComponentValidatableData';
2
+ import { PrimerError } from './PrimerError';
3
+ import { PrimerValidationError } from './PrimerValidationError';
4
+ export type PrimerValidatingComponentData<T extends NamedComponentValidatableData> = IPrimerValidatingComponentData<T>;
5
+ export type PrimerValidComponentData<T extends NamedComponentValidatableData> = IPrimerValidComponentData<T>;
6
+ export type PrimerInvalidComponentData<T extends NamedComponentValidatableData> = IPrimerInvalidComponentData<T>;
7
+ export type PrimerComponentDataValidationError<T extends NamedComponentValidatableData> = IPrimerComponentDataValidationError<T>;
8
+ /**
9
+ * Interface that indicates that data is currently in the process of being validated.
10
+ */
11
+ interface IPrimerValidatingComponentData<T extends NamedComponentValidatableData> {
12
+ /**
13
+ * The data being validated.
14
+ */
15
+ data: T;
16
+ }
17
+ /**
18
+ * Interface that indicates that the data has been successfully validated.
19
+ */
20
+ interface IPrimerValidComponentData<T extends NamedComponentValidatableData> {
21
+ /**
22
+ * The successfully validated data.
23
+ */
24
+ data: T;
25
+ }
26
+ /**
27
+ * Interface that indicates that the data has been considered invalid after validation.
28
+ */
29
+ interface IPrimerInvalidComponentData<T extends NamedComponentValidatableData> {
30
+ /**
31
+ * The data that failed validation.
32
+ */
33
+ data: T;
34
+ /**
35
+ * A list of PrimerValidationError explaining why the data is
36
+ * considered invalid.
37
+ */
38
+ errors: PrimerValidationError[];
39
+ }
40
+ /**
41
+ * Interface that represents an error that occurred during the validation process.
42
+ */
43
+ interface IPrimerComponentDataValidationError<T extends NamedComponentValidatableData> {
44
+ /**
45
+ * The data for which an error ocurred during validation.
46
+ */
47
+ data: T;
48
+ /**
49
+ * The PrimerError that ocurred during the validation attempt.
50
+ */
51
+ error: PrimerError;
52
+ }
53
+ export {};
54
+ //# sourceMappingURL=PrimerComponentDataValidation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimerComponentDataValidation.d.ts","sourceRoot":"","sources":["../../../src/models/PrimerComponentDataValidation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,MAAM,MAAM,6BAA6B,CAAC,CAAC,SAAS,6BAA6B,IAAI,8BAA8B,CAAC,CAAC,CAAC,CAAC;AACvH,MAAM,MAAM,wBAAwB,CAAC,CAAC,SAAS,6BAA6B,IAAI,yBAAyB,CAAC,CAAC,CAAC,CAAC;AAC7G,MAAM,MAAM,0BAA0B,CAAC,CAAC,SAAS,6BAA6B,IAAI,2BAA2B,CAAC,CAAC,CAAC,CAAC;AACjH,MAAM,MAAM,kCAAkC,CAAC,CAAC,SAAS,6BAA6B,IACpF,mCAAmC,CAAC,CAAC,CAAC,CAAC;AAEzC;;GAEG;AACH,UAAU,8BAA8B,CAAC,CAAC,SAAS,6BAA6B;IAC9E;;OAEG;IACH,IAAI,EAAE,CAAC,CAAC;CACT;AAED;;GAEG;AACH,UAAU,yBAAyB,CAAC,CAAC,SAAS,6BAA6B;IACzE;;OAEG;IACH,IAAI,EAAE,CAAC,CAAC;CACT;AAED;;GAEG;AACH,UAAU,2BAA2B,CAAC,CAAC,SAAS,6BAA6B;IAC3E;;OAEG;IACH,IAAI,EAAE,CAAC,CAAC;IAER;;;OAGG;IACH,MAAM,EAAE,qBAAqB,EAAE,CAAC;CACjC;AAED;;GAEG;AACH,UAAU,mCAAmC,CAAC,CAAC,SAAS,6BAA6B;IACnF;;OAEG;IACH,IAAI,EAAE,CAAC,CAAC;IAER;;OAEG;IACH,KAAK,EAAE,WAAW,CAAC;CACpB"}
@@ -0,0 +1,4 @@
1
+ declare var countries: readonly ["AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CA", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SK", "SI", "SB", "SO", "ZA", "GS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"];
2
+ export type PrimerCountryCode = (typeof countries)[number];
3
+ export {};
4
+ //# sourceMappingURL=PrimerCountryCode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimerCountryCode.d.ts","sourceRoot":"","sources":["../../../src/models/PrimerCountryCode.ts"],"names":[],"mappings":"AAAA,QAAA,IAAI,SAAS,y8CAsPH,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ declare const currencies: readonly ["AED", "AFN", "ALL", "AMD", "ANG", "AOA", "ARS", "AUD", "AWG", "AZN", "BAM", "BBD", "BDT", "BGN", "BHD", "BIF", "BMD", "BND", "BOB", "BOV", "BRL", "BSD", "BTN", "BWP", "BYR", "BZD", "CAD", "CDF", "CHE", "CHF", "CHW", "CLF", "CLP", "CNY", "COP", "COU", "CRC", "CUC", "CUP", "CVE", "CZK", "DJF", "DKK", "DOP", "DZD", "EGP", "ERN", "ETB", "EUR", "FJD", "FKP", "GBP", "GEL", "GHS", "GIP", "GMD", "GNF", "GTQ", "GYD", "HKD", "HNL", "HRK", "HTG", "HUF", "IDR", "ILS", "INR", "IQD", "IRR", "ISK", "JMD", "JOD", "JPY", "KES", "KGS", "KHR", "KMF", "KPW", "KRW", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LTL", "LVL", "LYD", "MAD", "MDL", "MGA", "MKD", "MMK", "MNT", "MOP", "MRO", "MUR", "MVR", "MWK", "MXN", "MXV", "MYR", "MZN", "NAD", "NGN", "NIO", "NOK", "NPR", "NZD", "OMR", "PAB", "PEN", "PGK", "PHP", "PKR", "PLN", "PYG", "QAR", "RON", "RSD", "RUB", "RWF", "SAR", "SBD", "SCR", "SDG", "SEK", "SGD", "SHP", "SLL", "SOS", "SRD", "SSP", "STD", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "USN", "USS", "UYI", "UYU", "UZS", "VEF", "VND", "VUV", "WST", "XAF", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "XCD", "XDR", "XFU", "XOF", "XPD", "XPF", "XPT", "XTS", "XXX", "YER", "ZAR", "ZMW"];
2
+ export type PrimerCurrencyCode = (typeof currencies)[number];
3
+ export {};
4
+ //# sourceMappingURL=PrimerCurrencyCode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimerCurrencyCode.d.ts","sourceRoot":"","sources":["../../../src/models/PrimerCurrencyCode.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,UAAU,yuCAmLN,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ export declare class PrimerError extends Error {
2
+ errorId: string;
3
+ errorCode?: string;
4
+ description: string;
5
+ recoverySuggestion?: string;
6
+ diagnosticsId?: string;
7
+ constructor(errorId: string, errorCode: string | undefined, description: string, recoverySuggestion: string | undefined, diagnosticsId: string | undefined);
8
+ }
9
+ //# sourceMappingURL=PrimerError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimerError.d.ts","sourceRoot":"","sources":["../../../src/models/PrimerError.ts"],"names":[],"mappings":"AAAA,qBAAa,WAAY,SAAQ,KAAK;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;gBAGrB,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,WAAW,EAAE,MAAM,EACnB,kBAAkB,EAAE,MAAM,GAAG,SAAS,EACtC,aAAa,EAAE,MAAM,GAAG,SAAS;CASpC"}
@@ -0,0 +1,22 @@
1
+ export interface PrimerPaymentCreationHandler {
2
+ abortPaymentCreation(errorMessage: string | null): void;
3
+ continuePaymentCreation(): void;
4
+ }
5
+ export interface PrimerTokenizationHandler {
6
+ handleSuccess(): void;
7
+ handleFailure(errorMessage: string | null): void;
8
+ continueWithNewClientToken(newClientToken: string): void;
9
+ }
10
+ export interface PrimerResumeHandler {
11
+ handleSuccess(): void;
12
+ handleFailure(errorMessage: string | null): void;
13
+ continueWithNewClientToken(newClientToken: string): void;
14
+ }
15
+ export interface PrimerHeadlessUniversalCheckoutResumeHandler {
16
+ continueWithNewClientToken(newClientToken: string): void;
17
+ complete(): void;
18
+ }
19
+ export interface PrimerErrorHandler {
20
+ showErrorMessage(errorMessage: string | null): void;
21
+ }
22
+ //# sourceMappingURL=PrimerHandlers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimerHandlers.d.ts","sourceRoot":"","sources":["../../../src/models/PrimerHandlers.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IAC3C,oBAAoB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IACxD,uBAAuB,IAAI,IAAI,CAAC;CACjC;AAED,MAAM,WAAW,yBAAyB;IACxC,aAAa,IAAI,IAAI,CAAC;IACtB,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IACjD,0BAA0B,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1D;AAED,MAAM,WAAW,mBAAmB;IAClC,aAAa,IAAI,IAAI,CAAC;IACtB,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IACjD,0BAA0B,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1D;AAED,MAAM,WAAW,4CAA4C;IAC3D,0BAA0B,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IACzD,QAAQ,IAAI,IAAI,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;CACrD"}
@@ -0,0 +1,6 @@
1
+ export interface IPrimerHeadlessUniversalCheckoutPaymentMethod {
2
+ paymentMethodType: string;
3
+ paymentMethodManagerCategories: ('NATIVE_UI' | 'RAW_DATA' | 'CARD_COMPONENTS')[];
4
+ supportedPrimerSessionIntents: ('CHECKOUT' | 'VAULT')[];
5
+ }
6
+ //# sourceMappingURL=PrimerHeadlessUniversalCheckoutPaymentMethod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimerHeadlessUniversalCheckoutPaymentMethod.d.ts","sourceRoot":"","sources":["../../../src/models/PrimerHeadlessUniversalCheckoutPaymentMethod.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,6CAA6C;IAC5D,iBAAiB,EAAE,MAAM,CAAC;IAC1B,8BAA8B,EAAE,CAAC,WAAW,GAAG,UAAU,GAAG,iBAAiB,CAAC,EAAE,CAAC;IACjF,6BAA6B,EAAE,CAAC,UAAU,GAAG,OAAO,CAAC,EAAE,CAAC;CACzD"}
@@ -0,0 +1,17 @@
1
+ export interface PrimerImplementedRNCallbacks {
2
+ onAvailablePaymentMethodsLoad: boolean;
3
+ onTokenizationStart: boolean;
4
+ onTokenizationSuccess: boolean;
5
+ onCheckoutResume: boolean;
6
+ onCheckoutPending: boolean;
7
+ onCheckoutAdditionalInfo: boolean;
8
+ onError: boolean;
9
+ onCheckoutComplete: boolean;
10
+ onBeforeClientSessionUpdate: boolean;
11
+ onClientSessionUpdate: boolean;
12
+ onBeforePaymentCreate: boolean;
13
+ onPreparationStart: boolean;
14
+ onPaymentMethodShow: boolean;
15
+ onDismiss: boolean;
16
+ }
17
+ //# sourceMappingURL=PrimerImplementedRNCallbacks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimerImplementedRNCallbacks.d.ts","sourceRoot":"","sources":["../../../src/models/PrimerImplementedRNCallbacks.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IAC3C,6BAA6B,EAAE,OAAO,CAAC;IACvC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,qBAAqB,EAAE,OAAO,CAAC;IAE/B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,wBAAwB,EAAE,OAAO,CAAC;IAElC,OAAO,EAAE,OAAO,CAAC;IACjB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,2BAA2B,EAAE,OAAO,CAAC;IAErC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,kBAAkB,EAAE,OAAO,CAAC;IAE5B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,SAAS,EAAE,OAAO,CAAC;CACpB"}
@@ -0,0 +1,10 @@
1
+ import type { RetailOutletsRetail } from './RetailOutletsRetail';
2
+ export type PrimerInitializationData = IPrimerInitializationData;
3
+ interface IPrimerInitializationData {
4
+ }
5
+ export type RetailOutletsList = IRetailOutletsList;
6
+ interface IRetailOutletsList extends IPrimerInitializationData {
7
+ result: [RetailOutletsRetail];
8
+ }
9
+ export {};
10
+ //# sourceMappingURL=PrimerInitializationData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimerInitializationData.d.ts","sourceRoot":"","sources":["../../../src/models/PrimerInitializationData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,MAAM,MAAM,wBAAwB,GAAG,yBAAyB,CAAC;AAEjE,UAAU,yBAAyB;CAAG;AAEtC,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;AAEnD,UAAU,kBAAmB,SAAQ,yBAAyB;IAC5D,MAAM,EAAE,CAAC,mBAAmB,CAAC,CAAC;CAC/B"}
@@ -0,0 +1,12 @@
1
+ export declare enum PrimerInputElementType {
2
+ CARD_NUMBER = "CARD_NUMBER",
3
+ EXPIRY_DATE = "EXPIRY_DATE",
4
+ CVV = "CVV",
5
+ CARDHOLDER_NAME = "CARDHOLDER_NAME",
6
+ OTP = "OTP",
7
+ POSTAL_CODE = "POSTAL_CODE",
8
+ PHONE_NUMBER = "PHONE_NUMBER",
9
+ RETAILER = "RETAILER",
10
+ UNKNOWN = "UNKNOWN"
11
+ }
12
+ //# sourceMappingURL=PrimerInputElementType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimerInputElementType.d.ts","sourceRoot":"","sources":["../../../src/models/PrimerInputElementType.ts"],"names":[],"mappings":"AAAA,oBAAY,sBAAsB;IAChC,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,GAAG,QAAQ;IACX,eAAe,oBAAoB;IACnC,GAAG,QAAQ;IACX,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB"}
@@ -0,0 +1,10 @@
1
+ import type { PrimerSettings } from './PrimerSettings';
2
+ export interface IPrimer {
3
+ configure(settings: PrimerSettings): Promise<void>;
4
+ showUniversalCheckout(clientToken: string): Promise<void>;
5
+ showVaultManager(clientToken: string): Promise<void>;
6
+ showPaymentMethod(paymentMethod: string, intent: string, clientToken: string): Promise<void>;
7
+ dismiss(): void;
8
+ cleanUp(): void;
9
+ }
10
+ //# sourceMappingURL=PrimerInterfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimerInterfaces.d.ts","sourceRoot":"","sources":["../../../src/models/PrimerInterfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,WAAW,OAAO;IACtB,SAAS,CAAC,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnD,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1D,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7F,OAAO,IAAI,IAAI,CAAC;IAChB,OAAO,IAAI,IAAI,CAAC;CACjB"}
@@ -0,0 +1,6 @@
1
+ export declare enum PrimerPaymentMethodManagerCategory {
2
+ CARD_COMPONENTS = "CARD_COMPONENTS",
3
+ NATIVE_UI = "NATIVE_UI",
4
+ RAW_DATA = "RAW_DATA"
5
+ }
6
+ //# sourceMappingURL=PrimerPaymentMethodManagerCategory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimerPaymentMethodManagerCategory.d.ts","sourceRoot":"","sources":["../../../src/models/PrimerPaymentMethodManagerCategory.ts"],"names":[],"mappings":"AAAA,oBAAY,kCAAkC;IAC5C,eAAe,oBAAoB;IACnC,SAAS,cAAc;IACvB,QAAQ,aAAa;CACtB"}
@@ -0,0 +1,19 @@
1
+ export interface IPrimerPaymentMethodResource {
2
+ paymentMethodType: string;
3
+ paymentMethodName: string;
4
+ nativeViewName?: string;
5
+ }
6
+ export interface PrimerPaymentMethodAsset extends IPrimerPaymentMethodResource {
7
+ paymentMethodLogo: IPrimerAsset;
8
+ paymentMethodBackgroundColor: IPrimerAsset;
9
+ nativeViewName?: undefined;
10
+ }
11
+ export interface PrimerPaymentMethodNativeView extends IPrimerPaymentMethodResource {
12
+ nativeViewName: string;
13
+ }
14
+ export interface IPrimerAsset {
15
+ colored?: string;
16
+ dark?: string;
17
+ light?: string;
18
+ }
19
+ //# sourceMappingURL=PrimerPaymentMethodResource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimerPaymentMethodResource.d.ts","sourceRoot":"","sources":["../../../src/models/PrimerPaymentMethodResource.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IAC3C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,wBAAyB,SAAQ,4BAA4B;IAC5E,iBAAiB,EAAE,YAAY,CAAC;IAChC,4BAA4B,EAAE,YAAY,CAAC;IAC3C,cAAc,CAAC,EAAE,SAAS,CAAC;CAC5B;AAED,MAAM,WAAW,6BAA8B,SAAQ,4BAA4B;IACjF,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,78 @@
1
+ export type PrimerPaymentMethodTokenData = IPrimerPaymentMethodTokenData;
2
+ export interface IPrimerPaymentMethodTokenData {
3
+ analyticsId?: string;
4
+ id?: string;
5
+ isVaulted?: boolean;
6
+ paymentInstrumentData: IPrimerPaymentInstrumentData;
7
+ paymentInstrumentType: string;
8
+ token: string;
9
+ tokenType?: PrimerTokenType;
10
+ threeDSecureAuthentication?: IPrimerThreeDSAuthenticationData;
11
+ vaultData?: IPrimerVaultData;
12
+ }
13
+ export declare enum PrimerTokenType {
14
+ SINGLE_USE = "SINGLE_USE",
15
+ MULTI_USE = "MULTI_USE"
16
+ }
17
+ export interface IPrimerThreeDSAuthenticationData {
18
+ challengeIssued?: boolean;
19
+ protocolVersion?: string;
20
+ reasonCode?: string;
21
+ reasonText?: string;
22
+ responseCode?: string;
23
+ }
24
+ export interface IPrimerVaultData {
25
+ customerId?: string;
26
+ }
27
+ export interface IPrimerPaymentInstrumentData {
28
+ network?: string;
29
+ cardholderName?: string;
30
+ first6Digits?: number;
31
+ last4Digits?: number;
32
+ accountNumberLast4Digits?: number;
33
+ expirationMonth?: number;
34
+ expirationYear?: number;
35
+ externalPayerInfo?: IExternalPayerInfo;
36
+ klarnaCustomerToken?: string;
37
+ sessionData?: IKlarnaSessionData;
38
+ paymentMethodType?: string;
39
+ binData?: IBinData;
40
+ bankName?: string;
41
+ }
42
+ export interface IKlarnaSessionData {
43
+ recurringDescription?: string;
44
+ billingAddress?: IKlarnaBillingAddress;
45
+ }
46
+ export interface IKlarnaBillingAddress {
47
+ email?: string;
48
+ }
49
+ export interface IExternalPayerInfo {
50
+ email: string;
51
+ externalPayerId?: string;
52
+ firstName?: string;
53
+ lastName?: string;
54
+ }
55
+ export interface IShippingAddress {
56
+ firstName?: string;
57
+ lastName?: string;
58
+ addressLine1?: string;
59
+ addressLine2?: string;
60
+ city?: string;
61
+ state?: string;
62
+ countryCode?: string;
63
+ postalCode?: string;
64
+ }
65
+ export interface IBinData {
66
+ network?: string;
67
+ issuerCountryCode?: string;
68
+ issuerName?: string;
69
+ issuerCurrencyCode?: string;
70
+ regionalRestriction?: string;
71
+ accountNumberType?: string;
72
+ accountFundingType?: string;
73
+ prepaidReloadableIndicator?: string;
74
+ productUsageType?: string;
75
+ productCode?: string;
76
+ productName?: string;
77
+ }
78
+ //# sourceMappingURL=PrimerPaymentMethodTokenData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimerPaymentMethodTokenData.d.ts","sourceRoot":"","sources":["../../../src/models/PrimerPaymentMethodTokenData.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,20 @@
1
+ export interface PrimerRawData {
2
+ }
3
+ export interface PrimerCardData extends PrimerRawData {
4
+ cardNumber: string;
5
+ expiryDate: string;
6
+ cvv: string;
7
+ cardholderName?: string;
8
+ }
9
+ export interface PrimerPhoneNumberData extends PrimerRawData {
10
+ phoneNumber: string;
11
+ }
12
+ export interface PrimerBancontactCardData extends PrimerRawData {
13
+ cardNumber: string;
14
+ expiryDate: string;
15
+ cardholderName: string;
16
+ }
17
+ export interface PrimerRetailerData extends PrimerRawData {
18
+ id: string;
19
+ }
20
+ //# sourceMappingURL=PrimerRawData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimerRawData.d.ts","sourceRoot":"","sources":["../../../src/models/PrimerRawData.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;CAAG;AAEjC,MAAM,WAAW,cAAe,SAAQ,aAAa;IACnD,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IAC1D,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,wBAAyB,SAAQ,aAAa;IAC7D,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IACvD,EAAE,EAAE,MAAM,CAAC;CACZ"}
@@ -0,0 +1,5 @@
1
+ export declare enum PrimerSessionIntent {
2
+ CHECKOUT = "CHECKOUT",
3
+ VAULT = "VAULT"
4
+ }
5
+ //# sourceMappingURL=PrimerSessionIntent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimerSessionIntent.d.ts","sourceRoot":"","sources":["../../../src/models/PrimerSessionIntent.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B,QAAQ,aAAa;IACrB,KAAK,UAAU;CAChB"}