class Xeroizer::Record::BrandingTheme

Public Instance Methods

add_payment_service(payment_service_id) click to toggle source
# File lib/xeroizer/models/branding_theme.rb, line 56
def add_payment_service(payment_service_id)
  parent.add_payment_service(id: id, payment_service_id: payment_service_id)
end
payment_services() click to toggle source

Unfortunately, this part of the API does not work the same as the rest. You cannot POST child records to Branding Themes.

The endpoints are: GET /BrandingThemes/{BrandingThemeID}/PaymentServices POST /BrandingThemes/{BrandingThemeID}/PaymentServices

has_one :payment_service, :model_name => 'PaymentService', :list_complete => true

# File lib/xeroizer/models/branding_theme.rb, line 52
def payment_services
  parent.payment_services(id)
end