-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Payment services #439
Payment services #439
Conversation
@payment_services ||= @application.http_get(@application.client, payment_services_endpoint(id)) | ||
end | ||
|
||
def add_payment_service(id:,payment_service_id:) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CloCkWeRX could you give me an example of proper formatting for named params please. Would this suffice?
def add_payment_service(id:, payment_service_id:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure would :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it overall
Nice work! |
The payment services end points are not in the public documentation as they are specific to a Partner Applications. You only receive these docs when you become a partner. I chatted to the guys from Xero and they were happy for me to add this to Xeroizer.
Work completed:
Notes:
You cannot POST child records to Branding Themes.
The endpoints are:
GET /BrandingThemes/{BrandingThemeID}/PaymentServices
POST /BrandingThemes/{BrandingThemeID}/PaymentServices
I had to override the relationship helpers in the BrandingTheme model to get this to work. I am interested to know if there is a better way to do this.