diff --git a/packages/payments-plugin/src/mollie/graphql/generated-shop-types.ts b/packages/payments-plugin/src/mollie/graphql/generated-shop-types.ts index d6fc1e1265..f723b64764 100644 --- a/packages/payments-plugin/src/mollie/graphql/generated-shop-types.ts +++ b/packages/payments-plugin/src/mollie/graphql/generated-shop-types.ts @@ -15,9 +15,13 @@ export type Scalars = { Boolean: { input: boolean; output: boolean }; Int: { input: number; output: number }; Float: { input: number; output: number }; + /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */ DateTime: { input: any; output: any }; + /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */ JSON: { input: any; output: any }; + /** The `Money` scalar type represents monetary values and supports signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point). */ Money: { input: number; output: number }; + /** The `Upload` scalar type represents a file upload. */ Upload: { input: any; output: any }; }; @@ -319,12 +323,6 @@ export type Coordinate = { y: Scalars['Float']['output']; }; -/** - * A Country of the world which your shop operates in. - * - * The `code` field is typically a 2-character ISO code such as "GB", "US", "DE" etc. This code is used in certain inputs such as - * `UpdateAddressInput` and `CreateAddressInput` to specify the country. - */ export type Country = Node & Region & { __typename?: 'Country'; @@ -373,13 +371,6 @@ export type CouponCodeLimitError = ErrorResult & { message: Scalars['String']['output']; }; -/** - * Input used to create an Address. - * - * The countryCode must correspond to a `code` property of a Country that has been defined in the - * Vendure server. The `code` property is typically a 2-character ISO code such as "GB", "US", "DE" etc. - * If an invalid code is passed, the mutation will fail. - */ export type CreateAddressInput = { city?: InputMaybe; company?: InputMaybe; @@ -1684,6 +1675,54 @@ export type MissingPasswordError = ErrorResult & { message: Scalars['String']['output']; }; +export type MollieAmount = { + __typename?: 'MollieAmount'; + currency?: Maybe; + value?: Maybe; +}; + +export type MolliePaymentIntent = { + __typename?: 'MolliePaymentIntent'; + url: Scalars['String']['output']; +}; + +export type MolliePaymentIntentError = ErrorResult & { + __typename?: 'MolliePaymentIntentError'; + errorCode: ErrorCode; + message: Scalars['String']['output']; +}; + +export type MolliePaymentIntentInput = { + molliePaymentMethodCode?: InputMaybe; + paymentMethodCode?: InputMaybe; + redirectUrl?: InputMaybe; + orderId?: InputMaybe; +}; + +export type MolliePaymentIntentResult = MolliePaymentIntent | MolliePaymentIntentError; + +export type MolliePaymentMethod = { + __typename?: 'MolliePaymentMethod'; + code: Scalars['String']['output']; + description?: Maybe; + id: Scalars['ID']['output']; + image?: Maybe; + maximumAmount?: Maybe; + minimumAmount?: Maybe; + status?: Maybe; +}; + +export type MolliePaymentMethodImages = { + __typename?: 'MolliePaymentMethodImages'; + size1x?: Maybe; + size2x?: Maybe; + svg?: Maybe; +}; + +export type MolliePaymentMethodsInput = { + paymentMethodCode: Scalars['String']['input']; +}; + export type Mutation = { __typename?: 'Mutation'; /** Adds an item to the order. If custom fields are defined on the OrderLine entity, a third argument 'customFields' will be available. */ @@ -1698,6 +1737,7 @@ export type Mutation = { authenticate: AuthenticationResult; /** Create a new Customer Address */ createCustomerAddress: Address; + createMolliePaymentIntent: MolliePaymentIntentResult; /** Delete an existing Address */ deleteCustomerAddress: Success; /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ @@ -1804,6 +1844,10 @@ export type MutationCreateCustomerAddressArgs = { input: CreateAddressInput; }; +export type MutationCreateMolliePaymentIntentArgs = { + input: MolliePaymentIntentInput; +}; + export type MutationDeleteCustomerAddressArgs = { id: Scalars['ID']['input']; }; @@ -2847,6 +2891,7 @@ export type Query = { facets: FacetList; /** Returns information about the current authenticated User */ me?: Maybe; + molliePaymentMethods: Array; /** Returns the possible next states that the activeOrder can transition to */ nextOrderStates: Array; /** @@ -2886,6 +2931,10 @@ export type QueryFacetsArgs = { options?: InputMaybe; }; +export type QueryMolliePaymentMethodsArgs = { + input: MolliePaymentMethodsInput; +}; + export type QueryOrderArgs = { id: Scalars['ID']['input']; }; @@ -3304,13 +3353,6 @@ export type TextCustomFieldConfig = CustomField & { export type TransitionOrderToStateResult = Order | OrderStateTransitionError; -/** - * Input used to update an Address. - * - * The countryCode must correspond to a `code` property of a Country that has been defined in the - * Vendure server. The `code` property is typically a 2-character ISO code such as "GB", "US", "DE" etc. - * If an invalid code is passed, the mutation will fail. - */ export type UpdateAddressInput = { city?: InputMaybe; company?: InputMaybe;