@justifi/webcomponents 4.7.0-rc.1 → 4.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/dist/cjs/Api-548eaa62.js.map +1 -1
  2. package/dist/cjs/Payout-68a99ee3.js.map +1 -1
  3. package/dist/cjs/config-a156df17.js +17 -0
  4. package/dist/cjs/config-a156df17.js.map +1 -0
  5. package/dist/cjs/justifi-business-details.cjs.entry.js +1 -1
  6. package/dist/cjs/justifi-business-form-stepped.cjs.entry.js +1 -1
  7. package/dist/cjs/justifi-business-form.cjs.entry.js +1 -1
  8. package/dist/cjs/justifi-business-list.cjs.entry.js +1 -1
  9. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -1
  10. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js.map +1 -1
  11. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +2 -1
  12. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js.map +1 -1
  13. package/dist/cjs/justifi-payment-details.cjs.entry.js +3 -5
  14. package/dist/cjs/justifi-payment-details.cjs.entry.js.map +1 -1
  15. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +3 -6
  16. package/dist/cjs/justifi-payment-method-form.cjs.entry.js.map +1 -1
  17. package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -2
  18. package/dist/cjs/justifi-payments-list.cjs.entry.js.map +1 -1
  19. package/dist/cjs/justifi-payout-details.cjs.entry.js +1 -1
  20. package/dist/cjs/justifi-payouts-list.cjs.entry.js +1 -1
  21. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +1 -1
  22. package/dist/cjs/justifi-refund-form.cjs.entry.js +1 -1
  23. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +1 -1
  24. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +1 -1
  25. package/dist/cjs/justifi-table_2.cjs.entry.js +1 -1
  26. package/dist/cjs/justifi-table_2.cjs.entry.js.map +1 -1
  27. package/dist/collection/api/Api.js.map +1 -1
  28. package/dist/collection/api/Payment.js.map +1 -1
  29. package/dist/collection/components/business-form/business-form-stepped.stories.js +2 -2
  30. package/dist/collection/components/business-form/business-form-stepped.stories.js.map +1 -1
  31. package/dist/collection/components/business-form/business-form.stories.js +2 -2
  32. package/dist/collection/components/business-form/business-form.stories.js.map +1 -1
  33. package/dist/collection/components/business-list/business-list.stories.js +1 -1
  34. package/dist/collection/components/business-list/business-list.stories.js.map +1 -1
  35. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +2 -1
  36. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js.map +1 -1
  37. package/dist/collection/components/gross-payment-chart/gross-payment-chart.stories.js +3 -2
  38. package/dist/collection/components/gross-payment-chart/gross-payment-chart.stories.js.map +1 -1
  39. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +2 -1
  40. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js.map +1 -1
  41. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js +5 -4
  42. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js.map +1 -1
  43. package/dist/collection/components/payment-details/payment-details.js +2 -4
  44. package/dist/collection/components/payment-details/payment-details.js.map +1 -1
  45. package/dist/collection/components/payments-list/payments-list.js +9 -1
  46. package/dist/collection/components/payments-list/payments-list.js.map +1 -1
  47. package/dist/collection/components/payments-list/payments-list.stories.js +1 -1
  48. package/dist/collection/components/payments-list/payments-list.stories.js.map +1 -1
  49. package/dist/collection/components/payouts-list/payouts-list.stories.js +1 -1
  50. package/dist/collection/components/payouts-list/payouts-list.stories.js.map +1 -1
  51. package/dist/collection/components/proceeds-list/proceeds-list.stories.js +1 -1
  52. package/dist/collection/components/proceeds-list/proceeds-list.stories.js.map +1 -1
  53. package/dist/collection/components/subaccount-details/subaccount-details.stories.js +1 -1
  54. package/dist/collection/components/subaccount-details/subaccount-details.stories.js.map +1 -1
  55. package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js +1 -1
  56. package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js.map +1 -1
  57. package/dist/collection/components/table/table.js +1 -1
  58. package/dist/collection/components/table/table.js.map +1 -1
  59. package/dist/components/Api.js.map +1 -1
  60. package/dist/components/Payout.js.map +1 -1
  61. package/dist/components/config.js +6 -8
  62. package/dist/components/config.js.map +1 -1
  63. package/dist/components/justifi-gross-payment-chart.js +2 -1
  64. package/dist/components/justifi-gross-payment-chart.js.map +1 -1
  65. package/dist/components/justifi-payment-balance-transactions.js +2 -1
  66. package/dist/components/justifi-payment-balance-transactions.js.map +1 -1
  67. package/dist/components/justifi-payment-details.js +2 -4
  68. package/dist/components/justifi-payment-details.js.map +1 -1
  69. package/dist/components/justifi-payments-list.js +9 -1
  70. package/dist/components/justifi-payments-list.js.map +1 -1
  71. package/dist/components/payment-method-form.js +2 -5
  72. package/dist/components/payment-method-form.js.map +1 -1
  73. package/dist/components/table.js +1 -1
  74. package/dist/components/table.js.map +1 -1
  75. package/dist/config.js +9 -11
  76. package/dist/config.js.map +1 -1
  77. package/dist/esm/Api-c65d3ed8.js.map +1 -1
  78. package/dist/esm/Payout-fcf16887.js.map +1 -1
  79. package/dist/esm/config-ceb0f902.js +15 -0
  80. package/dist/esm/config-ceb0f902.js.map +1 -0
  81. package/dist/esm/justifi-business-details.entry.js +1 -1
  82. package/dist/esm/justifi-business-form-stepped.entry.js +1 -1
  83. package/dist/esm/justifi-business-form.entry.js +1 -1
  84. package/dist/esm/justifi-business-list.entry.js +1 -1
  85. package/dist/esm/justifi-gross-payment-chart.entry.js +2 -1
  86. package/dist/esm/justifi-gross-payment-chart.entry.js.map +1 -1
  87. package/dist/esm/justifi-payment-balance-transactions.entry.js +2 -1
  88. package/dist/esm/justifi-payment-balance-transactions.entry.js.map +1 -1
  89. package/dist/esm/justifi-payment-details.entry.js +4 -6
  90. package/dist/esm/justifi-payment-details.entry.js.map +1 -1
  91. package/dist/esm/justifi-payment-method-form.entry.js +3 -6
  92. package/dist/esm/justifi-payment-method-form.entry.js.map +1 -1
  93. package/dist/esm/justifi-payments-list.entry.js +10 -2
  94. package/dist/esm/justifi-payments-list.entry.js.map +1 -1
  95. package/dist/esm/justifi-payout-details.entry.js +1 -1
  96. package/dist/esm/justifi-payouts-list.entry.js +1 -1
  97. package/dist/esm/justifi-proceeds-list.entry.js +1 -1
  98. package/dist/esm/justifi-refund-form.entry.js +1 -1
  99. package/dist/esm/justifi-subaccount-details.entry.js +1 -1
  100. package/dist/esm/justifi-subaccounts-list.entry.js +1 -1
  101. package/dist/esm/justifi-table_2.entry.js +1 -1
  102. package/dist/esm/justifi-table_2.entry.js.map +1 -1
  103. package/dist/types/api/Api.d.ts +1 -1
  104. package/dist/types/api/Payment.d.ts +2 -2
  105. package/dist/types/components/payments-list/payments-list.d.ts +2 -1
  106. package/dist/types/home/runner/work/web-component-library/web-component-library/stencil-library/.stencil/config.d.ts +2 -4
  107. package/dist/webcomponents/p-160c9fbb.entry.js +2 -0
  108. package/dist/webcomponents/p-160c9fbb.entry.js.map +1 -0
  109. package/dist/webcomponents/p-26245f01.entry.js +20 -0
  110. package/dist/webcomponents/p-26245f01.entry.js.map +1 -0
  111. package/dist/webcomponents/p-26dfa274.entry.js +2 -0
  112. package/dist/webcomponents/p-26dfa274.entry.js.map +1 -0
  113. package/dist/webcomponents/{p-c2845c5d.entry.js → p-285a50a6.entry.js} +2 -2
  114. package/dist/webcomponents/{p-ffcbf779.entry.js → p-378e163d.entry.js} +2 -2
  115. package/dist/webcomponents/{p-798483dd.entry.js → p-3d82c8a3.entry.js} +2 -2
  116. package/dist/webcomponents/p-3d82c8a3.entry.js.map +1 -0
  117. package/dist/webcomponents/{p-1920e118.entry.js → p-5b8f004d.entry.js} +2 -2
  118. package/dist/webcomponents/{p-d40718da.entry.js → p-64af0ae9.entry.js} +2 -2
  119. package/dist/webcomponents/p-76983a7e.js.map +1 -1
  120. package/dist/webcomponents/p-9b6dcac5.js +2 -0
  121. package/dist/webcomponents/p-9b6dcac5.js.map +1 -0
  122. package/dist/webcomponents/{p-b08a9520.entry.js → p-abc05a34.entry.js} +2 -2
  123. package/dist/webcomponents/{p-0e9a7fa7.entry.js → p-b12691c3.entry.js} +2 -2
  124. package/dist/webcomponents/p-b157f6ae.js.map +1 -1
  125. package/dist/webcomponents/{p-6c3236e8.entry.js → p-b98a3f94.entry.js} +2 -2
  126. package/dist/webcomponents/{p-7cde64a2.entry.js → p-c13186cf.entry.js} +2 -2
  127. package/dist/webcomponents/{p-7cde64a2.entry.js.map → p-c13186cf.entry.js.map} +1 -1
  128. package/dist/webcomponents/{p-64184a0c.entry.js → p-c1ae571b.entry.js} +2 -2
  129. package/dist/webcomponents/p-c1ae571b.entry.js.map +1 -0
  130. package/dist/webcomponents/{p-491d5c69.entry.js → p-c4c8fb44.entry.js} +2 -2
  131. package/dist/webcomponents/{p-a4c78757.entry.js → p-dbbd2611.entry.js} +2 -2
  132. package/dist/webcomponents/{p-b45453ea.entry.js → p-f0897468.entry.js} +2 -2
  133. package/dist/webcomponents/webcomponents.esm.js +1 -1
  134. package/package.json +3 -6
  135. package/dist/cjs/config-70f62990.js +0 -19
  136. package/dist/cjs/config-70f62990.js.map +0 -1
  137. package/dist/esm/config-b1976dbd.js +0 -17
  138. package/dist/esm/config-b1976dbd.js.map +0 -1
  139. package/dist/webcomponents/p-222d357c.entry.js +0 -20
  140. package/dist/webcomponents/p-222d357c.entry.js.map +0 -1
  141. package/dist/webcomponents/p-301a23aa.js +0 -2
  142. package/dist/webcomponents/p-301a23aa.js.map +0 -1
  143. package/dist/webcomponents/p-64184a0c.entry.js.map +0 -1
  144. package/dist/webcomponents/p-798483dd.entry.js.map +0 -1
  145. package/dist/webcomponents/p-7a24ab66.entry.js +0 -2
  146. package/dist/webcomponents/p-7a24ab66.entry.js.map +0 -1
  147. package/dist/webcomponents/p-8367b46c.entry.js +0 -2
  148. package/dist/webcomponents/p-8367b46c.entry.js.map +0 -1
  149. /package/dist/webcomponents/{p-c2845c5d.entry.js.map → p-285a50a6.entry.js.map} +0 -0
  150. /package/dist/webcomponents/{p-ffcbf779.entry.js.map → p-378e163d.entry.js.map} +0 -0
  151. /package/dist/webcomponents/{p-1920e118.entry.js.map → p-5b8f004d.entry.js.map} +0 -0
  152. /package/dist/webcomponents/{p-d40718da.entry.js.map → p-64af0ae9.entry.js.map} +0 -0
  153. /package/dist/webcomponents/{p-b08a9520.entry.js.map → p-abc05a34.entry.js.map} +0 -0
  154. /package/dist/webcomponents/{p-0e9a7fa7.entry.js.map → p-b12691c3.entry.js.map} +0 -0
  155. /package/dist/webcomponents/{p-6c3236e8.entry.js.map → p-b98a3f94.entry.js.map} +0 -0
  156. /package/dist/webcomponents/{p-491d5c69.entry.js.map → p-c4c8fb44.entry.js.map} +0 -0
  157. /package/dist/webcomponents/{p-a4c78757.entry.js.map → p-dbbd2611.entry.js.map} +0 -0
  158. /package/dist/webcomponents/{p-b45453ea.entry.js.map → p-f0897468.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"file":"Api.js","mappings":"AAAA;AACA;AACA;AACA,IAAI,eAAe,CAAC;AACpB,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;AAClB,SAAS,GAAG,GAAG;AAC9B;AACA,EAAE,IAAI,CAAC,eAAe,EAAE;AACxB;AACA,IAAI,eAAe,GAAG,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,CAAC,eAAe,IAAI,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACrH;AACA,IAAI,IAAI,CAAC,eAAe,EAAE;AAC1B,MAAM,MAAM,IAAI,KAAK,CAAC,0GAA0G,CAAC,CAAC;AAClI,KAAK;AACL,GAAG;AACH;AACA,EAAE,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC;AAChC;;AChBA;AACA;AACA;AACA;AACA;AACA,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB;AACA,KAAK,IAAI,CAAC,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AAM,CAAC,CAAC;GAC7D;EAED,eAAe,OAAO,CAAC,QAAgB,EAAE,MAAY,EAAE,MAAoB;IACzE,OAAO,WAAW,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;GAC9D;EAED,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AACvC,EAAE;AAEF,SAAS,WAAW,CAAC,UAAkB;EACrC,OAAO,CAAC,KAAK,CAAC,uBAAuB,UAAU,EAAE,CAAC,CAAC;AACrD;;;;","names":["uuidv4"],"sources":["../node_modules/uuid/dist/esm-browser/rng.js","../node_modules/uuid/dist/esm-browser/stringify.js","../node_modules/uuid/dist/esm-browser/native.js","../node_modules/uuid/dist/esm-browser/v4.js","src/api/Api.ts"],"sourcesContent":["// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nlet getRandomValues;\nconst rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nexport function unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();\n}\n\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default {\n randomUUID\n};","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\n\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return unsafeStringify(rnds);\n}\n\nexport default v4;","import { v4 as uuidv4 } from 'uuid';\nimport { PagingInfo } from './Pagination';\n\nexport interface IApiResponse<T> {\n data: T;\n error?: IErrorObject | IServerError;\n page_info?: PagingInfo;\n errors?: string[];\n id: number;\n type: string;\n}\n\nexport type IServerError = string;\n\nexport interface IErrorObject {\n message: string;\n code: string;\n param?: string;\n}\n\nexport interface IApiResponseCollection<T> extends IApiResponse<T> {\n page_info: PagingInfo;\n}\n\nconst Api = (authToken: string, apiOrigin?: string) => {\n async function getAuthorizationHeader() {\n return {\n 'Authorization': `Bearer ${authToken}`,\n 'Idempotency-Key': uuidv4(),\n 'Content-Type': 'application/json',\n };\n }\n\n async function makeRequest(endpoint: string, method: string, params?: any, body?: any, signal?: AbortSignal) {\n const url = `${apiOrigin}/v1/${endpoint}`;\n const requestUrl = params ? `${url}?${new URLSearchParams(params)}` : url;\n const response = await fetch(requestUrl, {\n method: method,\n headers: await getAuthorizationHeader(),\n body: body,\n signal: signal,\n });\n\n if (response) {\n return response.status === 204 ? {} : response.json();\n }\n handleError(requestUrl);\n }\n\n async function get(endpoint: string, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'GET', params, null, signal);\n }\n\n async function post(endpoint: string, body?: any, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'POST', params, body, signal);\n }\n\n async function patch(endpoint: string, body?: any, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'PATCH', params, body, signal);\n }\n\n async function destroy(endpoint: string, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'DELETE', params, null, signal);\n }\n\n return { get, post, patch, destroy };\n};\n\nfunction handleError(requestUrl: string): void {\n console.error(`Error fetching from ${requestUrl}`);\n}\n\nexport default Api;\n"],"version":3}
