|
|
@@ -52,6 +52,8 @@ export type Query = {
|
|
|
order?: Maybe<Order>;
|
|
|
orders: OrderList;
|
|
|
paymentMethod?: Maybe<PaymentMethod>;
|
|
|
+ paymentMethodEligibilityCheckers: Array<ConfigurableOperationDefinition>;
|
|
|
+ paymentMethodHandlers: Array<ConfigurableOperationDefinition>;
|
|
|
paymentMethods: PaymentMethodList;
|
|
|
/** Get a Product either by id or slug. If neither id nor slug is speicified, an error will result. */
|
|
|
product?: Maybe<Product>;
|
|
|
@@ -353,6 +355,8 @@ export type Mutation = {
|
|
|
createFacet: Facet;
|
|
|
/** Create one or more FacetValues */
|
|
|
createFacetValues: Array<FacetValue>;
|
|
|
+ /** Create existing PaymentMethod */
|
|
|
+ createPaymentMethod: PaymentMethod;
|
|
|
/** Create a new Product */
|
|
|
createProduct: Product;
|
|
|
/** Create a new ProductOption within a ProductOptionGroup */
|
|
|
@@ -626,6 +630,11 @@ export type MutationCreateFacetValuesArgs = {
|
|
|
};
|
|
|
|
|
|
|
|
|
+export type MutationCreatePaymentMethodArgs = {
|
|
|
+ input: CreatePaymentMethodInput;
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
export type MutationCreateProductArgs = {
|
|
|
input: CreateProductInput;
|
|
|
};
|
|
|
@@ -1143,6 +1152,7 @@ export type CreateChannelInput = {
|
|
|
currencyCode: CurrencyCode;
|
|
|
defaultTaxZoneId: Scalars['ID'];
|
|
|
defaultShippingZoneId: Scalars['ID'];
|
|
|
+ customFields?: Maybe<Scalars['JSON']>;
|
|
|
};
|
|
|
|
|
|
export type UpdateChannelInput = {
|
|
|
@@ -1154,6 +1164,7 @@ export type UpdateChannelInput = {
|
|
|
currencyCode?: Maybe<CurrencyCode>;
|
|
|
defaultTaxZoneId?: Maybe<Scalars['ID']>;
|
|
|
defaultShippingZoneId?: Maybe<Scalars['ID']>;
|
|
|
+ customFields?: Maybe<Scalars['JSON']>;
|
|
|
};
|
|
|
|
|
|
/** Returned if attempting to set a Channel's defaultLanguageCode to a language which is not enabled in GlobalSettings */
|
|
|
@@ -1465,7 +1476,7 @@ export type ImportInfo = {
|
|
|
/**
|
|
|
* @description
|
|
|
* The state of a Job in the JobQueue
|
|
|
- *
|
|
|
+ *
|
|
|
* @docsCategory common
|
|
|
*/
|
|
|
export enum JobState {
|
|
|
@@ -1915,11 +1926,23 @@ export type PaymentMethodList = PaginatedList & {
|
|
|
totalItems: Scalars['Int'];
|
|
|
};
|
|
|
|
|
|
+export type CreatePaymentMethodInput = {
|
|
|
+ name: Scalars['String'];
|
|
|
+ code: Scalars['String'];
|
|
|
+ description?: Maybe<Scalars['String']>;
|
|
|
+ enabled: Scalars['Boolean'];
|
|
|
+ checker?: Maybe<ConfigurableOperationInput>;
|
|
|
+ handler: ConfigurableOperationInput;
|
|
|
+};
|
|
|
+
|
|
|
export type UpdatePaymentMethodInput = {
|
|
|
id: Scalars['ID'];
|
|
|
+ name?: Maybe<Scalars['String']>;
|
|
|
code?: Maybe<Scalars['String']>;
|
|
|
+ description?: Maybe<Scalars['String']>;
|
|
|
enabled?: Maybe<Scalars['Boolean']>;
|
|
|
- configArgs?: Maybe<Array<ConfigArgInput>>;
|
|
|
+ checker?: Maybe<ConfigurableOperationInput>;
|
|
|
+ handler?: Maybe<ConfigurableOperationInput>;
|
|
|
};
|
|
|
|
|
|
export type PaymentMethod = Node & {
|
|
|
@@ -1927,10 +1950,12 @@ export type PaymentMethod = Node & {
|
|
|
id: Scalars['ID'];
|
|
|
createdAt: Scalars['DateTime'];
|
|
|
updatedAt: Scalars['DateTime'];
|
|
|
+ name: Scalars['String'];
|
|
|
code: Scalars['String'];
|
|
|
+ description: Scalars['String'];
|
|
|
enabled: Scalars['Boolean'];
|
|
|
- configArgs: Array<ConfigArg>;
|
|
|
- definition: ConfigurableOperationDefinition;
|
|
|
+ checker?: Maybe<ConfigurableOperation>;
|
|
|
+ handler: ConfigurableOperation;
|
|
|
};
|
|
|
|
|
|
export type Product = Node & {
|
|
|
@@ -2489,6 +2514,7 @@ export type Channel = Node & {
|
|
|
defaultLanguageCode: LanguageCode;
|
|
|
currencyCode: CurrencyCode;
|
|
|
pricesIncludeTax: Scalars['Boolean'];
|
|
|
+ customFields?: Maybe<Scalars['JSON']>;
|
|
|
};
|
|
|
|
|
|
export type CollectionBreadcrumb = {
|
|
|
@@ -2543,7 +2569,7 @@ export enum DeletionResult {
|
|
|
* @description
|
|
|
* Permissions for administrators and customers. Used to control access to
|
|
|
* GraphQL resolvers via the {@link Allow} decorator.
|
|
|
- *
|
|
|
+ *
|
|
|
* @docsCategory common
|
|
|
*/
|
|
|
export enum Permission {
|
|
|
@@ -2891,6 +2917,25 @@ export type Success = {
|
|
|
success: Scalars['Boolean'];
|
|
|
};
|
|
|
|
|
|
+export type ShippingMethodQuote = {
|
|
|
+ __typename?: 'ShippingMethodQuote';
|
|
|
+ id: Scalars['ID'];
|
|
|
+ price: Scalars['Int'];
|
|
|
+ priceWithTax: Scalars['Int'];
|
|
|
+ name: Scalars['String'];
|
|
|
+ description: Scalars['String'];
|
|
|
+ /** Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult */
|
|
|
+ metadata?: Maybe<Scalars['JSON']>;
|
|
|
+};
|
|
|
+
|
|
|
+export type PaymentMethodQuote = {
|
|
|
+ __typename?: 'PaymentMethodQuote';
|
|
|
+ id: Scalars['ID'];
|
|
|
+ code: Scalars['String'];
|
|
|
+ isEligible: Scalars['Boolean'];
|
|
|
+ eligibilityMessage?: Maybe<Scalars['String']>;
|
|
|
+};
|
|
|
+
|
|
|
export type Country = Node & {
|
|
|
__typename?: 'Country';
|
|
|
id: Scalars['ID'];
|
|
|
@@ -2921,7 +2966,7 @@ export type CountryList = PaginatedList & {
|
|
|
/**
|
|
|
* @description
|
|
|
* ISO 4217 currency code
|
|
|
- *
|
|
|
+ *
|
|
|
* @docsCategory common
|
|
|
*/
|
|
|
export enum CurrencyCode {
|
|
|
@@ -3458,7 +3503,7 @@ export type HistoryEntryList = PaginatedList & {
|
|
|
* region or script modifier (e.g. de_AT). The selection available is based
|
|
|
* on the [Unicode CLDR summary list](https://unicode-org.github.io/cldr-staging/charts/37/summary/root.html)
|
|
|
* and includes the major spoken languages of the world and any widely-used variants.
|
|
|
- *
|
|
|
+ *
|
|
|
* @docsCategory common
|
|
|
*/
|
|
|
export enum LanguageCode {
|
|
|
@@ -3815,16 +3860,6 @@ export type OrderList = PaginatedList & {
|
|
|
totalItems: Scalars['Int'];
|
|
|
};
|
|
|
|
|
|
-export type ShippingMethodQuote = {
|
|
|
- __typename?: 'ShippingMethodQuote';
|
|
|
- id: Scalars['ID'];
|
|
|
- price: Scalars['Int'];
|
|
|
- priceWithTax: Scalars['Int'];
|
|
|
- name: Scalars['String'];
|
|
|
- description: Scalars['String'];
|
|
|
- metadata?: Maybe<Scalars['JSON']>;
|
|
|
-};
|
|
|
-
|
|
|
export type ShippingLine = {
|
|
|
__typename?: 'ShippingLine';
|
|
|
shippingMethod: ShippingMethod;
|
|
|
@@ -3847,7 +3882,7 @@ export type OrderItem = Node & {
|
|
|
unitPriceWithTax: Scalars['Int'];
|
|
|
/**
|
|
|
* The price of a single unit including discounts, excluding tax.
|
|
|
- *
|
|
|
+ *
|
|
|
* If Order-level discounts have been applied, this will not be the
|
|
|
* actual taxable unit price (see `proratedUnitPrice`), but is generally the
|
|
|
* correct price to display to customers to avoid confusion
|
|
|
@@ -3887,7 +3922,7 @@ export type OrderLine = Node & {
|
|
|
unitPriceWithTax: Scalars['Int'];
|
|
|
/**
|
|
|
* The price of a single unit including discounts, excluding tax.
|
|
|
- *
|
|
|
+ *
|
|
|
* If Order-level discounts have been applied, this will not be the
|
|
|
* actual taxable unit price (see `proratedUnitPrice`), but is generally the
|
|
|
* correct price to display to customers to avoid confusion
|
|
|
@@ -4544,7 +4579,9 @@ export type OrderSortParameter = {
|
|
|
export type PaymentMethodFilterParameter = {
|
|
|
createdAt?: Maybe<DateOperators>;
|
|
|
updatedAt?: Maybe<DateOperators>;
|
|
|
+ name?: Maybe<StringOperators>;
|
|
|
code?: Maybe<StringOperators>;
|
|
|
+ description?: Maybe<StringOperators>;
|
|
|
enabled?: Maybe<BooleanOperators>;
|
|
|
};
|
|
|
|
|
|
@@ -4552,7 +4589,9 @@ export type PaymentMethodSortParameter = {
|
|
|
id?: Maybe<SortOrder>;
|
|
|
createdAt?: Maybe<SortOrder>;
|
|
|
updatedAt?: Maybe<SortOrder>;
|
|
|
+ name?: Maybe<SortOrder>;
|
|
|
code?: Maybe<SortOrder>;
|
|
|
+ description?: Maybe<SortOrder>;
|
|
|
};
|
|
|
|
|
|
export type ProductFilterParameter = {
|
|
|
@@ -4716,6 +4755,7 @@ export type NativeAuthInput = {
|
|
|
export type CustomFields = {
|
|
|
__typename?: 'CustomFields';
|
|
|
Address: Array<CustomFieldConfig>;
|
|
|
+ Channel: Array<CustomFieldConfig>;
|
|
|
Collection: Array<CustomFieldConfig>;
|
|
|
Customer: Array<CustomFieldConfig>;
|
|
|
Facet: Array<CustomFieldConfig>;
|
|
|
@@ -7076,13 +7116,13 @@ export type DeleteChannelMutation = { deleteChannel: (
|
|
|
|
|
|
export type PaymentMethodFragment = (
|
|
|
{ __typename?: 'PaymentMethod' }
|
|
|
- & Pick<PaymentMethod, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'enabled'>
|
|
|
- & { configArgs: Array<(
|
|
|
- { __typename?: 'ConfigArg' }
|
|
|
- & Pick<ConfigArg, 'name' | 'value'>
|
|
|
- )>, definition: (
|
|
|
- { __typename?: 'ConfigurableOperationDefinition' }
|
|
|
- & ConfigurableOperationDefFragment
|
|
|
+ & Pick<PaymentMethod, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'code' | 'description' | 'enabled'>
|
|
|
+ & { checker?: Maybe<(
|
|
|
+ { __typename?: 'ConfigurableOperation' }
|
|
|
+ & ConfigurableOperationFragment
|
|
|
+ )>, handler: (
|
|
|
+ { __typename?: 'ConfigurableOperation' }
|
|
|
+ & ConfigurableOperationFragment
|
|
|
) }
|
|
|
);
|
|
|
|
|
|
@@ -7100,6 +7140,17 @@ export type GetPaymentMethodListQuery = { paymentMethods: (
|
|
|
)> }
|
|
|
) };
|
|
|
|
|
|
+export type GetPaymentMethodOperationsQueryVariables = Exact<{ [key: string]: never; }>;
|
|
|
+
|
|
|
+
|
|
|
+export type GetPaymentMethodOperationsQuery = { paymentMethodEligibilityCheckers: Array<(
|
|
|
+ { __typename?: 'ConfigurableOperationDefinition' }
|
|
|
+ & ConfigurableOperationDefFragment
|
|
|
+ )>, paymentMethodHandlers: Array<(
|
|
|
+ { __typename?: 'ConfigurableOperationDefinition' }
|
|
|
+ & ConfigurableOperationDefFragment
|
|
|
+ )> };
|
|
|
+
|
|
|
export type GetPaymentMethodQueryVariables = Exact<{
|
|
|
id: Scalars['ID'];
|
|
|
}>;
|
|
|
@@ -7110,6 +7161,16 @@ export type GetPaymentMethodQuery = { paymentMethod?: Maybe<(
|
|
|
& PaymentMethodFragment
|
|
|
)> };
|
|
|
|
|
|
+export type CreatePaymentMethodMutationVariables = Exact<{
|
|
|
+ input: CreatePaymentMethodInput;
|
|
|
+}>;
|
|
|
+
|
|
|
+
|
|
|
+export type CreatePaymentMethodMutation = { createPaymentMethod: (
|
|
|
+ { __typename?: 'PaymentMethod' }
|
|
|
+ & PaymentMethodFragment
|
|
|
+ ) };
|
|
|
+
|
|
|
export type UpdatePaymentMethodMutationVariables = Exact<{
|
|
|
input: UpdatePaymentMethodInput;
|
|
|
}>;
|
|
|
@@ -7366,6 +7427,27 @@ export type GetServerConfigQuery = { globalSettings: (
|
|
|
) | (
|
|
|
{ __typename?: 'RelationCustomFieldConfig' }
|
|
|
& CustomFields_RelationCustomFieldConfig_Fragment
|
|
|
+ )>, Channel: Array<(
|
|
|
+ { __typename?: 'StringCustomFieldConfig' }
|
|
|
+ & CustomFields_StringCustomFieldConfig_Fragment
|
|
|
+ ) | (
|
|
|
+ { __typename?: 'LocaleStringCustomFieldConfig' }
|
|
|
+ & CustomFields_LocaleStringCustomFieldConfig_Fragment
|
|
|
+ ) | (
|
|
|
+ { __typename?: 'IntCustomFieldConfig' }
|
|
|
+ & CustomFields_IntCustomFieldConfig_Fragment
|
|
|
+ ) | (
|
|
|
+ { __typename?: 'FloatCustomFieldConfig' }
|
|
|
+ & CustomFields_FloatCustomFieldConfig_Fragment
|
|
|
+ ) | (
|
|
|
+ { __typename?: 'BooleanCustomFieldConfig' }
|
|
|
+ & CustomFields_BooleanCustomFieldConfig_Fragment
|
|
|
+ ) | (
|
|
|
+ { __typename?: 'DateTimeCustomFieldConfig' }
|
|
|
+ & CustomFields_DateTimeCustomFieldConfig_Fragment
|
|
|
+ ) | (
|
|
|
+ { __typename?: 'RelationCustomFieldConfig' }
|
|
|
+ & CustomFields_RelationCustomFieldConfig_Fragment
|
|
|
)>, Collection: Array<(
|
|
|
{ __typename?: 'StringCustomFieldConfig' }
|
|
|
& CustomFields_StringCustomFieldConfig_Fragment
|
|
|
@@ -9199,8 +9281,8 @@ export namespace DeleteChannel {
|
|
|
|
|
|
export namespace PaymentMethod {
|
|
|
export type Fragment = PaymentMethodFragment;
|
|
|
- export type ConfigArgs = NonNullable<(NonNullable<PaymentMethodFragment['configArgs']>)[number]>;
|
|
|
- export type Definition = (NonNullable<PaymentMethodFragment['definition']>);
|
|
|
+ export type Checker = (NonNullable<PaymentMethodFragment['checker']>);
|
|
|
+ export type Handler = (NonNullable<PaymentMethodFragment['handler']>);
|
|
|
}
|
|
|
|
|
|
export namespace GetPaymentMethodList {
|
|
|
@@ -9210,12 +9292,25 @@ export namespace GetPaymentMethodList {
|
|
|
export type Items = NonNullable<(NonNullable<(NonNullable<GetPaymentMethodListQuery['paymentMethods']>)['items']>)[number]>;
|
|
|
}
|
|
|
|
|
|
+export namespace GetPaymentMethodOperations {
|
|
|
+ export type Variables = GetPaymentMethodOperationsQueryVariables;
|
|
|
+ export type Query = GetPaymentMethodOperationsQuery;
|
|
|
+ export type PaymentMethodEligibilityCheckers = NonNullable<(NonNullable<GetPaymentMethodOperationsQuery['paymentMethodEligibilityCheckers']>)[number]>;
|
|
|
+ export type PaymentMethodHandlers = NonNullable<(NonNullable<GetPaymentMethodOperationsQuery['paymentMethodHandlers']>)[number]>;
|
|
|
+}
|
|
|
+
|
|
|
export namespace GetPaymentMethod {
|
|
|
export type Variables = GetPaymentMethodQueryVariables;
|
|
|
export type Query = GetPaymentMethodQuery;
|
|
|
export type PaymentMethod = (NonNullable<GetPaymentMethodQuery['paymentMethod']>);
|
|
|
}
|
|
|
|
|
|
+export namespace CreatePaymentMethod {
|
|
|
+ export type Variables = CreatePaymentMethodMutationVariables;
|
|
|
+ export type Mutation = CreatePaymentMethodMutation;
|
|
|
+ export type CreatePaymentMethod = (NonNullable<CreatePaymentMethodMutation['createPaymentMethod']>);
|
|
|
+}
|
|
|
+
|
|
|
export namespace UpdatePaymentMethod {
|
|
|
export type Variables = UpdatePaymentMethodMutationVariables;
|
|
|
export type Mutation = UpdatePaymentMethodMutation;
|
|
|
@@ -9297,6 +9392,7 @@ export namespace GetServerConfig {
|
|
|
export type Permissions = NonNullable<(NonNullable<(NonNullable<(NonNullable<GetServerConfigQuery['globalSettings']>)['serverConfig']>)['permissions']>)[number]>;
|
|
|
export type CustomFieldConfig = (NonNullable<(NonNullable<(NonNullable<GetServerConfigQuery['globalSettings']>)['serverConfig']>)['customFieldConfig']>);
|
|
|
export type Address = NonNullable<(NonNullable<(NonNullable<(NonNullable<(NonNullable<GetServerConfigQuery['globalSettings']>)['serverConfig']>)['customFieldConfig']>)['Address']>)[number]>;
|
|
|
+ export type Channel = NonNullable<(NonNullable<(NonNullable<(NonNullable<(NonNullable<GetServerConfigQuery['globalSettings']>)['serverConfig']>)['customFieldConfig']>)['Channel']>)[number]>;
|
|
|
export type Collection = NonNullable<(NonNullable<(NonNullable<(NonNullable<(NonNullable<GetServerConfigQuery['globalSettings']>)['serverConfig']>)['customFieldConfig']>)['Collection']>)[number]>;
|
|
|
export type Customer = NonNullable<(NonNullable<(NonNullable<(NonNullable<(NonNullable<GetServerConfigQuery['globalSettings']>)['serverConfig']>)['customFieldConfig']>)['Customer']>)[number]>;
|
|
|
export type Facet = NonNullable<(NonNullable<(NonNullable<(NonNullable<(NonNullable<GetServerConfigQuery['globalSettings']>)['serverConfig']>)['customFieldConfig']>)['Facet']>)[number]>;
|