Bug 37262: (follow-up) Rename types/tables

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Tomas Cohen Arazi 2024-07-10 13:23:04 +00:00 committed by Katrin Fischer
parent 2fb123d2db
commit 2b36cf26fc
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
3 changed files with 9 additions and 5 deletions

View File

@ -55,9 +55,11 @@ sub to_api {
my ( $self, $params ) = @_;
my $table_to_resource = {
'aqbasket' => 'basket',
'aqinvoices' => 'invoice',
'aqorders' => 'order',
'accountlines:credit' => 'credit',
'accountlines:debit' => 'debit',
'aqbasket' => 'basket',
'aqinvoices' => 'invoice',
'aqorders' => 'order',
};
my $json = $self->SUPER::to_api($params);

View File

@ -47,6 +47,8 @@ sub list {
# FIXME: Maybe not the best place for this mapping
my $resource_to_table = {
basket => 'aqbasket',
credit => 'accountlines:credit',
debit => 'accountlines:debit',
invoice => 'aqinvoices',
order => 'aqorders',
};

View File

@ -15,11 +15,11 @@
type: string
enum:
- basket
- credit
- debit
- invoice
- order
- subscription
- accountlines:credit
- accountlines:debit
- $ref: "../swagger.yaml#/parameters/match"
- $ref: "../swagger.yaml#/parameters/order_by"
- $ref: "../swagger.yaml#/parameters/page"