@justifi/webcomponents 6.14.2 → 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 (174) hide show
  1. package/dist/cjs/{Analytics-DJPMbMbv.js → Analytics-CBiQK20S.js} +2 -2
  2. package/dist/cjs/{Api-CWefpIil.js → Api-ITroQ-Qg.js} +1 -1
  3. package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +124 -128
  4. package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
  5. package/dist/cjs/{business.service-Btc3igIf.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-DlSI1kl_.js → check-pkg-version-Ijgd8_6m.js} +1 -1
  8. package/dist/cjs/{checkout.service-aE0MUgi0.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-B6Jtb7DE.js → event-types-NzIs_zS2.js} +1 -1
  11. package/dist/cjs/{get-subaccounts-3wzjJVTw.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 +6 -6
  14. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +4 -4
  15. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +4 -4
  16. package/dist/cjs/justifi-business-details.cjs.entry.js +5 -5
  17. package/dist/cjs/justifi-business-form.cjs.entry.js +5 -5
  18. package/dist/cjs/justifi-card-form.cjs.entry.js +4 -4
  19. package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +4 -4
  20. package/dist/cjs/justifi-checkout.cjs.entry.js +4 -4
  21. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +6 -6
  22. package/dist/cjs/justifi-dispute-management.cjs.entry.js +5 -5
  23. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -4
  24. package/dist/cjs/justifi-order-terminals.cjs.entry.js +6 -6
  25. package/dist/cjs/justifi-payment-details.cjs.entry.js +5 -5
  26. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -5
  27. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +5 -5
  28. package/dist/cjs/justifi-payments-list.cjs.entry.js +5 -5
  29. package/dist/cjs/justifi-payout-details.cjs.entry.js +5 -5
  30. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +5 -5
  31. package/dist/cjs/justifi-payouts-list.cjs.entry.js +6 -6
  32. package/dist/cjs/justifi-qr-terminal.cjs.entry.js +5 -5
  33. package/dist/cjs/justifi-refund-payment.cjs.entry.js +5 -5
  34. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +4 -4
  35. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +4 -4
  36. package/dist/cjs/justifi-terminals-list.cjs.entry.js +6 -6
  37. package/dist/cjs/{package-C7751f89.js → package-D_dxBnW3.js} +1 -1
  38. package/dist/cjs/{payment.service-DmMFMfcK.js → payment.service-DzCk-u8-.js} +1 -1
  39. package/dist/cjs/{payout.service-BfNHx5R6.js → payout.service-DQMp2E-M.js} +1 -1
  40. package/dist/cjs/{plaid.service-CEvUGRzG.js → plaid.service-DobTNSxz.js} +1 -1
  41. package/dist/cjs/{terminal.service-gw27l_WB.js → terminal.service-DMYipLNi.js} +1 -1
  42. package/dist/collection/api/ComponentEvents.js +17 -1
  43. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/additional-questions-form-step.js +16 -19
  44. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +15 -18
  45. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +16 -19
  46. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +16 -19
  47. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +16 -18
  48. package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-form-step.js +15 -18
  49. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +16 -19
  50. package/dist/docs.json +1 -1
  51. package/dist/esm/{Analytics--JHkQ3i7.js → Analytics-ru8vB8qb.js} +2 -2
  52. package/dist/esm/{Api-DO3CyWlf.js → Api-7JrBn4d6.js} +1 -1
  53. package/dist/esm/additional-questions-form-step_15.entry.js +124 -128
  54. package/dist/esm/bank-account-form.entry.js +2 -2
  55. package/dist/esm/{business.service-DaDBcMxj.js → business.service-CR9Dcsks.js} +1 -1
  56. package/dist/esm/card-form.entry.js +2 -2
  57. package/dist/esm/{check-pkg-version-DVn7t48L.js → check-pkg-version-BaPcn-Te.js} +1 -1
  58. package/dist/esm/{checkout.service-CF6UhsmG.js → checkout.service-BsrkzNvN.js} +1 -1
  59. package/dist/esm/dispute-notification_2.entry.js +5 -5
  60. package/dist/esm/{event-types-D2B6cJBU.js → event-types-CkRe9UDl.js} +1 -1
  61. package/dist/esm/{get-subaccounts-BlEszlFD.js → get-subaccounts-OY5uSEGM.js} +1 -1
  62. package/dist/esm/hidden-input_2.entry.js +1 -1
  63. package/dist/esm/justifi-apple-pay_11.entry.js +6 -6
  64. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +4 -4
  65. package/dist/esm/justifi-bank-account-form.entry.js +4 -4
  66. package/dist/esm/justifi-business-details.entry.js +5 -5
  67. package/dist/esm/justifi-business-form.entry.js +5 -5
  68. package/dist/esm/justifi-card-form.entry.js +4 -4
  69. package/dist/esm/justifi-checkout-qr-code.entry.js +4 -4
  70. package/dist/esm/justifi-checkout.entry.js +4 -4
  71. package/dist/esm/justifi-checkouts-list.entry.js +6 -6
  72. package/dist/esm/justifi-dispute-management.entry.js +5 -5
  73. package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
  74. package/dist/esm/justifi-order-terminals.entry.js +6 -6
  75. package/dist/esm/justifi-payment-details.entry.js +5 -5
  76. package/dist/esm/justifi-payment-provisioning.entry.js +5 -5
  77. package/dist/esm/justifi-payment-transactions-list.entry.js +5 -5
  78. package/dist/esm/justifi-payments-list.entry.js +5 -5
  79. package/dist/esm/justifi-payout-details.entry.js +5 -5
  80. package/dist/esm/justifi-payout-transactions-list.entry.js +5 -5
  81. package/dist/esm/justifi-payouts-list.entry.js +6 -6
  82. package/dist/esm/justifi-qr-terminal.entry.js +5 -5
  83. package/dist/esm/justifi-refund-payment.entry.js +5 -5
  84. package/dist/esm/justifi-season-interruption-insurance.entry.js +4 -4
  85. package/dist/esm/justifi-terminal-orders-list.entry.js +4 -4
  86. package/dist/esm/justifi-terminals-list.entry.js +6 -6
  87. package/dist/esm/{package-7CozhRqW.js → package-BmY4mdZN.js} +1 -1
  88. package/dist/esm/{payment.service-HjulQqVe.js → payment.service-s-CoA47b.js} +1 -1
  89. package/dist/esm/{payout.service-DJoSdAyh.js → payout.service-CwsSsd0U.js} +1 -1
  90. package/dist/esm/{plaid.service-DtWlggP3.js → plaid.service-D_D6sUFJ.js} +1 -1
  91. package/dist/esm/{terminal.service-BWH0XNZn.js → terminal.service-D5sQPp7g.js} +1 -1
  92. package/dist/module/Plaid.js +1 -1
  93. package/dist/module/additional-questions-form-step2.js +16 -20
  94. package/dist/module/business-bank-account-form-step2.js +16 -19
  95. package/dist/module/business-core-info-form-step2.js +16 -20
  96. package/dist/module/business-owners-form-step2.js +16 -20
  97. package/dist/module/business-representative-form-step2.js +17 -20
  98. package/dist/module/business-terms-conditions-form-step2.js +1 -1
  99. package/dist/module/dispute-response2.js +1 -1
  100. package/dist/module/document-upload-form-step2.js +16 -19
  101. package/dist/module/justifi-business-details.js +1 -1
  102. package/dist/module/justifi-business-form.js +1 -1
  103. package/dist/module/justifi-checkout-qr-code2.js +1 -1
  104. package/dist/module/justifi-checkouts-list.js +1 -1
  105. package/dist/module/justifi-dispute-management.js +1 -1
  106. package/dist/module/justifi-gross-payment-chart.js +1 -1
  107. package/dist/module/justifi-modular-checkout2.js +1 -1
  108. package/dist/module/justifi-order-terminals.js +1 -1
  109. package/dist/module/justifi-payment-details.js +1 -1
  110. package/dist/module/justifi-payment-provisioning.js +1 -1
  111. package/dist/module/justifi-payment-transactions-list.js +1 -1
  112. package/dist/module/justifi-payments-list.js +1 -1
  113. package/dist/module/justifi-payout-details.js +1 -1
  114. package/dist/module/justifi-payout-transactions-list.js +1 -1
  115. package/dist/module/justifi-payouts-list.js +1 -1
  116. package/dist/module/justifi-plaid-payment-method2.js +1 -1
  117. package/dist/module/justifi-qr-terminal.js +1 -1
  118. package/dist/module/justifi-refund-payment.js +1 -1
  119. package/dist/module/justifi-season-interruption-insurance.js +1 -1
  120. package/dist/module/justifi-terminal-orders-list.js +1 -1
  121. package/dist/module/justifi-terminals-list.js +1 -1
  122. package/dist/module/justifi-tokenize-payment-method2.js +1 -1
  123. package/dist/module/legal-address-form-step2.js +16 -20
  124. package/dist/module/package.js +1 -1
  125. package/dist/module/payment-provisioning-loading.js +19 -1
  126. package/dist/module/plaid-verification2.js +1 -1
  127. package/dist/module/utils3.js +1 -1
  128. package/dist/types/api/ComponentEvents.d.ts +2 -0
  129. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +3 -3
  130. package/dist/webcomponents/{p-1a77125d.entry.js → p-0019df0b.entry.js} +1 -1
  131. package/dist/webcomponents/{p-ac580701.entry.js → p-08823a4a.entry.js} +1 -1
  132. package/dist/webcomponents/{p-f7af1bab.entry.js → p-17806b1a.entry.js} +1 -1
  133. package/dist/webcomponents/{p-6187efab.entry.js → p-18066ad4.entry.js} +1 -1
  134. package/dist/webcomponents/{p-e01767e7.entry.js → p-1da47bad.entry.js} +1 -1
  135. package/dist/webcomponents/{p-8f457cf7.entry.js → p-1e458958.entry.js} +1 -1
  136. package/dist/webcomponents/{p-f1a57993.entry.js → p-1e4c4b66.entry.js} +1 -1
  137. package/dist/webcomponents/{p-d9f6bbda.entry.js → p-21674cdb.entry.js} +1 -1
  138. package/dist/webcomponents/{p-265ccfc0.entry.js → p-220691ad.entry.js} +1 -1
  139. package/dist/webcomponents/{p-780f9fbb.entry.js → p-2926e9f7.entry.js} +1 -1
  140. package/dist/webcomponents/{p-0608134b.entry.js → p-31090560.entry.js} +1 -1
  141. package/dist/webcomponents/{p-b2a0088d.entry.js → p-3a723fa1.entry.js} +1 -1
  142. package/dist/webcomponents/{p-3b9e8ee7.entry.js → p-45c05453.entry.js} +1 -1
  143. package/dist/webcomponents/p-5daa1e58.entry.js +1 -0
  144. package/dist/webcomponents/{p-7c55a751.entry.js → p-7046686a.entry.js} +1 -1
  145. package/dist/webcomponents/{p-064a88df.entry.js → p-7cd4ce1f.entry.js} +1 -1
  146. package/dist/webcomponents/{p-cf36e096.entry.js → p-8252a23b.entry.js} +1 -1
  147. package/dist/webcomponents/{p-79fa938e.entry.js → p-87c50070.entry.js} +1 -1
  148. package/dist/webcomponents/{p-d69f2bbe.entry.js → p-9551b11e.entry.js} +1 -1
  149. package/dist/webcomponents/{p-IJ7Rw9vH.js → p-BBn_-9nI.js} +1 -1
  150. package/dist/webcomponents/{p-CIhCDKOZ.js → p-BDGCS3ww.js} +1 -1
  151. package/dist/webcomponents/{p-DD7TDYNC.js → p-BSvONk1S.js} +1 -1
  152. package/dist/webcomponents/{p-SBHhoQBp.js → p-BWJBtO9q.js} +1 -1
  153. package/dist/webcomponents/p-BmY4mdZN.js +1 -0
  154. package/dist/webcomponents/{p-CQ4GuDeP.js → p-CWnGGCoB.js} +1 -1
  155. package/dist/webcomponents/{p-D8ToCTET.js → p-CqEly_AV.js} +1 -1
  156. package/dist/webcomponents/{p-BUbPLCU2.js → p-CqS9uUYr.js} +1 -1
  157. package/dist/webcomponents/{p-qnckrGFg.js → p-DAvw3oWq.js} +1 -1
  158. package/dist/webcomponents/{p-DFvpZcc6.js → p-DsbNHsF7.js} +1 -1
  159. package/dist/webcomponents/{p-BId9Ohhv.js → p-WJlbuZRF.js} +1 -1
  160. package/dist/webcomponents/{p-BSPLko2T.js → p-Y2iBsvwn.js} +1 -1
  161. package/dist/webcomponents/{p-63ba7b99.entry.js → p-a6526002.entry.js} +1 -1
  162. package/dist/webcomponents/{p-7b1e0e37.entry.js → p-c851ae4f.entry.js} +1 -1
  163. package/dist/webcomponents/{p-5f4809af.entry.js → p-d4157eb2.entry.js} +1 -1
  164. package/dist/webcomponents/{p-e77ebab9.entry.js → p-d4712e79.entry.js} +1 -1
  165. package/dist/webcomponents/{p-a4eaaaec.entry.js → p-deb20bae.entry.js} +1 -1
  166. package/dist/webcomponents/{p-84030b4a.entry.js → p-e8917d14.entry.js} +1 -1
  167. package/dist/webcomponents/{p-d2e843b3.entry.js → p-f373d313.entry.js} +1 -1
  168. package/dist/webcomponents/{p-02423342.entry.js → p-f4ce1bf4.entry.js} +1 -1
  169. package/dist/webcomponents/{p-043899e7.entry.js → p-f7ddb952.entry.js} +1 -1
  170. package/dist/webcomponents/{p-44ffdbec.entry.js → p-f7ed42be.entry.js} +1 -1
  171. package/dist/webcomponents/webcomponents.esm.js +1 -1
  172. package/package.json +1 -1
  173. package/dist/webcomponents/p-7CozhRqW.js +0 -1
  174. package/dist/webcomponents/p-8cba3a46.entry.js +0 -1
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
- import { ComponentErrorCodes, ComponentErrorSeverity } from "../../../../api/ComponentError";
3
2
  import { makeGetBusiness, makePatchBusiness } from "../payment-provisioning-actions";
4
3
  import { BusinessService } from "../../../../api/services/business.service";
4
+ import { validateRequiredProps } from "../../../../api/ComponentEvents";
5
5
  import { CountryCode } from "../../../../utils/country-codes";
6
6
  import { businessCoreInfoSchemaUSA, businessCoreInfoSchemaCAN } from "../../schemas/business-core-info-schema";
7
7
  import { FormController } from "../../../../ui-components/form/form";
@@ -102,25 +102,22 @@ export class BusinessCoreInfoFormStep {
102
102
  });
