Class: PaystackGateway::Customers::FetchCustomerResponse

Inherits:
Response
  • Object
show all
Includes:
CustomerResponse
Defined in:
lib/paystack_gateway/customers.rb

Overview

Response from GET /customer/:email_or_id

Instance Method Summary collapse

Methods inherited from Response

coerce_data

Instance Method Details

#active_subscription_codesObject



34
# File 'lib/paystack_gateway/customers.rb', line 34

def active_subscription_codes = active_subscriptions.map(&:subscription_code)

#active_subscriptionsObject



33
# File 'lib/paystack_gateway/customers.rb', line 33

def active_subscriptions = subscriptions.select { _1.status == 'active' }

#reusable_authorizationsObject



35
# File 'lib/paystack_gateway/customers.rb', line 35

def reusable_authorizations = authorizations.select(&:reusable)