@@ -91,20 +91,6 @@ declare namespace Components {
91
91
products : string [ ] ;
92
92
filters : /* Availability filters dimensions */ AvailabilityFilters ;
93
93
}
94
- export interface AvailabilityDate {
95
- /**
96
- * The availability interval start date
97
- * example:
98
- * 2017-07-21
99
- */
100
- available_start_date ?: string ; // date
101
- /**
102
- * The availability interval end date
103
- * example:
104
- * 2017-07-21
105
- */
106
- available_end_date ?: string ; // date
107
- }
108
94
/**
109
95
* Availability filters dimensions
110
96
*/
@@ -469,51 +455,6 @@ declare namespace Components {
469
455
password : string ;
470
456
}
471
457
export type BillingPeriod = "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly" ;
472
- /**
473
- * Supports shopping for products and services until ready for checkout.
474
- */
475
- export interface Cart {
476
- /**
477
- * Total of all items before (discounts or) taxes are applied.
478
- */
479
- amount_subtotal ?: number ;
480
- /**
481
- * Total of all items before (discounts or) taxes are applied, as a string with all the decimal places.
482
- */
483
- amount_subtotal_decimal ?: string ;
484
- /**
485
- * Total of all items after (discounts and) taxes are applied.
486
- */
487
- amount_total ?: number ;
488
- /**
489
- * Total of all items after (discounts and) taxes are applied, as a string with all the decimal places.
490
- */
491
- amount_total_decimal ?: string ;
492
- /**
493
- * The cart identifier
494
- */
495
- id ?: string ;
496
- /**
497
- * The user's Organization Id the cart belongs to
498
- */
499
- org_id ?: string ;
500
- /**
501
- * The status of the Cart:
502
- * - open - the cart checkout is still in progress. Payment processing has not started
503
- * - complete - the cart checkout is complete. Payment processing may still be in progress
504
- * - expired - the cart checkout has expired. No further processing will occur
505
- *
506
- */
507
- status ?: "open" | "complete" | "expired" ;
508
- customer ?: Customer ;
509
- billing_address ?: Address ;
510
- delivery_address ?: Address ;
511
- metadata ?: /* A set of key-value pairs used to store meta data information about an entity. */ MetaData ;
512
- line_items ?: /* Tracks a set of product prices, quantities, (discounts) and taxes. */ PriceItems ;
513
- total_details ?: /* The total details with tax (and discount) aggregated totals. */ TotalDetails ;
514
- created_at ?: string ; // date-time
515
- updated_at ?: string ; // date-time
516
- }
517
458
/**
518
459
* A valid cart payload from a client.
519
460
*/
@@ -1073,6 +1014,22 @@ declare namespace Components {
1073
1014
* The computed total price as decimal
1074
1015
*/
1075
1016
amount_total_decimal : string ;
1017
+ /**
1018
+ * The computed static price
1019
+ */
1020
+ amount_static ?: number ;
1021
+ /**
1022
+ * The computed static price as decimal
1023
+ */
1024
+ amount_static_decimal ?: any ;
1025
+ /**
1026
+ * The computed variable price
1027
+ */
1028
+ amount_variable ?: number ;
1029
+ /**
1030
+ * The computed variable price as decimal
1031
+ */
1032
+ amount_variable_decimal ?: string ;
1076
1033
/**
1077
1034
* The currency of the computed price (three-letter ISO currency code)
1078
1035
*/
@@ -1107,6 +1064,19 @@ declare namespace Components {
1107
1064
* Price breakdown
1108
1065
*/
1109
1066
export interface ComputedPriceBreakdown {
1067
+ /**
1068
+ * The static price breakdown
1069
+ */
1070
+ static ?: /* The computed price components */ ComputedPriceComponents ;
1071
+ /**
1072
+ * The variable price breakdown
1073
+ */
1074
+ variable ?: /* The computed price components */ ComputedPriceComponents ;
1075
+ }
1076
+ /**
1077
+ * The computed price components
1078
+ */
1079
+ export interface ComputedPriceComponents {
1110
1080
[ name : string ] : /* The computed price */ ComputedBasePrice ;
1111
1081
}
1112
1082
/**
@@ -1129,35 +1099,6 @@ declare namespace Components {
1129
1099
phone ?: string ;
1130
1100
}
1131
1101
export type EntityId = string ; // uuid
1132
- /**
1133
- * example:
1134
- * {
1135
- * "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
1136
- * "_org": "123",
1137
- * "_schema": "contact",
1138
- * "_tags": [
1139
- * "example",
1140
- * "mock"
1141
- * ],
1142
- * "_created_at": "2021-02-09T12:41:43.662Z",
1143
- * "_updated_at": "2021-02-09T12:41:43.662Z"
1144
- * }
1145
- */
1146
- export interface EntityItem {
1147
- _id : EntityId /* uuid */ ;
1148
- /**
1149
- * Title of entity
1150
- */
1151
- _title : string ;
1152
- /**
1153
- * Organization Id the entity belongs to
1154
- */
1155
- _org : string ;
1156
- _schema : string ;
1157
- _tags ?: string [ ] ;
1158
- _created_at : string ; // date-time
1159
- _updated_at : string ; // date-time
1160
- }
1161
1102
export interface EntityRelation {
1162
1103
[ name : string ] : any ;
1163
1104
entity_id ?: string ;
@@ -2408,51 +2349,6 @@ declare namespace Components {
2408
2349
display_mode ?: PriceTierDisplayMode ;
2409
2350
}
2410
2351
export type PriceTierDisplayMode = "hidden" | "on_request" ;
2411
- /**
2412
- * The result from the calculation of a set of price items.
2413
- */
2414
- export interface PricingDetails {
2415
- items ?: ( /**
2416
- * Represents a price item
2417
- * example:
2418
- * {
2419
- * "$ref": "#/components/examples/price-item"
2420
- * }
2421
- */
2422
- PriceItem | /**
2423
- * Represents a composite price input to the pricing library.
2424
- * example:
2425
- * {
2426
- * "$ref": "#/components/examples/price-item"
2427
- * }
2428
- */
2429
- CompositePriceItem ) [ ] ;
2430
- /**
2431
- * Total of all items before (discounts or) taxes are applied.
2432
- */
2433
- amount_subtotal ?: number ;
2434
- /**
2435
- * Total of all items after (discounts and) taxes are applied.
2436
- */
2437
- amount_total ?: number ;
2438
- /**
2439
- * The unit gross amount value.
2440
- */
2441
- unit_amount_gross ?: number ;
2442
- /**
2443
- * This is the sum of all the price item tax amounts.
2444
- */
2445
- amount_tax ?: number ;
2446
- total_details ?: /* The total details with tax (and discount) aggregated totals. */ TotalDetails ;
2447
- currency ?: /**
2448
- * Three-letter ISO currency code, in lowercase. Must be a supported currency.
2449
- * ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
2450
- *
2451
- * example:
2452
- * EUR
2453
- */
2454
- Currency ;
2455
- }
2456
2352
/**
2457
2353
* The product entity
2458
2354
* example:
@@ -2639,35 +2535,6 @@ declare namespace Components {
2639
2535
*/
2640
2536
amount_tax ?: number ;
2641
2537
}
2642
- /**
2643
- * An amount associated with a specific recurrence and tax.
2644
- */
2645
- export interface RecurrenceAmountWithTax {
2646
- /**
2647
- * The price type.
2648
- */
2649
- type ?: string ;
2650
- /**
2651
- * The price billing period.
2652
- */
2653
- billing_period ?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly" ;
2654
- /**
2655
- * Total of all items after (discounts and) taxes are applied.
2656
- */
2657
- amount_total : number ;
2658
- /**
2659
- * Total of all items before (discounts or) taxes are applied.
2660
- */
2661
- amount_subtotal : number ;
2662
- /**
2663
- * Total of all items taxes, with same recurrence.
2664
- */
2665
- amount_tax ?: number ;
2666
- /**
2667
- * Tax
2668
- */
2669
- tax ?: /* A tax amount associated with a specific tax rate. */ TaxAmountBreakdown ;
2670
- }
2671
2538
export type SalesTax = "nontaxable" | "reduced" | "standard" ;
2672
2539
export type SaveIntegrationCredentialsParams = /* The basic auth credentials */ BasicAuthCredentials ;
2673
2540
/**
@@ -2723,7 +2590,7 @@ declare namespace Components {
2723
2590
/**
2724
2591
* The street name
2725
2592
*/
2726
- name : string ;
2593
+ street : string ;
2727
2594
}
2728
2595
/**
2729
2596
* the tax configuration
@@ -2891,10 +2758,6 @@ declare namespace Components {
2891
2758
* The aggregated price items tax amount per rate.
2892
2759
*/
2893
2760
recurrences ?: ( /* An amount associated with a specific recurrence. */ RecurrenceAmount ) [ ] ;
2894
- /**
2895
- * The aggregated price items recurrences by tax rate.
2896
- */
2897
- recurrencesByTax ?: ( /* An amount associated with a specific recurrence and tax. */ RecurrenceAmountWithTax ) [ ] ;
2898
2761
} ;
2899
2762
}
2900
2763
/**
0 commit comments