103
103
  }
104
104
  initializeApi() {
105
- if (this.authToken && this.businessId) {
106
- this.getBusiness = makeGetBusiness({
107
- authToken: this.authToken,
108
- businessId: this.businessId,
109
- service: new BusinessService()
110
- });
111
- this.patchBusiness = makePatchBusiness({
112
- authToken: this.authToken,
113
- businessId: this.businessId,
114
- service: new BusinessService()
115
- });
116
- }
117
- else {
118
- this.errorEvent.emit({
119
- message: 'Missing required props',
120
- errorCode: ComponentErrorCodes.MISSING_PROPS,
121
- severity: ComponentErrorSeverity.ERROR,
122
- });
105
+ if (!validateRequiredProps(this.errorEvent, {
106
+ 'auth-token': this.authToken,
107
+ 'business-id': this.businessId,
108
+ })) {
109
+ return;
123
110
  }
111
+ this.getBusiness = makeGetBusiness({
112
+ authToken: this.authToken,
113
+ businessId: this.businessId,
114
+ service: new BusinessService()
115
+ });
116
+ this.patchBusiness = makePatchBusiness({
117
+ authToken: this.authToken,
118
+ businessId: this.businessId,
119
+ service: new BusinessService()
120
+ });
124
121
  }
125
122
  render() {
126
123
  var _a, _b;
@@ -1,7 +1,7 @@
1
1
  import { Host, h } from "@stencil/core";
2
- import { ComponentErrorCodes, ComponentErrorSeverity } from "../../../../api/ComponentError";
3
2
  import { makeGetBusiness, makePatchBusiness } from "../payment-provisioning-actions";
4
3
  import { BusinessService } from "../../../../api/services/business.service";
4
+ import { validateRequiredProps } from "../../../../api/ComponentEvents";
5
5
  import { Button } from "../../../../ui-components";
6
6
  import { heading2, alert } from "../../../../styles/parts";
7
7
  import { PaymentProvisioningLoading } from "../payment-provisioning-loading";
@@ -162,25 +162,22 @@ export class BusinessOwnersFormStep {
162
162
  }
163
163
  }
164
164
  initializeApi() {
165
- if (this.authToken && this.businessId) {
166
- this.getBusiness = makeGetBusiness({
167
- authToken: this.authToken,
168
- businessId: this.businessId,
169
- service: new BusinessService()
170
- });
171
- this.patchBusiness = makePatchBusiness({
172
- authToken: this.authToken,
173
- businessId: this.businessId,
174
- service: new BusinessService()
175
- });
176
- }
177
- else {
178
- this.errorEvent.emit({
179
- message: 'Missing required props',
180
- errorCode: ComponentErrorCodes.MISSING_PROPS,
181
- severity: ComponentErrorSeverity.ERROR,
182
- });
165
+ if (!validateRequiredProps(this.errorEvent, {
166
+ 'auth-token': this.authToken,
167
+ 'business-id': this.businessId,
168
+ })) {
169
+ return;
183
170
  }
171
+ this.getBusiness = makeGetBusiness({
172
+ authToken: this.authToken,
173
+ businessId: this.businessId,
174
+ service: new BusinessService()
175
+ });
176
+ this.patchBusiness = makePatchBusiness({
177
+ authToken: this.authToken,
178
+ businessId: this.businessId,
179
+ service: new BusinessService()
180
+ });
184
181
  }
185
182
  ownersWatcher() {
186
183
  this.manageRefs();
@@ -4,6 +4,7 @@ import { makeGetBusiness, makePatchBusiness } from "../payment-provisioning-acti
4
4
  import { BusinessService } from "../../../../api/services/business.service";
5
5
  import { Representative } from "../../../../api/Identity";
6
6
  import { FormController } from "../../../../ui-components/form/form";
7
+ import { validateRequiredProps } from "../../../../api/ComponentEvents";
7
8
  import { identitySchemaByCountry } from "../../schemas/business-identity-schema";
8
9
  import { PaymentProvisioningLoading } from "../payment-provisioning-loading";
9
10
  import { BusinessFormStep } from "../../utils";
@@ -72,25 +73,22 @@ export class BusinessRepresentativeFormStep {
72
73
  this.initializeForm();
73
74
  }
74
75
  initializeApi() {
75
- if (this.authToken && this.businessId) {
76
- this.getBusiness = makeGetBusiness({
77
- authToken: this.authToken,
78
- businessId: this.businessId,
79
- service: new BusinessService()
80
- });
81
- this.patchBusiness = makePatchBusiness({
82
- authToken: this.authToken,
83
- businessId: this.businessId,
84
- service: new BusinessService()
85
- });
86
- }
87
- else {
88
- this.errorEvent.emit({
89
- message: 'Missing required props',
90
- errorCode: ComponentErrorCodes.MISSING_PROPS,
91
- severity: ComponentErrorSeverity.ERROR,
92
- });
76
+ if (!validateRequiredProps(this.errorEvent, {
77
+ 'auth-token': this.authToken,
78
+ 'business-id': this.businessId,
79
+ })) {
80
+ return;
93
81
  }
82
+ this.getBusiness = makeGetBusiness({
83
+ authToken: this.authToken,
84
+ businessId: this.businessId,
85
+ service: new BusinessService()
86
+ });
87
+ this.patchBusiness = makePatchBusiness({
88
+ authToken: this.authToken,
89
+ businessId: this.businessId,
90
+ service: new BusinessService()
91
+ });
94
92
  }
95
93
  initializeForm() {
96
94
  const schemaFactory = identitySchemaByCountry[this.country];
@@ -1,5 +1,5 @@
1
1
  import { h } from "@stencil/core";
2
- import { ComponentErrorCodes, ComponentErrorSeverity, EntityDocument, } from "../../../../api";
2
+ import { ComponentErrorCodes, ComponentErrorSeverity, validateRequiredProps, EntityDocument, } from "../../../../api";
3
3
  import { makeGetBusiness, makePostDocumentRecord } from "../payment-provisioning-actions";
4
4
  import { BusinessService, DocumentRecordService } from "../../../../api/services/business.service";
5
5
  import { CountryCode } from "../../../../utils/country-codes";
@@ -163,24 +163,21 @@ export class DocumentUploadFormStep {
163
163
  }
164
164
  }
165
165
  initializeApi() {
166
- if (this.authToken && this.businessId) {
167
- this.getBusiness = makeGetBusiness({
168
- authToken: this.authToken,
169
- businessId: this.businessId,
170
- service: new BusinessService()
171
- });
172
- this.postDocumentRecord = makePostDocumentRecord({
173
- authToken: this.authToken,
174
- service: new DocumentRecordService()
175
- });
176
- }
177
- else {
178
- this.errorEvent.emit({
179
- message: 'Missing required props',
180
- errorCode: ComponentErrorCodes.MISSING_PROPS,
181
- severity: ComponentErrorSeverity.ERROR,
182
- });
166
+ if (!validateRequiredProps(this.errorEvent, {
167
+ 'auth-token': this.authToken,
168
+ 'business-id': this.businessId,
169
+ })) {
170
+ return;
183
171
  }
172
+ this.getBusiness = makeGetBusiness({
173
+ authToken: this.authToken,
174
+ businessId: this.businessId,
175
+ service: new BusinessService()
176
+ });
177
+ this.postDocumentRecord = makePostDocumentRecord({
178
+ authToken: this.authToken,
179
+ service: new DocumentRecordService()
180
+ });
184
181
  }
185
182
  get categoryOptions() {
186
183
  return [
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
- import { ComponentErrorCodes, ComponentErrorSeverity } from "../../../../api/ComponentError";
3
2
  import { makeGetBusiness, makePatchBusiness } from "../payment-provisioning-actions";
4
3
  import { BusinessService } from "../../../../api/services/business.service";
4
+ import { validateRequiredProps } from "../../../../api/ComponentEvents";
5
5
  import { addressSchemaByCountry } from "../../schemas/business-address-schema";
6
6
  import { FormController } from "../../../../ui-components/form/form";
7
7
  import { Address } from "../../../../api/Business";
@@ -87,25 +87,22 @@ export class LegalAddressFormStep {
87
87
  });
88
88
  }
89
89
  initializeApi() {
90
- if (this.authToken && this.businessId) {
91
- this.getBusiness = makeGetBusiness({
92
- authToken: this.authToken,
93
- businessId: this.businessId,
94
- service: new BusinessService()
95
- });
96
- this.patchBusiness = makePatchBusiness({
97
- authToken: this.authToken,
98
- businessId: this.businessId,
99
- service: new BusinessService()
100
- });
101
- }
102
- else {
103
- this.errorEvent.emit({
104
- message: 'Missing required props',
105
- errorCode: ComponentErrorCodes.MISSING_PROPS,
106
- severity: ComponentErrorSeverity.ERROR,
107
- });
90
+ if (!validateRequiredProps(this.errorEvent, {
91
+ 'auth-token': this.authToken,
92
+ 'business-id': this.businessId,
93
+ })) {
94
+ return;
108
95
  }
96
+ this.getBusiness = makeGetBusiness({
97
+ authToken: this.authToken,
98
+ businessId: this.businessId,
99
+ service: new BusinessService()
100
+ });
101
+ this.patchBusiness = makePatchBusiness({
102
+ authToken: this.authToken,
103
+ businessId: this.businessId,
104
+ service: new BusinessService()
105
+ });
109
106
  }
110
107
  render() {
111
108
  var _a;
package/dist/docs.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2026-06-22T18:37:48",
2
+ "timestamp": "2026-07-01T14:34:08",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.38.3",
@@ -1,5 +1,5 @@
1
- import { p as packageJson } from './package-7CozhRqW.js';
2
- import { A as Api } from './Api-DO3CyWlf.js';
1
+ import { p as packageJson } from './package-BmY4mdZN.js';
2
+ import { A as Api } from './Api-7JrBn4d6.js';
3
3
  import './Plaid-D389VmvK.js';
4
4
  import './Pagination-CLHwhyvu.js';
5
5
  import './Business-BcNb9bVO.js';
@@ -1,6 +1,6 @@
1
1
  import { w as waitForConfig, c as configState } from './config-state-kKn89dp1.js';
2
2
  import { g as generateId } from './utils-D8J8OvxY.js';
3
- import { p as packageJson } from './package-7CozhRqW.js';
3
+ import { p as packageJson } from './package-BmY4mdZN.js';
4
4
 
5
5
  const Api = () => {
6
6
  async function getAuthorizationHeader(authToken) {
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-CV0Pyo1O.js';
2
2
  import { C as ComponentErrorSeverity, b as ComponentErrorCodes, B as EntityDocument, x as PLAID_ERROR_SEVERITY, y as PLAID_ERROR_MESSAGES, z as PlaidErrorCodes } from './Plaid-D389VmvK.js';
3
3
  import { m as makeGetBusiness, a as makePatchBusiness, c as makePostBankAccount, d as makePostDocumentRecord, e as makeGetIdentity, f as makePatchIdentity, g as makePostIdentity } from './payment-provisioning-actions-BJYx_JgF.js';
4
- import { B as BusinessService, a as BusinessBankAccountService, D as DocumentRecordService, I as IdentityService } from './business.service-DaDBcMxj.js';
4
+ import { B as BusinessService, a as BusinessBankAccountService, D as DocumentRecordService, I as IdentityService } from './business.service-CR9Dcsks.js';
5
5
  import { a as additionalQuestionsSchema, d as businessCoreInfoSchemaCAN, b as businessCoreInfoSchemaUSA, g as identitySchemaByCountry, h as addressSchemaByCountry } from './business-identity-schema-CXfLi-Wi.js';
6
6
  import { F as FormController, c as create$3, a as create$6, b as create$7 } from './index.esm-KCSohgHx.js';
7
7
  import { A as AdditionalQuestions, C as CountryCode, e as CoreBusinessInfo, R as Representative, f as Address, O as Owner } from './Business-BcNb9bVO.js';
@@ -21,13 +21,30 @@ import { c as countryLabels } from './country-config-CEJVOOGe.js';
21
21
  import { s as snakeCaseToHumanReadable, b as formatDate, d as formatTime } from './utils-D8J8OvxY.js';
22
22
  import { S as Skeleton } from './skeleton-BEHo2ypu.js';
23
23
  import { u as updateFormValues, a as updateAddressFormValues, b as updateDateOfBirthFormValues } from './input-handlers-1lVyzImK.js';
24
- import { A as Api } from './Api-DO3CyWlf.js';
24
+ import { A as Api } from './Api-7JrBn4d6.js';
25
25
  import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
26
- import { P as PlaidService } from './plaid.service-DtWlggP3.js';
26
+ import { P as PlaidService } from './plaid.service-D_D6sUFJ.js';
27
27
  import './utils-BdBZQD1G.js';
28
28
  import './_commonjsHelpers-BFTU3MAI.js';
29
29
  import './index-cDVGjRkU.js';
30
- import './package-7CozhRqW.js';
30
+ import './package-BmY4mdZN.js';
31
+
32
+ // Emits a MISSING_PROPS error naming each falsy prop. Returns true when all props are present.
33
+ // `props` keys are the public attribute names, e.g. { 'auth-token': this.authToken }.
34
+ function validateRequiredProps(errorEvent, props) {
35
+ const missingProps = Object.entries(props)
36
+ .filter(([, value]) => !value)
37
+ .map(([name]) => name);
38
+ if (missingProps.length) {
39
+ errorEvent.emit({
40
+ message: `Missing required props: ${missingProps.join(', ')}`,
41
+ errorCode: ComponentErrorCodes.MISSING_PROPS,
42
+ severity: ComponentErrorSeverity.ERROR,
43
+ });
44
+ return false;
45
+ }
46
+ return true;
47
+ }
31
48
 
32
49
  class BankAccount {
33
50
  constructor(data) {
@@ -154,25 +171,22 @@ const AdditionalQuestionsFormStep = class {
154
171
  });
155
172
  }
156
173
  initializeApi() {
157
- if (this.authToken && this.businessId) {
158
- this.getBusiness = makeGetBusiness({
159
- authToken: this.authToken,
160
- businessId: this.businessId,
161
- service: new BusinessService()
162
- });
163
- this.patchBusiness = makePatchBusiness({
164
- authToken: this.authToken,
165
- businessId: this.businessId,
166
- service: new BusinessService()
167
- });
168
- }
169
- else {
170
- this.errorEvent.emit({
171
- message: 'Missing required props',
172
- errorCode: ComponentErrorCodes.MISSING_PROPS,
173
- severity: ComponentErrorSeverity.ERROR,
174
- });
174
+ if (!validateRequiredProps(this.errorEvent, {
175
+ 'auth-token': this.authToken,
176
+ 'business-id': this.businessId,
177
+ })) {
178
+ return;
175
179
  }
180
+ this.getBusiness = makeGetBusiness({
181
+ authToken: this.authToken,
182
+ businessId: this.businessId,
183
+ service: new BusinessService()
184
+ });
185
+ this.patchBusiness = makePatchBusiness({
186
+ authToken: this.authToken,
187
+ businessId: this.businessId,
188
+ service: new BusinessService()
189
+ });
176
190
  }
177
191
  render() {
178
192
  var _a, _b, _c, _d, _e;
@@ -364,24 +378,21 @@ const BusinessBankAccountFormStep = class {
364
378
  });
365
379
  }
366
380
  initializeApi() {
367
- if (this.authToken && this.businessId) {
368
- this.getBusiness = makeGetBusiness({
369
- authToken: this.authToken,
370
- businessId: this.businessId,
371
- service: new BusinessService()
372
- });
373
- this.postBankAccount = makePostBankAccount({
374
- authToken: this.authToken,
375
- service: new BusinessBankAccountService()
376
- });
377
- }
378
- else {
379
- this.errorEvent.emit({
380
- message: 'Missing required props',
381
- errorCode: ComponentErrorCodes.MISSING_PROPS,
382
- severity: ComponentErrorSeverity.ERROR,
383
- });
381
+ if (!validateRequiredProps(this.errorEvent, {
382
+ 'auth-token': this.authToken,
383
+ 'business-id': this.businessId,
384
+ })) {
385
+ return;
384
386
  }
387
+ this.getBusiness = makeGetBusiness({
388
+ authToken: this.authToken,
389
+ businessId: this.businessId,
390
+ service: new BusinessService()
391
+ });
392
+ this.postBankAccount = makePostBankAccount({
393
+ authToken: this.authToken,
394
+ service: new BusinessBankAccountService()
395
+ });
385
396
  }
386
397
  get postPayload() {
387
398
  const values = this.formController.values.getValue();
@@ -614,25 +625,22 @@ const BusinessCoreInfoFormStep = class {
614
625
  });
615
626
  }
616
627
  initializeApi() {
617
- if (this.authToken && this.businessId) {
618
- this.getBusiness = makeGetBusiness({
619
- authToken: this.authToken,
620
- businessId: this.businessId,
621
- service: new BusinessService()
622
- });
623
- this.patchBusiness = makePatchBusiness({
624
- authToken: this.authToken,
625
- businessId: this.businessId,
626
- service: new BusinessService()
627
- });
628
- }
629
- else {
630
- this.errorEvent.emit({
631
- message: 'Missing required props',
632
- errorCode: ComponentErrorCodes.MISSING_PROPS,
633
- severity: ComponentErrorSeverity.ERROR,
634
- });
628
+ if (!validateRequiredProps(this.errorEvent, {
629
+ 'auth-token': this.authToken,
630
+ 'business-id': this.businessId,
631
+ })) {
632
+ return;
635
633
  }
634
+ this.getBusiness = makeGetBusiness({
635
+ authToken: this.authToken,
636
+ businessId: this.businessId,
637
+ service: new BusinessService()
638
+ });
639
+ this.patchBusiness = makePatchBusiness({
640
+ authToken: this.authToken,
641
+ businessId: this.businessId,
642
+ service: new BusinessService()
643
+ });
636
644
  }
637
645
  render() {
638
646
  var _a, _b;
@@ -832,25 +840,22 @@ const BusinessOwnersFormStep = class {
832
840
  }
833
841
  }
834
842
  initializeApi() {
835
- if (this.authToken && this.businessId) {
836
- this.getBusiness = makeGetBusiness({
837
- authToken: this.authToken,
838
- businessId: this.businessId,
839
- service: new BusinessService()
840
- });
841
- this.patchBusiness = makePatchBusiness({
842
- authToken: this.authToken,
843
- businessId: this.businessId,
844
- service: new BusinessService()
845
- });
846
- }
847
- else {
848
- this.errorEvent.emit({
849
- message: 'Missing required props',
850
- errorCode: ComponentErrorCodes.MISSING_PROPS,
851
- severity: ComponentErrorSeverity.ERROR,
852
- });
843
+ if (!validateRequiredProps(this.errorEvent, {
844
+ 'auth-token': this.authToken,
845
+ 'business-id': this.businessId,
846
+ })) {
847
+ return;
853
848
  }
849
+ this.getBusiness = makeGetBusiness({
850
+ authToken: this.authToken,
851
+ businessId: this.businessId,
852
+ service: new BusinessService()
853
+ });
854
+ this.patchBusiness = makePatchBusiness({
855
+ authToken: this.authToken,
856
+ businessId: this.businessId,
857
+ service: new BusinessService()
858
+ });
854
859
  }
855
860
  ownersWatcher() {
856
861
  this.manageRefs();
@@ -975,25 +980,22 @@ const BusinessRepresentativeFormStep = class {
975
980
  this.initializeForm();
976
981
  }
977
982
  initializeApi() {
978
- if (this.authToken && this.businessId) {
979
- this.getBusiness = makeGetBusiness({
980
- authToken: this.authToken,
981
- businessId: this.businessId,
982
- service: new BusinessService()
983
- });
984
- this.patchBusiness = makePatchBusiness({
985
- authToken: this.authToken,
986
- businessId: this.businessId,
987
- service: new BusinessService()
988
- });
989
- }
990
- else {
991
- this.errorEvent.emit({
992
- message: 'Missing required props',
993
- errorCode: ComponentErrorCodes.MISSING_PROPS,
994
- severity: ComponentErrorSeverity.ERROR,
995
- });
983
+ if (!validateRequiredProps(this.errorEvent, {
984
+ 'auth-token': this.authToken,
985
+ 'business-id': this.businessId,
986
+ })) {
987
+ return;
996
988
  }
989
+ this.getBusiness = makeGetBusiness({
990
+ authToken: this.authToken,
991
+ businessId: this.businessId,
992
+ service: new BusinessService()
993
+ });
994
+ this.patchBusiness = makePatchBusiness({
995
+ authToken: this.authToken,
996
+ businessId: this.businessId,
997
+ service: new BusinessService()
998
+ });
997
999
  }
998
1000
  initializeForm() {
999
1001
  const schemaFactory = identitySchemaByCountry[this.country];
@@ -1395,24 +1397,21 @@ const DocumentUploadFormStep = class {
1395
1397
  }
1396
1398
  }
1397
1399
  initializeApi() {
1398
- if (this.authToken && this.businessId) {
1399
- this.getBusiness = makeGetBusiness({
1400
- authToken: this.authToken,
1401
- businessId: this.businessId,
1402
- service: new BusinessService()
1403
- });
1404
- this.postDocumentRecord = makePostDocumentRecord({
1405
- authToken: this.authToken,
1406
- service: new DocumentRecordService()
1407
- });
1408
- }
1409
- else {
1410
- this.errorEvent.emit({
1411
- message: 'Missing required props',
1412
- errorCode: ComponentErrorCodes.MISSING_PROPS,
1413
- severity: ComponentErrorSeverity.ERROR,
1414
- });
1400
+ if (!validateRequiredProps(this.errorEvent, {
1401
+ 'auth-token': this.authToken,
1402
+ 'business-id': this.businessId,
1403
+ })) {
1404
+ return;
1415
1405
  }
1406
+ this.getBusiness = makeGetBusiness({
1407
+ authToken: this.authToken,
1408
+ businessId: this.businessId,
1409
+ service: new BusinessService()
1410
+ });
1411
+ this.postDocumentRecord = makePostDocumentRecord({
1412
+ authToken: this.authToken,
1413
+ service: new DocumentRecordService()
1414
+ });
1416
1415
  }
1417
1416
  get categoryOptions() {
1418
1417
  return [
@@ -1577,25 +1576,22 @@ const LegalAddressFormStep = class {
1577
1576
  });
1578
1577
  }
1579
1578
  initializeApi() {
1580
- if (this.authToken && this.businessId) {
1581
- this.getBusiness = makeGetBusiness({
1582
- authToken: this.authToken,
1583
- businessId: this.businessId,
1584
- service: new BusinessService()
1585
- });
1586
- this.patchBusiness = makePatchBusiness({
1587
- authToken: this.authToken,
1588
- businessId: this.businessId,
1589
- service: new BusinessService()
1590
- });
1591
- }
1592
- else {
1593
- this.errorEvent.emit({
1594
- message: 'Missing required props',
1595
- errorCode: ComponentErrorCodes.MISSING_PROPS,
1596
- severity: ComponentErrorSeverity.ERROR,
1597
- });
1579
+ if (!validateRequiredProps(this.errorEvent, {
1580
+ 'auth-token': this.authToken,
1581
+ 'business-id': this.businessId,
1582
+ })) {
1583
+ return;
1598
1584
  }
1585
+ this.getBusiness = makeGetBusiness({
1586
+ authToken: this.authToken,
1587
+ businessId: this.businessId,
1588
+ service: new BusinessService()
1589
+ });
1590
+ this.patchBusiness = makePatchBusiness({
1591
+ authToken: this.authToken,
1592
+ businessId: this.businessId,
1593
+ service: new BusinessService()
1594
+ });
1599
1595
  }
1600
1596
  render() {
1601
1597
  var _a;
@@ -2,12 +2,12 @@ import { h, r as registerInstance } from './index-CV0Pyo1O.js';
2
2
  import { S as Skeleton } from './skeleton-BEHo2ypu.js';
3
3
  import { w as waitForConfig, c as configState } from './config-state-kKn89dp1.js';
4
4
  import { e as generateTabId } from './utils-D8J8OvxY.js';
5
- import { c as checkPkgVersion } from './check-pkg-version-DVn7t48L.js';
5
+ import { c as checkPkgVersion } from './check-pkg-version-BaPcn-Te.js';
6
6
  import { c as checkoutStore } from './checkout.store-DibfdUMm.js';
7
7
  import './parts-CPKMvyV_.js';
8
8
  import './index-cDVGjRkU.js';
9
9
  import './dinero-HXpYMWUU.js';
10
- import './package-7CozhRqW.js';
10
+ import './package-BmY4mdZN.js';
11
11
  import './index-DkoufM1t.js';
12
12
 
13
13
  const BankAccountFormSkeleton = (props) => {
@@ -1,4 +1,4 @@
1
- import { A as Api } from './Api-DO3CyWlf.js';
1
+ import { A as Api } from './Api-7JrBn4d6.js';
2
2
  import './Plaid-D389VmvK.js';
3
3
  import './Pagination-CLHwhyvu.js';
4
4
  import './Business-BcNb9bVO.js';
@@ -2,11 +2,11 @@ import { h, r as registerInstance } from './index-CV0Pyo1O.js';
2
2
  import { S as Skeleton } from './skeleton-BEHo2ypu.js';
3
3
  import { w as waitForConfig, c as configState } from './config-state-kKn89dp1.js';
4
4
  import { e as generateTabId } from './utils-D8J8OvxY.js';
5
- import { c as checkPkgVersion } from './check-pkg-version-DVn7t48L.js';
5
+ import { c as checkPkgVersion } from './check-pkg-version-BaPcn-Te.js';
6
6
  import './parts-CPKMvyV_.js';
7
7
  import './index-cDVGjRkU.js';
8
8
  import './dinero-HXpYMWUU.js';
9
- import './package-7CozhRqW.js';
9
+ import './package-BmY4mdZN.js';
10
10
 
11
11
  const CardFormSkeleton = (props) => {
12
12
  const { isReady } = props;
@@ -1,4 +1,4 @@
1
- import { p as packageJson } from './package-7CozhRqW.js';
1
+ import { p as packageJson } from './package-BmY4mdZN.js';
2
2
 
3
3
  const JUSTIFI_VERSION_KEY = '__JUSTIFI_WC_VERSION__';
4
4
  const detectDuplicateVersion = () => {
@@ -1,4 +1,4 @@
1
- import { A as Api } from './Api-DO3CyWlf.js';
1
+ import { A as Api } from './Api-7JrBn4d6.js';
2
2
  import './Plaid-D389VmvK.js';
3
3
  import './Pagination-CLHwhyvu.js';
4
4
  import './Business-BcNb9bVO.js';