@justifi/webcomponents 6.14.1 → 6.14.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.
Files changed (218) hide show
  1. package/dist/cjs/{Analytics-8X9v2COT.js → Analytics-CBiQK20S.js} +2 -2
  2. package/dist/cjs/{Api-DdeSr34D.js → Api-ITroQ-Qg.js} +1 -1
  3. package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +125 -129
  4. package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
  5. package/dist/cjs/{business.service-OqWV2MwK.js → business.service-DnO0rTiK.js} +1 -1
  6. package/dist/cjs/card-form.cjs.entry.js +2 -2
  7. package/dist/cjs/{check-pkg-version-CeW26qxO.js → check-pkg-version-Ijgd8_6m.js} +1 -1
  8. package/dist/cjs/{checkout.service-CKgEKcmm.js → checkout.service-DWCv6eht.js} +1 -1
  9. package/dist/cjs/dispute-notification_2.cjs.entry.js +5 -5
  10. package/dist/cjs/{event-types-B8fM9Mqe.js → event-types-NzIs_zS2.js} +1 -1
  11. package/dist/cjs/{get-subaccounts-C1LbGVo_.js → get-subaccounts-Bxc3Vt13.js} +1 -1
  12. package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
  13. package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +7 -7
  14. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +5 -5
  15. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -5
  16. package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
  17. package/dist/cjs/justifi-billing-form.cjs.entry.js +1 -1
  18. package/dist/cjs/justifi-business-details.cjs.entry.js +6 -6
  19. package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
  20. package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
  21. package/dist/cjs/justifi-card-form.cjs.entry.js +5 -5
  22. package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +4 -4
  23. package/dist/cjs/justifi-checkout.cjs.entry.js +5 -5
  24. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +1 -1
  25. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +7 -7
  26. package/dist/cjs/justifi-dispute-management.cjs.entry.js +6 -6
  27. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
  28. package/dist/cjs/justifi-order-terminals.cjs.entry.js +7 -7
  29. package/dist/cjs/justifi-payment-details.cjs.entry.js +6 -6
  30. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -6
  31. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +6 -6
  32. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +1 -1
  33. package/dist/cjs/justifi-payments-list.cjs.entry.js +6 -6
  34. package/dist/cjs/justifi-payout-details.cjs.entry.js +6 -6
  35. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +6 -6
  36. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +1 -1
  37. package/dist/cjs/justifi-payouts-list.cjs.entry.js +7 -7
  38. package/dist/cjs/justifi-qr-terminal.cjs.entry.js +5 -5
  39. package/dist/cjs/justifi-refund-payment.cjs.entry.js +6 -6
  40. package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
  41. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -5
  42. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  43. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +1 -1
  44. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +5 -5
  45. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
  46. package/dist/cjs/justifi-terminals-list.cjs.entry.js +7 -7
  47. package/dist/cjs/{package-CorQZH2M.js → package-D_dxBnW3.js} +1 -1
  48. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  49. package/dist/cjs/{payment.service-B7x7eK6m.js → payment.service-DzCk-u8-.js} +1 -1
  50. package/dist/cjs/{payout.service-gzGWoXeh.js → payout.service-DQMp2E-M.js} +1 -1
  51. package/dist/cjs/{plaid.service-BphWvNSP.js → plaid.service-DobTNSxz.js} +1 -1
  52. package/dist/cjs/{styled-host-Ch0-dxF-.js → styled-host-CW1WUnUq.js} +1 -1
  53. package/dist/cjs/{terminal.service-BPrlu7uq.js → terminal.service-DMYipLNi.js} +1 -1
  54. package/dist/collection/api/ComponentEvents.js +17 -1
  55. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/additional-questions-form-step.js +16 -19
  56. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +15 -18
  57. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +16 -19
  58. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +16 -19
  59. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +16 -18
  60. package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-form-step.js +15 -18
  61. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +16 -19
  62. package/dist/docs.json +1 -1
  63. package/dist/esm/{Analytics-DY8rzGkY.js → Analytics-ru8vB8qb.js} +2 -2
  64. package/dist/esm/{Api-C6pVpXue.js → Api-7JrBn4d6.js} +1 -1
  65. package/dist/esm/additional-questions-form-step_15.entry.js +125 -129
  66. package/dist/esm/bank-account-form.entry.js +2 -2
  67. package/dist/esm/{business.service-DVaWaxuN.js → business.service-CR9Dcsks.js} +1 -1
  68. package/dist/esm/card-form.entry.js +2 -2
  69. package/dist/esm/{check-pkg-version-BYwiz3xi.js → check-pkg-version-BaPcn-Te.js} +1 -1
  70. package/dist/esm/{checkout.service-DCg5TSgj.js → checkout.service-BsrkzNvN.js} +1 -1
  71. package/dist/esm/dispute-notification_2.entry.js +5 -5
  72. package/dist/esm/{event-types-DV6dBcPL.js → event-types-CkRe9UDl.js} +1 -1
  73. package/dist/esm/{get-subaccounts-B1B7EBG1.js → get-subaccounts-OY5uSEGM.js} +1 -1
  74. package/dist/esm/hidden-input_2.entry.js +1 -1
  75. package/dist/esm/justifi-apple-pay_11.entry.js +7 -7
  76. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +5 -5
  77. package/dist/esm/justifi-bank-account-form.entry.js +5 -5
  78. package/dist/esm/justifi-billing-form-full.entry.js +1 -1
  79. package/dist/esm/justifi-billing-form.entry.js +1 -1
  80. package/dist/esm/justifi-business-details.entry.js +6 -6
  81. package/dist/esm/justifi-business-form.entry.js +6 -6
  82. package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
  83. package/dist/esm/justifi-card-form.entry.js +5 -5
  84. package/dist/esm/justifi-checkout-qr-code.entry.js +4 -4
  85. package/dist/esm/justifi-checkout.entry.js +5 -5
  86. package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
  87. package/dist/esm/justifi-checkouts-list.entry.js +7 -7
  88. package/dist/esm/justifi-dispute-management.entry.js +6 -6
  89. package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
  90. package/dist/esm/justifi-order-terminals.entry.js +7 -7
  91. package/dist/esm/justifi-payment-details.entry.js +6 -6
  92. package/dist/esm/justifi-payment-provisioning.entry.js +6 -6
  93. package/dist/esm/justifi-payment-transactions-list.entry.js +6 -6
  94. package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
  95. package/dist/esm/justifi-payments-list.entry.js +6 -6
  96. package/dist/esm/justifi-payout-details.entry.js +6 -6
  97. package/dist/esm/justifi-payout-transactions-list.entry.js +6 -6
  98. package/dist/esm/justifi-payouts-list-filters.entry.js +1 -1
  99. package/dist/esm/justifi-payouts-list.entry.js +7 -7
  100. package/dist/esm/justifi-qr-terminal.entry.js +5 -5
  101. package/dist/esm/justifi-refund-payment.entry.js +6 -6
  102. package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
  103. package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
  104. package/dist/esm/justifi-skeleton.entry.js +1 -1
  105. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +1 -1
  106. package/dist/esm/justifi-terminal-orders-list.entry.js +5 -5
  107. package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
  108. package/dist/esm/justifi-terminals-list.entry.js +7 -7
  109. package/dist/esm/{package-DmrfgGzv.js → package-BmY4mdZN.js} +1 -1
  110. package/dist/esm/payment-method-option.entry.js +1 -1
  111. package/dist/esm/{payment.service-Dj3Jgj2F.js → payment.service-s-CoA47b.js} +1 -1
  112. package/dist/esm/{payout.service-CdcAA0_l.js → payout.service-CwsSsd0U.js} +1 -1
  113. package/dist/esm/{plaid.service-CwS4SIQb.js → plaid.service-D_D6sUFJ.js} +1 -1
  114. package/dist/esm/{styled-host-D84RBv1W.js → styled-host-RvPhw8Gu.js} +1 -1
  115. package/dist/esm/{terminal.service-DQz6FWpx.js → terminal.service-D5sQPp7g.js} +1 -1
  116. package/dist/module/Plaid.js +1 -1
  117. package/dist/module/additional-questions-form-step2.js +16 -20
  118. package/dist/module/business-bank-account-form-step2.js +16 -19
  119. package/dist/module/business-core-info-form-step2.js +16 -20
  120. package/dist/module/business-owners-form-step2.js +16 -20
  121. package/dist/module/business-representative-form-step2.js +17 -20
  122. package/dist/module/business-terms-conditions-form-step2.js +1 -1
  123. package/dist/module/dispute-response2.js +1 -1
  124. package/dist/module/document-upload-form-step2.js +16 -19
  125. package/dist/module/justifi-business-details.js +1 -1
  126. package/dist/module/justifi-business-form.js +1 -1
  127. package/dist/module/justifi-checkout-qr-code2.js +1 -1
  128. package/dist/module/justifi-checkouts-list.js +1 -1
  129. package/dist/module/justifi-dispute-management.js +1 -1
  130. package/dist/module/justifi-gross-payment-chart.js +1 -1
  131. package/dist/module/justifi-modular-checkout2.js +1 -1
  132. package/dist/module/justifi-order-terminals.js +1 -1
  133. package/dist/module/justifi-payment-details.js +1 -1
  134. package/dist/module/justifi-payment-provisioning.js +1 -1
  135. package/dist/module/justifi-payment-transactions-list.js +1 -1
  136. package/dist/module/justifi-payments-list.js +1 -1
  137. package/dist/module/justifi-payout-details.js +1 -1
  138. package/dist/module/justifi-payout-transactions-list.js +1 -1
  139. package/dist/module/justifi-payouts-list.js +1 -1
  140. package/dist/module/justifi-plaid-payment-method2.js +1 -1
  141. package/dist/module/justifi-qr-terminal.js +1 -1
  142. package/dist/module/justifi-refund-payment.js +1 -1
  143. package/dist/module/justifi-season-interruption-insurance.js +1 -1
  144. package/dist/module/justifi-terminal-orders-list.js +1 -1
  145. package/dist/module/justifi-terminals-list.js +1 -1
  146. package/dist/module/justifi-tokenize-payment-method2.js +1 -1
  147. package/dist/module/legal-address-form-step2.js +16 -20
  148. package/dist/module/package.js +1 -1
  149. package/dist/module/payment-provisioning-loading.js +19 -1
  150. package/dist/module/plaid-verification2.js +1 -1
  151. package/dist/module/styled-host.js +1 -1
  152. package/dist/module/utils3.js +1 -1
  153. package/dist/types/api/ComponentEvents.d.ts +2 -0
  154. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +3 -3
  155. package/dist/webcomponents/{p-5257de4d.entry.js → p-0019df0b.entry.js} +1 -1
  156. package/dist/webcomponents/{p-DzEdYT8R.js → p-05AWudQe.js} +1 -1
  157. package/dist/webcomponents/{p-1cd30181.entry.js → p-08823a4a.entry.js} +1 -1
  158. package/dist/webcomponents/{p-f3c40c22.entry.js → p-0c1cc1e9.entry.js} +1 -1
  159. package/dist/webcomponents/{p-8b85daf8.entry.js → p-17806b1a.entry.js} +1 -1
  160. package/dist/webcomponents/{p-4781669c.entry.js → p-18066ad4.entry.js} +1 -1
  161. package/dist/webcomponents/{p-e1382f38.entry.js → p-1cff91b7.entry.js} +1 -1
  162. package/dist/webcomponents/{p-6a98c472.entry.js → p-1da47bad.entry.js} +4 -4
  163. package/dist/webcomponents/{p-3e1d3af4.entry.js → p-1e458958.entry.js} +1 -1
  164. package/dist/webcomponents/{p-c7b96d6f.entry.js → p-1e4c4b66.entry.js} +1 -1
  165. package/dist/webcomponents/{p-e659f030.entry.js → p-21674cdb.entry.js} +1 -1
  166. package/dist/webcomponents/{p-ae223a12.entry.js → p-220691ad.entry.js} +1 -1
  167. package/dist/webcomponents/{p-eaf179a0.entry.js → p-2926e9f7.entry.js} +1 -1
  168. package/dist/webcomponents/{p-f7258258.entry.js → p-31090560.entry.js} +1 -1
  169. package/dist/webcomponents/{p-df21d9b7.entry.js → p-3a723fa1.entry.js} +1 -1
  170. package/dist/webcomponents/{p-6c1e40e7.entry.js → p-45c05453.entry.js} +1 -1
  171. package/dist/webcomponents/{p-4791c6d7.entry.js → p-49f279c3.entry.js} +1 -1
  172. package/dist/webcomponents/{p-055640f9.entry.js → p-4f54d1b2.entry.js} +1 -1
  173. package/dist/webcomponents/{p-1d6c0821.entry.js → p-58e8d646.entry.js} +1 -1
  174. package/dist/webcomponents/p-5daa1e58.entry.js +1 -0
  175. package/dist/webcomponents/{p-2908f0e4.entry.js → p-7046686a.entry.js} +1 -1
  176. package/dist/webcomponents/{p-154bbb18.entry.js → p-7cd4ce1f.entry.js} +1 -1
  177. package/dist/webcomponents/p-8252a23b.entry.js +1 -0
  178. package/dist/webcomponents/{p-cc8ad073.entry.js → p-87c50070.entry.js} +1 -1
  179. package/dist/webcomponents/p-8fabef40.entry.js +1 -0
  180. package/dist/webcomponents/{p-7883f20e.entry.js → p-9551b11e.entry.js} +1 -1
  181. package/dist/webcomponents/{p-a1528ee7.entry.js → p-9cc293aa.entry.js} +1 -1
  182. package/dist/webcomponents/{p-IADrgGjR.js → p-BBn_-9nI.js} +1 -1
  183. package/dist/webcomponents/{p-DB4q0kxv.js → p-BDGCS3ww.js} +1 -1
  184. package/dist/webcomponents/{p-CoY0w4be.js → p-BSvONk1S.js} +1 -1
  185. package/dist/webcomponents/{p-C_YFlFQQ.js → p-BWJBtO9q.js} +1 -1
  186. package/dist/webcomponents/p-BmY4mdZN.js +1 -0
  187. package/dist/webcomponents/{p-CGTKc-Ra.js → p-CWnGGCoB.js} +1 -1
  188. package/dist/webcomponents/p-CqEly_AV.js +1 -0
  189. package/dist/webcomponents/{p-n4OrTH9l.js → p-CqS9uUYr.js} +1 -1
  190. package/dist/webcomponents/{p-CiIGpNnJ.js → p-DAvw3oWq.js} +1 -1
  191. package/dist/webcomponents/p-DsbNHsF7.js +1 -0
  192. package/dist/webcomponents/{p-ClGSzzda.js → p-WJlbuZRF.js} +1 -1
  193. package/dist/webcomponents/{p-BJIJZgZH.js → p-Y2iBsvwn.js} +1 -1
  194. package/dist/webcomponents/{p-ef3f9a80.entry.js → p-a6526002.entry.js} +1 -1
  195. package/dist/webcomponents/p-c851ae4f.entry.js +1 -0
  196. package/dist/webcomponents/{p-6d218257.entry.js → p-d4157eb2.entry.js} +1 -1
  197. package/dist/webcomponents/p-d4712e79.entry.js +1 -0
  198. package/dist/webcomponents/{p-762b1b7b.entry.js → p-da21ae43.entry.js} +1 -1
  199. package/dist/webcomponents/{p-62604f23.entry.js → p-dc0cc4aa.entry.js} +1 -1
  200. package/dist/webcomponents/{p-bebfcbdf.entry.js → p-deb20bae.entry.js} +1 -1
  201. package/dist/webcomponents/{p-6f0bca42.entry.js → p-e7cfee5a.entry.js} +1 -1
  202. package/dist/webcomponents/{p-4fd708ff.entry.js → p-e8917d14.entry.js} +1 -1
  203. package/dist/webcomponents/{p-c60c4bed.entry.js → p-ec6978cb.entry.js} +1 -1
  204. package/dist/webcomponents/{p-ab0449a9.entry.js → p-f373d313.entry.js} +1 -1
  205. package/dist/webcomponents/p-f4ce1bf4.entry.js +1 -0
  206. package/dist/webcomponents/{p-ad72e7c0.entry.js → p-f7ddb952.entry.js} +1 -1
  207. package/dist/webcomponents/{p-52f605a9.entry.js → p-f7ed42be.entry.js} +1 -1
  208. package/dist/webcomponents/webcomponents.esm.js +1 -1
  209. package/package.json +3 -2
  210. package/dist/webcomponents/p-21fcf763.entry.js +0 -1
  211. package/dist/webcomponents/p-24a39581.entry.js +0 -1
  212. package/dist/webcomponents/p-5da3adf2.entry.js +0 -1
  213. package/dist/webcomponents/p-6c3e9ebd.entry.js +0 -1
  214. package/dist/webcomponents/p-981dcbc9.entry.js +0 -1
  215. package/dist/webcomponents/p-B9a-6Pn9.js +0 -1
  216. package/dist/webcomponents/p-DmrfgGzv.js +0 -1
  217. package/dist/webcomponents/p-RmBpI2DR.js +0 -1
  218. package/dist/webcomponents/p-ee3e88bc.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import { a as ComponentErrorCodes } from './Plaid.js';
