Skip to content

Commit

Permalink
feat(paypal): update to support @apollo/client 3 and apollo-angular 2 (
Browse files Browse the repository at this point in the history
  • Loading branch information
griest024 authored and damienwebdev committed Jan 20, 2021
1 parent a94557f commit 81c605d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion libs/paypal/src/drivers/magento/mutations/generate-token.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import gql from 'graphql-tag';
import {gql} from 'apollo-angular';


export const GenerateTokenMutation = gql`
mutation GenerateToken($input: MagentoPaypalTokenRequest) {
Expand Down
4 changes: 2 additions & 2 deletions libs/paypal/src/drivers/magento/paypal.service.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Apollo} from 'apollo-angular';
import { Injectable, Inject } from '@angular/core';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
import { Apollo } from 'apollo-angular';

import { DaffPaypalServiceInterface } from '../interfaces/paypal-service.interface';
import { DaffPaypalTransformer } from '../injection-tokens/paypal-transformer.token';
Expand All @@ -17,7 +17,7 @@ import { DaffPaypalConfig } from '../injection-tokens/paypal-config.token';
providedIn: 'root'
})
export class DaffMagentoPaypalService implements DaffPaypalServiceInterface {

constructor(
private apollo: Apollo,
@Inject(DaffPaypalTransformer) private transformer: DaffPaypalTransformerInterface<DaffPaypalTokenRequest, DaffPaypalTokenResponse>,
Expand Down

0 comments on commit 81c605d

Please sign in to comment.