Class: PayPro::Customer

Inherits:
Resource show all
Includes:
Operations::Updatable
Defined in:
lib/pay_pro/entities/customer.rb

Constant Summary collapse

RESOURCE_PATH =
'customers'

Instance Attribute Summary

Attributes inherited from Entity

#api_client

Instance Method Summary collapse

Methods included from Operations::Updatable

#update

Methods included from Operations::Requestable

#api_request

Methods inherited from Entity

create_from_data, #initialize, #inspect

Constructor Details

This class inherits a constructor from PayPro::Entity

Instance Method Details

#mandates(**options) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/pay_pro/entities/customer.rb', line 9

def mandates(**options)
  api_request(
    method: 'get',
    uri: "#{resource_url}/mandates",
    options: options
  )
end

#subscriptions(**options) ⇒ Object



17
18
19
20
21
22
23
# File 'lib/pay_pro/entities/customer.rb', line 17

def subscriptions(**options)
  api_request(
    method: 'get',
    uri: "#{resource_url}/subscriptions",
    options: options
  )
end