|
|
@@ -296,6 +296,7 @@ export interface Order extends Node {
|
|
|
active: boolean;
|
|
|
customer?: Customer | null;
|
|
|
shippingAddress?: ShippingAddress | null;
|
|
|
+ billingAddress?: BillingAddress | null;
|
|
|
lines: OrderLine[];
|
|
|
adjustments: Adjustment[];
|
|
|
payments?: Payment[] | null;
|
|
|
@@ -319,6 +320,18 @@ export interface ShippingAddress {
|
|
|
phoneNumber?: string | null;
|
|
|
}
|
|
|
|
|
|
+export interface BillingAddress {
|
|
|
+ fullName?: string | null;
|
|
|
+ company?: string | null;
|
|
|
+ streetLine1?: string | null;
|
|
|
+ streetLine2?: string | null;
|
|
|
+ city?: string | null;
|
|
|
+ province?: string | null;
|
|
|
+ postalCode?: string | null;
|
|
|
+ country?: string | null;
|
|
|
+ phoneNumber?: string | null;
|
|
|
+}
|
|
|
+
|
|
|
export interface OrderLine extends Node {
|
|
|
id: string;
|
|
|
createdAt: DateTime;
|
|
|
@@ -3012,6 +3025,7 @@ export namespace OrderResolvers {
|
|
|
active?: ActiveResolver<boolean, any, Context>;
|
|
|
customer?: CustomerResolver<Customer | null, any, Context>;
|
|
|
shippingAddress?: ShippingAddressResolver<ShippingAddress | null, any, Context>;
|
|
|
+ billingAddress?: BillingAddressResolver<BillingAddress | null, any, Context>;
|
|
|
lines?: LinesResolver<OrderLine[], any, Context>;
|
|
|
adjustments?: AdjustmentsResolver<Adjustment[], any, Context>;
|
|
|
payments?: PaymentsResolver<Payment[] | null, any, Context>;
|
|
|
@@ -3039,6 +3053,11 @@ export namespace OrderResolvers {
|
|
|
Parent,
|
|
|
Context
|
|
|
>;
|
|
|
+ export type BillingAddressResolver<R = BillingAddress | null, Parent = any, Context = any> = Resolver<
|
|
|
+ R,
|
|
|
+ Parent,
|
|
|
+ Context
|
|
|
+ >;
|
|
|
export type LinesResolver<R = OrderLine[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
export type AdjustmentsResolver<R = Adjustment[], Parent = any, Context = any> = Resolver<
|
|
|
R,
|
|
|
@@ -3126,6 +3145,62 @@ export namespace ShippingAddressResolvers {
|
|
|
>;
|
|
|
}
|
|
|
|
|
|
+export namespace BillingAddressResolvers {
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
+ fullName?: FullNameResolver<string | null, any, Context>;
|
|
|
+ company?: CompanyResolver<string | null, any, Context>;
|
|
|
+ streetLine1?: StreetLine1Resolver<string | null, any, Context>;
|
|
|
+ streetLine2?: StreetLine2Resolver<string | null, any, Context>;
|
|
|
+ city?: CityResolver<string | null, any, Context>;
|
|
|
+ province?: ProvinceResolver<string | null, any, Context>;
|
|
|
+ postalCode?: PostalCodeResolver<string | null, any, Context>;
|
|
|
+ country?: CountryResolver<string | null, any, Context>;
|
|
|
+ phoneNumber?: PhoneNumberResolver<string | null, any, Context>;
|
|
|
+ }
|
|
|
+
|
|
|
+ export type FullNameResolver<R = string | null, Parent = any, Context = any> = Resolver<
|
|
|
+ R,
|
|
|
+ Parent,
|
|
|
+ Context
|
|
|
+ >;
|
|
|
+ export type CompanyResolver<R = string | null, Parent = any, Context = any> = Resolver<
|
|
|
+ R,
|
|
|
+ Parent,
|
|
|
+ Context
|
|
|
+ >;
|
|
|
+ export type StreetLine1Resolver<R = string | null, Parent = any, Context = any> = Resolver<
|
|
|
+ R,
|
|
|
+ Parent,
|
|
|
+ Context
|
|
|
+ >;
|
|
|
+ export type StreetLine2Resolver<R = string | null, Parent = any, Context = any> = Resolver<
|
|
|
+ R,
|
|
|
+ Parent,
|
|
|
+ Context
|
|
|
+ >;
|
|
|
+ export type CityResolver<R = string | null, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
+ export type ProvinceResolver<R = string | null, Parent = any, Context = any> = Resolver<
|
|
|
+ R,
|
|
|
+ Parent,
|
|
|
+ Context
|
|
|
+ >;
|
|
|
+ export type PostalCodeResolver<R = string | null, Parent = any, Context = any> = Resolver<
|
|
|
+ R,
|
|
|
+ Parent,
|
|
|
+ Context
|
|
|
+ >;
|
|
|
+ export type CountryResolver<R = string | null, Parent = any, Context = any> = Resolver<
|
|
|
+ R,
|
|
|
+ Parent,
|
|
|
+ Context
|
|
|
+ >;
|
|
|
+ export type PhoneNumberResolver<R = string | null, Parent = any, Context = any> = Resolver<
|
|
|
+ R,
|
|
|
+ Parent,
|
|
|
+ Context
|
|
|
+ >;
|
|
|
+}
|
|
|
+
|
|
|
export namespace OrderLineResolvers {
|
|
|
export interface Resolvers<Context = any> {
|
|
|
id?: IdResolver<string, any, Context>;
|