@firmenakte/api-client 2.45.0 → 2.46.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.
@@ -755,6 +755,30 @@ export type BillingNumbersDto = {
755
755
  */
756
756
  addressField?: null | string;
757
757
  };
758
+ export type BillingPartnerDefaultsDto = {
759
+ /**
760
+ * A company's or person's Firmenakte-ID, or an own entry's ID.
761
+ */
762
+ id: string;
763
+ /**
764
+ * Rechnungs-E-Mail: where invoices to him are sent by e-mail.
765
+ */
766
+ email?: null | string;
767
+ address?: null | InvoiceCustomer;
768
+ known?: null | InvoiceCustomer;
769
+ /**
770
+ * register, ownRecord or none.
771
+ */
772
+ knownSource: string;
773
+ /**
774
+ * His Zahlungsziel in days; empty takes the Absender's.
775
+ */
776
+ paymentDays?: null | number;
777
+ /**
778
+ * The Absender's Zahlungsziel in days, which applies without his own.
779
+ */
780
+ senderPaymentDays: number;
781
+ };
758
782
  export type BillingPartnerDto = {
759
783
  /**
760
784
  * company, person or ownRecord.
@@ -4580,6 +4604,17 @@ export type UpdateBillingPartnerBody = {
4580
4604
  */
4581
4605
  archived: boolean;
4582
4606
  };
4607
+ export type UpdateBillingPartnerDefaultsBody = {
4608
+ /**
4609
+ * Rechnungs-E-Mail; empty removes it.
4610
+ */
4611
+ email?: null | string;
4612
+ address?: null | InvoiceCustomer;
4613
+ /**
4614
+ * Zahlungsziel in days, 0 to 365; empty takes the Absender's.
4615
+ */
4616
+ paymentDays?: null | number;
4617
+ };
4583
4618
  export type UpdateBillingSettingsRequest = {
4584
4619
  sender?: null | SenderSettingsBody;
4585
4620
  numbers?: null | NumbersSettingsBody;
@@ -9374,6 +9409,112 @@ export type UpdateBillingPartnerResponses = {
9374
9409
  200: BillingPartnerDto;
9375
9410
  };
9376
9411
  export type UpdateBillingPartnerResponse = UpdateBillingPartnerResponses[keyof UpdateBillingPartnerResponses];
9412
+ export type GetBillingPartnerDefaultsData = {
9413
+ body?: never;
9414
+ path: {
9415
+ /**
9416
+ * The invoice's or article's ID, or a Geschäftspartner's Firmenakte-ID or own entry ID.
9417
+ */
9418
+ id: string;
9419
+ };
9420
+ query?: never;
9421
+ url: '/api/v2/me/billing/partners/{id}/defaults';
9422
+ };
9423
+ export type GetBillingPartnerDefaultsErrors = {
9424
+ /**
9425
+ * Malformed request, or a cursor from another request.
9426
+ */
9427
+ 400: Problem;
9428
+ /**
9429
+ * No valid API key or session.
9430
+ */
9431
+ 401: Problem;
9432
+ /**
9433
+ * This operation needs a dashboard session.
9434
+ */
9435
+ 403: Problem;
9436
+ /**
9437
+ * Not found, or it belongs to another workspace.
9438
+ */
9439
+ 404: Problem;
9440
+ /**
9441
+ * Conflict with the current state; `code` says which.
9442
+ */
9443
+ 409: Problem;
9444
+ /**
9445
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
9446
+ */
9447
+ 422: Problem;
9448
+ /**
9449
+ * Too many requests; retry after `Retry-After`.
9450
+ */
9451
+ 429: Problem;
9452
+ /**
9453
+ * Internal error; quote `requestId` to support.
9454
+ */
9455
+ 500: Problem;
9456
+ };
9457
+ export type GetBillingPartnerDefaultsError = GetBillingPartnerDefaultsErrors[keyof GetBillingPartnerDefaultsErrors];
9458
+ export type GetBillingPartnerDefaultsResponses = {
9459
+ /**
9460
+ * OK
9461
+ */
9462
+ 200: BillingPartnerDefaultsDto;
9463
+ };
9464
+ export type GetBillingPartnerDefaultsResponse = GetBillingPartnerDefaultsResponses[keyof GetBillingPartnerDefaultsResponses];
9465
+ export type UpdateBillingPartnerDefaultsData = {
9466
+ body: UpdateBillingPartnerDefaultsBody;
9467
+ path: {
9468
+ /**
9469
+ * A company's Firmenakte-ID or an own entry's ID.
9470
+ */
9471
+ id: string;
9472
+ };
9473
+ query?: never;
9474
+ url: '/api/v2/me/billing/partners/{id}/defaults';
9475
+ };
9476
+ export type UpdateBillingPartnerDefaultsErrors = {
9477
+ /**
9478
+ * Malformed request, or a cursor from another request.
9479
+ */
9480
+ 400: Problem;
9481
+ /**
9482
+ * No valid API key or session.
9483
+ */
9484
+ 401: Problem;
9485
+ /**
9486
+ * This operation needs a dashboard session.
9487
+ */
9488
+ 403: Problem;
9489
+ /**
9490
+ * Not found, or it belongs to another workspace.
9491
+ */
9492
+ 404: Problem;
9493
+ /**
9494
+ * Conflict with the current state; `code` says which.
9495
+ */
9496
+ 409: Problem;
9497
+ /**
9498
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
9499
+ */
9500
+ 422: Problem;
9501
+ /**
9502
+ * Too many requests; retry after `Retry-After`.
9503
+ */
9504
+ 429: Problem;
9505
+ /**
9506
+ * Internal error; quote `requestId` to support.
9507
+ */
9508
+ 500: Problem;
9509
+ };
9510
+ export type UpdateBillingPartnerDefaultsError = UpdateBillingPartnerDefaultsErrors[keyof UpdateBillingPartnerDefaultsErrors];
9511
+ export type UpdateBillingPartnerDefaultsResponses = {
9512
+ /**
9513
+ * OK
9514
+ */
9515
+ 200: BillingPartnerDefaultsDto;
9516
+ };
9517
+ export type UpdateBillingPartnerDefaultsResponse = UpdateBillingPartnerDefaultsResponses[keyof UpdateBillingPartnerDefaultsResponses];
9377
9518
  export type GetBillingSummaryData = {
9378
9519
  body?: never;
9379
9520
  path?: never;