@epilot/sdk 2.18.18 → 2.18.20
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.
- package/definitions/billing-runtime.json +1 -1
- package/definitions/billing.json +195 -19
- package/definitions/calendar.json +18 -4
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +8 -8
- package/dist/apis/billing.d.cts +2 -2
- package/dist/apis/billing.d.ts +2 -2
- package/dist/apis/billing.js +2 -2
- package/dist/apis/blueprint-manifest.cjs +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.d.cts +2 -2
- package/dist/apis/calendar.d.ts +2 -2
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/file.cjs +6 -6
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/integration-toolkit.cjs +6 -6
- package/dist/apis/integration-toolkit.js +1 -1
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/snapshot.cjs +6 -6
- package/dist/apis/snapshot.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/billing-MN36KAKQ.cjs +7 -0
- package/dist/billing-UAVEPNBZ.js +7 -0
- package/dist/{billing-runtime-3OCFZU2K.js → billing-runtime-OSGDEA63.js} +1 -1
- package/dist/{billing-runtime-PKKLWPQY.cjs → billing-runtime-YZEHKRAZ.cjs} +2 -2
- package/dist/{billing.d-N_1F759g.d.cts → billing.d-Blv16_el.d.cts} +205 -34
- package/dist/{billing.d-N_1F759g.d.ts → billing.d-Blv16_el.d.ts} +205 -34
- package/dist/calendar-2H4RGMV3.js +7 -0
- package/dist/calendar-UADWQX7G.cjs +7 -0
- package/dist/{calendar.d-Cz8R-GJ5.d.cts → calendar.d-mk-ltGpk.d.cts} +10 -5
- package/dist/{calendar.d-Cz8R-GJ5.d.ts → calendar.d-mk-ltGpk.d.ts} +10 -5
- package/dist/{chunk-U5XZ4ERL.js → chunk-5SAISAQY.js} +1 -1
- package/dist/{chunk-WCF2QVZE.js → chunk-JH7NETLC.js} +3 -3
- package/dist/{chunk-4XOJVIUQ.cjs → chunk-PNVSKDMV.cjs} +1 -1
- package/dist/{chunk-GZMYWGJR.cjs → chunk-YGOX7IZC.cjs} +3 -3
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/docs/billing.md +553 -171
- package/docs/calendar.md +8 -2
- package/package.json +1 -1
- package/dist/billing-C45UEPBV.cjs +0 -7
- package/dist/billing-IV5ABNW4.js +0 -7
- package/dist/calendar-EMNHW6ME.cjs +0 -7
- package/dist/calendar-PZFEAXYE.js +0 -7
package/docs/billing.md
CHANGED
|
@@ -72,6 +72,11 @@ const { data } = await billingClient.getBillingEvents(...)
|
|
|
72
72
|
- [`PriceContext`](#pricecontext)
|
|
73
73
|
- [`DynamicTariffPriceContext`](#dynamictariffpricecontext)
|
|
74
74
|
- [`ConfigurationHistoryContext`](#configurationhistorycontext)
|
|
75
|
+
- [`ContractTariffContext`](#contracttariffcontext)
|
|
76
|
+
- [`ContractPricingContext`](#contractpricingcontext)
|
|
77
|
+
- [`ConfigurationHistoryRowBase`](#configurationhistoryrowbase)
|
|
78
|
+
- [`InstallmentAmountChangedHistoryRow`](#installmentamountchangedhistoryrow)
|
|
79
|
+
- [`ContractPricingChangedHistoryRow`](#contractpricingchangedhistoryrow)
|
|
75
80
|
- [`ConfigurationHistoryRow`](#configurationhistoryrow)
|
|
76
81
|
- [`ConfigurationHistoryResponse`](#configurationhistoryresponse)
|
|
77
82
|
- [`PricingInformationBalance`](#pricinginformationbalance)
|
|
@@ -512,6 +517,8 @@ Get current pricing information and recent configuration history for a Contract.
|
|
|
512
517
|
```ts
|
|
513
518
|
const { data } = await client.getContractPricingInformation({
|
|
514
519
|
id: '123e4567-e89b-12d3-a456-426614174000',
|
|
520
|
+
history_change_types: 'example',
|
|
521
|
+
include_history: true,
|
|
515
522
|
})
|
|
516
523
|
```
|
|
517
524
|
|
|
@@ -532,6 +539,7 @@ const { data } = await client.getContractPricingInformation({
|
|
|
532
539
|
"base_price": {
|
|
533
540
|
"price_id": "string",
|
|
534
541
|
"price_title": "string",
|
|
542
|
+
"tariff_type": "string",
|
|
535
543
|
"pricing_model": "string",
|
|
536
544
|
"unit_amount_gross_decimal": "string",
|
|
537
545
|
"unit_amount_net_decimal": "string",
|
|
@@ -546,9 +554,13 @@ const { data } = await client.getContractPricingInformation({
|
|
|
546
554
|
"is_dynamic_tariff": true,
|
|
547
555
|
"dynamic_tariff": {}
|
|
548
556
|
},
|
|
557
|
+
"base_prices": [
|
|
558
|
+
{}
|
|
559
|
+
],
|
|
549
560
|
"working_price": {
|
|
550
561
|
"price_id": "string",
|
|
551
562
|
"price_title": "string",
|
|
563
|
+
"tariff_type": "string",
|
|
552
564
|
"pricing_model": "string",
|
|
553
565
|
"unit_amount_gross_decimal": "string",
|
|
554
566
|
"unit_amount_net_decimal": "string",
|
|
@@ -562,7 +574,10 @@ const { data } = await client.getContractPricingInformation({
|
|
|
562
574
|
"has_discount": true,
|
|
563
575
|
"is_dynamic_tariff": true,
|
|
564
576
|
"dynamic_tariff": {}
|
|
565
|
-
}
|
|
577
|
+
},
|
|
578
|
+
"working_prices": [
|
|
579
|
+
{}
|
|
580
|
+
]
|
|
566
581
|
},
|
|
567
582
|
"balance": {
|
|
568
583
|
"amount": 8990,
|
|
@@ -582,7 +597,6 @@ const { data } = await client.getContractPricingInformation({
|
|
|
582
597
|
"org_id": "string",
|
|
583
598
|
"entity_type": "contract",
|
|
584
599
|
"entity_id": "string",
|
|
585
|
-
"change_type": "installment_amount_changed",
|
|
586
600
|
"schema_version": 1,
|
|
587
601
|
"effective_at": "1970-01-01T00:00:00.000Z",
|
|
588
602
|
"changed_at": "1970-01-01T00:00:00.000Z",
|
|
@@ -591,6 +605,7 @@ const { data } = await client.getContractPricingInformation({
|
|
|
591
605
|
"source_label": "string",
|
|
592
606
|
"source_system": "string",
|
|
593
607
|
"source_reference": "string",
|
|
608
|
+
"change_type": "installment_amount_changed",
|
|
594
609
|
"previous_value": {},
|
|
595
610
|
"new_value": {},
|
|
596
611
|
"context": {}
|
|
@@ -612,6 +627,8 @@ Get current pricing information for the active Contracts linked to a Billing Acc
|
|
|
612
627
|
```ts
|
|
613
628
|
const { data } = await client.getBillingAccountPricingInformation({
|
|
614
629
|
id: '123e4567-e89b-12d3-a456-426614174000',
|
|
630
|
+
history_change_types: 'example',
|
|
631
|
+
include_history: true,
|
|
615
632
|
})
|
|
616
633
|
```
|
|
617
634
|
|
|
@@ -658,6 +675,7 @@ Get billing configuration history for a Contract.
|
|
|
658
675
|
const { data } = await client.getContractConfigurationHistory({
|
|
659
676
|
id: '123e4567-e89b-12d3-a456-426614174000',
|
|
660
677
|
change_type: 'example',
|
|
678
|
+
history_change_types: 'example',
|
|
661
679
|
from: 1,
|
|
662
680
|
size: 1,
|
|
663
681
|
})
|
|
@@ -674,7 +692,6 @@ const { data } = await client.getContractConfigurationHistory({
|
|
|
674
692
|
"org_id": "string",
|
|
675
693
|
"entity_type": "contract",
|
|
676
694
|
"entity_id": "string",
|
|
677
|
-
"change_type": "installment_amount_changed",
|
|
678
695
|
"schema_version": 1,
|
|
679
696
|
"effective_at": "1970-01-01T00:00:00.000Z",
|
|
680
697
|
"changed_at": "1970-01-01T00:00:00.000Z",
|
|
@@ -683,76 +700,10 @@ const { data } = await client.getContractConfigurationHistory({
|
|
|
683
700
|
"source_label": "string",
|
|
684
701
|
"source_system": "string",
|
|
685
702
|
"source_reference": "string",
|
|
686
|
-
"
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
},
|
|
691
|
-
"new_value": {
|
|
692
|
-
"amount": 10050,
|
|
693
|
-
"amount_decimal": "100.50",
|
|
694
|
-
"currency": "EUR"
|
|
695
|
-
},
|
|
696
|
-
"context": {
|
|
697
|
-
"base_price": {
|
|
698
|
-
"price_id": "string",
|
|
699
|
-
"price_title": "string",
|
|
700
|
-
"pricing_model": "string",
|
|
701
|
-
"unit_amount_gross_decimal": "string",
|
|
702
|
-
"unit_amount_net_decimal": "string",
|
|
703
|
-
"before_discount_unit_amount_gross_decimal": "string",
|
|
704
|
-
"before_discount_unit_amount_net_decimal": "string",
|
|
705
|
-
"unit_discount_amount_decimal": "string",
|
|
706
|
-
"unit_discount_amount_net_decimal": "string",
|
|
707
|
-
"currency": "EUR",
|
|
708
|
-
"billing_period": "string",
|
|
709
|
-
"unit": "string",
|
|
710
|
-
"has_discount": true,
|
|
711
|
-
"is_dynamic_tariff": true,
|
|
712
|
-
"dynamic_tariff": {
|
|
713
|
-
"mode": "string",
|
|
714
|
-
"interval": "string",
|
|
715
|
-
"average_price_decimal": "string",
|
|
716
|
-
"markup_amount_decimal": "string",
|
|
717
|
-
"markup_amount_net_decimal": "string",
|
|
718
|
-
"markup_amount_gross_decimal": "string",
|
|
719
|
-
"market_price_decimal": "string",
|
|
720
|
-
"market_price_currency": "EUR",
|
|
721
|
-
"market": "string",
|
|
722
|
-
"bidding_zone": "string",
|
|
723
|
-
"timestamp": "string"
|
|
724
|
-
}
|
|
725
|
-
},
|
|
726
|
-
"working_price": {
|
|
727
|
-
"price_id": "string",
|
|
728
|
-
"price_title": "string",
|
|
729
|
-
"pricing_model": "string",
|
|
730
|
-
"unit_amount_gross_decimal": "string",
|
|
731
|
-
"unit_amount_net_decimal": "string",
|
|
732
|
-
"before_discount_unit_amount_gross_decimal": "string",
|
|
733
|
-
"before_discount_unit_amount_net_decimal": "string",
|
|
734
|
-
"unit_discount_amount_decimal": "string",
|
|
735
|
-
"unit_discount_amount_net_decimal": "string",
|
|
736
|
-
"currency": "EUR",
|
|
737
|
-
"billing_period": "string",
|
|
738
|
-
"unit": "string",
|
|
739
|
-
"has_discount": true,
|
|
740
|
-
"is_dynamic_tariff": true,
|
|
741
|
-
"dynamic_tariff": {
|
|
742
|
-
"mode": "string",
|
|
743
|
-
"interval": "string",
|
|
744
|
-
"average_price_decimal": "string",
|
|
745
|
-
"markup_amount_decimal": "string",
|
|
746
|
-
"markup_amount_net_decimal": "string",
|
|
747
|
-
"markup_amount_gross_decimal": "string",
|
|
748
|
-
"market_price_decimal": "string",
|
|
749
|
-
"market_price_currency": "EUR",
|
|
750
|
-
"market": "string",
|
|
751
|
-
"bidding_zone": "string",
|
|
752
|
-
"timestamp": "string"
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
}
|
|
703
|
+
"change_type": "installment_amount_changed",
|
|
704
|
+
"previous_value": {},
|
|
705
|
+
"new_value": {},
|
|
706
|
+
"context": {}
|
|
756
707
|
}
|
|
757
708
|
],
|
|
758
709
|
"total": 0
|
|
@@ -773,6 +724,7 @@ Get merged billing configuration history for active Contracts linked to a Billin
|
|
|
773
724
|
const { data } = await client.getBillingAccountConfigurationHistory({
|
|
774
725
|
id: '123e4567-e89b-12d3-a456-426614174000',
|
|
775
726
|
change_type: 'example',
|
|
727
|
+
history_change_types: 'example',
|
|
776
728
|
from: 1,
|
|
777
729
|
size: 1,
|
|
778
730
|
})
|
|
@@ -789,7 +741,6 @@ const { data } = await client.getBillingAccountConfigurationHistory({
|
|
|
789
741
|
"org_id": "string",
|
|
790
742
|
"entity_type": "contract",
|
|
791
743
|
"entity_id": "string",
|
|
792
|
-
"change_type": "installment_amount_changed",
|
|
793
744
|
"schema_version": 1,
|
|
794
745
|
"effective_at": "1970-01-01T00:00:00.000Z",
|
|
795
746
|
"changed_at": "1970-01-01T00:00:00.000Z",
|
|
@@ -798,76 +749,10 @@ const { data } = await client.getBillingAccountConfigurationHistory({
|
|
|
798
749
|
"source_label": "string",
|
|
799
750
|
"source_system": "string",
|
|
800
751
|
"source_reference": "string",
|
|
801
|
-
"
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
},
|
|
806
|
-
"new_value": {
|
|
807
|
-
"amount": 10050,
|
|
808
|
-
"amount_decimal": "100.50",
|
|
809
|
-
"currency": "EUR"
|
|
810
|
-
},
|
|
811
|
-
"context": {
|
|
812
|
-
"base_price": {
|
|
813
|
-
"price_id": "string",
|
|
814
|
-
"price_title": "string",
|
|
815
|
-
"pricing_model": "string",
|
|
816
|
-
"unit_amount_gross_decimal": "string",
|
|
817
|
-
"unit_amount_net_decimal": "string",
|
|
818
|
-
"before_discount_unit_amount_gross_decimal": "string",
|
|
819
|
-
"before_discount_unit_amount_net_decimal": "string",
|
|
820
|
-
"unit_discount_amount_decimal": "string",
|
|
821
|
-
"unit_discount_amount_net_decimal": "string",
|
|
822
|
-
"currency": "EUR",
|
|
823
|
-
"billing_period": "string",
|
|
824
|
-
"unit": "string",
|
|
825
|
-
"has_discount": true,
|
|
826
|
-
"is_dynamic_tariff": true,
|
|
827
|
-
"dynamic_tariff": {
|
|
828
|
-
"mode": "string",
|
|
829
|
-
"interval": "string",
|
|
830
|
-
"average_price_decimal": "string",
|
|
831
|
-
"markup_amount_decimal": "string",
|
|
832
|
-
"markup_amount_net_decimal": "string",
|
|
833
|
-
"markup_amount_gross_decimal": "string",
|
|
834
|
-
"market_price_decimal": "string",
|
|
835
|
-
"market_price_currency": "EUR",
|
|
836
|
-
"market": "string",
|
|
837
|
-
"bidding_zone": "string",
|
|
838
|
-
"timestamp": "string"
|
|
839
|
-
}
|
|
840
|
-
},
|
|
841
|
-
"working_price": {
|
|
842
|
-
"price_id": "string",
|
|
843
|
-
"price_title": "string",
|
|
844
|
-
"pricing_model": "string",
|
|
845
|
-
"unit_amount_gross_decimal": "string",
|
|
846
|
-
"unit_amount_net_decimal": "string",
|
|
847
|
-
"before_discount_unit_amount_gross_decimal": "string",
|
|
848
|
-
"before_discount_unit_amount_net_decimal": "string",
|
|
849
|
-
"unit_discount_amount_decimal": "string",
|
|
850
|
-
"unit_discount_amount_net_decimal": "string",
|
|
851
|
-
"currency": "EUR",
|
|
852
|
-
"billing_period": "string",
|
|
853
|
-
"unit": "string",
|
|
854
|
-
"has_discount": true,
|
|
855
|
-
"is_dynamic_tariff": true,
|
|
856
|
-
"dynamic_tariff": {
|
|
857
|
-
"mode": "string",
|
|
858
|
-
"interval": "string",
|
|
859
|
-
"average_price_decimal": "string",
|
|
860
|
-
"markup_amount_decimal": "string",
|
|
861
|
-
"markup_amount_net_decimal": "string",
|
|
862
|
-
"markup_amount_gross_decimal": "string",
|
|
863
|
-
"market_price_decimal": "string",
|
|
864
|
-
"market_price_currency": "EUR",
|
|
865
|
-
"market": "string",
|
|
866
|
-
"bidding_zone": "string",
|
|
867
|
-
"timestamp": "string"
|
|
868
|
-
}
|
|
869
|
-
}
|
|
870
|
-
}
|
|
752
|
+
"change_type": "installment_amount_changed",
|
|
753
|
+
"previous_value": {},
|
|
754
|
+
"new_value": {},
|
|
755
|
+
"context": {}
|
|
871
756
|
}
|
|
872
757
|
],
|
|
873
758
|
"total": 0
|
|
@@ -1280,6 +1165,7 @@ type InstallmentAmountValue = {
|
|
|
1280
1165
|
type PriceContext = {
|
|
1281
1166
|
price_id?: string
|
|
1282
1167
|
price_title?: string
|
|
1168
|
+
tariff_type?: string
|
|
1283
1169
|
pricing_model?: string
|
|
1284
1170
|
unit_amount_gross_decimal?: string
|
|
1285
1171
|
unit_amount_net_decimal?: string
|
|
@@ -1333,6 +1219,7 @@ type ConfigurationHistoryContext = {
|
|
|
1333
1219
|
base_price?: {
|
|
1334
1220
|
price_id?: string
|
|
1335
1221
|
price_title?: string
|
|
1222
|
+
tariff_type?: string
|
|
1336
1223
|
pricing_model?: string
|
|
1337
1224
|
unit_amount_gross_decimal?: string
|
|
1338
1225
|
unit_amount_net_decimal?: string
|
|
@@ -1359,9 +1246,156 @@ type ConfigurationHistoryContext = {
|
|
|
1359
1246
|
timestamp?: { ... }
|
|
1360
1247
|
}
|
|
1361
1248
|
}
|
|
1249
|
+
base_prices?: Array<{
|
|
1250
|
+
price_id?: string
|
|
1251
|
+
price_title?: string
|
|
1252
|
+
tariff_type?: string
|
|
1253
|
+
pricing_model?: string
|
|
1254
|
+
unit_amount_gross_decimal?: string
|
|
1255
|
+
unit_amount_net_decimal?: string
|
|
1256
|
+
before_discount_unit_amount_gross_decimal?: string
|
|
1257
|
+
before_discount_unit_amount_net_decimal?: string
|
|
1258
|
+
unit_discount_amount_decimal?: string
|
|
1259
|
+
unit_discount_amount_net_decimal?: string
|
|
1260
|
+
currency?: string
|
|
1261
|
+
billing_period?: string
|
|
1262
|
+
unit?: string
|
|
1263
|
+
has_discount?: boolean
|
|
1264
|
+
is_dynamic_tariff?: boolean
|
|
1265
|
+
dynamic_tariff?: {
|
|
1266
|
+
mode?: { ... }
|
|
1267
|
+
interval?: { ... }
|
|
1268
|
+
average_price_decimal?: { ... }
|
|
1269
|
+
markup_amount_decimal?: { ... }
|
|
1270
|
+
markup_amount_net_decimal?: { ... }
|
|
1271
|
+
markup_amount_gross_decimal?: { ... }
|
|
1272
|
+
market_price_decimal?: { ... }
|
|
1273
|
+
market_price_currency?: { ... }
|
|
1274
|
+
market?: { ... }
|
|
1275
|
+
bidding_zone?: { ... }
|
|
1276
|
+
timestamp?: { ... }
|
|
1277
|
+
}
|
|
1278
|
+
}>
|
|
1279
|
+
working_price?: {
|
|
1280
|
+
price_id?: string
|
|
1281
|
+
price_title?: string
|
|
1282
|
+
tariff_type?: string
|
|
1283
|
+
pricing_model?: string
|
|
1284
|
+
unit_amount_gross_decimal?: string
|
|
1285
|
+
unit_amount_net_decimal?: string
|
|
1286
|
+
before_discount_unit_amount_gross_decimal?: string
|
|
1287
|
+
before_discount_unit_amount_net_decimal?: string
|
|
1288
|
+
unit_discount_amount_decimal?: string
|
|
1289
|
+
unit_discount_amount_net_decimal?: string
|
|
1290
|
+
currency?: string
|
|
1291
|
+
billing_period?: string
|
|
1292
|
+
unit?: string
|
|
1293
|
+
has_discount?: boolean
|
|
1294
|
+
is_dynamic_tariff?: boolean
|
|
1295
|
+
dynamic_tariff?: {
|
|
1296
|
+
mode?: { ... }
|
|
1297
|
+
interval?: { ... }
|
|
1298
|
+
average_price_decimal?: { ... }
|
|
1299
|
+
markup_amount_decimal?: { ... }
|
|
1300
|
+
markup_amount_net_decimal?: { ... }
|
|
1301
|
+
markup_amount_gross_decimal?: { ... }
|
|
1302
|
+
market_price_decimal?: { ... }
|
|
1303
|
+
market_price_currency?: { ... }
|
|
1304
|
+
market?: { ... }
|
|
1305
|
+
bidding_zone?: { ... }
|
|
1306
|
+
timestamp?: { ... }
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
working_prices?: Array<{
|
|
1310
|
+
price_id?: string
|
|
1311
|
+
price_title?: string
|
|
1312
|
+
tariff_type?: string
|
|
1313
|
+
pricing_model?: string
|
|
1314
|
+
unit_amount_gross_decimal?: string
|
|
1315
|
+
unit_amount_net_decimal?: string
|
|
1316
|
+
before_discount_unit_amount_gross_decimal?: string
|
|
1317
|
+
before_discount_unit_amount_net_decimal?: string
|
|
1318
|
+
// ...
|
|
1319
|
+
}
|
|
1320
|
+
```
|
|
1321
|
+
|
|
1322
|
+
### `ContractTariffContext`
|
|
1323
|
+
|
|
1324
|
+
```ts
|
|
1325
|
+
type ContractTariffContext = {
|
|
1326
|
+
product_id?: string
|
|
1327
|
+
product_title?: string
|
|
1328
|
+
}
|
|
1329
|
+
```
|
|
1330
|
+
|
|
1331
|
+
### `ContractPricingContext`
|
|
1332
|
+
|
|
1333
|
+
```ts
|
|
1334
|
+
type ContractPricingContext = {
|
|
1335
|
+
base_price?: {
|
|
1336
|
+
price_id?: string
|
|
1337
|
+
price_title?: string
|
|
1338
|
+
tariff_type?: string
|
|
1339
|
+
pricing_model?: string
|
|
1340
|
+
unit_amount_gross_decimal?: string
|
|
1341
|
+
unit_amount_net_decimal?: string
|
|
1342
|
+
before_discount_unit_amount_gross_decimal?: string
|
|
1343
|
+
before_discount_unit_amount_net_decimal?: string
|
|
1344
|
+
unit_discount_amount_decimal?: string
|
|
1345
|
+
unit_discount_amount_net_decimal?: string
|
|
1346
|
+
currency?: string
|
|
1347
|
+
billing_period?: string
|
|
1348
|
+
unit?: string
|
|
1349
|
+
has_discount?: boolean
|
|
1350
|
+
is_dynamic_tariff?: boolean
|
|
1351
|
+
dynamic_tariff?: {
|
|
1352
|
+
mode?: { ... }
|
|
1353
|
+
interval?: { ... }
|
|
1354
|
+
average_price_decimal?: { ... }
|
|
1355
|
+
markup_amount_decimal?: { ... }
|
|
1356
|
+
markup_amount_net_decimal?: { ... }
|
|
1357
|
+
markup_amount_gross_decimal?: { ... }
|
|
1358
|
+
market_price_decimal?: { ... }
|
|
1359
|
+
market_price_currency?: { ... }
|
|
1360
|
+
market?: { ... }
|
|
1361
|
+
bidding_zone?: { ... }
|
|
1362
|
+
timestamp?: { ... }
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
base_prices?: Array<{
|
|
1366
|
+
price_id?: string
|
|
1367
|
+
price_title?: string
|
|
1368
|
+
tariff_type?: string
|
|
1369
|
+
pricing_model?: string
|
|
1370
|
+
unit_amount_gross_decimal?: string
|
|
1371
|
+
unit_amount_net_decimal?: string
|
|
1372
|
+
before_discount_unit_amount_gross_decimal?: string
|
|
1373
|
+
before_discount_unit_amount_net_decimal?: string
|
|
1374
|
+
unit_discount_amount_decimal?: string
|
|
1375
|
+
unit_discount_amount_net_decimal?: string
|
|
1376
|
+
currency?: string
|
|
1377
|
+
billing_period?: string
|
|
1378
|
+
unit?: string
|
|
1379
|
+
has_discount?: boolean
|
|
1380
|
+
is_dynamic_tariff?: boolean
|
|
1381
|
+
dynamic_tariff?: {
|
|
1382
|
+
mode?: { ... }
|
|
1383
|
+
interval?: { ... }
|
|
1384
|
+
average_price_decimal?: { ... }
|
|
1385
|
+
markup_amount_decimal?: { ... }
|
|
1386
|
+
markup_amount_net_decimal?: { ... }
|
|
1387
|
+
markup_amount_gross_decimal?: { ... }
|
|
1388
|
+
market_price_decimal?: { ... }
|
|
1389
|
+
market_price_currency?: { ... }
|
|
1390
|
+
market?: { ... }
|
|
1391
|
+
bidding_zone?: { ... }
|
|
1392
|
+
timestamp?: { ... }
|
|
1393
|
+
}
|
|
1394
|
+
}>
|
|
1362
1395
|
working_price?: {
|
|
1363
1396
|
price_id?: string
|
|
1364
1397
|
price_title?: string
|
|
1398
|
+
tariff_type?: string
|
|
1365
1399
|
pricing_model?: string
|
|
1366
1400
|
unit_amount_gross_decimal?: string
|
|
1367
1401
|
unit_amount_net_decimal?: string
|
|
@@ -1388,6 +1422,246 @@ type ConfigurationHistoryContext = {
|
|
|
1388
1422
|
timestamp?: { ... }
|
|
1389
1423
|
}
|
|
1390
1424
|
}
|
|
1425
|
+
working_prices?: Array<{
|
|
1426
|
+
price_id?: string
|
|
1427
|
+
price_title?: string
|
|
1428
|
+
tariff_type?: string
|
|
1429
|
+
pricing_model?: string
|
|
1430
|
+
unit_amount_gross_decimal?: string
|
|
1431
|
+
unit_amount_net_decimal?: string
|
|
1432
|
+
before_discount_unit_amount_gross_decimal?: string
|
|
1433
|
+
before_discount_unit_amount_net_decimal?: string
|
|
1434
|
+
// ...
|
|
1435
|
+
}
|
|
1436
|
+
```
|
|
1437
|
+
|
|
1438
|
+
### `ConfigurationHistoryRowBase`
|
|
1439
|
+
|
|
1440
|
+
```ts
|
|
1441
|
+
type ConfigurationHistoryRowBase = {
|
|
1442
|
+
event_id: string
|
|
1443
|
+
org_id: string
|
|
1444
|
+
entity_type: "contract" | "billing_account"
|
|
1445
|
+
entity_id: string
|
|
1446
|
+
schema_version: number
|
|
1447
|
+
effective_at?: string // date-time
|
|
1448
|
+
changed_at: string // date-time
|
|
1449
|
+
created_at: string // date-time
|
|
1450
|
+
source: "portal" | "epilot" | "erp" | "system" | "api" | "external" | "journey" | "automation" | "unknown"
|
|
1451
|
+
source_label?: string
|
|
1452
|
+
source_system?: string
|
|
1453
|
+
source_reference?: string
|
|
1454
|
+
}
|
|
1455
|
+
```
|
|
1456
|
+
|
|
1457
|
+
### `InstallmentAmountChangedHistoryRow`
|
|
1458
|
+
|
|
1459
|
+
```ts
|
|
1460
|
+
type InstallmentAmountChangedHistoryRow = {
|
|
1461
|
+
event_id: string
|
|
1462
|
+
org_id: string
|
|
1463
|
+
entity_type: "contract" | "billing_account"
|
|
1464
|
+
entity_id: string
|
|
1465
|
+
schema_version: number
|
|
1466
|
+
effective_at?: string // date-time
|
|
1467
|
+
changed_at: string // date-time
|
|
1468
|
+
created_at: string // date-time
|
|
1469
|
+
source: "portal" | "epilot" | "erp" | "system" | "api" | "external" | "journey" | "automation" | "unknown"
|
|
1470
|
+
source_label?: string
|
|
1471
|
+
source_system?: string
|
|
1472
|
+
source_reference?: string
|
|
1473
|
+
change_type: "installment_amount_changed"
|
|
1474
|
+
previous_value?: {
|
|
1475
|
+
amount?: number
|
|
1476
|
+
amount_decimal?: string
|
|
1477
|
+
currency?: string
|
|
1478
|
+
}
|
|
1479
|
+
new_value: {
|
|
1480
|
+
amount?: number
|
|
1481
|
+
amount_decimal?: string
|
|
1482
|
+
currency?: string
|
|
1483
|
+
}
|
|
1484
|
+
context?: {
|
|
1485
|
+
base_price?: {
|
|
1486
|
+
price_id?: { ... }
|
|
1487
|
+
price_title?: { ... }
|
|
1488
|
+
tariff_type?: { ... }
|
|
1489
|
+
pricing_model?: { ... }
|
|
1490
|
+
unit_amount_gross_decimal?: { ... }
|
|
1491
|
+
unit_amount_net_decimal?: { ... }
|
|
1492
|
+
before_discount_unit_amount_gross_decimal?: { ... }
|
|
1493
|
+
before_discount_unit_amount_net_decimal?: { ... }
|
|
1494
|
+
unit_discount_amount_decimal?: { ... }
|
|
1495
|
+
unit_discount_amount_net_decimal?: { ... }
|
|
1496
|
+
currency?: { ... }
|
|
1497
|
+
billing_period?: { ... }
|
|
1498
|
+
unit?: { ... }
|
|
1499
|
+
has_discount?: { ... }
|
|
1500
|
+
is_dynamic_tariff?: { ... }
|
|
1501
|
+
dynamic_tariff?: { ... }
|
|
1502
|
+
}
|
|
1503
|
+
base_prices?: Array<{
|
|
1504
|
+
price_id?: { ... }
|
|
1505
|
+
price_title?: { ... }
|
|
1506
|
+
tariff_type?: { ... }
|
|
1507
|
+
pricing_model?: { ... }
|
|
1508
|
+
unit_amount_gross_decimal?: { ... }
|
|
1509
|
+
unit_amount_net_decimal?: { ... }
|
|
1510
|
+
before_discount_unit_amount_gross_decimal?: { ... }
|
|
1511
|
+
before_discount_unit_amount_net_decimal?: { ... }
|
|
1512
|
+
unit_discount_amount_decimal?: { ... }
|
|
1513
|
+
unit_discount_amount_net_decimal?: { ... }
|
|
1514
|
+
currency?: { ... }
|
|
1515
|
+
billing_period?: { ... }
|
|
1516
|
+
unit?: { ... }
|
|
1517
|
+
has_discount?: { ... }
|
|
1518
|
+
is_dynamic_tariff?: { ... }
|
|
1519
|
+
dynamic_tariff?: { ... }
|
|
1520
|
+
}>
|
|
1521
|
+
working_price?: {
|
|
1522
|
+
price_id?: { ... }
|
|
1523
|
+
price_title?: { ... }
|
|
1524
|
+
tariff_type?: { ... }
|
|
1525
|
+
pricing_model?: { ... }
|
|
1526
|
+
unit_amount_gross_decimal?: { ... }
|
|
1527
|
+
unit_amount_net_decimal?: { ... }
|
|
1528
|
+
before_discount_unit_amount_gross_decimal?: { ... }
|
|
1529
|
+
before_discount_unit_amount_net_decimal?: { ... }
|
|
1530
|
+
unit_discount_amount_decimal?: { ... }
|
|
1531
|
+
unit_discount_amount_net_decimal?: { ... }
|
|
1532
|
+
currency?: { ... }
|
|
1533
|
+
billing_period?: { ... }
|
|
1534
|
+
unit?: { ... }
|
|
1535
|
+
has_discount?: { ... }
|
|
1536
|
+
is_dynamic_tariff?: { ... }
|
|
1537
|
+
dynamic_tariff?: { ... }
|
|
1538
|
+
}
|
|
1539
|
+
working_prices?: Array<{
|
|
1540
|
+
price_id?: { ... }
|
|
1541
|
+
price_title?: { ... }
|
|
1542
|
+
tariff_type?: { ... }
|
|
1543
|
+
pricing_model?: { ... }
|
|
1544
|
+
unit_amount_gross_decimal?: { ... }
|
|
1545
|
+
unit_amount_net_decimal?: { ... }
|
|
1546
|
+
before_discount_unit_amount_gross_decimal?: { ... }
|
|
1547
|
+
before_discount_unit_amount_net_decimal?: { ... }
|
|
1548
|
+
unit_discount_amount_decimal?: { ... }
|
|
1549
|
+
unit_discount_amount_net_decimal?: { ... }
|
|
1550
|
+
currency?: { ... }
|
|
1551
|
+
billing_period?: { ... }
|
|
1552
|
+
unit?: { ... }
|
|
1553
|
+
has_discount?: { ... }
|
|
1554
|
+
is_dynamic_tariff?: { ... }
|
|
1555
|
+
dynamic_tariff?: { ... }
|
|
1556
|
+
}>
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
```
|
|
1560
|
+
|
|
1561
|
+
### `ContractPricingChangedHistoryRow`
|
|
1562
|
+
|
|
1563
|
+
```ts
|
|
1564
|
+
type ContractPricingChangedHistoryRow = {
|
|
1565
|
+
event_id: string
|
|
1566
|
+
org_id: string
|
|
1567
|
+
entity_type: "contract" | "billing_account"
|
|
1568
|
+
entity_id: string
|
|
1569
|
+
schema_version: number
|
|
1570
|
+
effective_at?: string // date-time
|
|
1571
|
+
changed_at: string // date-time
|
|
1572
|
+
created_at: string // date-time
|
|
1573
|
+
source: "portal" | "epilot" | "erp" | "system" | "api" | "external" | "journey" | "automation" | "unknown"
|
|
1574
|
+
source_label?: string
|
|
1575
|
+
source_system?: string
|
|
1576
|
+
source_reference?: string
|
|
1577
|
+
change_type: "contract_pricing_changed"
|
|
1578
|
+
previous_context: {
|
|
1579
|
+
base_price?: {
|
|
1580
|
+
price_id?: { ... }
|
|
1581
|
+
price_title?: { ... }
|
|
1582
|
+
tariff_type?: { ... }
|
|
1583
|
+
pricing_model?: { ... }
|
|
1584
|
+
unit_amount_gross_decimal?: { ... }
|
|
1585
|
+
unit_amount_net_decimal?: { ... }
|
|
1586
|
+
before_discount_unit_amount_gross_decimal?: { ... }
|
|
1587
|
+
before_discount_unit_amount_net_decimal?: { ... }
|
|
1588
|
+
unit_discount_amount_decimal?: { ... }
|
|
1589
|
+
unit_discount_amount_net_decimal?: { ... }
|
|
1590
|
+
currency?: { ... }
|
|
1591
|
+
billing_period?: { ... }
|
|
1592
|
+
unit?: { ... }
|
|
1593
|
+
has_discount?: { ... }
|
|
1594
|
+
is_dynamic_tariff?: { ... }
|
|
1595
|
+
dynamic_tariff?: { ... }
|
|
1596
|
+
}
|
|
1597
|
+
base_prices?: Array<{
|
|
1598
|
+
price_id?: { ... }
|
|
1599
|
+
price_title?: { ... }
|
|
1600
|
+
tariff_type?: { ... }
|
|
1601
|
+
pricing_model?: { ... }
|
|
1602
|
+
unit_amount_gross_decimal?: { ... }
|
|
1603
|
+
unit_amount_net_decimal?: { ... }
|
|
1604
|
+
before_discount_unit_amount_gross_decimal?: { ... }
|
|
1605
|
+
before_discount_unit_amount_net_decimal?: { ... }
|
|
1606
|
+
unit_discount_amount_decimal?: { ... }
|
|
1607
|
+
unit_discount_amount_net_decimal?: { ... }
|
|
1608
|
+
currency?: { ... }
|
|
1609
|
+
billing_period?: { ... }
|
|
1610
|
+
unit?: { ... }
|
|
1611
|
+
has_discount?: { ... }
|
|
1612
|
+
is_dynamic_tariff?: { ... }
|
|
1613
|
+
dynamic_tariff?: { ... }
|
|
1614
|
+
}>
|
|
1615
|
+
working_price?: {
|
|
1616
|
+
price_id?: { ... }
|
|
1617
|
+
price_title?: { ... }
|
|
1618
|
+
tariff_type?: { ... }
|
|
1619
|
+
pricing_model?: { ... }
|
|
1620
|
+
unit_amount_gross_decimal?: { ... }
|
|
1621
|
+
unit_amount_net_decimal?: { ... }
|
|
1622
|
+
before_discount_unit_amount_gross_decimal?: { ... }
|
|
1623
|
+
before_discount_unit_amount_net_decimal?: { ... }
|
|
1624
|
+
unit_discount_amount_decimal?: { ... }
|
|
1625
|
+
unit_discount_amount_net_decimal?: { ... }
|
|
1626
|
+
currency?: { ... }
|
|
1627
|
+
billing_period?: { ... }
|
|
1628
|
+
unit?: { ... }
|
|
1629
|
+
has_discount?: { ... }
|
|
1630
|
+
is_dynamic_tariff?: { ... }
|
|
1631
|
+
dynamic_tariff?: { ... }
|
|
1632
|
+
}
|
|
1633
|
+
working_prices?: Array<{
|
|
1634
|
+
price_id?: { ... }
|
|
1635
|
+
price_title?: { ... }
|
|
1636
|
+
tariff_type?: { ... }
|
|
1637
|
+
pricing_model?: { ... }
|
|
1638
|
+
unit_amount_gross_decimal?: { ... }
|
|
1639
|
+
unit_amount_net_decimal?: { ... }
|
|
1640
|
+
before_discount_unit_amount_gross_decimal?: { ... }
|
|
1641
|
+
before_discount_unit_amount_net_decimal?: { ... }
|
|
1642
|
+
unit_discount_amount_decimal?: { ... }
|
|
1643
|
+
unit_discount_amount_net_decimal?: { ... }
|
|
1644
|
+
currency?: { ... }
|
|
1645
|
+
billing_period?: { ... }
|
|
1646
|
+
unit?: { ... }
|
|
1647
|
+
has_discount?: { ... }
|
|
1648
|
+
is_dynamic_tariff?: { ... }
|
|
1649
|
+
dynamic_tariff?: { ... }
|
|
1650
|
+
}>
|
|
1651
|
+
tariff?: {
|
|
1652
|
+
product_id?: { ... }
|
|
1653
|
+
product_title?: { ... }
|
|
1654
|
+
}
|
|
1655
|
+
tariffs?: Array<{
|
|
1656
|
+
product_id?: { ... }
|
|
1657
|
+
product_title?: { ... }
|
|
1658
|
+
}>
|
|
1659
|
+
}
|
|
1660
|
+
new_context: {
|
|
1661
|
+
base_price?: {
|
|
1662
|
+
price_id?: { ... }
|
|
1663
|
+
price_title?: { ... }
|
|
1664
|
+
// ...
|
|
1391
1665
|
}
|
|
1392
1666
|
```
|
|
1393
1667
|
|
|
@@ -1399,7 +1673,6 @@ type ConfigurationHistoryRow = {
|
|
|
1399
1673
|
org_id: string
|
|
1400
1674
|
entity_type: "contract" | "billing_account"
|
|
1401
1675
|
entity_id: string
|
|
1402
|
-
change_type: "installment_amount_changed"
|
|
1403
1676
|
schema_version: number
|
|
1404
1677
|
effective_at?: string // date-time
|
|
1405
1678
|
changed_at: string // date-time
|
|
@@ -1408,6 +1681,7 @@ type ConfigurationHistoryRow = {
|
|
|
1408
1681
|
source_label?: string
|
|
1409
1682
|
source_system?: string
|
|
1410
1683
|
source_reference?: string
|
|
1684
|
+
change_type: "installment_amount_changed"
|
|
1411
1685
|
previous_value?: {
|
|
1412
1686
|
amount?: number
|
|
1413
1687
|
amount_decimal?: string
|
|
@@ -1422,6 +1696,7 @@ type ConfigurationHistoryRow = {
|
|
|
1422
1696
|
base_price?: {
|
|
1423
1697
|
price_id?: { ... }
|
|
1424
1698
|
price_title?: { ... }
|
|
1699
|
+
tariff_type?: { ... }
|
|
1425
1700
|
pricing_model?: { ... }
|
|
1426
1701
|
unit_amount_gross_decimal?: { ... }
|
|
1427
1702
|
unit_amount_net_decimal?: { ... }
|
|
@@ -1436,9 +1711,28 @@ type ConfigurationHistoryRow = {
|
|
|
1436
1711
|
is_dynamic_tariff?: { ... }
|
|
1437
1712
|
dynamic_tariff?: { ... }
|
|
1438
1713
|
}
|
|
1714
|
+
base_prices?: Array<{
|
|
1715
|
+
price_id?: { ... }
|
|
1716
|
+
price_title?: { ... }
|
|
1717
|
+
tariff_type?: { ... }
|
|
1718
|
+
pricing_model?: { ... }
|
|
1719
|
+
unit_amount_gross_decimal?: { ... }
|
|
1720
|
+
unit_amount_net_decimal?: { ... }
|
|
1721
|
+
before_discount_unit_amount_gross_decimal?: { ... }
|
|
1722
|
+
before_discount_unit_amount_net_decimal?: { ... }
|
|
1723
|
+
unit_discount_amount_decimal?: { ... }
|
|
1724
|
+
unit_discount_amount_net_decimal?: { ... }
|
|
1725
|
+
currency?: { ... }
|
|
1726
|
+
billing_period?: { ... }
|
|
1727
|
+
unit?: { ... }
|
|
1728
|
+
has_discount?: { ... }
|
|
1729
|
+
is_dynamic_tariff?: { ... }
|
|
1730
|
+
dynamic_tariff?: { ... }
|
|
1731
|
+
}>
|
|
1439
1732
|
working_price?: {
|
|
1440
1733
|
price_id?: { ... }
|
|
1441
1734
|
price_title?: { ... }
|
|
1735
|
+
tariff_type?: { ... }
|
|
1442
1736
|
pricing_model?: { ... }
|
|
1443
1737
|
unit_amount_gross_decimal?: { ... }
|
|
1444
1738
|
unit_amount_net_decimal?: { ... }
|
|
@@ -1453,7 +1747,28 @@ type ConfigurationHistoryRow = {
|
|
|
1453
1747
|
is_dynamic_tariff?: { ... }
|
|
1454
1748
|
dynamic_tariff?: { ... }
|
|
1455
1749
|
}
|
|
1750
|
+
working_prices?: Array<{
|
|
1751
|
+
price_id?: { ... }
|
|
1752
|
+
price_title?: { ... }
|
|
1753
|
+
tariff_type?: { ... }
|
|
1754
|
+
pricing_model?: { ... }
|
|
1755
|
+
unit_amount_gross_decimal?: { ... }
|
|
1756
|
+
unit_amount_net_decimal?: { ... }
|
|
1757
|
+
before_discount_unit_amount_gross_decimal?: { ... }
|
|
1758
|
+
before_discount_unit_amount_net_decimal?: { ... }
|
|
1759
|
+
unit_discount_amount_decimal?: { ... }
|
|
1760
|
+
unit_discount_amount_net_decimal?: { ... }
|
|
1761
|
+
currency?: { ... }
|
|
1762
|
+
billing_period?: { ... }
|
|
1763
|
+
unit?: { ... }
|
|
1764
|
+
has_discount?: { ... }
|
|
1765
|
+
is_dynamic_tariff?: { ... }
|
|
1766
|
+
dynamic_tariff?: { ... }
|
|
1767
|
+
}>
|
|
1456
1768
|
}
|
|
1769
|
+
} | {
|
|
1770
|
+
event_id: string
|
|
1771
|
+
// ...
|
|
1457
1772
|
}
|
|
1458
1773
|
```
|
|
1459
1774
|
|
|
@@ -1466,7 +1781,6 @@ type ConfigurationHistoryResponse = {
|
|
|
1466
1781
|
org_id: string
|
|
1467
1782
|
entity_type: "contract" | "billing_account"
|
|
1468
1783
|
entity_id: string
|
|
1469
|
-
change_type: "installment_amount_changed"
|
|
1470
1784
|
schema_version: number
|
|
1471
1785
|
effective_at?: string // date-time
|
|
1472
1786
|
changed_at: string // date-time
|
|
@@ -1475,6 +1789,7 @@ type ConfigurationHistoryResponse = {
|
|
|
1475
1789
|
source_label?: string
|
|
1476
1790
|
source_system?: string
|
|
1477
1791
|
source_reference?: string
|
|
1792
|
+
change_type: "installment_amount_changed"
|
|
1478
1793
|
previous_value?: {
|
|
1479
1794
|
amount?: { ... }
|
|
1480
1795
|
amount_decimal?: { ... }
|
|
@@ -1487,8 +1802,41 @@ type ConfigurationHistoryResponse = {
|
|
|
1487
1802
|
}
|
|
1488
1803
|
context?: {
|
|
1489
1804
|
base_price?: { ... }
|
|
1805
|
+
base_prices?: { ... }
|
|
1806
|
+
working_price?: { ... }
|
|
1807
|
+
working_prices?: { ... }
|
|
1808
|
+
}
|
|
1809
|
+
} | {
|
|
1810
|
+
event_id: string
|
|
1811
|
+
org_id: string
|
|
1812
|
+
entity_type: "contract" | "billing_account"
|
|
1813
|
+
entity_id: string
|
|
1814
|
+
schema_version: number
|
|
1815
|
+
effective_at?: string // date-time
|
|
1816
|
+
changed_at: string // date-time
|
|
1817
|
+
created_at: string // date-time
|
|
1818
|
+
source: "portal" | "epilot" | "erp" | "system" | "api" | "external" | "journey" | "automation" | "unknown"
|
|
1819
|
+
source_label?: string
|
|
1820
|
+
source_system?: string
|
|
1821
|
+
source_reference?: string
|
|
1822
|
+
change_type: "contract_pricing_changed"
|
|
1823
|
+
previous_context: {
|
|
1824
|
+
base_price?: { ... }
|
|
1825
|
+
base_prices?: { ... }
|
|
1826
|
+
working_price?: { ... }
|
|
1827
|
+
working_prices?: { ... }
|
|
1828
|
+
tariff?: { ... }
|
|
1829
|
+
tariffs?: { ... }
|
|
1830
|
+
}
|
|
1831
|
+
new_context: {
|
|
1832
|
+
base_price?: { ... }
|
|
1833
|
+
base_prices?: { ... }
|
|
1490
1834
|
working_price?: { ... }
|
|
1835
|
+
working_prices?: { ... }
|
|
1836
|
+
tariff?: { ... }
|
|
1837
|
+
tariffs?: { ... }
|
|
1491
1838
|
}
|
|
1839
|
+
changed_fields: "tariff" | "base_price" | "working_price" | "discount" | "dynamic_tariff_configuration"[]
|
|
1492
1840
|
}>
|
|
1493
1841
|
total: number
|
|
1494
1842
|
}
|
|
@@ -1531,6 +1879,7 @@ type ContractPricingInformation = {
|
|
|
1531
1879
|
base_price?: {
|
|
1532
1880
|
price_id?: { ... }
|
|
1533
1881
|
price_title?: { ... }
|
|
1882
|
+
tariff_type?: { ... }
|
|
1534
1883
|
pricing_model?: { ... }
|
|
1535
1884
|
unit_amount_gross_decimal?: { ... }
|
|
1536
1885
|
unit_amount_net_decimal?: { ... }
|
|
@@ -1545,9 +1894,28 @@ type ContractPricingInformation = {
|
|
|
1545
1894
|
is_dynamic_tariff?: { ... }
|
|
1546
1895
|
dynamic_tariff?: { ... }
|
|
1547
1896
|
}
|
|
1897
|
+
base_prices?: Array<{
|
|
1898
|
+
price_id?: { ... }
|
|
1899
|
+
price_title?: { ... }
|
|
1900
|
+
tariff_type?: { ... }
|
|
1901
|
+
pricing_model?: { ... }
|
|
1902
|
+
unit_amount_gross_decimal?: { ... }
|
|
1903
|
+
unit_amount_net_decimal?: { ... }
|
|
1904
|
+
before_discount_unit_amount_gross_decimal?: { ... }
|
|
1905
|
+
before_discount_unit_amount_net_decimal?: { ... }
|
|
1906
|
+
unit_discount_amount_decimal?: { ... }
|
|
1907
|
+
unit_discount_amount_net_decimal?: { ... }
|
|
1908
|
+
currency?: { ... }
|
|
1909
|
+
billing_period?: { ... }
|
|
1910
|
+
unit?: { ... }
|
|
1911
|
+
has_discount?: { ... }
|
|
1912
|
+
is_dynamic_tariff?: { ... }
|
|
1913
|
+
dynamic_tariff?: { ... }
|
|
1914
|
+
}>
|
|
1548
1915
|
working_price?: {
|
|
1549
1916
|
price_id?: { ... }
|
|
1550
1917
|
price_title?: { ... }
|
|
1918
|
+
tariff_type?: { ... }
|
|
1551
1919
|
pricing_model?: { ... }
|
|
1552
1920
|
unit_amount_gross_decimal?: { ... }
|
|
1553
1921
|
unit_amount_net_decimal?: { ... }
|
|
@@ -1562,6 +1930,24 @@ type ContractPricingInformation = {
|
|
|
1562
1930
|
is_dynamic_tariff?: { ... }
|
|
1563
1931
|
dynamic_tariff?: { ... }
|
|
1564
1932
|
}
|
|
1933
|
+
working_prices?: Array<{
|
|
1934
|
+
price_id?: { ... }
|
|
1935
|
+
price_title?: { ... }
|
|
1936
|
+
tariff_type?: { ... }
|
|
1937
|
+
pricing_model?: { ... }
|
|
1938
|
+
unit_amount_gross_decimal?: { ... }
|
|
1939
|
+
unit_amount_net_decimal?: { ... }
|
|
1940
|
+
before_discount_unit_amount_gross_decimal?: { ... }
|
|
1941
|
+
before_discount_unit_amount_net_decimal?: { ... }
|
|
1942
|
+
unit_discount_amount_decimal?: { ... }
|
|
1943
|
+
unit_discount_amount_net_decimal?: { ... }
|
|
1944
|
+
currency?: { ... }
|
|
1945
|
+
billing_period?: { ... }
|
|
1946
|
+
unit?: { ... }
|
|
1947
|
+
has_discount?: { ... }
|
|
1948
|
+
is_dynamic_tariff?: { ... }
|
|
1949
|
+
dynamic_tariff?: { ... }
|
|
1950
|
+
}>
|
|
1565
1951
|
}
|
|
1566
1952
|
balance?: {
|
|
1567
1953
|
amount?: number
|
|
@@ -1580,30 +1966,7 @@ type ContractPricingInformation = {
|
|
|
1580
1966
|
org_id: string
|
|
1581
1967
|
entity_type: "contract" | "billing_account"
|
|
1582
1968
|
entity_id: string
|
|
1583
|
-
|
|
1584
|
-
schema_version: number
|
|
1585
|
-
effective_at?: string // date-time
|
|
1586
|
-
changed_at: string // date-time
|
|
1587
|
-
created_at: string // date-time
|
|
1588
|
-
source: "portal" | "epilot" | "erp" | "system" | "api" | "external" | "journey" | "automation" | "unknown"
|
|
1589
|
-
source_label?: string
|
|
1590
|
-
source_system?: string
|
|
1591
|
-
source_reference?: string
|
|
1592
|
-
previous_value?: {
|
|
1593
|
-
amount?: { ... }
|
|
1594
|
-
amount_decimal?: { ... }
|
|
1595
|
-
currency?: { ... }
|
|
1596
|
-
}
|
|
1597
|
-
new_value: {
|
|
1598
|
-
amount?: { ... }
|
|
1599
|
-
amount_decimal?: { ... }
|
|
1600
|
-
currency?: { ... }
|
|
1601
|
-
}
|
|
1602
|
-
context?: {
|
|
1603
|
-
base_price?: { ... }
|
|
1604
|
-
working_price?: { ... }
|
|
1605
|
-
}
|
|
1606
|
-
}>
|
|
1969
|
+
// ...
|
|
1607
1970
|
}
|
|
1608
1971
|
```
|
|
1609
1972
|
|
|
@@ -1630,7 +1993,9 @@ type BillingAccountPricingInformation = {
|
|
|
1630
1993
|
}
|
|
1631
1994
|
context?: {
|
|
1632
1995
|
base_price?: { ... }
|
|
1996
|
+
base_prices?: { ... }
|
|
1633
1997
|
working_price?: { ... }
|
|
1998
|
+
working_prices?: { ... }
|
|
1634
1999
|
}
|
|
1635
2000
|
balance?: {
|
|
1636
2001
|
amount?: { ... }
|
|
@@ -1649,7 +2014,6 @@ type BillingAccountPricingInformation = {
|
|
|
1649
2014
|
org_id: { ... }
|
|
1650
2015
|
entity_type: { ... }
|
|
1651
2016
|
entity_id: { ... }
|
|
1652
|
-
change_type: { ... }
|
|
1653
2017
|
schema_version: { ... }
|
|
1654
2018
|
effective_at?: { ... }
|
|
1655
2019
|
changed_at: { ... }
|
|
@@ -1658,9 +2022,27 @@ type BillingAccountPricingInformation = {
|
|
|
1658
2022
|
source_label?: { ... }
|
|
1659
2023
|
source_system?: { ... }
|
|
1660
2024
|
source_reference?: { ... }
|
|
2025
|
+
change_type: { ... }
|
|
1661
2026
|
previous_value?: { ... }
|
|
1662
2027
|
new_value: { ... }
|
|
1663
2028
|
context?: { ... }
|
|
2029
|
+
} | {
|
|
2030
|
+
event_id: { ... }
|
|
2031
|
+
org_id: { ... }
|
|
2032
|
+
entity_type: { ... }
|
|
2033
|
+
entity_id: { ... }
|
|
2034
|
+
schema_version: { ... }
|
|
2035
|
+
effective_at?: { ... }
|
|
2036
|
+
changed_at: { ... }
|
|
2037
|
+
created_at: { ... }
|
|
2038
|
+
source: { ... }
|
|
2039
|
+
source_label?: { ... }
|
|
2040
|
+
source_system?: { ... }
|
|
2041
|
+
source_reference?: { ... }
|
|
2042
|
+
change_type: { ... }
|
|
2043
|
+
previous_context: { ... }
|
|
2044
|
+
new_context: { ... }
|
|
2045
|
+
changed_fields: { ... }
|
|
1664
2046
|
}>
|
|
1665
2047
|
}>
|
|
1666
2048
|
}
|