@solibo/solibo-sdk 1.53.3 → 1.53.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 (31) hide show
  1. package/client/invoicing.d.mts +1 -1
  2. package/client/paymentAllocation.d.mts +1 -1
  3. package/client/paymentAllocation.mjs +19 -0
  4. package/client-core.mjs +23 -0
  5. package/client.d.mts +13 -0
  6. package/operations/invoicing.d.mts +1 -1
  7. package/operations/paymentAllocation.d.mts +2 -1
  8. package/operations/paymentAllocation.mjs +5 -0
  9. package/package.json +1 -1
  10. package/solibo-cycles/kotlinx-coroutines-core-16.mjs +5 -5
  11. package/solibo-cycles/solibo-sdk-sdk-core-53.mjs +2 -2
  12. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/client/apis/PaymentAllocationApi.export.d.mts +1 -0
  13. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/client/apis/PaymentAllocationApi.mjs +84 -0
  14. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/client/operations/ShowCompanyPaymentSourceKidInvoiceOperation.export.d.mts +3 -0
  15. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/client/operations/ShowCompanyPaymentSourceKidInvoiceOperation.export.mjs +14 -0
  16. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/client/operations/ShowCompanyPaymentSourceKidInvoiceOperation.mjs +123 -0
  17. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/KidInvoiceClosing.export.d.mts +61 -0
  18. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/KidInvoiceClosing.export.mjs +42 -0
  19. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/KidInvoiceClosing.mjs +186 -0
  20. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/KidInvoicePayment.export.d.mts +18 -0
  21. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/KidInvoicePayment.export.mjs +12 -0
  22. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/KidInvoicePayment.mjs +235 -0
  23. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/PaymentSourceKidInvoice.export.d.mts +28 -0
  24. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/PaymentSourceKidInvoice.export.mjs +12 -0
  25. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/PaymentSourceKidInvoice.mjs +535 -0
  26. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/PaymentSourceKidInvoiceResponse.export.d.mts +16 -0
  27. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/PaymentSourceKidInvoiceResponse.export.mjs +12 -0
  28. package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/PaymentSourceKidInvoiceResponse.mjs +190 -0
  29. package/solibo-sdk-sdk-api-invoicing.mjs +5 -0
  30. package/solibo-sdk-sdk-core/no/solibo/oss/sdk/telemetry/SoliboOpenTelemetry.mjs +1 -1
  31. package/solibo-sdk-sdk.d.mts +130 -0
