@justifi/webcomponents 4.19.1-rc → 4.19.1-rc-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/dist/cjs/{Analytics-0b3db49d.js → Analytics-985bc298.js} +2 -3
  2. package/dist/cjs/{business.service-c384784d.js → business.service-6bb7ac82.js} +5 -6
  3. package/dist/cjs/{get-payout-csv-51a02be7.js → get-payout-csv-1391ff3e.js} +3 -4
  4. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +7 -8
  5. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +4 -5
  6. package/dist/cjs/justifi-business-details.cjs.entry.js +3 -4
  7. package/dist/cjs/justifi-business-form.cjs.entry.js +4 -5
  8. package/dist/cjs/justifi-card-form.cjs.entry.js +4 -5
  9. package/dist/cjs/justifi-checkout-core.cjs.entry.js +3 -3
  10. package/dist/cjs/justifi-checkout.cjs.entry.js +4 -5
  11. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -4
  12. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +11 -9
  13. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +1 -2
  14. package/dist/cjs/justifi-payment-details.cjs.entry.js +3 -4
  15. package/dist/cjs/justifi-payment-form.cjs.entry.js +5 -6
  16. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1 -1
  17. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -6
  18. package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -4
  19. package/dist/cjs/justifi-payout-details.cjs.entry.js +3 -4
  20. package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -4
  21. package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -3
  22. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +4 -5
  23. package/dist/cjs/{package-39dc73ed.js → package-cbc08fe3.js} +2 -4
  24. package/dist/cjs/{payment.service-2dbfb83d.js → payment.service-dfcfa19b.js} +2 -3
  25. package/dist/collection/api/services/analytics.service.js +1 -2
  26. package/dist/collection/api/services/business.service.js +5 -6
  27. package/dist/collection/api/services/checkout.service.js +2 -3
  28. package/dist/collection/api/services/insurance.service.js +2 -3
  29. package/dist/collection/api/services/payment.service.js +2 -3
  30. package/dist/collection/api/services/payout.service.js +3 -4
  31. package/dist/collection/api/services/provision.service.js +2 -4
  32. package/dist/collection/api/services/reports.service.js +1 -2
  33. package/dist/collection/components/bank-account-form/bank-account-form.js +3 -4
  34. package/dist/collection/components/business-forms/business-form/business-form.js +2 -3
  35. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +2 -3
  36. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +2 -3
  37. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -3
  38. package/dist/collection/components/card-form/card-form.js +3 -4
  39. package/dist/collection/components/checkout/checkout-core.js +4 -4
  40. package/dist/collection/components/checkout/new-payment-method.js +6 -4
  41. package/dist/collection/components/checkout/payment-method-options.js +3 -4
  42. package/dist/collection/components/checkout/saved-payment-method.js +3 -4
  43. package/dist/collection/components/checkout/sezzle-payment-method.js +3 -4
  44. package/dist/collection/components/payment-form/payment-form.js +3 -4
  45. package/dist/collection/components/refund-form/refund-form.js +2 -3
  46. package/dist/docs.json +8 -8
  47. package/dist/esm/{Analytics-37556050.js → Analytics-79e20e2d.js} +2 -3
  48. package/dist/esm/{business.service-eee46ab1.js → business.service-f45decfc.js} +5 -6
  49. package/dist/esm/{get-payout-csv-4d6b29d8.js → get-payout-csv-e784a2ab.js} +3 -4
  50. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +7 -8
  51. package/dist/esm/justifi-bank-account-form.entry.js +4 -5
  52. package/dist/esm/justifi-business-details.entry.js +3 -4
  53. package/dist/esm/justifi-business-form.entry.js +4 -5
  54. package/dist/esm/justifi-card-form.entry.js +4 -5
  55. package/dist/esm/justifi-checkout-core.entry.js +3 -3
  56. package/dist/esm/justifi-checkout.entry.js +4 -5
  57. package/dist/esm/justifi-gross-payment-chart.entry.js +3 -4
  58. package/dist/esm/justifi-new-payment-method_4.entry.js +11 -9
  59. package/dist/esm/justifi-owner-form_3.entry.js +1 -2
  60. package/dist/esm/justifi-payment-details.entry.js +3 -4
  61. package/dist/esm/justifi-payment-form.entry.js +5 -6
  62. package/dist/esm/justifi-payment-method-form.entry.js +1 -1
  63. package/dist/esm/justifi-payment-provisioning.entry.js +5 -6
  64. package/dist/esm/justifi-payments-list.entry.js +3 -4
  65. package/dist/esm/justifi-payout-details.entry.js +3 -4
  66. package/dist/esm/justifi-payouts-list.entry.js +3 -4
  67. package/dist/esm/justifi-refund-form.entry.js +2 -3
  68. package/dist/esm/justifi-season-interruption-insurance.entry.js +4 -5
  69. package/dist/esm/{package-e2a7aa3f.js → package-cf64a48c.js} +2 -4
  70. package/dist/esm/{payment.service-9005a501.js → payment.service-dad5153b.js} +2 -3
  71. package/dist/globals.d.ts +2 -0
  72. package/dist/module/Analytics.js +1 -2
  73. package/dist/module/business-bank-account-form-step.js +2 -3
  74. package/dist/module/business-document-upload-form-step.js +2 -3
  75. package/dist/module/business-terms-conditions-form-step.js +2 -3
  76. package/dist/module/business.service.js +5 -6
  77. package/dist/module/checkout-core.js +3 -3
  78. package/dist/module/get-payout-csv.js +3 -4
  79. package/dist/module/justifi-bank-account-form.js +2 -3
  80. package/dist/module/justifi-business-form.js +2 -3
  81. package/dist/module/justifi-card-form.js +2 -3
  82. package/dist/module/justifi-checkout.js +2 -3
  83. package/dist/module/justifi-gross-payment-chart.js +1 -2
  84. package/dist/module/justifi-payment-form.js +3 -4
  85. package/dist/module/justifi-payment-provisioning.js +2 -3
  86. package/dist/module/justifi-refund-form.js +2 -3
  87. package/dist/module/justifi-season-interruption-insurance.js +2 -3
  88. package/dist/module/new-payment-method.js +5 -3
  89. package/dist/module/package.js +2 -4
  90. package/dist/module/payment-method-options.js +2 -3
  91. package/dist/module/payment.service.js +2 -3
  92. package/dist/module/saved-payment-method.js +2 -3
  93. package/dist/module/sezzle-payment-method.js +2 -3
  94. package/dist/types/components/checkout/new-payment-method.d.ts +1 -0
  95. package/dist/webcomponents/index.esm.js +1 -0
  96. package/dist/webcomponents/p-01a404ca.entry.js +44 -0
  97. package/dist/webcomponents/p-02c58e00.entry.js +97 -0
  98. package/dist/webcomponents/p-03d35880.entry.js +130 -0
  99. package/dist/webcomponents/p-05f46d63.entry.js +99 -0
  100. package/dist/webcomponents/p-06ff0429.entry.js +65 -0
  101. package/dist/webcomponents/p-08b0fb31.js +41 -1
  102. package/dist/webcomponents/p-14c91ffd.js +20 -1
  103. package/dist/webcomponents/p-1ad5995e.js +3599 -1
  104. package/dist/webcomponents/p-1ff8810b.js +29 -1
  105. package/dist/webcomponents/p-2338affa.js +213 -1
  106. package/dist/webcomponents/p-258b1ee2.entry.js +149 -0
  107. package/dist/webcomponents/p-25d8cd65.entry.js +102 -0
  108. package/dist/webcomponents/p-29c0b182.js +114 -1
  109. package/dist/webcomponents/p-2b6c9c4f.js +7 -1
  110. package/dist/webcomponents/p-2eab3c90.js +3052 -1
  111. package/dist/webcomponents/p-3e9ef4a8.js +28 -0
  112. package/dist/webcomponents/p-3fd13ca3.js +52 -1
  113. package/dist/webcomponents/p-492588bf.js +79 -0
  114. package/dist/webcomponents/p-525db3e8.js +22 -1
  115. package/dist/webcomponents/p-5482d030.entry.js +21 -0
  116. package/dist/webcomponents/p-56f6ce4c.js +10 -1
  117. package/dist/webcomponents/p-576826b1.entry.js +43 -0
  118. package/dist/webcomponents/p-5968ff8a.js +178 -1
  119. package/dist/webcomponents/p-5cb3f0b2.entry.js +261 -0
  120. package/dist/webcomponents/p-5f835b89.entry.js +606 -0
  121. package/dist/webcomponents/p-6053809a.entry.js +80 -0
  122. package/dist/webcomponents/p-6078a370.js +244 -1
  123. package/dist/webcomponents/p-66e4869f.entry.js +75 -0
  124. package/dist/webcomponents/p-6f1c56d4.entry.js +94 -0
  125. package/dist/webcomponents/p-70a2aa74.entry.js +76 -0
  126. package/dist/webcomponents/p-7582b554.entry.js +18 -0
  127. package/dist/webcomponents/p-79646550.entry.js +61 -0
  128. package/dist/webcomponents/p-7a70ff09.entry.js +133 -0
  129. package/dist/webcomponents/p-7bbf73bd.entry.js +117 -0
  130. package/dist/webcomponents/p-7d85af5c.js +16 -1
  131. package/dist/webcomponents/p-800d31fe.entry.js +162 -0
  132. package/dist/webcomponents/p-8115b2f4.js +28 -1
  133. package/dist/webcomponents/p-83125497.js +4027 -1
  134. package/dist/webcomponents/p-85fc69e5.js +90 -1
  135. package/dist/webcomponents/p-890088fc.entry.js +298 -0
  136. package/dist/webcomponents/p-89887332.js +301 -1
  137. package/dist/webcomponents/p-8df7bde8.js +27 -1
  138. package/dist/webcomponents/p-8eb774df.entry.js +54 -0
  139. package/dist/webcomponents/p-9282eab8.js +77 -0
  140. package/dist/webcomponents/p-96c12fef.entry.js +73 -0
  141. package/dist/webcomponents/p-9c9c7dac.js +24 -1
  142. package/dist/webcomponents/p-9f94bbb6.entry.js +118 -0
  143. package/dist/webcomponents/p-9fd108be.entry.js +74 -0
  144. package/dist/webcomponents/p-a5a225d9.entry.js +125 -0
  145. package/dist/webcomponents/p-a5c5821e.entry.js +101 -0
  146. package/dist/webcomponents/p-a5fb51dc.entry.js +131 -0
  147. package/dist/webcomponents/p-a6d04afc.js +44 -0
  148. package/dist/webcomponents/p-ac086069.entry.js +58 -0
  149. package/dist/webcomponents/p-acbac8b8.entry.js +131 -0
  150. package/dist/webcomponents/p-adc30a61.entry.js +145 -0
  151. package/dist/webcomponents/p-af244664.js +126 -1
  152. package/dist/webcomponents/p-b6e3d7ed.entry.js +94 -0
  153. package/dist/webcomponents/p-b82c146f.entry.js +111 -0
  154. package/dist/webcomponents/p-ba4bae6f.js +12 -1
  155. package/dist/webcomponents/p-ba5fae28.js +90 -1
  156. package/dist/webcomponents/p-c636f563.entry.js +791 -0
  157. package/dist/webcomponents/p-cb26f708.js +18 -0
  158. package/dist/webcomponents/p-d17aee2b.entry.js +26 -0
  159. package/dist/webcomponents/p-d89bad72.js +39 -1
  160. package/dist/webcomponents/p-dce846bf.js +27 -1
  161. package/dist/webcomponents/p-df21aaad.js +120 -1
  162. package/dist/webcomponents/p-e1255160.js +3 -1
  163. package/dist/webcomponents/p-e333620e.js +34 -1
  164. package/dist/webcomponents/p-e356f280.entry.js +29 -0
  165. package/dist/webcomponents/p-e3e5f95f.entry.js +98 -0
  166. package/dist/webcomponents/p-e3fab0e2.js +43 -1
  167. package/dist/webcomponents/p-eb5dbd23.entry.js +1684 -0
  168. package/dist/webcomponents/p-ec854a3e.entry.js +11053 -0
  169. package/dist/webcomponents/p-f02b75dc.entry.js +96 -0
  170. package/dist/webcomponents/p-fad19d75.js +1638 -2
  171. package/dist/webcomponents/webcomponents.css +362 -4
  172. package/dist/webcomponents/webcomponents.esm.js +20 -1
  173. package/package.json +2 -4
  174. package/dist/cjs/config-037e67d0.js +0 -15
  175. package/dist/config.js +0 -11
  176. package/dist/esm/config-58e393e2.js +0 -13
  177. package/dist/module/config.js +0 -13
  178. package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +0 -11
  179. package/dist/webcomponents/p-023779ee.entry.js +0 -1
  180. package/dist/webcomponents/p-037763f4.entry.js +0 -1
  181. package/dist/webcomponents/p-07109641.entry.js +0 -1
  182. package/dist/webcomponents/p-0f7b9555.entry.js +0 -1
  183. package/dist/webcomponents/p-17e4246f.entry.js +0 -1
  184. package/dist/webcomponents/p-1a43e355.entry.js +0 -19
  185. package/dist/webcomponents/p-1f6afff9.entry.js +0 -1
  186. package/dist/webcomponents/p-246a6c6a.entry.js +0 -1
  187. package/dist/webcomponents/p-2d3b1692.entry.js +0 -1
  188. package/dist/webcomponents/p-30a493cd.entry.js +0 -1
  189. package/dist/webcomponents/p-32286934.js +0 -1
  190. package/dist/webcomponents/p-3f5e7e86.js +0 -1
  191. package/dist/webcomponents/p-462dc522.entry.js +0 -1
  192. package/dist/webcomponents/p-487b72a8.entry.js +0 -1
  193. package/dist/webcomponents/p-4abc17f0.entry.js +0 -1
  194. package/dist/webcomponents/p-52021fa1.entry.js +0 -1
  195. package/dist/webcomponents/p-53e64f15.entry.js +0 -1
  196. package/dist/webcomponents/p-57e1f2fd.js +0 -1
  197. package/dist/webcomponents/p-5f095525.entry.js +0 -1
  198. package/dist/webcomponents/p-62b32c4c.entry.js +0 -1
  199. package/dist/webcomponents/p-69faef3f.entry.js +0 -1
  200. package/dist/webcomponents/p-6c078cd1.js +0 -1
  201. package/dist/webcomponents/p-8e541a32.entry.js +0 -1
  202. package/dist/webcomponents/p-8f325782.entry.js +0 -1
  203. package/dist/webcomponents/p-987b5de2.entry.js +0 -1
  204. package/dist/webcomponents/p-a63fc384.entry.js +0 -1
  205. package/dist/webcomponents/p-a8220709.entry.js +0 -1
  206. package/dist/webcomponents/p-ae530971.entry.js +0 -1
  207. package/dist/webcomponents/p-b7cf49f4.entry.js +0 -1
  208. package/dist/webcomponents/p-b87b27ba.js +0 -1
  209. package/dist/webcomponents/p-bbed6107.entry.js +0 -1
  210. package/dist/webcomponents/p-be39c802.entry.js +0 -1
  211. package/dist/webcomponents/p-c28db166.js +0 -1
  212. package/dist/webcomponents/p-c9f8f7ec.entry.js +0 -1
  213. package/dist/webcomponents/p-d8355f91.entry.js +0 -1
  214. package/dist/webcomponents/p-e2c88817.entry.js +0 -1
  215. package/dist/webcomponents/p-e31f0f3e.entry.js +0 -1
  216. package/dist/webcomponents/p-edac2b43.entry.js +0 -1
  217. package/dist/webcomponents/p-ef23c091.entry.js +0 -1
  218. package/dist/webcomponents/p-f06910aa.entry.js +0 -1
  219. package/dist/webcomponents/p-f0866375.entry.js +0 -1
  220. package/dist/webcomponents/p-f0a06884.entry.js +0 -1
  221. package/dist/webcomponents/p-f2f94d9f.entry.js +0 -1
  222. package/dist/webcomponents/p-f49b7170.entry.js +0 -1
  223. package/dist/webcomponents/p-fb58feb5.entry.js +0 -1
  224. package/dist/webcomponents/p-fe33151d.entry.js +0 -1
@@ -0,0 +1,18 @@
1
+ import { A as Api } from './p-29c0b182.js';
2
+ import './p-56f6ce4c.js';
3
+ import './p-df21aaad.js';
4
+ import './p-e3fab0e2.js';
5
+
6
+ class PaymentService {
7
+ async fetchPayments(accountId, authToken, params) {
8
+ const api = Api({ authToken, apiOrigin: undefined });
9
+ const endpoint = `account/${accountId}/payments`;
10
+ return api.get(endpoint, params);
11
+ }
12
+ async fetchPayment(paymentId, authToken) {
13
+ const endpoint = `payments/${paymentId}`;
14
+ return Api({ authToken, apiOrigin: undefined }).get(endpoint);
15
+ }
16
+ }
17
+
18
+ export { PaymentService as P };
@@ -0,0 +1,26 @@
1
+ import { r as registerInstance, h } from './p-fad19d75.js';
2
+ import { u as updateFormValues, a as updateAddressFormValues, b as updateDateOfBirthFormValues } from './p-7d85af5c.js';
3
+ import { P as PHONE_MASKS, S as SSN_MASK } from './p-525db3e8.js';
4
+ import './p-1ff8810b.js';
5
+ import './p-6078a370.js';
6
+
7
+ const RepresentativeFormInputs = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.inputHandler = (name, value) => {
11
+ updateFormValues(this.formController, { [name]: value });
12
+ };
13
+ this.onAddressFormUpdate = (values) => {
14
+ updateAddressFormValues(this.formController, Object.assign(Object.assign({}, this.formController.values.getValue().address), values));
15
+ };
16
+ this.representativeDefaultValue = undefined;
17
+ this.errors = undefined;
18
+ this.formController = undefined;
19
+ }
20
+ render() {
21
+ var _a, _b, _c, _d, _e, _f, _g;
22
+ return (h("form", { key: '8b46b3b30681c7e7f30395a2cac575a7bd7ac998' }, h("fieldset", { key: 'e6b8f2ebca22c295fd6897c0e8862200171c2b4d' }, h("legend", { key: '8f8f52240f5ccc3f5d43507681dc970b4260bb1b' }, "Representative"), h("hr", { key: '8b07c69a514534ab731e7c01b6ee4c7a0e59e06e' }), h("div", { key: '79f44ba9dcbcf9d010aed92e332f686ca7127285', class: 'row gy-3' }, h("div", { key: '2a1aeb5ddee1dafc40e108cfb2e9ed6f4d8bc183', class: 'col-12 col-md-8' }, h("form-control-text", { key: '6e089f2d4f734da266e94b38ec1435dc3f461d5f', name: 'name', label: 'Full Name', defaultValue: (_a = this.representativeDefaultValue) === null || _a === void 0 ? void 0 : _a.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: 'c86421e524752e017180aef58e01229bf751e941', class: 'col-12 col-md-4' }, h("form-control-text", { key: 'ad8105f6d9a46397eb481666c19468376716544c', name: 'title', label: 'Title', defaultValue: (_b = this.representativeDefaultValue) === null || _b === void 0 ? void 0 : _b.title, errorText: this.errors.title, inputHandler: this.inputHandler })), h("div", { key: '7775905e46c00337a98ab668c8453e14d27bfc4d', class: 'col-12 col-md-6' }, h("form-control-text", { key: 'e810f2395101a1e48d8d3ff66617ac82d0ec90b3', name: 'email', label: 'Email Address', defaultValue: (_c = this.representativeDefaultValue) === null || _c === void 0 ? void 0 : _c.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '66a91e85d1902e32668407e684774820c02dce67', class: 'col-12 col-md-6' }, h("form-control-number-masked", { key: 'aad97ca95c5b2ec728ea00916a46ff4b84661b96', name: 'phone', label: 'Phone Number', defaultValue: (_d = this.representativeDefaultValue) === null || _d === void 0 ? void 0 : _d.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '3cd56ea0ac1e472e905c8113f6335868c39882f1', class: 'col-12 col-md-4' }, h("form-control-date", { key: '2f6d505220cacc08a80029ada089370f3841d9ed', name: 'dob_full', label: 'Birth Date', defaultValue: (_e = this.representativeDefaultValue) === null || _e === void 0 ? void 0 : _e.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController) })), h("div", { key: 'cf2df0af006a50d3533b798607025b4d6ee82ca0', class: 'col-12 col-md-8' }, h("form-control-number-masked", { key: '033e4264a1466d300891b2328c0bfaced7acb04d', name: 'identification_number', label: 'SSN', defaultValue: (_f = this.representativeDefaultValue) === null || _f === void 0 ? void 0 : _f.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { key: '2dc7be12d65203da4d4e0bdd995256a7bdc5bf37', class: 'col-12' }, h("justifi-identity-address-form", { key: '47916ab24bf990be3541b72bfa2dc46cccca5a31', errors: this.errors.address, defaultValues: (_g = this.representativeDefaultValue) === null || _g === void 0 ? void 0 : _g.address, handleFormUpdate: this.onAddressFormUpdate }))))));
23
+ }
24
+ };
25
+
26
+ export { RepresentativeFormInputs as justifi_business_representative_form_inputs };
@@ -1 +1,39 @@
1
- var r,n,e,t,a;!function(r){r.coreInfo="coreInfo",r.legalAddress="legalAddress",r.additionalQuestions="additionalQuestions",r.representative="representative",r.owners="owners",r.bankAccount="bankAccount",r.documentUpload="documentUpload",r.termsAndConditions="termsAndConditions"}(r||(r={})),function(r){r.fetchData="Error retrieving business data",r.patchData="Error updating business data"}(n||(n={})),function(r){r.nextStep="nextStep",r.previousStep="previousStep",r.submit="submit",r.removeOwner="removeOwner",r.addOwner="addOwner",r.addOwnerForm="addOwnerForm",r.updateOwner="updateOwner"}(e||(e={})),function(r){r.fetchData="Error retrieving owner data",r.patchData="Error updating owner data",r.postData="Error adding owner data"}(t||(t={})),function(r){r.fetchData="Error retrieving document data",r.sendData="Error uploading document data"}(a||(a={}));export{n as B,e as a,r as b}
1
+ var BusinessFormStep;
2
+ (function (BusinessFormStep) {
3
+ BusinessFormStep["coreInfo"] = "coreInfo";
4
+ BusinessFormStep["legalAddress"] = "legalAddress";
5
+ BusinessFormStep["additionalQuestions"] = "additionalQuestions";
6
+ BusinessFormStep["representative"] = "representative";
7
+ BusinessFormStep["owners"] = "owners";
8
+ BusinessFormStep["bankAccount"] = "bankAccount";
9
+ BusinessFormStep["documentUpload"] = "documentUpload";
10
+ BusinessFormStep["termsAndConditions"] = "termsAndConditions";
11
+ })(BusinessFormStep || (BusinessFormStep = {}));
12
+ var BusinessFormServerErrors;
13
+ (function (BusinessFormServerErrors) {
14
+ BusinessFormServerErrors["fetchData"] = "Error retrieving business data";
15
+ BusinessFormServerErrors["patchData"] = "Error updating business data";
16
+ })(BusinessFormServerErrors || (BusinessFormServerErrors = {}));
17
+ var BusinessFormClickActions;
18
+ (function (BusinessFormClickActions) {
19
+ BusinessFormClickActions["nextStep"] = "nextStep";
20
+ BusinessFormClickActions["previousStep"] = "previousStep";
21
+ BusinessFormClickActions["submit"] = "submit";
22
+ BusinessFormClickActions["removeOwner"] = "removeOwner";
23
+ BusinessFormClickActions["addOwner"] = "addOwner";
24
+ BusinessFormClickActions["addOwnerForm"] = "addOwnerForm";
25
+ BusinessFormClickActions["updateOwner"] = "updateOwner";
26
+ })(BusinessFormClickActions || (BusinessFormClickActions = {}));
27
+ var OwnerFormServerErrors;
28
+ (function (OwnerFormServerErrors) {
29
+ OwnerFormServerErrors["fetchData"] = "Error retrieving owner data";
30
+ OwnerFormServerErrors["patchData"] = "Error updating owner data";
31
+ OwnerFormServerErrors["postData"] = "Error adding owner data";
32
+ })(OwnerFormServerErrors || (OwnerFormServerErrors = {}));
33
+ var DocumentFormServerErrors;
34
+ (function (DocumentFormServerErrors) {
35
+ DocumentFormServerErrors["fetchData"] = "Error retrieving document data";
36
+ DocumentFormServerErrors["sendData"] = "Error uploading document data";
37
+ })(DocumentFormServerErrors || (DocumentFormServerErrors = {}));
38
+
39
+ export { BusinessFormServerErrors as B, BusinessFormClickActions as a, BusinessFormStep as b };
@@ -1 +1,27 @@
1
- import{h as t}from"./p-fad19d75.js";const a=()=>t("main",{part:"detail-loading-state",class:"p-4 d-flex justify-content-center text-center",style:{fontSize:"1.2rem"}},t("div",{part:"detail-loading-spinner",class:"spinner-border spinner-border-sm",role:"status"},t("span",{class:"visually-hidden"},"Loading..."))),e=a=>t("main",{part:"detail-empty-state",class:"p-4 d-flex justify-content-center text-center",style:{fontSize:"1.2rem"}},t("div",null,a)),l=a=>[t("h5",{part:"detail-section-title",class:"mt-4"},a.sectionTitle),t("hr",null)],s=({title:a,value:e})=>a&&e?t("div",{class:"d-table-row gap-2"},t("span",{part:"detail-section-item-title",class:"fw-bold d-table-cell px-2"},a),t("span",{part:"detail-section-item-data",class:"flex-1 d-table-cell px-2 text-wrap",innerHTML:e})):null,i=({title:a,value:e,classes:l})=>t("div",{part:"detail-head-info-item",class:`d-flex flex-column ${l}`},t("span",{part:"detail-head-info-item-title",class:"fw-bold border-1 border-bottom ps-2 pe-2"},a),t("span",{part:"detail-head-info-item-data",class:"pt-2 ps-2 pe-2"},e)),d=({title:a,slot:e,badge:l},s)=>t("div",{slot:e,part:"detail-head",class:"p-2"},t("div",{class:"d-flex flex-row align-items-center gap-2 mb-2"},t("h1",{class:"m-0",part:"detail-title"},a),l),t("div",{part:"detail-head-info",class:"d-flex flex-row align-items-top"},s)),n=({metadata:a})=>a&&Object.keys(a).length?t("div",{class:"mt-4"},t("pre",{part:"detail-metadata",class:"p-2","aria-label":"metadata content"},t("code",null,JSON.stringify(a,null,2)))):null;export{n as C,l as D,e as E,a as L,d as a,i as b,s as c}
1
+ import { h } from './p-fad19d75.js';
2
+
3
+ const LoadingState = () => (h("main", { part: "detail-loading-state", class: "p-4 d-flex justify-content-center text-center", style: { fontSize: '1.2rem' } },
4
+ h("div", { part: "detail-loading-spinner", class: "spinner-border spinner-border-sm", role: "status" },
5
+ h("span", { class: "visually-hidden" }, "Loading..."))));
6
+ const ErrorState = (errorMessage) => (h("main", { part: "detail-empty-state", class: "p-4 d-flex justify-content-center text-center", style: { fontSize: '1.2rem' } },
7
+ h("div", null, errorMessage)));
8
+ const DetailSectionTitle = (props) => [
9
+ h("h5", { part: "detail-section-title", class: "mt-4" }, props.sectionTitle),
10
+ h("hr", null),
11
+ ];
12
+ const DetailItem = ({ title, value, }) => title && value ? (h("div", { class: "d-table-row gap-2" },
13
+ h("span", { part: "detail-section-item-title", class: "fw-bold d-table-cell px-2" }, title),
14
+ h("span", { part: "detail-section-item-data", class: "flex-1 d-table-cell px-2 text-wrap", innerHTML: value }))) : null;
15
+ const EntityHeadInfoItem = ({ title, value, classes, }) => (h("div", { part: "detail-head-info-item", class: `d-flex flex-column ${classes}` },
16
+ h("span", { part: "detail-head-info-item-title", class: "fw-bold border-1 border-bottom ps-2 pe-2" }, title),
17
+ h("span", { part: "detail-head-info-item-data", class: "pt-2 ps-2 pe-2" }, value)));
18
+ const EntityHeadInfo = ({ title, slot, badge }, children) => (h("div", { slot: slot, part: "detail-head", class: "p-2" },
19
+ h("div", { class: "d-flex flex-row align-items-center gap-2 mb-2" },
20
+ h("h1", { class: "m-0", part: "detail-title" }, title),
21
+ badge),
22
+ h("div", { part: "detail-head-info", class: "d-flex flex-row align-items-top" }, children)));
23
+ const CodeBlock = ({ metadata }) => metadata && Object.keys(metadata).length ? (h("div", { class: 'mt-4' },
24
+ h("pre", { part: "detail-metadata", class: "p-2", "aria-label": "metadata content" },
25
+ h("code", null, JSON.stringify(metadata, null, 2))))) : null;
26
+
27
+ export { CodeBlock as C, DetailSectionTitle as D, ErrorState as E, LoadingState as L, EntityHeadInfo as a, EntityHeadInfoItem as b, DetailItem as c };
@@ -1 +1,120 @@
1
- var t,s,i,h;!function(t){t.automatic="automatic",t.manual="manual"}(t||(t={})),function(t){t.card="card",t.bankAccount="bankAccount",t.sezzle="sezzle",t.saved="saved"}(s||(s={})),function(t){t.pending="pending",t.automatic="automatic",t.authorized="authorized",t.succeeded="succeeded",t.failed="failed",t.disputed="disputed",t.fully_refunded="fully_refunded",t.partially_refunded="partially_refunded"}(i||(i={})),function(t){t.lost="lost",t.open="open"}(h||(h={}));class n{constructor(t){this.card=t.card?new u(t.card):void 0,this.bank_account=t.bank_account?new e(t.bank_account):void 0}get payersName(){return this.card?this.card.name:this.bank_account?this.bank_account.name:null}get lastFourDigits(){return this.card?`**** ${this.card.acct_last_four}`:this.bank_account?`**** ${this.bank_account.acct_last_four}`:null}}class e{constructor(t){this.id=t.id,this.acct_last_four=t.acct_last_four,this.name=t.name,this.brand=t.brand,this.token=t.token,this.created_at=t.created_at,this.updated_at=t.updated_at}}class u{constructor(t){this.id=t.id||"",this.acct_last_four=t.acct_last_four,this.name=t.name,this.brand=t.brand,this.token=t.token,this.created_at=t.created_at,this.updated_at=t.updated_at}}class a{constructor(t){this.id=t.id,this.account_id=t.account_id,this.amount=t.amount,this.amount_disputed=t.amount_disputed,this.amount_refundable=t.amount_refundable,this.amount_refunded=t.amount_refunded,this.balance=t.balance,this.captured=t.captured,this.capture_strategy=t.capture_strategy,this.currency=t.currency,this.description=t.description,this.disputed=t.disputed,this.disputes=t.disputes,this.error_code=t.error_code,this.error_description=t.error_description,this.fee_amount=t.fee_amount,this.is_test=t.is_test,this.metadata=t.metadata,this.payment_method=new n(t.payment_method),this.payment_intent_id=t.payment_intent_id,this.refunded=t.refunded,this.status=t.status,this.created_at=t.created_at,this.updated_at=t.updated_at}get disputedStatus(){const t=this.disputes.some((t=>t.status===h.lost));return this.disputed?t?h.lost:h.open:null}}export{a as P,s as a}
1
+ var CaptureStrategy;
2
+ (function (CaptureStrategy) {
3
+ CaptureStrategy["automatic"] = "automatic";
4
+ CaptureStrategy["manual"] = "manual";
5
+ })(CaptureStrategy || (CaptureStrategy = {}));
6
+ var PaymentMethodTypes;
7
+ (function (PaymentMethodTypes) {
8
+ PaymentMethodTypes["card"] = "card";
9
+ PaymentMethodTypes["bankAccount"] = "bankAccount";
10
+ PaymentMethodTypes["sezzle"] = "sezzle";
11
+ PaymentMethodTypes["saved"] = "saved";
12
+ })(PaymentMethodTypes || (PaymentMethodTypes = {}));
13
+ var PaymentStatuses;
14
+ (function (PaymentStatuses) {
15
+ PaymentStatuses["pending"] = "pending";
16
+ PaymentStatuses["automatic"] = "automatic";
17
+ PaymentStatuses["authorized"] = "authorized";
18
+ PaymentStatuses["succeeded"] = "succeeded";
19
+ PaymentStatuses["failed"] = "failed";
20
+ PaymentStatuses["disputed"] = "disputed";
21
+ PaymentStatuses["fully_refunded"] = "fully_refunded";
22
+ PaymentStatuses["partially_refunded"] = "partially_refunded";
23
+ })(PaymentStatuses || (PaymentStatuses = {}));
24
+ var PaymentDisputedStatuses;
25
+ (function (PaymentDisputedStatuses) {
26
+ // if a dispute is 'won', we don't show a dispute status, just general status
27
+ PaymentDisputedStatuses["lost"] = "lost";
28
+ PaymentDisputedStatuses["open"] = "open";
29
+ })(PaymentDisputedStatuses || (PaymentDisputedStatuses = {}));
30
+ class PaymentMethod {
31
+ constructor(paymentMethod) {
32
+ this.card = paymentMethod.card ? new Card(paymentMethod.card) : undefined;
33
+ this.bank_account = paymentMethod.bank_account
34
+ ? new BankAccount(paymentMethod.bank_account)
35
+ : undefined;
36
+ }
37
+ get payersName() {
38
+ if (this.card) {
39
+ return this.card.name;
40
+ }
41
+ else if (this.bank_account) {
42
+ return this.bank_account.name;
43
+ }
44
+ return null;
45
+ }
46
+ get lastFourDigits() {
47
+ if (this.card) {
48
+ return `**** ${this.card.acct_last_four}`;
49
+ }
50
+ else if (this.bank_account) {
51
+ return `**** ${this.bank_account.acct_last_four}`;
52
+ }
53
+ return null;
54
+ }
55
+ }
56
+ class BankAccount {
57
+ constructor(bankAccount) {
58
+ this.id = bankAccount.id;
59
+ this.acct_last_four = bankAccount.acct_last_four;
60
+ this.name = bankAccount.name;
61
+ this.brand = bankAccount.brand;
62
+ this.token = bankAccount.token;
63
+ this.created_at = bankAccount.created_at;
64
+ this.updated_at = bankAccount.updated_at;
65
+ }
66
+ }
67
+ class Card {
68
+ constructor(card) {
69
+ this.id = card.id || '';
70
+ this.acct_last_four = card.acct_last_four;
71
+ this.name = card.name;
72
+ this.brand = card.brand;
73
+ this.token = card.token;
74
+ this.created_at = card.created_at;
75
+ this.updated_at = card.updated_at;
76
+ }
77
+ }
78
+ class Payment {
79
+ constructor(payment) {
80
+ this.id = payment.id;
81
+ this.account_id = payment.account_id;
82
+ this.amount = payment.amount;
83
+ this.amount_disputed = payment.amount_disputed;
84
+ this.amount_refundable = payment.amount_refundable;
85
+ this.amount_refunded = payment.amount_refunded;
86
+ this.balance = payment.balance;
87
+ this.captured = payment.captured;
88
+ this.capture_strategy = payment.capture_strategy;
89
+ this.currency = payment.currency;
90
+ this.description = payment.description;
91
+ this.disputed = payment.disputed;
92
+ this.disputes = payment.disputes;
93
+ this.error_code = payment.error_code;
94
+ this.error_description = payment.error_description;
95
+ this.fee_amount = payment.fee_amount;
96
+ this.is_test = payment.is_test;
97
+ this.metadata = payment.metadata;
98
+ this.payment_method = new PaymentMethod(payment.payment_method);
99
+ this.payment_intent_id = payment.payment_intent_id;
100
+ this.refunded = payment.refunded;
101
+ this.status = payment.status;
102
+ this.created_at = payment.created_at;
103
+ this.updated_at = payment.updated_at;
104
+ }
105
+ get disputedStatus() {
106
+ const lost = this.disputes.some((dispute) => dispute.status === PaymentDisputedStatuses.lost);
107
+ // if a dispute is 'won', we don't show a dispute status, just general status
108
+ if (!this.disputed) {
109
+ return null;
110
+ }
111
+ else if (lost) {
112
+ return PaymentDisputedStatuses.lost;
113
+ }
114
+ else {
115
+ return PaymentDisputedStatuses.open;
116
+ }
117
+ }
118
+ }
119
+
120
+ export { Payment as P, PaymentMethodTypes as a };
@@ -1 +1,3 @@
1
- const o=()=>{};export{o as g}
1
+ const globalScripts = () => {};
2
+
3
+ export { globalScripts as g };
@@ -1 +1,34 @@
1
- import{h as t}from"./p-fad19d75.js";const e=e=>{const{columnSpan:r,isEmpty:s}=e;return r&&s?t("tr",null,t("td",{class:"empty-state",part:"empty-state",colSpan:r,style:{textAlign:"center"}},"No results")):null},r=e=>{const{columnSpan:r,errorMessage:s}=e;return r&&s?t("tr",null,t("td",{class:"error-state",part:"error-state",colSpan:r,"data-test-id":"table-error-state",style:{textAlign:"center"}},"An unexpected error occurred: ",s)):null},s=e=>{const{columnSpan:r,isLoading:s}=e;return r&&s?t("tr",null,t("td",{class:"loading-state",part:"loading-state-cell",colSpan:r,style:{textAlign:"center"}},t("div",{part:"loading-state-spinner",class:"spinner-border",role:"status"},t("span",{class:"visually-hidden"},"Loading...")))):null};export{s as T,e as a,r as b}
1
+ import { h } from './p-fad19d75.js';
2
+
3
+ const TableEmptyState = (props) => {
4
+ const { columnSpan, isEmpty } = props;
5
+ if (!columnSpan || !isEmpty) {
6
+ return null;
7
+ }
8
+ return (h("tr", null,
9
+ h("td", { class: "empty-state", part: "empty-state", colSpan: columnSpan, style: { textAlign: 'center' } }, "No results")));
10
+ };
11
+
12
+ const TableErrorState = (props) => {
13
+ const { columnSpan, errorMessage } = props;
14
+ if (!columnSpan || !errorMessage) {
15
+ return null;
16
+ }
17
+ return (h("tr", null,
18
+ h("td", { class: "error-state", part: "error-state", colSpan: columnSpan, "data-test-id": "table-error-state", style: { textAlign: 'center' } },
19
+ "An unexpected error occurred: ",
20
+ errorMessage)));
21
+ };
22
+
23
+ const TableLoadingState = (props) => {
24
+ const { columnSpan, isLoading } = props;
25
+ if (!columnSpan || !isLoading) {
26
+ return null;
27
+ }
28
+ return (h("tr", null,
29
+ h("td", { class: "loading-state", part: "loading-state-cell", colSpan: columnSpan, style: { textAlign: 'center' } },
30
+ h("div", { part: "loading-state-spinner", class: "spinner-border", role: "status" },
31
+ h("span", { class: "visually-hidden" }, "Loading...")))));
32
+ };
33
+
34
+ export { TableLoadingState as T, TableEmptyState as a, TableErrorState as b };
@@ -0,0 +1,29 @@
1
+ import { r as registerInstance, c as createEvent, h, F as Fragment } from './p-fad19d75.js';
2
+ import './p-56f6ce4c.js';
3
+ import { a as PaymentMethodTypes } from './p-df21aaad.js';
4
+ import './p-e3fab0e2.js';
5
+
6
+ const paymentMethodSelectorCss = ":host{display:block}.jfi-btn-radio+.jfi-btn-radio-label{color:var(--jfi-radio-button-color);background-color:var(--jfi-radio-button-background-color);border-color:var(--jfi-radio-button-border-color);padding:var(--jfi-radio-button-padding);font-size:var(--jfi-radio-button-font-size)}.jfi-btn-radio:focus+.jfi-btn-radio-label{box-shadow:var(--jfi-box-shadow-focus)}.jfi-btn-radio+.jfi-btn-radio-label:hover{color:var(--jfi-radio-button-color-hover);border-color:var(--jfi-radio-button-border-color-hover);background-color:var(--jfi-radio-button-background-color-hover)}.jfi-btn-radio:checked+.jfi-btn-radio-label:hover{color:var(--jfi-radio-button-color-selected-hover);border-color:var(--jfi-radio-button-border-color-selected-hover);background-color:var(--jfi-radio-button-background-color-selected-hover)}.jfi-btn-radio:checked+.jfi-btn-radio-label{color:var(--jfi-radio-button-color-selected);background-color:var(--jfi-radio-button-background-color-selected);border-color:var(--jfi-radio-button-border-color-selected)}.jfi-btn-radio-group{font-family:var(--jfi-layout-font-family);display:inline-flex;width:var(--jfi-radio-button-group-width)}";
7
+ const JustifiPaymentMethodSelectorStyle0 = paymentMethodSelectorCss;
8
+
9
+ const PaymentMethodLabels = {
10
+ bankAccount: 'Bank Account',
11
+ card: 'Card',
12
+ };
13
+ const PaymentMethodSelector = class {
14
+ constructor(hostRef) {
15
+ registerInstance(this, hostRef);
16
+ this.paymentMethodSelected = createEvent(this, "paymentMethodSelected", 7);
17
+ this.paymentMethodTypes = [PaymentMethodTypes.card, PaymentMethodTypes.bankAccount];
18
+ this.selectedPaymentMethodType = undefined;
19
+ }
20
+ onChangeHandler(event) {
21
+ this.paymentMethodSelected.emit(event.target.value);
22
+ }
23
+ render() {
24
+ return (h("div", { key: 'a0cd592094f7f69955469de84addde1d4bc5af4d', class: "btn-group jfi-btn-radio-group", role: "group", "aria-label": "Radio toggle group for payment method" }, this.paymentMethodTypes.map((paymentMethodType) => (h(Fragment, null, h("input", { id: paymentMethodType, type: "radio", name: "paymentMethodType", value: paymentMethodType, onChange: (event) => this.onChangeHandler(event), checked: this.selectedPaymentMethodType === paymentMethodType, class: "btn-check jfi-btn-radio" }), h("label", { htmlFor: paymentMethodType, class: "btn btn-outline-primary jfi-btn-radio-label" }, PaymentMethodLabels[paymentMethodType]))))));
25
+ }
26
+ };
27
+ PaymentMethodSelector.style = JustifiPaymentMethodSelectorStyle0;
28
+
29
+ export { PaymentMethodSelector as justifi_payment_method_selector };
@@ -0,0 +1,98 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './p-fad19d75.js';
2
+ import { t as tableExportedParts } from './p-2b6c9c4f.js';
3
+ import { m as makeGetPayoutCSV, P as PayoutService } from './p-a6d04afc.js';
4
+ import './p-56f6ce4c.js';
5
+ import './p-df21aaad.js';
6
+ import { P as Payout } from './p-e3fab0e2.js';
7
+ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './p-14c91ffd.js';
8
+ import { g as getErrorMessage, a as getErrorCode } from './p-8115b2f4.js';
9
+ import { E as ErrorState } from './p-dce846bf.js';
10
+ import { J as JustifiAnalytics } from './p-9282eab8.js';
11
+ import './p-29c0b182.js';
12
+ import './p-492588bf.js';
13
+
14
+ const makeGetPayouts = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
15
+ var _a, _b;
16
+ try {
17
+ const response = await service.fetchPayouts(id, authToken, params);
18
+ if (!response.error) {
19
+ const pagingInfo = Object.assign({}, response.page_info);
20
+ const payouts = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.map((dataItem) => new Payout(dataItem))) || [];
21
+ onSuccess({ payouts, pagingInfo });
22
+ }
23
+ else {
24
+ const error = getErrorMessage(response.error);
25
+ const code = getErrorCode((_b = response.error) === null || _b === void 0 ? void 0 : _b.code);
26
+ return onError({
27
+ error,
28
+ code,
29
+ severity: ComponentErrorSeverity.ERROR,
30
+ });
31
+ }
32
+ }
33
+ catch (error) {
34
+ const message = getErrorMessage(error);
35
+ const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
36
+ return onError({
37
+ error: message,
38
+ code,
39
+ severity: ComponentErrorSeverity.ERROR,
40
+ });
41
+ }
42
+ };
43
+
44
+ const PayoutsList = class {
45
+ constructor(hostRef) {
46
+ registerInstance(this, hostRef);
47
+ this.errorEvent = createEvent(this, "error-event", 7);
48
+ this.handleOnError = (event) => {
49
+ this.errorMessage = event.detail.message;
50
+ this.errorEvent.emit(event.detail);
51
+ };
52
+ this.accountId = undefined;
53
+ this.authToken = undefined;
54
+ this.getPayouts = undefined;
55
+ this.getPayoutCSV = undefined;
56
+ this.errorMessage = null;
57
+ }
58
+ componentWillLoad() {
59
+ this.analytics = new JustifiAnalytics(this);
60
+ this.initializeServices();
61
+ }
62
+ disconnectedCallback() {
63
+ this.analytics.cleanup();
64
+ }
65
+ propChanged() {
66
+ this.initializeServices();
67
+ }
68
+ initializeServices() {
69
+ if (this.accountId && this.authToken) {
70
+ const serviceParams = {
71
+ id: this.accountId,
72
+ authToken: this.authToken,
73
+ service: new PayoutService(),
74
+ };
75
+ this.getPayouts = makeGetPayouts(serviceParams);
76
+ this.getPayoutCSV = makeGetPayoutCSV(serviceParams);
77
+ }
78
+ else {
79
+ this.errorMessage = 'Account ID and Auth Token are required';
80
+ this.errorEvent.emit({
81
+ errorCode: ComponentErrorCodes.MISSING_PROPS,
82
+ message: 'Account ID and Auth Token are required',
83
+ });
84
+ }
85
+ }
86
+ render() {
87
+ if (this.errorMessage) {
88
+ return ErrorState(this.errorMessage);
89
+ }
90
+ return (h(Host, { exportedparts: tableExportedParts }, h("payouts-list-core", { getPayouts: this.getPayouts, getPayoutCSV: this.getPayoutCSV, "onError-event": this.handleOnError })));
91
+ }
92
+ static get watchers() { return {
93
+ "accountId": ["propChanged"],
94
+ "authToken": ["propChanged"]
95
+ }; }
96
+ };
97
+
98
+ export { PayoutsList as justifi_payouts_list };
@@ -1 +1,43 @@
1
- var s,i;!function(s){s.paid="paid",s.failed="failed",s.forwarded="forwarded",s.scheduled="scheduled",s.in_transit="in_transit",s.canceled="canceled"}(s||(s={})),function(s){s.paid="Paid",s.failed="Failed",s.forwarded="Forwarded",s.scheduled="Scheduled",s.in_transit="In Transit",s.canceled="Canceled"}(i||(i={}));class t{constructor(s){this.id=s.id,this.account_id=s.account_id,this.amount=s.amount,this.bank_account=s.bank_account,this.currency=s.currency,this.delivery_method=s.delivery_method||"standard",this.description=s.description,this.deposits_at=s.deposits_at,this.fees_total=s.fees_total,this.refunds_count=s.refunds_count,this.refunds_total=s.refunds_total,this.payments_count=s.payments_count,this.payments_total=s.payments_total,this.payout_type=s.payout_type,this.other_total=s.other_total,this.status=s.status,this.metadata=s.metadata,this.created_at=s.created_at,this.updated_at=s.updated_at}}export{t as P,s as a,i as b}
1
+ var PayoutStatuses;
2
+ (function (PayoutStatuses) {
3
+ PayoutStatuses["paid"] = "paid";
4
+ PayoutStatuses["failed"] = "failed";
5
+ PayoutStatuses["forwarded"] = "forwarded";
6
+ PayoutStatuses["scheduled"] = "scheduled";
7
+ PayoutStatuses["in_transit"] = "in_transit";
8
+ PayoutStatuses["canceled"] = "canceled";
9
+ })(PayoutStatuses || (PayoutStatuses = {}));
10
+ var PayoutStatusesSafeNames;
11
+ (function (PayoutStatusesSafeNames) {
12
+ PayoutStatusesSafeNames["paid"] = "Paid";
13
+ PayoutStatusesSafeNames["failed"] = "Failed";
14
+ PayoutStatusesSafeNames["forwarded"] = "Forwarded";
15
+ PayoutStatusesSafeNames["scheduled"] = "Scheduled";
16
+ PayoutStatusesSafeNames["in_transit"] = "In Transit";
17
+ PayoutStatusesSafeNames["canceled"] = "Canceled";
18
+ })(PayoutStatusesSafeNames || (PayoutStatusesSafeNames = {}));
19
+ class Payout {
20
+ constructor(payout) {
21
+ this.id = payout.id;
22
+ this.account_id = payout.account_id;
23
+ this.amount = payout.amount;
24
+ this.bank_account = payout.bank_account;
25
+ this.currency = payout.currency;
26
+ this.delivery_method = payout.delivery_method || 'standard';
27
+ this.description = payout.description;
28
+ this.deposits_at = payout.deposits_at;
29
+ this.fees_total = payout.fees_total;
30
+ this.refunds_count = payout.refunds_count;
31
+ this.refunds_total = payout.refunds_total;
32
+ this.payments_count = payout.payments_count;
33
+ this.payments_total = payout.payments_total;
34
+ this.payout_type = payout.payout_type;
35
+ this.other_total = payout.other_total;
36
+ this.status = payout.status;
37
+ this.metadata = payout.metadata;
38
+ this.created_at = payout.created_at;
39
+ this.updated_at = payout.updated_at;
40
+ }
41
+ }
42
+
43
+ export { Payout as P, PayoutStatuses as a, PayoutStatusesSafeNames as b };