1
+ import { c as ComponentErrorCodes } from './Plaid.js';
2
2
 
3
3
  // Errors on [capital]/config/locales/en.yml
4
4
  // Add more errors as needed
@@ -1,3 +1,4 @@
1
+ import { EventEmitter } from "../stencil-public-runtime";
1
2
  import { BusinessFormClickActions, BusinessFormStep } from "../components/business-forms/utils/event-types";
2
3
  import { DisputeManagementClickActions, DisputeResponseFormStep } from "../components/dispute-management/event-types";
3
4
  import { TableClickActions } from "../ui-components/table/event-types";
@@ -21,6 +22,7 @@ export interface ComponentErrorEvent {
21
22
  severity?: ComponentErrorSeverity;
22
23
  data?: any;
23
24
  }
25
+ export declare function validateRequiredProps(errorEvent: EventEmitter<ComponentErrorEvent>, props: Record<string, unknown>): boolean;
24
26
  export interface RecordClickEvent {
25
27
  id: string;
26
28
  type: 'account' | 'payment' | 'metadata';
@@ -14,8 +14,8 @@ export declare const businessFormSchemaUSA: import("yup").ObjectSchema<{
14
14
  business_other_payment_details?: string;
15
15
  };
16
16
  representative: {
17
- ssn_last4?: string;
18
17
  name?: string;
18
+ ssn_last4?: string;
19
19
  address?: {
20
20
  state?: string;
21
21
  line1?: string;
@@ -95,8 +95,8 @@ export declare const businessFormSchemaCAN: import("yup").ObjectSchema<{
95
95
  business_other_payment_details?: string;
96
96
  };
97
97
  representative: {
98
- ssn_last4?: string;
99
98
  name?: string;
99
+ ssn_last4?: string;
100
100
  address?: {
101
101
  state?: string;
102
102
  line1?: string;
@@ -176,8 +176,8 @@ export declare const businessFormSchema: import("yup").ObjectSchema<{
176
176
  business_other_payment_details?: string;
177
177
  };
178
178
  representative: {
179
- ssn_last4?: string;
180
179
  name?: string;
180
+ ssn_last4?: string;
181
181
  address?: {
182
182
  state?: string;
183
183
  line1?: string;
@@ -1 +1 @@
1
- import{h as e,r as t,c as a}from"./p-CV0Pyo1O.js";import{P as s}from"./p-B9a-6Pn9.js";import{m as i}from"./p-rpFC83GL.js";import{C as d,b as c,i as f,h as l}from"./p-AyLerOda.js";import{J as r}from"./p-CGTKc-Ra.js";import{c as h}from"./p-CoY0w4be.js";import"./p-DVJaoI_m.js";import{b as o,d as b,s as p}from"./p-Ds_P-dB8.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{P as n,M as m}from"./p-D1_eip6x.js";import{a as y,b as u,D as v,c as k,C,E as j}from"./p-Cu7hgXL1.js";import{S as g}from"./p-DzEdYT8R.js";import"./p-CZfYo5-1.js";import{S as w}from"./p-uZ5KAseb.js";import{a as D,B as P}from"./p-CHw7tICr.js";import"./p-ClGSzzda.js";import"./p-DmrfgGzv.js";import"./p-HXpYMWUU.js";import"./p-CXZRiaUw.js";import"./p-D8GTwl9v.js";import"./p-CPKMvyV_.js";const x=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(w,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(w,{width:"70%"})),e("div",{class:"col-12"},e(w,{width:"40%"})),e("div",{class:"col-12"},e(w,{width:"40%"})),e("div",{class:"col-12"},e(w,{width:"100%"})),e("div",{class:"col-12"},e(w,{width:"80%"}))),T=class{constructor(e){t(this,e),this.errorEvent=a(this,"error-event",7),this.recordClickEvent=a(this,"record-click-event",7),this.loading=!0}componentWillLoad(){h(),this.analytics=new r(this),this.initializeGetPaymentDetails()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?(this.getPaymentDetails=i({id:this.paymentId,authToken:this.authToken,service:new s}),this.fetchData()):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:c.MISSING_PROPS,severity:d.ERROR}))}updateOnPropChange(){this.getPaymentDetails&&this.fetchData()}fetchData(){this.loading=!0,this.getPaymentDetails({onSuccess:({payment:e})=>{this.payment=e,this.errorMessage=null},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({errorCode:t,message:e,severity:a})},final:()=>{this.loading=!1}})}get PaymentStatus(){return this.payment.status===f.disputed&&this.payment.disputes.some((e=>e.status===l.lost))?n.DISPUTE_LOST:this.payment.status}render(){return e(g,{key:"f304cb665f17ce96b6d97a38d94907629f559413"},this.loading&&e(x,{key:"709acde31230bd9e825e4e9669234492aff3cc3a"}),!this.loading&&this.errorMessage&&j(this.errorMessage),!this.loading&&!this.errorMessage&&this.payment&&e("justifi-details",{key:"09a4a2559fb89a5b4b57d81b0fd48952c219d348",errorMessage:this.errorMessage},e(y,{key:"7cbfece91ce9e5fab75d561ad369080ecbe76fa4",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},m(this.PaymentStatus),this.payment.expedited?e(D,{variant:P.WARNING,title:"Expedited",text:"Expedited"}):null),title:this.payment.formattedPaymentAmount(this.payment.amount)},e(u,{key:"4aa014d77def141d2053c3745b8215cc03a53ac7",classes:"border-1 border-end",title:"Updated At",value:`${o(this.payment.updated_at)} ${b(this.payment.updated_at)}`}),e(u,{key:"f344398f4fd4db6e1e7ca1335c3aa55630668475",classes:"border-1 border-end",title:"Created At",value:`${o(this.payment.created_at)} ${b(this.payment.created_at)}`}),e(u,{key:"a01e5a04400b996cfb2a9e563c8f383b8e8d7c66",title:"ID",value:this.payment.id})),e("div",{key:"ef0c63d53031dfa8910dfbdedede1e20ac09e78a",slot:"detail-sections"},e(v,{key:"5053784a7e3bd8932562a816921564aadd6d79c8",sectionTitle:"Details"}),e("div",{key:"43c56ee5a39589ea7a0107f32e274be439adf33a",class:"d-flex flex-column gap-2 w-100"},e(k,{key:"fcee2dd211c9bf951cdd6855ac3fa844632391ce",title:"Amount",value:this.payment.formattedPaymentAmount(this.payment.amount)}),e(k,{key:"44d055f3445f02feaeb4519b5f4777333089a8c6",title:"Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(k,{key:"906b584174bd5c329974274a2f1e1ef7e9e8fde0",title:"Refunded",value:this.payment.formattedPaymentAmount(this.payment.amount_refunded)}),e(k,{key:"809429e88eac8ebe8142bb0028f8b86447977697",title:"Net",value:this.payment.formattedPaymentAmount(this.payment.balance)}),e(k,{key:"e08c02efc64f105ce3180e9773584a331ae19a9b",title:"Status",value:m(this.PaymentStatus)}),e(k,{key:"fbb910b7006f9d4bff9b14ffd4fc2f7da8b68020",title:"Payment ID",value:this.payment.id}),e(k,{key:"09fefc2d1a750ab2f5dfb2043db08d5f16d6d9aa",title:"Processing Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(k,{key:"1d96f4557823f1d82d5c6e0e46a984c13c6f018b",title:"Statement Descriptor",value:this.payment.statement_descriptor}),e(k,{key:"51bfae7ef30f36c99c0fa1b25dc5397720ef88ff",title:"Description",value:this.payment.description}),e(k,{key:"5c44b3d40bfe6b2fbf258fee90f55ff24d0b3c28",title:"Expedited",value:this.payment.expedited?"Yes":"No"})),this.payment.payment_method.card&&[e(v,{key:"3d652ba331824448b7e7af969b2ead216f358e28",sectionTitle:"Payment Method"}),e("div",{key:"49ad00ec9d703d196a025fa17b03f4af7cdc4dc5",class:"d-flex flex-column gap-2 w-100"},e(k,{key:"2b1b3f57e74fd65dc4b82d727a94afbe14803c52",title:"ID",value:this.payment.payment_method.card.id}),e(k,{key:"b23d5263566ff11d469dea9a245d20a7689540f8",title:"Payment Type",value:"Card"}),e(k,{key:"f5f76d6d9ac609884aac18fe2743d4fad2192b86",title:"Last 4 Numbers",value:this.payment.payment_method.lastFourDigits}),e(k,{key:"22f296966b6f1aaf516b1d70144cff4f59b82c05",title:"Brand",value:p(this.payment.payment_method.card.brand)}),e(k,{key:"d7dcd0f7a74ed2cc5ba6406a7d48522ca06a7546",title:"Cardholder",value:this.payment.payment_method.payersName}))],this.payment.payment_method.bank_account&&[e(v,{key:"37a2a20c462cb94baa01ca7763d43ced04b4543c",sectionTitle:"Payment Method"}),e("div",{key:"f6de7746d5ff64d27368edef51b3c4e0ff7c658b",class:"d-flex flex-column gap-2 w-100"},e(k,{key:"34e9b26c6d20e9b5e86e4cc11fb925ff1ef5ce94",title:"ID",value:this.payment.payment_method.bank_account.id}),e(k,{key:"32cd6da4d7234aca403bd699de23e1cf889bf14f",title:"Last 4 Numbers",value:this.payment.last_four_digits}),e(k,{key:"f1313ac7c15d5ae2d9dfa2b6d3ec794d0987252b",title:"Bank Name",value:this.payment.payment_method.bank_account.brand}),e(k,{key:"76d1ac1961e530a7a6e1ba5512b982cd70df9470",title:"Account Owner",value:this.payment.payment_method.payersName}))],this.payment.metadata&&[e(v,{key:"1cff262d07acda5bc742f325a23f4199c22f3a01",sectionTitle:"Metadata"}),e("div",{key:"77379785d2559d39a26a253757fdaf02795c53a1",class:"d-table gap-2 w-100"},e(C,{key:"92cb32f3dd6b45094210194e2e40927d7f9d6bde",metadata:this.payment.metadata}))])))}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"],getPaymentDetails:["updateOnPropChange"]}}};export{T as justifi_payment_details}
1
+ import{h as e,r as t,c as a}from"./p-CV0Pyo1O.js";import{P as s}from"./p-CqEly_AV.js";import{m as i}from"./p-rpFC83GL.js";import{C as d,b as c,i as f,h as l}from"./p-AyLerOda.js";import{J as r}from"./p-CWnGGCoB.js";import{c as h}from"./p-BSvONk1S.js";import"./p-DVJaoI_m.js";import{b as o,d as b,s as p}from"./p-Ds_P-dB8.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{P as n,M as m}from"./p-D1_eip6x.js";import{a as y,b as u,D as v,c as k,C,E as j}from"./p-Cu7hgXL1.js";import{S as g}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import{S as w}from"./p-uZ5KAseb.js";import{a as D,B as P}from"./p-CHw7tICr.js";import"./p-WJlbuZRF.js";import"./p-BmY4mdZN.js";import"./p-HXpYMWUU.js";import"./p-CXZRiaUw.js";import"./p-D8GTwl9v.js";import"./p-CPKMvyV_.js";const x=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(w,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(w,{width:"70%"})),e("div",{class:"col-12"},e(w,{width:"40%"})),e("div",{class:"col-12"},e(w,{width:"40%"})),e("div",{class:"col-12"},e(w,{width:"100%"})),e("div",{class:"col-12"},e(w,{width:"80%"}))),A=class{constructor(e){t(this,e),this.errorEvent=a(this,"error-event",7),this.recordClickEvent=a(this,"record-click-event",7),this.loading=!0}componentWillLoad(){h(),this.analytics=new r(this),this.initializeGetPaymentDetails()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?(this.getPaymentDetails=i({id:this.paymentId,authToken:this.authToken,service:new s}),this.fetchData()):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:c.MISSING_PROPS,severity:d.ERROR}))}updateOnPropChange(){this.getPaymentDetails&&this.fetchData()}fetchData(){this.loading=!0,this.getPaymentDetails({onSuccess:({payment:e})=>{this.payment=e,this.errorMessage=null},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({errorCode:t,message:e,severity:a})},final:()=>{this.loading=!1}})}get PaymentStatus(){return this.payment.status===f.disputed&&this.payment.disputes.some((e=>e.status===l.lost))?n.DISPUTE_LOST:this.payment.status}render(){return e(g,{key:"f304cb665f17ce96b6d97a38d94907629f559413"},this.loading&&e(x,{key:"709acde31230bd9e825e4e9669234492aff3cc3a"}),!this.loading&&this.errorMessage&&j(this.errorMessage),!this.loading&&!this.errorMessage&&this.payment&&e("justifi-details",{key:"09a4a2559fb89a5b4b57d81b0fd48952c219d348",errorMessage:this.errorMessage},e(y,{key:"7cbfece91ce9e5fab75d561ad369080ecbe76fa4",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},m(this.PaymentStatus),this.payment.expedited?e(D,{variant:P.WARNING,title:"Expedited",text:"Expedited"}):null),title:this.payment.formattedPaymentAmount(this.payment.amount)},e(u,{key:"4aa014d77def141d2053c3745b8215cc03a53ac7",classes:"border-1 border-end",title:"Updated At",value:`${o(this.payment.updated_at)} ${b(this.payment.updated_at)}`}),e(u,{key:"f344398f4fd4db6e1e7ca1335c3aa55630668475",classes:"border-1 border-end",title:"Created At",value:`${o(this.payment.created_at)} ${b(this.payment.created_at)}`}),e(u,{key:"a01e5a04400b996cfb2a9e563c8f383b8e8d7c66",title:"ID",value:this.payment.id})),e("div",{key:"ef0c63d53031dfa8910dfbdedede1e20ac09e78a",slot:"detail-sections"},e(v,{key:"5053784a7e3bd8932562a816921564aadd6d79c8",sectionTitle:"Details"}),e("div",{key:"43c56ee5a39589ea7a0107f32e274be439adf33a",class:"d-flex flex-column gap-2 w-100"},e(k,{key:"fcee2dd211c9bf951cdd6855ac3fa844632391ce",title:"Amount",value:this.payment.formattedPaymentAmount(this.payment.amount)}),e(k,{key:"44d055f3445f02feaeb4519b5f4777333089a8c6",title:"Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(k,{key:"906b584174bd5c329974274a2f1e1ef7e9e8fde0",title:"Refunded",value:this.payment.formattedPaymentAmount(this.payment.amount_refunded)}),e(k,{key:"809429e88eac8ebe8142bb0028f8b86447977697",title:"Net",value:this.payment.formattedPaymentAmount(this.payment.balance)}),e(k,{key:"e08c02efc64f105ce3180e9773584a331ae19a9b",title:"Status",value:m(this.PaymentStatus)}),e(k,{key:"fbb910b7006f9d4bff9b14ffd4fc2f7da8b68020",title:"Payment ID",value:this.payment.id}),e(k,{key:"09fefc2d1a750ab2f5dfb2043db08d5f16d6d9aa",title:"Processing Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(k,{key:"1d96f4557823f1d82d5c6e0e46a984c13c6f018b",title:"Statement Descriptor",value:this.payment.statement_descriptor}),e(k,{key:"51bfae7ef30f36c99c0fa1b25dc5397720ef88ff",title:"Description",value:this.payment.description}),e(k,{key:"5c44b3d40bfe6b2fbf258fee90f55ff24d0b3c28",title:"Expedited",value:this.payment.expedited?"Yes":"No"})),this.payment.payment_method.card&&[e(v,{key:"3d652ba331824448b7e7af969b2ead216f358e28",sectionTitle:"Payment Method"}),e("div",{key:"49ad00ec9d703d196a025fa17b03f4af7cdc4dc5",class:"d-flex flex-column gap-2 w-100"},e(k,{key:"2b1b3f57e74fd65dc4b82d727a94afbe14803c52",title:"ID",value:this.payment.payment_method.card.id}),e(k,{key:"b23d5263566ff11d469dea9a245d20a7689540f8",title:"Payment Type",value:"Card"}),e(k,{key:"f5f76d6d9ac609884aac18fe2743d4fad2192b86",title:"Last 4 Numbers",value:this.payment.payment_method.lastFourDigits}),e(k,{key:"22f296966b6f1aaf516b1d70144cff4f59b82c05",title:"Brand",value:p(this.payment.payment_method.card.brand)}),e(k,{key:"d7dcd0f7a74ed2cc5ba6406a7d48522ca06a7546",title:"Cardholder",value:this.payment.payment_method.payersName}))],this.payment.payment_method.bank_account&&[e(v,{key:"37a2a20c462cb94baa01ca7763d43ced04b4543c",sectionTitle:"Payment Method"}),e("div",{key:"f6de7746d5ff64d27368edef51b3c4e0ff7c658b",class:"d-flex flex-column gap-2 w-100"},e(k,{key:"34e9b26c6d20e9b5e86e4cc11fb925ff1ef5ce94",title:"ID",value:this.payment.payment_method.bank_account.id}),e(k,{key:"32cd6da4d7234aca403bd699de23e1cf889bf14f",title:"Last 4 Numbers",value:this.payment.last_four_digits}),e(k,{key:"f1313ac7c15d5ae2d9dfa2b6d3ec794d0987252b",title:"Bank Name",value:this.payment.payment_method.bank_account.brand}),e(k,{key:"76d1ac1961e530a7a6e1ba5512b982cd70df9470",title:"Account Owner",value:this.payment.payment_method.payersName}))],this.payment.metadata&&[e(v,{key:"1cff262d07acda5bc742f325a23f4199c22f3a01",sectionTitle:"Metadata"}),e("div",{key:"77379785d2559d39a26a253757fdaf02795c53a1",class:"d-table gap-2 w-100"},e(C,{key:"92cb32f3dd6b45094210194e2e40927d7f9d6bde",metadata:this.payment.metadata}))])))}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"],getPaymentDetails:["updateOnPropChange"]}}};export{A as justifi_payment_details}