1
+ {"file":"Api.js","mappings":"AAAA;AACA;AACA;AACA,IAAI,eAAe,CAAC;AACpB,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;AAClB,SAAS,GAAG,GAAG;AAC9B;AACA,EAAE,IAAI,CAAC,eAAe,EAAE;AACxB;AACA,IAAI,eAAe,GAAG,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,CAAC,eAAe,IAAI,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACrH;AACA,IAAI,IAAI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,MAAoB;IAClF,OAAO,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;GAC5D;EAED,eAAe,KAAK,CAAC,QAAgB,EAAE,IAAU,EAAE,MAAY,EAAE,MAAoB;IACnF,OAAO,WAAW,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;GAC7D;EAED,eAAe,OAAO,CAAC,QAAgB,EAAE,MAAY,EAAE,MAAoB;IACzE,OAAO,WAAW,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;GAC9D;EAED,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AACvC,EAAE;AAEF,SAAS,WAAW,CAAC,UAAkB;EACrC,OAAO,CAAC,KAAK,CAAC,uBAAuB,UAAU,EAAE,CAAC,CAAC;AACrD;;;;","names":["uuidv4"],"sources":["../node_modules/uuid/dist/esm-browser/rng.js","../node_modules/uuid/dist/esm-browser/stringify.js","../node_modules/uuid/dist/esm-browser/native.js","../node_modules/uuid/dist/esm-browser/v4.js","src/api/Api.ts"],"sourcesContent":["// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nlet getRandomValues;\nconst rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nexport function unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();\n}\n\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default {\n randomUUID\n};","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\n\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return unsafeStringify(rnds);\n}\n\nexport default v4;","import { v4 as uuidv4 } from 'uuid';\nimport { PagingInfo } from './Pagination';\n\nexport interface IApiResponse<T> {\n data: T;\n error?: IErrorObject | IServerError;\n page_info?: PagingInfo;\n errors?: string[];\n id: number;\n type: string;\n}\n\nexport type IServerError = string;\n\nexport interface IErrorObject {\n message: string;\n code: string;\n param?: string;\n}\n\nexport interface IApiResponseCollection<T> extends IApiResponse<T> {\n page_info: PagingInfo;\n}\n\nconst Api = (authToken: string, apiOrigin: string) => {\n async function getAuthorizationHeader() {\n return {\n 'Authorization': `Bearer ${authToken}`,\n 'Idempotency-Key': uuidv4(),\n 'Content-Type': 'application/json',\n };\n }\n\n async function makeRequest(endpoint: string, method: string, params?: any, body?: any, signal?: AbortSignal) {\n const url = `${apiOrigin}/v1/${endpoint}`;\n const requestUrl = params ? `${url}?${new URLSearchParams(params)}` : url;\n const response = await fetch(requestUrl, {\n method: method,\n headers: await getAuthorizationHeader(),\n body: body,\n signal: signal,\n });\n\n if (response) {\n return response.status === 204 ? {} : response.json();\n }\n handleError(requestUrl);\n }\n\n async function get(endpoint: string, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'GET', params, null, signal);\n }\n\n async function post(endpoint: string, body?: any, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'POST', params, body, signal);\n }\n\n async function patch(endpoint: string, body?: any, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'PATCH', params, body, signal);\n }\n\n async function destroy(endpoint: string, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'DELETE', params, null, signal);\n }\n\n return { get, post, patch, destroy };\n};\n\nfunction handleError(requestUrl: string): void {\n console.error(`Error fetching from ${requestUrl}`);\n}\n\nexport default Api;\n"],"version":3}
@@ -1 +1 @@
1
- {"file":"Payout.js","mappings":"AAAA,IAAY,eAGX;AAHD,WAAY,eAAe;EACzB,0CAAuB,CAAA;EACvB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C,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;IAChC,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,eAAe,IAAI,UAAU,CAAC;IAC5D,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;IACtC,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;IACtC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;IACpC,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;IAC1C,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;IAC1C,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;IAC5C,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;IAC5C,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;IACtC,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;IACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5B,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;IAChC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;IACpC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;GACrC;;;;;","names":[],"sources":["src/api/Payment.ts","src/api/Payout.ts"],"sourcesContent":["export enum CaptureStrategy {\n automatic = 'automatic',\n manual = 'manual',\n}\n\nexport enum PaymentMethodTypes {\n card = 'card',\n bankAccount = 'bankAccount',\n}\n\nexport enum PaymentStatuses {\n pending = 'pending',\n authorized = 'authorized',\n succeeded = 'succeeded',\n failed = 'failed',\n disputed = 'disputed',\n fully_refunded = 'fully_refunded',\n partially_refunded = 'partially_refunded',\n}\n\nexport enum PaymentDisputedStatuses {\n // if a dispute is 'won', we don't show a dispute status, just general status\n lost = 'lost',\n open = 'open',\n}\n\nexport interface IPaymentMethod {\n card?: ICard;\n bank_account?: IBankAccount;\n}\n\nexport type CardBrand =\n | 'american_express'\n | 'diners_club'\n | 'discover'\n | 'jcb'\n | 'mastercard'\n | 'china_unionpay'\n | 'visa'\n | 'unknown';\n\nexport interface IBankAccount {\n id: string;\n acct_last_four: string;\n name: string;\n brand: string;\n token: string\n created_at: string;\n updated_at: string;\n}\n\nexport interface ICard {\n id: string;\n acct_last_four: string;\n name: string;\n brand: CardBrand;\n token: string;\n created_at: string;\n updated_at: string;\n}\n\nexport interface IDispute {\n amount_cents: number;\n created_at: string;\n currency: string;\n gateway_ref_id: string;\n id: string;\n payment_id: string;\n reason: null;\n status: string;\n updated_at: string;\n}\n\nexport interface IPayment {\n id: string;\n account_id: string;\n amount: number;\n amount_disputed: number;\n amount_refundable: number;\n amount_refunded: number;\n balance: number;\n captured: boolean;\n capture_strategy: CaptureStrategy;\n currency: 'usd';\n description: string;\n disputed: boolean;\n disputes: IDispute[];\n error_code: string | null;\n error_description: string | null;\n fee_amount: number;\n is_test: boolean;\n metadata: Object | null;\n payment_method: IPaymentMethod;\n payment_intent_id: string | null;\n refunded: boolean;\n status: PaymentStatuses;\n created_at: string;\n updated_at: string;\n}\n\nexport class Payment implements IPayment {\n public id: string;\n public account_id: string;\n public amount: number;\n public amount_disputed: number;\n public amount_refundable: number;\n public amount_refunded: number;\n public balance: number;\n public captured: boolean;\n public capture_strategy: CaptureStrategy;\n public currency: 'usd';\n public description: string;\n public disputed: boolean;\n public disputes: IDispute[];\n public error_code: string | null;\n public error_description: string | null;\n public fee_amount: number;\n public is_test: boolean;\n public metadata: Object | null;\n public payment_method: IPaymentMethod;\n public payment_intent_id: string | null;\n public refunded: boolean;\n public status: PaymentStatuses;\n public created_at: string;\n public updated_at: string;\n public statement_descriptor?: string;\n\n constructor(payment: IPayment) {\n this.id = payment.id;\n this.account_id = payment.account_id;\n this.amount = payment.amount;\n this.amount_disputed = payment.amount_disputed;\n this.amount_refundable = payment.amount_refundable;\n this.amount_refunded = payment.amount_refunded;\n this.balance = payment.balance;\n this.captured = payment.captured;\n this.capture_strategy = payment.capture_strategy;\n this.currency = payment.currency;\n this.description = payment.description;\n this.disputed = payment.disputed;\n this.disputes = payment.disputes;\n this.error_code = payment.error_code;\n this.error_description = payment.error_description;\n this.fee_amount = payment.fee_amount;\n this.is_test = payment.is_test;\n this.metadata = payment.metadata;\n this.payment_method = payment.payment_method;\n this.payment_intent_id = payment.payment_intent_id;\n this.refunded = payment.refunded;\n this.status = payment.status;\n this.created_at = payment.created_at;\n this.updated_at = payment.updated_at;\n }\n\n get disputedStatus(): PaymentDisputedStatuses | null {\n const lost = this.disputes.some(\n dispute => dispute.status === PaymentDisputedStatuses.lost,\n );\n // if a dispute is 'won', we don't show a dispute status, just general status\n if (!this.disputed) {\n return null;\n } else if (lost) {\n return PaymentDisputedStatuses.lost;\n } else {\n return PaymentDisputedStatuses.open;\n }\n }\n}\n\nexport interface IPaymentBalanceTransaction {\n id: string;\n amount: number;\n balance: number;\n currency: 'usd';\n financial_transaction_id: string;\n payment_id: string;\n payment_balance_txn_type: string;\n source_id: string;\n source_type: string;\n created_at: string;\n updated_at: string;\n}\n\nexport class PaymentBalanceTransaction implements IPaymentBalanceTransaction {\n public id: string;\n public amount: number;\n public balance: number;\n public currency: 'usd';\n public financial_transaction_id: string;\n public payment_id: string;\n public payment_balance_txn_type: string;\n public source_id: string;\n public source_type: string;\n public created_at: string;\n public updated_at: string;\n\n constructor(balanceTransaction: IPaymentBalanceTransaction) {\n this.id = balanceTransaction.id;\n this.amount = balanceTransaction.amount;\n this.balance = balanceTransaction.balance;\n this.currency = balanceTransaction.currency;\n this.financial_transaction_id = balanceTransaction.financial_transaction_id;\n this.payment_id = balanceTransaction.payment_id;\n this.payment_balance_txn_type = balanceTransaction.payment_balance_txn_type;\n this.source_id = balanceTransaction.source_id;\n this.source_type = balanceTransaction.source_type;\n this.created_at = balanceTransaction.created_at;\n this.updated_at = balanceTransaction.updated_at;\n }\n\n get displayTransactionId(): string {\n return this.payment_balance_txn_type === 'payment_fee'\n ? '--'\n : this.source_id;\n }\n}\n","import { BankAccount } from \"./shared\";\n\nexport enum PayoutStatuses {\n paid = 'paid',\n failed = 'failed',\n forwarded = 'forwarded',\n scheduled = 'scheduled',\n in_transit = 'in_transit',\n canceled = 'canceled',\n}\n\nexport enum PayoutStatusesSafeNames {\n paid = 'Paid',\n failed = 'Failed',\n forwarded = 'Forwarded',\n scheduled = 'Scheduled',\n in_transit = 'In Transit',\n canceled = 'Canceled',\n}\n\nexport interface IPayout {\n id: string;\n account_id: string;\n amount: number;\n bank_account: BankAccount;\n currency: 'usd';\n delivery_method: string;\n description: string;\n deposits_at: string;\n fees_total: number;\n refunds_count: number;\n refunds_total: number;\n payments_count: number;\n payments_total: number;\n payout_type: 'ach' | 'cc';\n other_total: number;\n status: PayoutStatuses;\n metadata: any;\n created_at: string;\n updated_at: string;\n}\n\nexport class Payout implements IPayout {\n public id: string;\n public account_id: string;\n public amount: number;\n public bank_account: BankAccount;\n public currency: 'usd';\n public delivery_method: string;\n public description: string;\n public deposits_at: string;\n public fees_total: number;\n public refunds_count: number;\n public refunds_total: number;\n public payments_count: number;\n public payments_total: number;\n public payout_type: 'ach' | 'cc';\n public other_total: number;\n public status: PayoutStatuses;\n public metadata: any;\n public created_at: string;\n public updated_at: string;\n\n constructor(payout: IPayout) {\n this.id = payout.id;\n this.account_id = payout.account_id;\n this.amount = payout.amount;\n this.bank_account = payout.bank_account;\n this.currency = payout.currency;\n this.delivery_method = payout.delivery_method || 'standard';\n this.description = payout.description;\n this.deposits_at = payout.deposits_at;\n this.fees_total = payout.fees_total;\n this.refunds_count = payout.refunds_count;\n this.refunds_total = payout.refunds_total;\n this.payments_count = payout.payments_count;\n this.payments_total = payout.payments_total;\n this.payout_type = payout.payout_type;\n this.other_total = payout.other_total;\n this.status = payout.status;\n this.metadata = payout.metadata;\n this.created_at = payout.created_at;\n this.updated_at = payout.updated_at;\n }\n}\n"],"version":3}
1
+ {"file":"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C,MAAM,CAAC;IAC5B,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;IACxC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;IAChC,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,eAAe,IAAI,UAAU,CAAC;IAC5D,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;IACtC,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;IACtC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;IACpC,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;IAC1C,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;IAC1C,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;IAC5C,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;IAC5C,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;IACtC,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;IACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5B,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;IAChC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;IACpC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;GACrC;;;;;","names":[],"sources":["src/api/Payment.ts","src/api/Payout.ts"],"sourcesContent":["export enum CaptureStrategy {\n automatic = 'automatic',\n manual = 'manual',\n}\n\nexport enum PaymentMethodTypes {\n card = 'card',\n bankAccount = 'bankAccount',\n}\n\nexport enum PaymentStatuses {\n pending = 'pending',\n authorized = 'authorized',\n succeeded = 'succeeded',\n failed = 'failed',\n disputed = 'disputed',\n fully_refunded = 'fully_refunded',\n partially_refunded = 'partially_refunded',\n}\n\nexport enum PaymentDisputedStatuses {\n // if a dispute is 'won', we don't show a dispute status, just general status\n lost = 'lost',\n open = 'open',\n}\n\nexport interface IPaymentMethod {\n card?: ICard;\n bank_account?: IBankAccount;\n}\n\nexport type CardBrand =\n | 'american_express'\n | 'diners_club'\n | 'discover'\n | 'jcb'\n | 'mastercard'\n | 'china_unionpay'\n | 'visa'\n | 'unknown';\n\nexport interface IBankAccount {\n id: string;\n acct_last_four: string;\n account_owner_name: string;\n bank_name: string;\n token: string\n created_at: string;\n updated_at: string;\n}\n\nexport interface ICard {\n id: string;\n acct_last_four: string;\n name: string;\n brand: CardBrand;\n token: string;\n created_at: string;\n updated_at: string;\n}\n\nexport interface IDispute {\n amount_cents: number;\n created_at: string;\n currency: string;\n gateway_ref_id: string;\n id: string;\n payment_id: string;\n reason: null;\n status: string;\n updated_at: string;\n}\n\nexport interface IPayment {\n id: string;\n account_id: string;\n amount: number;\n amount_disputed: number;\n amount_refundable: number;\n amount_refunded: number;\n balance: number;\n captured: boolean;\n capture_strategy: CaptureStrategy;\n currency: 'usd';\n description: string;\n disputed: boolean;\n disputes: IDispute[];\n error_code: string | null;\n error_description: string | null;\n fee_amount: number;\n is_test: boolean;\n metadata: Object | null;\n payment_method: IPaymentMethod;\n payment_intent_id: string | null;\n refunded: boolean;\n status: PaymentStatuses;\n created_at: string;\n updated_at: string;\n}\n\nexport class Payment implements IPayment {\n public id: string;\n public account_id: string;\n public amount: number;\n public amount_disputed: number;\n public amount_refundable: number;\n public amount_refunded: number;\n public balance: number;\n public captured: boolean;\n public capture_strategy: CaptureStrategy;\n public currency: 'usd';\n public description: string;\n public disputed: boolean;\n public disputes: IDispute[];\n public error_code: string | null;\n public error_description: string | null;\n public fee_amount: number;\n public is_test: boolean;\n public metadata: Object | null;\n public payment_method: IPaymentMethod;\n public payment_intent_id: string | null;\n public refunded: boolean;\n public status: PaymentStatuses;\n public created_at: string;\n public updated_at: string;\n public statement_descriptor?: string;\n\n constructor(payment: IPayment) {\n this.id = payment.id;\n this.account_id = payment.account_id;\n this.amount = payment.amount;\n this.amount_disputed = payment.amount_disputed;\n this.amount_refundable = payment.amount_refundable;\n this.amount_refunded = payment.amount_refunded;\n this.balance = payment.balance;\n this.captured = payment.captured;\n this.capture_strategy = payment.capture_strategy;\n this.currency = payment.currency;\n this.description = payment.description;\n this.disputed = payment.disputed;\n this.disputes = payment.disputes;\n this.error_code = payment.error_code;\n this.error_description = payment.error_description;\n this.fee_amount = payment.fee_amount;\n this.is_test = payment.is_test;\n this.metadata = payment.metadata;\n this.payment_method = payment.payment_method;\n this.payment_intent_id = payment.payment_intent_id;\n this.refunded = payment.refunded;\n this.status = payment.status;\n this.created_at = payment.created_at;\n this.updated_at = payment.updated_at;\n }\n\n get disputedStatus(): PaymentDisputedStatuses | null {\n const lost = this.disputes.some(\n dispute => dispute.status === PaymentDisputedStatuses.lost,\n );\n // if a dispute is 'won', we don't show a dispute status, just general status\n if (!this.disputed) {\n return null;\n } else if (lost) {\n return PaymentDisputedStatuses.lost;\n } else {\n return PaymentDisputedStatuses.open;\n }\n }\n}\n\nexport interface IPaymentBalanceTransaction {\n id: string;\n amount: number;\n balance: number;\n currency: 'usd';\n financial_transaction_id: string;\n payment_id: string;\n payment_balance_txn_type: string;\n source_id: string;\n source_type: string;\n created_at: string;\n updated_at: string;\n}\n\nexport class PaymentBalanceTransaction implements IPaymentBalanceTransaction {\n public id: string;\n public amount: number;\n public balance: number;\n public currency: 'usd';\n public financial_transaction_id: string;\n public payment_id: string;\n public payment_balance_txn_type: string;\n public source_id: string;\n public source_type: string;\n public created_at: string;\n public updated_at: string;\n\n constructor(balanceTransaction: IPaymentBalanceTransaction) {\n this.id = balanceTransaction.id;\n this.amount = balanceTransaction.amount;\n this.balance = balanceTransaction.balance;\n this.currency = balanceTransaction.currency;\n this.financial_transaction_id = balanceTransaction.financial_transaction_id;\n this.payment_id = balanceTransaction.payment_id;\n this.payment_balance_txn_type = balanceTransaction.payment_balance_txn_type;\n this.source_id = balanceTransaction.source_id;\n this.source_type = balanceTransaction.source_type;\n this.created_at = balanceTransaction.created_at;\n this.updated_at = balanceTransaction.updated_at;\n }\n\n get displayTransactionId(): string {\n return this.payment_balance_txn_type === 'payment_fee'\n ? '--'\n : this.source_id;\n }\n}\n","import { BankAccount } from \"./shared\";\n\nexport enum PayoutStatuses {\n paid = 'paid',\n failed = 'failed',\n forwarded = 'forwarded',\n scheduled = 'scheduled',\n in_transit = 'in_transit',\n canceled = 'canceled',\n}\n\nexport enum PayoutStatusesSafeNames {\n paid = 'Paid',\n failed = 'Failed',\n forwarded = 'Forwarded',\n scheduled = 'Scheduled',\n in_transit = 'In Transit',\n canceled = 'Canceled',\n}\n\nexport interface IPayout {\n id: string;\n account_id: string;\n amount: number;\n bank_account: BankAccount;\n currency: 'usd';\n delivery_method: string;\n description: string;\n deposits_at: string;\n fees_total: number;\n refunds_count: number;\n refunds_total: number;\n payments_count: number;\n payments_total: number;\n payout_type: 'ach' | 'cc';\n other_total: number;\n status: PayoutStatuses;\n metadata: any;\n created_at: string;\n updated_at: string;\n}\n\nexport class Payout implements IPayout {\n public id: string;\n public account_id: string;\n public amount: number;\n public bank_account: BankAccount;\n public currency: 'usd';\n public delivery_method: string;\n public description: string;\n public deposits_at: string;\n public fees_total: number;\n public refunds_count: number;\n public refunds_total: number;\n public payments_count: number;\n public payments_total: number;\n public payout_type: 'ach' | 'cc';\n public other_total: number;\n public status: PayoutStatuses;\n public metadata: any;\n public created_at: string;\n public updated_at: string;\n\n constructor(payout: IPayout) {\n this.id = payout.id;\n this.account_id = payout.account_id;\n this.amount = payout.amount;\n this.bank_account = payout.bank_account;\n this.currency = payout.currency;\n this.delivery_method = payout.delivery_method || 'standard';\n this.description = payout.description;\n this.deposits_at = payout.deposits_at;\n this.fees_total = payout.fees_total;\n this.refunds_count = payout.refunds_count;\n this.refunds_total = payout.refunds_total;\n this.payments_count = payout.payments_count;\n this.payments_total = payout.payments_total;\n this.payout_type = payout.payout_type;\n this.other_total = payout.other_total;\n this.status = payout.status;\n this.metadata = payout.metadata;\n this.created_at = payout.created_at;\n this.updated_at = payout.updated_at;\n }\n}\n"],"version":3}
@@ -1,15 +1,13 @@
1
1
  const config = {
2
2
  iframeOrigin: 'https://js.justifi.ai/v2',
3
- exampleBusinessId: 'biz_3GCA2FgtShugA9O6dlLfH3',
4
- exampleBusinessAccountId: 'acc_5u5Dus39Meb1qqSsu5U7qS',
5
3
  proxyApiOrigin: 'https://wc-proxy.justifi.ai',
6
- proxyAuthToken: 'eyJraWQiOiJqdXN0aWZpLWUyNDgyMmU3ODE1MmEzZjRkMjU1IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiJodHRwczovL2F1dGguanVzdGlmaS5haS8iLCJhenAiOiJvYXNfMllwZDd3bFQ2NGFlZzc5aGhZaFVBdSIsInN1YiI6Im9hc18yWXBkN3dsVDY0YWVnNzloaFloVUF1QHNlc3Npb25zIiwiYXVkIjoiaHR0cHM6Ly9hcGkuanVzdGlmaS5haS92MSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyIsInBlcm1pc3Npb25zIjpbeyJyb2xlIjoicmVhZDphY2NvdW50IiwicmVzb3VyY2VfaWQiOiJhY2NfMUdCS1Mycmc3bUxsMnIzRHM0TlBQWSJ9XSwiZXhwIjoxNzA4Mjc4MTk2LCJpYXQiOjE3MDA1MDIxOTYsInBsYXRmb3JtX2FjY291bnRfaWQiOiJhY2NfN2NWbmc3ZXNDdmZIZXZXUUxTd2xuayJ9.Ks6U_mPlNDX09G9T75RPR__VKYZOeknPxLFr1O5Ri6yr9khAtUb_RwBx366qpf19MZ0NyxVtCb7qdXOhL9cb1Xl0owfqBZJXz3vvedfDui_4S9A5YdG4fy82Ja4p4fsCJGgkTgVHu_KBd9tmPY9SOTvRv8PBXdeCAYqqG4VR-sc9nSRtol62uB_kRcN3GRsptN8MTbWHwoqWGOolBCmzk12d9wjO-9t3X3jZ7LIOKP6rO9Lqn1Sh1KfoiUkyiv_TyHbwoQsqU11LZ6XWmDzPGukSdwNwV7qfSFAH4ldAiDYUGDIzFARCr6PEF2MwEC2e6myObiCXWNjg3X1C6oUS6Q',
7
- examplePaymentsAccountId: 'acc_1GBKS2rg7mLl2r3Ds4NPPY',
8
- examplePaymentId: 'py_4KkUgtKYHT1A6empFws90I',
9
- examplePayoutId: 'po_zBUZ6WvMEzoPzwS0qUmWE',
10
- privateApiOrigin: 'https://api.justifi.ai/v1',
4
+ proxyAuthToken: 'eyJraWQiOiJqdXN0aWZpLWUyNDgyMmU3ODE1MmEzZjRkMjU1IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiJodHRwczovL2F1dGguanVzdGlmaS5haS8iLCJhenAiOiJvYXNfMmlsWHBqOHQ2WVlEQ0xWU0FiVFczMiIsInN1YiI6Im9hc18yaWxYcGo4dDZZWURDTFZTQWJUVzMyQHNlc3Npb25zIiwiYXVkIjoiaHR0cHM6Ly9hcGkuanVzdGlmaS5haS92MSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyIsInBlcm1pc3Npb25zIjpbeyJyb2xlIjoicmVhZDphY2NvdW50IiwicmVzb3VyY2VfaWQiOiJhY2NfNUV0OWlYclNTQVpSMktTb3VRR0FXaSJ9LHsicm9sZSI6InJlYWQ6YnVzaW5lc3MiLCJyZXNvdXJjZV9pZCI6ImJpel8zYmg2OWJxMXJrM2RtWE5vQUtWb251In1dLCJleHAiOjE3MTE1NTk0MTQsImlhdCI6MTcwMzc4MzQxNCwicGxhdGZvcm1fYWNjb3VudF9pZCI6ImFjY18zcmVOYjRhTll5MmlXRFpRVmN6bXg0In0.oPOoDYxzrnpE8PRUaz-FCU4KqnSuNbFTeDkl3AtMscjUkIctP1OIFh-ZGBjbH5eVH5noXCbaiin0j92dS7jx4gLpxuYT2Q8gpZbuIsT7fa58elvGeRkUUJ-AC5ueZxlv90yPWMm0OIbyrV7XZhuwYyKbV-ZczEbl2JpvBMe40CM-LdClQV66d_-Kw9a23SabBVfYgP5V-5OsagOIESvzZoO-27tGlNkV2a-hxqddDCOZv0HvRYAtp5S7EQrmRdEBu5gCNbf1eRFG424hxZUFVr2LdetYuKQLxJjDdUjf86ZwEUecrEaDSupiN1VC3CitdOwBVf6-R_N0VpN4VLVD5g',
5
+ exampleAccountId: 'acc_5Et9iXrSSAZR2KSouQGAWi',
6
+ exampleBusinessId: 'biz_3bh69bq1rk3dmXNoAKVonu',
7
+ examplePaymentId: 'py_1NNeEnf4FbelxDCQN2RHcE',
8
+ examplePayoutId: 'po_17745yESnHyEgWNeunmhmR',
9
+ privateApiOrigin: '',
11
10
  privateAuthToken: '',
12
- examplePlatformAccountId: 'acc_5u5Dus39Meb1qqSsu5U7qS'
13
11
  };
