Skip to content

[$100] Use billing account for payments #205

Closed
@maxceem

Description

@maxceem

At the moment we are processing all the payments using the default billing account. We would like to use a billing account which we would set for Resource Booking.

  • Add billingAccountId field to the ResourceBooking model. We should be able to set/update/get it using ResourceBooking endpoints. billingAccountId is an optional fields type bigint.
  • Add billingAccountId filed to the WorkPeriodPayment model. We should NOT be able to set/update it using any endpoint.
  • As we update model make sure that we update all documentation and utils as per https://github.com/topcoder-platform/taas-apis#documentation-and-utils

Unit tests

Create unit test which would check that without billing account set for resource booking we get error. And if the billing account is set then work period payment is created correctly with the billing account set.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions