<commit_before>_ = require 'lodash'
makeHttpClient = require 'app/util/makeHttpClient'
{ pickData } = makeHttpClient.helpers

{ Status } = require 'app/redux/modules/payment/constants'

exports.client = client = makeHttpClient { baseURL: '/api/social/payment' }

exports.Endpoints = Endpoints =
  SubscriptionDelete : '/subscription/delete'
  SubscriptionGet    : '/subscription/get'
  SubscriptionCreate : '/subscription/create'
  CustomerCreate     : '/customer/create'
  CustomerGet        : '/customer/get'
  CustomerUpdate     : '/customer/update'
  CustomerDelete     : '/customer/delete'
  CreditCardDelete   : '/creditcard/delete'
  InvoiceList        : '/invoice/list'
  Info               : '/info'


# fetchCustomer: fetches current group's payment customer.
exports.fetchCustomer = fetchCustomer = pickData ->
  client.get Endpoints.CustomerGet
<commit_msg>client/payment: add new endpoints to constants<commit_after>_ = require 'lodash'
makeHttpClient = require 'app/util/makeHttpClient'
{ pickData } = makeHttpClient.helpers

{ Status } = require 'app/redux/modules/payment/constants'

exports.client = client = makeHttpClient { baseURL: '/api/social/payment' }

exports.Endpoints = Endpoints =
  SubscriptionDelete : '/subscription/delete'
  SubscriptionGet    : '/subscription/get'
  SubscriptionCreate : '/subscription/create'
  CustomerCreate     : '/customer/create'
  CustomerGet        : '/customer/get'
  CustomerUpdate     : '/customer/update'
  CustomerDelete     : '/customer/delete'
  CreditCardDelete   : '/creditcard/delete'
  CreditCardHas      : '/creditcard/has'
  CreditCardAuth     : '/creditcard/auth'
  InvoiceList        : '/invoice/list'
  Info               : '/info'


# fetchCustomer: fetches current group's payment customer.
exports.fetchCustomer = fetchCustomer = pickData ->
  client.get Endpoints.CustomerGet

{'fraction_non_alphanumeric': 0.1121898597626753, 'fraction_numerical': 0.0, 'mean_word_length': 3.6375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4322625', 'n_tokens_mistral': 530, 'n_tokens_neox': 528, 'n_words': 107}