14
12
 
15
13
  export { config as c };
@@ -1 +1 @@
1
- {"file":"config.js","mappings":"MAAa,MAAM,GAAG;EACpB,YAAY,EAAE,0BAAmB;EACjC,iBAAiB,EAAE,4BAAyB;EAC5C,wBAAwB,EAAE,4BAAiC;EAC3D,cAAc,EAAE,6BAAsB;EACtC,cAAc,EAAE,w3BAAsB;EACtC,wBAAwB,EAAE,4BAAiC;EAC3D,gBAAgB,EAAE,2BAAwB;EAC1C,eAAe,EAAE,0BAAuB;EACxC,gBAAgB,EAAE,2BAAwB;EAC1C,gBAAgB,EAAE,EAAwB;EAC1C,wBAAwB,EAAE,4BAAiC;;;;;","names":[],"sources":["config.ts"],"sourcesContent":["export const config = {\n iframeOrigin: 'ENV_IFRAME_ORIGIN',\n exampleBusinessId: 'ENV_EXAMPLE_BUSINESS_ID',\n exampleBusinessAccountId: 'ENV_EXAMPLE_BUSINESS_ACCOUNT_ID',\n proxyApiOrigin: 'ENV_PROXY_API_ORIGIN',\n proxyAuthToken: 'ENV_PROXY_AUTH_TOKEN',\n examplePaymentsAccountId: 'ENV_EXAMPLE_PAYMENTS_ACCOUNT_ID',\n examplePaymentId: 'ENV_EXAMPLE_PAYMENT_ID',\n examplePayoutId: 'ENV_EXAMPLE_PAYOUT_ID',\n privateApiOrigin: 'ENV_PRIVATE_API_ORIGIN',\n privateAuthToken: 'ENV_PRIVATE_AUTH_TOKEN',\n examplePlatformAccountId: 'ENV_EXAMPLE_PLATFORM_ACCOUNT_ID'\n};\n"],"version":3}
1
+ {"file":"config.js","mappings":"MAAa,MAAM,GAAG;EACpB,YAAY,EAAE,0BAA0B;EACxC,cAAc,EAAE,6BAA6B;EAC7C,cAAc,EAAE,m9BAAm9B;EACn+B,gBAAgB,EAAE,4BAA4B;EAC9C,iBAAiB,EAAE,4BAA4B;EAC/C,gBAAgB,EAAE,2BAA2B;EAC7C,eAAe,EAAE,2BAA2B;EAC5C,gBAAgB,EAAE,EAAE;EACpB,gBAAgB,EAAE,EAAE;;;;;","names":[],"sources":["config.ts"],"sourcesContent":["export const config = {\n iframeOrigin: 'https://js.justifi.ai/v2',\n proxyApiOrigin: 'https://wc-proxy.justifi.ai',\n proxyAuthToken: 'eyJraWQiOiJqdXN0aWZpLWUyNDgyMmU3ODE1MmEzZjRkMjU1IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiJodHRwczovL2F1dGguanVzdGlmaS5haS8iLCJhenAiOiJvYXNfMmlsWHBqOHQ2WVlEQ0xWU0FiVFczMiIsInN1YiI6Im9hc18yaWxYcGo4dDZZWURDTFZTQWJUVzMyQHNlc3Npb25zIiwiYXVkIjoiaHR0cHM6Ly9hcGkuanVzdGlmaS5haS92MSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyIsInBlcm1pc3Npb25zIjpbeyJyb2xlIjoicmVhZDphY2NvdW50IiwicmVzb3VyY2VfaWQiOiJhY2NfNUV0OWlYclNTQVpSMktTb3VRR0FXaSJ9LHsicm9sZSI6InJlYWQ6YnVzaW5lc3MiLCJyZXNvdXJjZV9pZCI6ImJpel8zYmg2OWJxMXJrM2RtWE5vQUtWb251In1dLCJleHAiOjE3MTE1NTk0MTQsImlhdCI6MTcwMzc4MzQxNCwicGxhdGZvcm1fYWNjb3VudF9pZCI6ImFjY18zcmVOYjRhTll5MmlXRFpRVmN6bXg0In0.oPOoDYxzrnpE8PRUaz-FCU4KqnSuNbFTeDkl3AtMscjUkIctP1OIFh-ZGBjbH5eVH5noXCbaiin0j92dS7jx4gLpxuYT2Q8gpZbuIsT7fa58elvGeRkUUJ-AC5ueZxlv90yPWMm0OIbyrV7XZhuwYyKbV-ZczEbl2JpvBMe40CM-LdClQV66d_-Kw9a23SabBVfYgP5V-5OsagOIESvzZoO-27tGlNkV2a-hxqddDCOZv0HvRYAtp5S7EQrmRdEBu5gCNbf1eRFG424hxZUFVr2LdetYuKQLxJjDdUjf86ZwEUecrEaDSupiN1VC3CitdOwBVf6-R_N0VpN4VLVD5g',\n exampleAccountId: 'acc_5Et9iXrSSAZR2KSouQGAWi',\n exampleBusinessId: 'biz_3bh69bq1rk3dmXNoAKVonu',\n examplePaymentId: 'py_1NNeEnf4FbelxDCQN2RHcE',\n examplePayoutId: 'po_17745yESnHyEgWNeunmhmR',\n privateApiOrigin: '',\n privateAuthToken: '',\n};\n"],"version":3}
@@ -4,6 +4,7 @@ import './Pagination.js';
4
4
  import './Payout.js';
5
5
  import { b as formatCurrency, c as formatDisplayDate } from './utils2.js';
6
6
  import { E as ErrorState } from './utils.js';
7
+ import { c as config } from './config.js';
7
8
 
8
9
  /*!
9
10
  * @kurkle/color v0.3.2
@@ -10991,7 +10992,7 @@ const GrossPaymentChart = /*@__PURE__*/ proxyCustomElement(class GrossPaymentCha
10991
10992
  return;
10992
10993
  }
10993
10994
  this.loading = true;
10994
- const api = Api(this.authToken, process.env.PRIVATE_API_ORIGIN);
10995
+ const api = Api(this.authToken, config.proxyApiOrigin);
10995
10996
  const endpoint = `account/${this.accountId}/reports/gross_volume`;
10996
10997
  const response = await api.get(endpoint);
10997
10998
  if (!response.error) {