Skip to content

Commit 26b349d

Browse files
authored
Update street intrface (#181)
Co-authored-by: Paulo Henriques <[email protected]>
1 parent 2f8fc9b commit 26b349d

File tree

2 files changed

+76
-840
lines changed

2 files changed

+76
-840
lines changed

clients/pricing-client/src/openapi.d.ts

+30-167
Original file line numberDiff line numberDiff line change
@@ -91,20 +91,6 @@ declare namespace Components {
9191
products: string[];
9292
filters: /* Availability filters dimensions */ AvailabilityFilters;
9393
}
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-
}
10894
/**
10995
* Availability filters dimensions
11096
*/
@@ -469,51 +455,6 @@ declare namespace Components {
469455
password: string;
470456
}
471457
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-
}
517458
/**
518459
* A valid cart payload from a client.
519460
*/
@@ -1073,6 +1014,22 @@ declare namespace Components {
10731014
* The computed total price as decimal
10741015
*/
10751016
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;
10761033
/**
10771034
* The currency of the computed price (three-letter ISO currency code)
10781035
*/
@@ -1107,6 +1064,19 @@ declare namespace Components {
11071064
* Price breakdown
11081065
*/
11091066
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 {
11101080
[name: string]: /* The computed price */ ComputedBasePrice;
11111081
}
11121082
/**
@@ -1129,35 +1099,6 @@ declare namespace Components {
11291099
phone?: string;
11301100
}
11311101
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-
}
11611102
export interface EntityRelation {
11621103
[name: string]: any;
11631104
entity_id?: string;
@@ -2408,51 +2349,6 @@ declare namespace Components {
24082349
display_mode?: PriceTierDisplayMode;
24092350
}
24102351
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-
}
24562352
/**
24572353
* The product entity
24582354
* example:
@@ -2639,35 +2535,6 @@ declare namespace Components {
26392535
*/
26402536
amount_tax?: number;
26412537
}
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-
}
26712538
export type SalesTax = "nontaxable" | "reduced" | "standard";
26722539
export type SaveIntegrationCredentialsParams = /* The basic auth credentials */ BasicAuthCredentials;
26732540
/**
@@ -2723,7 +2590,7 @@ declare namespace Components {
27232590
/**
27242591
* The street name
27252592
*/
2726-
name: string;
2593+
street: string;
27272594
}
27282595
/**
27292596
* the tax configuration
@@ -2891,10 +2758,6 @@ declare namespace Components {
28912758
* The aggregated price items tax amount per rate.
28922759
*/
28932760
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)[];
28982761
};
28992762
}
29002763
/**

0 commit comments

Comments
 (0)