Class: Graphql::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/account.rb

Constant Summary collapse

BALANCE =
'{viewer {savingsAccount {currentSavingsBalance {netAmount}}}}'
FEED =
<<~GRAPHQL
  {
    viewer {
      savingsAccount {
        id
        feed {
          id
          __typename
          title
          detail
          postDate
          ... on TransferInEvent {
            amount
            originAccount {
              name
            }
          }
          ... on TransferOutEvent {
            amount
            destinationAccount {
              name
            }
          }
          ... on TransferOutReversalEvent {
            amount
          }
          ... on BillPaymentEvent {
            amount
          }
          ... on DebitPurchaseEvent {
            amount
          }
          ... on BarcodePaymentEvent {
            amount
          }
          ... on DebitWithdrawalFeeEvent {
            amount
          }
          ... on DebitWithdrawalEvent {
            amount
          }
        }
      }
    }
  }
GRAPHQL