@@ -0,0 +1,235 @@
1
+ import {
2
+ protoOf180f3jzyo7rfj as protoOf,
3
+ objectCreate1ve4bgxiu4x98 as objectCreate,
4
+ getStringHashCode26igk1bx568vk as getStringHashCode,
5
+ getBigIntHashCode294hi5bdhtj6e as getBigIntHashCode,
6
+ } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
7
+ import {
8
+ initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
9
+ initMetadataForObject1cxne3s9w65el as initMetadataForObject,
10
+ initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
11
+ } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
12
+ import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
13
+ import { PluginGeneratedSerialDescriptorqdzeg5asqhfg as PluginGeneratedSerialDescriptor } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.mjs';
14
+ import {
15
+ StringSerializer_getInstance1p9zda6r6kb23 as StringSerializer_getInstance,
16
+ LongSerializer_getInstancepwtz4tlewrfw as LongSerializer_getInstance,
17
+ } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Primitives.mjs';
18
+ import { Unit_instance3kz1zqli6gr1r as Unit_instance } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
19
+ import { THROW_CCE2g6jy02ryeudk as THROW_CCE } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/hacks.mjs';
20
+ import { UnknownFieldException_init_$Create$3n7tjepqfwwvc as UnknownFieldException_init_$Create$ } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs';
21
+ import { get_nullable197rfua9r7fsz as get_nullable } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/builtins/BuiltinSerializers.mjs';
22
+ import {
23
+ typeParametersSerializers2likxjr48tr7y as typeParametersSerializers,
24
+ GeneratedSerializer1f7t7hssdd2ws as GeneratedSerializer,
25
+ } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginHelperInterfaces.mjs';
26
+ import { throwMissingFieldException2cmke0v3ynf14 as throwMissingFieldException } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginExceptions.mjs';
27
+ import { SerializableWithd2dap36updxd as SerializableWith } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersJs.mjs';
28
+ import { __soliboBoundaryState, __soliboRegisterLookup, __soliboToJs, __soliboToKt } from '../../../../../../../../solibo-boundary.mjs';
29
+ //region block: imports
30
+ var imul = Math.imul;
31
+ //endregion
32
+ //region block: pre-declaration
33
+ //endregion
34
+ var CompanionClass;
35
+ function Companion() {
36
+ if (CompanionClass === VOID) {
37
+ initMetadataForCompanion($);
38
+ function $() {
39
+ }
40
+ CompanionClass = $;
41
+ }
42
+ return CompanionClass;
43
+ }
44
+ var Companion_instance;
45
+ function Companion_getInstance() {
46
+ return Companion_instance;
47
+ }
48
+ var $serializerClass;
49
+ function $serializer() {
50
+ if ($serializerClass === VOID) {
51
+ initMetadataForObject($, '$serializer', VOID, VOID, [GeneratedSerializer()]);
52
+ function $() {
53
+ $serializer_instance = this;
54
+ var tmp0_serialDesc = new (PluginGeneratedSerialDescriptor())('no.solibo.oss.sdk.api.gen.models.KidInvoicePayment', this, 3);
55
+ tmp0_serialDesc.addElement_5pzumi_k$('amount', false);
56
+ tmp0_serialDesc.addElement_5pzumi_k$('payerName', true);
57
+ tmp0_serialDesc.addElement_5pzumi_k$('paymentDate', false);
58
+ this.descriptor_1 = tmp0_serialDesc;
59
+ }
60
+ protoOf($).serialize_mmj6sj_k$ = function (encoder, value) {
61
+ var tmp0_desc = this.descriptor_1;
62
+ var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc);
63
+ tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 0, value.amount);
64
+ if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.payerName == null)) {
65
+ tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.payerName);
66
+ }
67
+ tmp1_output.encodeLongElement_ovnxxh_k$(tmp0_desc, 2, value.paymentDate);
68
+ tmp1_output.endStructure_1xqz0n_k$(tmp0_desc);
69
+ };
70
+ protoOf($).serialize_5ase3y_k$ = function (encoder, value) {
71
+ return this.serialize_mmj6sj_k$(encoder, value instanceof KidInvoicePayment() ? value : THROW_CCE());
72
+ };
73
+ protoOf($).deserialize_sy6x50_k$ = function (decoder) {
74
+ var tmp0_desc = this.descriptor_1;
75
+ var tmp1_flag = true;
76
+ var tmp2_index = 0;
77
+ var tmp3_bitMask0 = 0;
78
+ var tmp4_local0 = null;
79
+ var tmp5_local1 = null;
80
+ var tmp6_local2 = 0n;
81
+ var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc);
82
+ if (tmp7_input.decodeSequentially_xlblqy_k$()) {
83
+ tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0);
84
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
85
+ tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
86
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
87
+ tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2);
88
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
89
+ } else
90
+ while (tmp1_flag) {
91
+ tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc);
92
+ switch (tmp2_index) {
93
+ case -1:
94
+ tmp1_flag = false;
95
+ break;
96
+ case 0:
97
+ tmp4_local0 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 0);
98
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
99
+ break;
100
+ case 1:
101
+ tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
102
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
103
+ break;
104
+ case 2:
105
+ tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2);
106
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
107
+ break;
108
+ default:
109
+ throw UnknownFieldException_init_$Create$(tmp2_index);
110
+ }
111
+ }
112
+ tmp7_input.endStructure_1xqz0n_k$(tmp0_desc);
113
+ return KidInvoicePayment_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
114
+ };
115
+ protoOf($).get_descriptor_wjt6a0_k$ = function () {
116
+ return this.descriptor_1;
117
+ };
118
+ protoOf($).childSerializers_5ghqw5_k$ = function () {
119
+ // Inline function 'kotlin.arrayOf' call
120
+ // Inline function 'kotlin.js.unsafeCast' call
121
+ // Inline function 'kotlin.js.asDynamic' call
122
+ return [StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()];
123
+ };
124
+ protoOf($).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers;
125
+ $serializerClass = $;
126
+ }
127
+ return $serializerClass;
128
+ }
129
+ var $serializer_instance;
130
+ function $serializer_getInstance() {
131
+ if ($serializer_instance == null)
132
+ new ($serializer())();
133
+ return $serializer_instance;
134
+ }
135
+ function KidInvoicePayment_init_$Init$(seen0, amount, payerName, paymentDate, serializationConstructorMarker, $this) {
136
+ if (!(5 === (5 & seen0))) {
137
+ throwMissingFieldException(seen0, 5, $serializer_getInstance().descriptor_1);
138
+ }
139
+ $this.amount = amount;
140
+ if (0 === (seen0 & 2))
141
+ $this.payerName = null;
142
+ else
143
+ $this.payerName = payerName;
144
+ $this.paymentDate = paymentDate;
145
+ return $this;
146
+ }
147
+ function KidInvoicePayment_init_$Create$(seen0, amount, payerName, paymentDate, serializationConstructorMarker) {
148
+ return KidInvoicePayment_init_$Init$(seen0, amount, payerName, paymentDate, serializationConstructorMarker, objectCreate(protoOf(KidInvoicePayment())));
149
+ }
150
+ var KidInvoicePaymentClass;
151
+ function KidInvoicePayment() {
152
+ if (KidInvoicePaymentClass === VOID) {
153
+ initMetadataForClass($, 'KidInvoicePayment', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
154
+ function $(amount, payerName, paymentDate) {
155
+ var __soliboProps = arguments.length === 1 && typeof amount === 'object' && amount !== null && amount.constructor === Object;
156
+ var __soliboTmp, __soliboConverted = false;
157
+ if (__soliboProps) {
158
+ const props = amount;
159
+ amount = ('amount' in props ? props.amount : VOID);
160
+ payerName = ('payerName' in props ? props.payerName : VOID);
161
+ paymentDate = ('paymentDate' in props ? props.paymentDate : VOID);
162
+ }
163
+ if ((__soliboTmp = __soliboToKt(paymentDate, ["bigint"])) !== paymentDate) { paymentDate = __soliboTmp; __soliboConverted = true; }
164
+ payerName = payerName === VOID ? null : payerName;
165
+ this.amount = amount;
166
+ this.payerName = payerName;
167
+ this.paymentDate = paymentDate;
168
+ if (__soliboConverted && !__soliboBoundaryState.internalConstruction) return __soliboToJs(this);
169
+ }
170
+ protoOf($).get_amount_b10di9_k$ = function () {
171
+ return this.amount;
172
+ };
173
+ protoOf($).get_payerName_3h7y6v_k$ = function () {
174
+ return this.payerName;
175
+ };
176
+ protoOf($).get_paymentDate_bl70r9_k$ = function () {
177
+ return this.paymentDate;
178
+ };
179
+ protoOf($).component1_7eebsc_k$ = function () {
180
+ return this.amount;
181
+ };
182
+ protoOf($).component2_7eebsb_k$ = function () {
183
+ return this.payerName;
184
+ };
185
+ protoOf($).component3_7eebsa_k$ = function () {
186
+ return this.paymentDate;
187
+ };
188
+ protoOf($).copy_qdujq2_k$ = function (amount, payerName, paymentDate) {
189
+ return new (KidInvoicePayment())(amount, payerName, paymentDate);
190
+ };
191
+ protoOf($).copy = function (amount, payerName, paymentDate, $super) {
192
+ amount = amount === VOID ? this.amount : amount;
193
+ payerName = payerName === VOID ? this.payerName : payerName;
194
+ paymentDate = paymentDate === VOID ? this.paymentDate : paymentDate;
195
+ return $super === VOID ? this.copy_qdujq2_k$(amount, payerName, paymentDate) : $super.copy_qdujq2_k$.call(this, amount, payerName, paymentDate);
196
+ };
197
+ protoOf($).toString = function () {
198
+ return 'KidInvoicePayment(amount=' + this.amount + ', payerName=' + this.payerName + ', paymentDate=' + this.paymentDate.toString() + ')';
199
+ };
200
+ protoOf($).hashCode = function () {
201
+ var result = getStringHashCode(this.amount);
202
+ result = imul(result, 31) + (this.payerName == null ? 0 : getStringHashCode(this.payerName)) | 0;
203
+ result = imul(result, 31) + getBigIntHashCode(this.paymentDate) | 0;
204
+ return result;
205
+ };
206
+ protoOf($).equals = function (other) {
207
+ if (this === other)
208
+ return true;
209
+ if (!(other instanceof KidInvoicePayment()))
210
+ return false;
211
+ if (!(this.amount === other.amount))
212
+ return false;
213
+ if (!(this.payerName == other.payerName))
214
+ return false;
215
+ if (!(this.paymentDate === other.paymentDate))
216
+ return false;
217
+ return true;
218
+ };
219
+ /* Solibo boundary patches */
220
+ Object.defineProperty($, 'name', { value: "KidInvoicePayment", configurable: true });
221
+ __soliboRegisterLookup("KidInvoicePayment", () => $);
222
+ KidInvoicePaymentClass = $;
223
+ }
224
+ return KidInvoicePaymentClass;
225
+ }
226
+ //region block: init
227
+ Companion_instance = new (Companion())();
228
+ //endregion
229
+ //region block: exports
230
+ export {
231
+ $serializer_getInstance as $serializer_getInstance3nwh609mpr9it,
232
+ KidInvoicePayment as KidInvoicePayment8nwss3gpgr7j,
233
+ };
234
+ //endregion
235
+
@@ -0,0 +1,28 @@
1
+ type Nullable<T> = T | null | undefined
2
+ declare function KtSingleton<T>(): T & (abstract new() => any);
3
+ export declare class PaymentSourceKidInvoice {
4
+ constructor(closedAt: Nullable<bigint> | undefined, closedHow: Nullable<KidInvoiceClosing> | undefined, closingNote: Nullable<string> | undefined, dueDate: bigint, invoiceDate: bigint, invoiceId: string, number: bigint, open: boolean, outstanding: Nullable<string> | undefined, payer: Nullable<PaymentPayer> | undefined, payerName: Nullable<string> | undefined, payments: Nullable<KtList<KidInvoicePayment>> | undefined, total: string);
5
+ get closedAt(): Nullable<bigint>;
6
+ get closedHow(): Nullable<KidInvoiceClosing>;
7
+ get closingNote(): Nullable<string>;
8
+ get dueDate(): bigint;
9
+ get invoiceDate(): bigint;
10
+ get invoiceId(): string;
11
+ get number(): bigint;
12
+ get open(): boolean;
13
+ get outstanding(): Nullable<string>;
14
+ get payer(): Nullable<PaymentPayer>;
15
+ get payerName(): Nullable<string>;
16
+ get payments(): Nullable<KtList<KidInvoicePayment>>;
17
+ get total(): string;
18
+ copy(closedAt?: Nullable<bigint>, closedHow?: Nullable<KidInvoiceClosing>, closingNote?: Nullable<string>, dueDate?: bigint, invoiceDate?: bigint, invoiceId?: string, number?: bigint, open?: boolean, outstanding?: Nullable<string>, payer?: Nullable<PaymentPayer>, payerName?: Nullable<string>, payments?: Nullable<KtList<KidInvoicePayment>>, total?: string): PaymentSourceKidInvoice;
19
+ toString(): string;
20
+ hashCode(): number;
21
+ equals(other: Nullable<any>): boolean;
22
+ }
23
+ export declare namespace PaymentSourceKidInvoice {
24
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
25
+ namespace $metadata$ {
26
+ const constructor: abstract new () => PaymentSourceKidInvoice;
27
+ }
28
+ }
@@ -0,0 +1,12 @@
1
+ import { PaymentSourceKidInvoice1vf0rb3ab3eq1 as PaymentSourceKidInvoice } from './PaymentSourceKidInvoice.mjs';
2
+ //region block: imports
3
+ //endregion
4
+ //region block: pre-declaration
5
+ //endregion
6
+ //region block: exports
7
+ var PaymentSourceKidInvoice_0 = PaymentSourceKidInvoice();
8
+ export {
9
+ PaymentSourceKidInvoice_0 as PaymentSourceKidInvoice,
10
+ };
11
+ //endregion
12
+