@thera-hr/api-sdk 1.2.0-prerelease2407-dev-2 → 1.2.0-prerelease2416-production

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 (142) hide show
  1. package/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  2. package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  3. package/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  4. package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  5. package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  6. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +17 -3
  7. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +107 -47
  8. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRangeRequest.d.ts +25 -0
  9. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRangeRequest.js +5 -0
  10. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRequest.d.ts +1 -11
  11. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +1 -0
  12. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.d.ts +8 -0
  13. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.js +5 -0
  14. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  15. package/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  16. package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
  17. package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  18. package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  19. package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  20. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  21. package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  22. package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  23. package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  24. package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  25. package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  26. package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  27. package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
  28. package/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  29. package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  30. package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  31. package/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  32. package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  33. package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  34. package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +14 -14
  35. package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  36. package/api/resources/db/resources/company/types/Company.d.ts +1 -0
  37. package/api/resources/db/resources/company/types/StripeAccountInfo.d.ts +7 -0
  38. package/api/resources/db/resources/company/types/StripeAccountInfo.js +5 -0
  39. package/api/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.d.ts +9 -0
  40. package/api/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.js +5 -0
  41. package/api/resources/db/resources/company/types/index.d.ts +2 -0
  42. package/api/resources/db/resources/company/types/index.js +2 -0
  43. package/api/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.d.ts +1 -0
  44. package/api/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +4 -0
  45. package/api/resources/db/resources/paymentMethod/types/StripeAccountType.d.ts +9 -0
  46. package/api/resources/db/resources/paymentMethod/types/StripeAccountType.js +11 -0
  47. package/api/resources/db/resources/paymentMethod/types/index.d.ts +1 -0
  48. package/api/resources/db/resources/paymentMethod/types/index.js +1 -0
  49. package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
  50. package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
  51. package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
  52. package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
  53. package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
  54. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.d.ts +17 -3
  55. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +107 -47
  56. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRangeRequest.d.ts +25 -0
  57. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRangeRequest.js +5 -0
  58. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/GetWorkerTransactionsRequest.d.ts +1 -11
  59. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/requests/index.d.ts +1 -0
  60. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.d.ts +8 -0
  61. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.js +5 -0
  62. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  63. package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  64. package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +29 -29
  65. package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
  66. package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +6 -6
  67. package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
  68. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
  69. package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
  70. package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
  71. package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
  72. package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
  73. package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
  74. package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +3 -3
  75. package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +9 -9
  76. package/dist/api/resources/api/resources/thera/resources/payroll/resources/expenseApi/client/Client.js +11 -11
  77. package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
  78. package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +5 -5
  79. package/dist/api/resources/api/resources/thera/resources/payroll/resources/payscheduleApi/client/Client.js +7 -7
  80. package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +15 -15
  81. package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
  82. package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +14 -14
  83. package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
  84. package/dist/api/resources/db/resources/company/types/Company.d.ts +1 -0
  85. package/dist/api/resources/db/resources/company/types/StripeAccountInfo.d.ts +7 -0
  86. package/dist/api/resources/db/resources/company/types/StripeAccountInfo.js +5 -0
  87. package/dist/api/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.d.ts +9 -0
  88. package/dist/api/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.js +5 -0
  89. package/dist/api/resources/db/resources/company/types/index.d.ts +2 -0
  90. package/dist/api/resources/db/resources/company/types/index.js +2 -0
  91. package/dist/api/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.d.ts +1 -0
  92. package/dist/api/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +4 -0
  93. package/dist/api/resources/db/resources/paymentMethod/types/StripeAccountType.d.ts +9 -0
  94. package/dist/api/resources/db/resources/paymentMethod/types/StripeAccountType.js +11 -0
  95. package/dist/api/resources/db/resources/paymentMethod/types/index.d.ts +1 -0
  96. package/dist/api/resources/db/resources/paymentMethod/types/index.js +1 -0
  97. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.d.ts +14 -0
  98. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.js +45 -0
  99. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  100. package/dist/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  101. package/dist/serialization/resources/db/resources/company/types/Company.d.ts +2 -0
  102. package/dist/serialization/resources/db/resources/company/types/Company.js +2 -0
  103. package/dist/serialization/resources/db/resources/company/types/StripeAccountInfo.d.ts +13 -0
  104. package/dist/serialization/resources/db/resources/company/types/StripeAccountInfo.js +44 -0
  105. package/dist/serialization/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.d.ts +15 -0
  106. package/dist/serialization/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.js +46 -0
  107. package/dist/serialization/resources/db/resources/company/types/index.d.ts +2 -0
  108. package/dist/serialization/resources/db/resources/company/types/index.js +2 -0
  109. package/dist/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.d.ts +1 -0
  110. package/dist/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.js +1 -0
  111. package/dist/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +4 -0
  112. package/dist/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.js +4 -0
  113. package/dist/serialization/resources/db/resources/paymentMethod/types/StripeAccountType.d.ts +10 -0
  114. package/dist/serialization/resources/db/resources/paymentMethod/types/StripeAccountType.js +41 -0
  115. package/dist/serialization/resources/db/resources/paymentMethod/types/index.d.ts +1 -0
  116. package/dist/serialization/resources/db/resources/paymentMethod/types/index.js +1 -0
  117. package/dist/version.d.ts +1 -1
  118. package/dist/version.js +1 -1
  119. package/package.json +1 -1
  120. package/reference.md +82 -1
  121. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.d.ts +14 -0
  122. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/GetWorkerTransactionsRangeResponse.js +45 -0
  123. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.d.ts +1 -0
  124. package/serialization/resources/api/resources/thera/resources/bank/resources/bankApi/types/index.js +1 -0
  125. package/serialization/resources/db/resources/company/types/Company.d.ts +2 -0
  126. package/serialization/resources/db/resources/company/types/Company.js +2 -0
  127. package/serialization/resources/db/resources/company/types/StripeAccountInfo.d.ts +13 -0
  128. package/serialization/resources/db/resources/company/types/StripeAccountInfo.js +44 -0
  129. package/serialization/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.d.ts +15 -0
  130. package/serialization/resources/db/resources/company/types/StripeMultipleAccountCustomerInfo.js +46 -0
  131. package/serialization/resources/db/resources/company/types/index.d.ts +2 -0
  132. package/serialization/resources/db/resources/company/types/index.js +2 -0
  133. package/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.d.ts +1 -0
  134. package/serialization/resources/db/resources/paymentMethod/types/CompanyPaymentMethod.js +1 -0
  135. package/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.d.ts +4 -0
  136. package/serialization/resources/db/resources/paymentMethod/types/PlaidPostVerificationPaymentMethodDetails.js +4 -0
  137. package/serialization/resources/db/resources/paymentMethod/types/StripeAccountType.d.ts +10 -0
  138. package/serialization/resources/db/resources/paymentMethod/types/StripeAccountType.js +41 -0
  139. package/serialization/resources/db/resources/paymentMethod/types/index.d.ts +1 -0
  140. package/serialization/resources/db/resources/paymentMethod/types/index.js +1 -0
  141. package/version.d.ts +1 -1
  142. package/version.js +1 -1
@@ -37,6 +37,7 @@ export interface Company {
37
37
  ledgerAccountIdsByCurrency: Record<string, string>;
38
38
  v2LedgerAccountIdsByCurrency: Record<string, string>;
39
39
  teamsById: Record<string, TheraApi.db.Team>;
40
+ stripeMultipleAccountInfo?: TheraApi.db.StripeMultipleAccountCustomerInfo;
40
41
  /** URLs for the business website(s). At least one is required for banking companies. */
41
42
  urls: string[];
42
43
  companyDescription?: string;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface StripeAccountInfo {
5
+ stripeCustomerId: string;
6
+ defaultPaymentMethodId: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as TheraApi from "../../../../../index";
5
+ export interface StripeMultipleAccountCustomerInfo {
6
+ mainAccount: TheraApi.db.StripeAccountInfo;
7
+ revenueAccount: TheraApi.db.StripeAccountInfo;
8
+ eorAccount: TheraApi.db.StripeAccountInfo;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -53,3 +53,5 @@ export * from "./HolidayDate";
53
53
  export * from "./UserHolidaysResponse";
54
54
  export * from "./AssociateUsersToHolidayPolicyResponse";
55
55
  export * from "./DeleteCustomHolidayResponse";
56
+ export * from "./StripeMultipleAccountCustomerInfo";
57
+ export * from "./StripeAccountInfo";
@@ -69,3 +69,5 @@ __exportStar(require("./HolidayDate"), exports);
69
69
  __exportStar(require("./UserHolidaysResponse"), exports);
70
70
  __exportStar(require("./AssociateUsersToHolidayPolicyResponse"), exports);
71
71
  __exportStar(require("./DeleteCustomHolidayResponse"), exports);
72
+ __exportStar(require("./StripeMultipleAccountCustomerInfo"), exports);
73
+ __exportStar(require("./StripeAccountInfo"), exports);
@@ -18,4 +18,5 @@ export interface CompanyPaymentMethod {
18
18
  deletionDetails?: TheraApi.db.CompanyPaymentMethodDeletionDetails;
19
19
  /** If empty, it means it's not Stripe payment method */
20
20
  stripeMandateStatus?: TheraApi.db.StripeMandateStatus;
21
+ stripeCustomerId?: string;
21
22
  }
@@ -1,8 +1,11 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as TheraApi from "../../../../../index";
4
5
  export interface PlaidPostVerificationPaymentMethodDetails {
5
6
  stripePaymentMethodId: string;
7
+ revenueStripePaymentMethodId?: string;
8
+ eorStripePaymentMethodId?: string;
6
9
  /**
7
10
  * These tokens can only be used once, but persisting them anyways. In case, for example, we had some failure in
8
11
  * creating the payment method in Stripe and we need to try again.
@@ -23,4 +26,5 @@ export interface PlaidPostVerificationPaymentMethodDetails {
23
26
  checkBankAccountId?: string;
24
27
  accountNumber: string;
25
28
  routingNumber: string;
29
+ accountType?: TheraApi.db.StripeAccountType;
26
30
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type StripeAccountType = "MAIN" | "REVENUE" | "EOR";
5
+ export declare const StripeAccountType: {
6
+ readonly Main: "MAIN";
7
+ readonly Revenue: "REVENUE";
8
+ readonly Eor: "EOR";
9
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.StripeAccountType = void 0;
7
+ exports.StripeAccountType = {
8
+ Main: "MAIN",
9
+ Revenue: "REVENUE",
10
+ Eor: "EOR",
11
+ };
@@ -10,3 +10,4 @@ export * from "./StripeUsBankAccountPaymentMethodDetails";
10
10
  export * from "./StripeAcssDebitAccountPaymentMethodDetails";
11
11
  export * from "./StripeBankAccountVerificationStatus";
12
12
  export * from "./StripeCardPaymentMethodDetails";
13
+ export * from "./StripeAccountType";
@@ -26,3 +26,4 @@ __exportStar(require("./StripeUsBankAccountPaymentMethodDetails"), exports);
26
26
  __exportStar(require("./StripeAcssDebitAccountPaymentMethodDetails"), exports);
27
27
  __exportStar(require("./StripeBankAccountVerificationStatus"), exports);
28
28
  __exportStar(require("./StripeCardPaymentMethodDetails"), exports);
29
+ __exportStar(require("./StripeAccountType"), exports);
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../../index";
5
+ import * as TheraApi from "../../../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../../../core";
7
+ import { WorkerTransaction } from "./WorkerTransaction";
8
+ export declare const GetWorkerTransactionsRangeResponse: core.serialization.ObjectSchema<serializers.api.thera.bank.GetWorkerTransactionsRangeResponse.Raw, TheraApi.api.thera.bank.GetWorkerTransactionsRangeResponse>;
9
+ export declare namespace GetWorkerTransactionsRangeResponse {
10
+ interface Raw {
11
+ transactions: WorkerTransaction.Raw[];
12
+ csv?: string | null;
13
+ }
14
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.GetWorkerTransactionsRangeResponse = void 0;
40
+ const core = __importStar(require("../../../../../../../../../../core"));
41
+ const WorkerTransaction_1 = require("./WorkerTransaction");
42
+ exports.GetWorkerTransactionsRangeResponse = core.serialization.object({
43
+ transactions: core.serialization.list(WorkerTransaction_1.WorkerTransaction),
44
+ csv: core.serialization.string().optional(),
45
+ });
@@ -61,6 +61,7 @@ export * from "./HistoricalInvoice";
61
61
  export * from "./GetWorkerBalancesResponse";
62
62
  export * from "./WorkerBalance";
63
63
  export * from "./GetWorkerTransactionsResponse";
64
+ export * from "./GetWorkerTransactionsRangeResponse";
64
65
  export * from "./WorkerTransaction";
65
66
  export * from "./WorkerTransactionDetails";
66
67
  export * from "./WorkerWithdrawalTransaction";
@@ -77,6 +77,7 @@ __exportStar(require("./HistoricalInvoice"), exports);
77
77
  __exportStar(require("./GetWorkerBalancesResponse"), exports);
78
78
  __exportStar(require("./WorkerBalance"), exports);
79
79
  __exportStar(require("./GetWorkerTransactionsResponse"), exports);
80
+ __exportStar(require("./GetWorkerTransactionsRangeResponse"), exports);
80
81
  __exportStar(require("./WorkerTransaction"), exports);
81
82
  __exportStar(require("./WorkerTransactionDetails"), exports);
82
83
  __exportStar(require("./WorkerWithdrawalTransaction"), exports);
@@ -12,6 +12,7 @@ import { Flags } from "./Flags";
12
12
  import { CompanySettings } from "./CompanySettings";
13
13
  import { BankAccountResponseMetadata } from "./BankAccountResponseMetadata";
14
14
  import { Team } from "./Team";
15
+ import { StripeMultipleAccountCustomerInfo } from "./StripeMultipleAccountCustomerInfo";
15
16
  import { TpCompanyInformation } from "./TpCompanyInformation";
16
17
  import { MercoaCompanyDetails } from "./MercoaCompanyDetails";
17
18
  import { CompanyAccountingInformation } from "./CompanyAccountingInformation";
@@ -44,6 +45,7 @@ export declare namespace Company {
44
45
  ledgerAccountIdsByCurrency: Record<string, string>;
45
46
  v2LedgerAccountIdsByCurrency: Record<string, string>;
46
47
  teamsById: Record<string, Team.Raw>;
48
+ stripeMultipleAccountInfo?: StripeMultipleAccountCustomerInfo.Raw | null;
47
49
  urls: string[];
48
50
  companyDescription?: string | null;
49
51
  tp?: TpCompanyInformation.Raw | null;
@@ -46,6 +46,7 @@ const Flags_1 = require("./Flags");
46
46
  const CompanySettings_1 = require("./CompanySettings");
47
47
  const BankAccountResponseMetadata_1 = require("./BankAccountResponseMetadata");
48
48
  const Team_1 = require("./Team");
49
+ const StripeMultipleAccountCustomerInfo_1 = require("./StripeMultipleAccountCustomerInfo");
49
50
  const TpCompanyInformation_1 = require("./TpCompanyInformation");
50
51
  const MercoaCompanyDetails_1 = require("./MercoaCompanyDetails");
51
52
  const CompanyAccountingInformation_1 = require("./CompanyAccountingInformation");
@@ -76,6 +77,7 @@ exports.Company = core.serialization.object({
76
77
  ledgerAccountIdsByCurrency: core.serialization.record(core.serialization.string(), core.serialization.string()),
77
78
  v2LedgerAccountIdsByCurrency: core.serialization.record(core.serialization.string(), core.serialization.string()),
78
79
  teamsById: core.serialization.record(core.serialization.string(), Team_1.Team),
80
+ stripeMultipleAccountInfo: StripeMultipleAccountCustomerInfo_1.StripeMultipleAccountCustomerInfo.optional(),
79
81
  urls: core.serialization.list(core.serialization.string()),
80
82
  companyDescription: core.serialization.string().optional(),
81
83
  tp: TpCompanyInformation_1.TpCompanyInformation.optional(),
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as TheraApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ export declare const StripeAccountInfo: core.serialization.ObjectSchema<serializers.db.StripeAccountInfo.Raw, TheraApi.db.StripeAccountInfo>;
8
+ export declare namespace StripeAccountInfo {
9
+ interface Raw {
10
+ stripeCustomerId: string;
11
+ defaultPaymentMethodId: string;
12
+ }
13
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.StripeAccountInfo = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ exports.StripeAccountInfo = core.serialization.object({
42
+ stripeCustomerId: core.serialization.string(),
43
+ defaultPaymentMethodId: core.serialization.string(),
44
+ });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as TheraApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ import { StripeAccountInfo } from "./StripeAccountInfo";
8
+ export declare const StripeMultipleAccountCustomerInfo: core.serialization.ObjectSchema<serializers.db.StripeMultipleAccountCustomerInfo.Raw, TheraApi.db.StripeMultipleAccountCustomerInfo>;
9
+ export declare namespace StripeMultipleAccountCustomerInfo {
10
+ interface Raw {
11
+ mainAccount: StripeAccountInfo.Raw;
12
+ revenueAccount: StripeAccountInfo.Raw;
13
+ eorAccount: StripeAccountInfo.Raw;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.StripeMultipleAccountCustomerInfo = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ const StripeAccountInfo_1 = require("./StripeAccountInfo");
42
+ exports.StripeMultipleAccountCustomerInfo = core.serialization.object({
43
+ mainAccount: StripeAccountInfo_1.StripeAccountInfo,
44
+ revenueAccount: StripeAccountInfo_1.StripeAccountInfo,
45
+ eorAccount: StripeAccountInfo_1.StripeAccountInfo,
46
+ });
@@ -53,3 +53,5 @@ export * from "./HolidayDate";
53
53
  export * from "./UserHolidaysResponse";
54
54
  export * from "./AssociateUsersToHolidayPolicyResponse";
55
55
  export * from "./DeleteCustomHolidayResponse";
56
+ export * from "./StripeMultipleAccountCustomerInfo";
57
+ export * from "./StripeAccountInfo";
@@ -69,3 +69,5 @@ __exportStar(require("./HolidayDate"), exports);
69
69
  __exportStar(require("./UserHolidaysResponse"), exports);
70
70
  __exportStar(require("./AssociateUsersToHolidayPolicyResponse"), exports);
71
71
  __exportStar(require("./DeleteCustomHolidayResponse"), exports);
72
+ __exportStar(require("./StripeMultipleAccountCustomerInfo"), exports);
73
+ __exportStar(require("./StripeAccountInfo"), exports);
@@ -18,5 +18,6 @@ export declare namespace CompanyPaymentMethod {
18
18
  details: PaymentMethodDetails.Raw;
19
19
  deletionDetails?: CompanyPaymentMethodDeletionDetails.Raw | null;
20
20
  stripeMandateStatus?: StripeMandateStatus.Raw | null;
21
+ stripeCustomerId?: string | null;
21
22
  }
22
23
  }
@@ -50,4 +50,5 @@ exports.CompanyPaymentMethod = core.serialization.object({
50
50
  details: PaymentMethodDetails_1.PaymentMethodDetails,
51
51
  deletionDetails: CompanyPaymentMethodDeletionDetails_1.CompanyPaymentMethodDeletionDetails.optional(),
52
52
  stripeMandateStatus: StripeMandateStatus_1.StripeMandateStatus.optional(),
53
+ stripeCustomerId: core.serialization.string().optional(),
53
54
  });
@@ -4,10 +4,13 @@
4
4
  import * as serializers from "../../../../../index";
5
5
  import * as TheraApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
+ import { StripeAccountType } from "./StripeAccountType";
7
8
  export declare const PlaidPostVerificationPaymentMethodDetails: core.serialization.ObjectSchema<serializers.db.PlaidPostVerificationPaymentMethodDetails.Raw, TheraApi.db.PlaidPostVerificationPaymentMethodDetails>;
8
9
  export declare namespace PlaidPostVerificationPaymentMethodDetails {
9
10
  interface Raw {
10
11
  stripePaymentMethodId: string;
12
+ revenueStripePaymentMethodId?: string | null;
13
+ eorStripePaymentMethodId?: string | null;
11
14
  stripeBankAccountToken: string;
12
15
  tpPlaidProcessorToken?: string | null;
13
16
  tpCounterPartyId?: string | null;
@@ -15,5 +18,6 @@ export declare namespace PlaidPostVerificationPaymentMethodDetails {
15
18
  checkBankAccountId?: string | null;
16
19
  accountNumber: string;
17
20
  routingNumber: string;
21
+ accountType?: StripeAccountType.Raw | null;
18
22
  }
19
23
  }
@@ -38,8 +38,11 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.PlaidPostVerificationPaymentMethodDetails = void 0;
40
40
  const core = __importStar(require("../../../../../../core"));
41
+ const StripeAccountType_1 = require("./StripeAccountType");
41
42
  exports.PlaidPostVerificationPaymentMethodDetails = core.serialization.object({
42
43
  stripePaymentMethodId: core.serialization.string(),
44
+ revenueStripePaymentMethodId: core.serialization.string().optional(),
45
+ eorStripePaymentMethodId: core.serialization.string().optional(),
43
46
  stripeBankAccountToken: core.serialization.string(),
44
47
  tpPlaidProcessorToken: core.serialization.string().optional(),
45
48
  tpCounterPartyId: core.serialization.string().optional(),
@@ -47,4 +50,5 @@ exports.PlaidPostVerificationPaymentMethodDetails = core.serialization.object({
47
50
  checkBankAccountId: core.serialization.string().optional(),
48
51
  accountNumber: core.serialization.string(),
49
52
  routingNumber: core.serialization.string(),
53
+ accountType: StripeAccountType_1.StripeAccountType.optional(),
50
54
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as TheraApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ export declare const StripeAccountType: core.serialization.Schema<serializers.db.StripeAccountType.Raw, TheraApi.db.StripeAccountType>;
8
+ export declare namespace StripeAccountType {
9
+ type Raw = "MAIN" | "REVENUE" | "EOR";
10
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.StripeAccountType = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ exports.StripeAccountType = core.serialization.enum_(["MAIN", "REVENUE", "EOR"]);
@@ -10,3 +10,4 @@ export * from "./StripeUsBankAccountPaymentMethodDetails";
10
10
  export * from "./StripeAcssDebitAccountPaymentMethodDetails";
11
11
  export * from "./StripeBankAccountVerificationStatus";
12
12
  export * from "./StripeCardPaymentMethodDetails";
13
+ export * from "./StripeAccountType";
@@ -26,3 +26,4 @@ __exportStar(require("./StripeUsBankAccountPaymentMethodDetails"), exports);
26
26
  __exportStar(require("./StripeAcssDebitAccountPaymentMethodDetails"), exports);
27
27
  __exportStar(require("./StripeBankAccountVerificationStatus"), exports);
28
28
  __exportStar(require("./StripeCardPaymentMethodDetails"), exports);
29
+ __exportStar(require("./StripeAccountType"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.0-prerelease2407-dev-2";
1
+ export declare const SDK_VERSION = "1.2.0-prerelease2416-production";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.2.0-prerelease2407-dev-2";
4
+ exports.SDK_VERSION = "1.2.0-prerelease2416-production";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thera-hr/api-sdk",
3
- "version": "1.2.0-prerelease2407-dev-2",
3
+ "version": "1.2.0-prerelease2416-production",
4
4
  "private": false,
5
5
  "repository": "https://github.com/CarbonNYC/thera-typescript-sdk",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -2534,8 +2534,89 @@ await client.api.thera.bank.bankApi.getWorkerBalance("string", "string");
2534
2534
  ```typescript
2535
2535
  await client.api.thera.bank.bankApi.getWorkerTransactions("string", "string", {
2536
2536
  afterCursor: "string",
2537
+ });
2538
+ ```
2539
+
2540
+ </dd>
2541
+ </dl>
2542
+ </dd>
2543
+ </dl>
2544
+
2545
+ #### ⚙️ Parameters
2546
+
2547
+ <dl>
2548
+ <dd>
2549
+
2550
+ <dl>
2551
+ <dd>
2552
+
2553
+ **userId:** `string`
2554
+
2555
+ </dd>
2556
+ </dl>
2557
+
2558
+ <dl>
2559
+ <dd>
2560
+
2561
+ **companyId:** `string`
2562
+
2563
+ </dd>
2564
+ </dl>
2565
+
2566
+ <dl>
2567
+ <dd>
2568
+
2569
+ **request:** `TheraApi.api.thera.bank.GetWorkerTransactionsRequest`
2570
+
2571
+ </dd>
2572
+ </dl>
2573
+
2574
+ <dl>
2575
+ <dd>
2576
+
2577
+ **requestOptions:** `BankApi.RequestOptions`
2578
+
2579
+ </dd>
2580
+ </dl>
2581
+ </dd>
2582
+ </dl>
2583
+
2584
+ </dd>
2585
+ </dl>
2586
+ </details>
2587
+
2588
+ <details><summary><code>client.api.thera.bank.bankApi.<a href="/src/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.ts">getWorkerTransactionsRange</a>(userId, companyId, { ...params }) -> TheraApi.GetWorkerTransactionsRangeResponse</code></summary>
2589
+ <dl>
2590
+ <dd>
2591
+
2592
+ #### 📝 Description
2593
+
2594
+ <dl>
2595
+ <dd>
2596
+
2597
+ <dl>
2598
+ <dd>
2599
+
2600
+ Get all worker transactions within a date range. Uses autoPager to fetch all results (no pagination).
2601
+
2602
+ </dd>
2603
+ </dl>
2604
+ </dd>
2605
+ </dl>
2606
+
2607
+ #### 🔌 Usage
2608
+
2609
+ <dl>
2610
+ <dd>
2611
+
2612
+ <dl>
2613
+ <dd>
2614
+
2615
+ ```typescript
2616
+ await client.api.thera.bank.bankApi.getWorkerTransactionsRange("string", "string", {
2537
2617
  startDate: "string",
2538
2618
  endDate: "string",
2619
+ exportAs: "string",
2539
2620
  });
2540
2621
  ```
2541
2622
 
@@ -2568,7 +2649,7 @@ await client.api.thera.bank.bankApi.getWorkerTransactions("string", "string", {
2568
2649
  <dl>
2569
2650
  <dd>
2570
2651
 
2571
- **request:** `TheraApi.api.thera.bank.GetWorkerTransactionsRequest`
2652
+ **request:** `TheraApi.api.thera.bank.GetWorkerTransactionsRangeRequest`
2572
2653
 
2573
2654
  </dd>
2574
2655
  </dl>
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../../index";
5
+ import * as TheraApi from "../../../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../../../core";
7
+ import { WorkerTransaction } from "./WorkerTransaction";
8
+ export declare const GetWorkerTransactionsRangeResponse: core.serialization.ObjectSchema<serializers.api.thera.bank.GetWorkerTransactionsRangeResponse.Raw, TheraApi.api.thera.bank.GetWorkerTransactionsRangeResponse>;
9
+ export declare namespace GetWorkerTransactionsRangeResponse {
10
+ interface Raw {
11
+ transactions: WorkerTransaction.Raw[];
12
+ csv?: string | null;
13
+ }
14
+ }