Socket
Socket
Sign inDemoInstall

@pinelab/vendure-order-client

Package Overview
Dependencies
13
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.0 to 2.4.0

5

CHANGELOG.md

@@ -0,1 +1,6 @@

# 2.4.0 (2023-11-09)
- Add mollie payment intent creation vendure client
- Updated vendure to 2.1.2
# 2.3.0 (2023-10-24)

@@ -2,0 +7,0 @@

@@ -389,3 +389,18 @@ import { gql, GraphQLClient } from 'graphql-request';

`;
this.CREATE_MOLLIE_PAYMENT_INTENT = gql `
mutation CreateMolliPaymentIntentMutation(
$input: MolliePaymentIntentInput!
) {
createMolliePaymentIntent(input: $input) {
... on MolliePaymentIntent {
url
}
... on MolliePaymentIntentError {
errorCode
message
}
}
}
`;
}
}

@@ -627,2 +642,7 @@

}
async createMolliePaymentIntent(input) {
const { createMolliePaymentIntent } = await this.rawRequest(this.queries.CREATE_MOLLIE_PAYMENT_INTENT, { input });
const molliePaymentLink = this.throwIfErrorResult(createMolliePaymentIntent);
return molliePaymentLink;
}
async transitionOrderToState(state) {

@@ -629,0 +649,0 @@ const { transitionOrderToState } = await this.rawRequest(this.queries.TRANSITION_ORDER_TO_STATE, { state });

1

lib/queries.d.ts

@@ -24,2 +24,3 @@ export declare class GraphqlQueries {

GET_ELIGIBLE_SHIPPING_METHODS: string;
CREATE_MOLLIE_PAYMENT_INTENT: string;
}

3

lib/vendure-order-client.d.ts
import { GraphQLClient } from 'graphql-request';
import { Emitter } from 'mitt';
import { ActiveOrderFieldsFragment, CreateAddressInput, CreateCustomerInput, CurrentUserFieldsFragment, ErrorResult, PaymentInput, RegisterCustomerInput, Success, ShippingMethodQuote } from './graphql-generated-types';
import { ActiveOrderFieldsFragment, CreateAddressInput, CreateCustomerInput, CurrentUserFieldsFragment, ErrorResult, PaymentInput, RegisterCustomerInput, Success, ShippingMethodQuote, MolliePaymentIntentInput } from './graphql-generated-types';
import { GraphqlQueries } from './queries';

@@ -48,2 +48,3 @@ import { StateStore } from './store-helpers';

addPayment(input: PaymentInput): Promise<ActiveOrder<A>>;
createMolliePaymentIntent(input: MolliePaymentIntentInput): Promise<string>;
transitionOrderToState(state: string): Promise<ActiveOrder<A> | undefined>;

@@ -50,0 +51,0 @@ /**

{
"name": "@pinelab/vendure-order-client",
"version": "2.3.0",
"version": "2.4.0",
"description": "A tiny, framework agnostic client for managing active orders and checkout with Vendure.",

@@ -36,6 +36,7 @@ "author": "Martijn van de Brug <martijn@pinelab.studio>",

"devDependencies": {
"@mollie/api-client": "3.7.0",
"@nanostores/vue": "^0.10.0",
"@vue/cli": "^5.0.8"
},
"gitHead": "985a9e6ffd5cec67d1a3a4d924c9bd4bf7faa982"
"gitHead": "91269e33ee94c5f14b2282aea734632344f96225"
}

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc