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:
parent
2fb123d2db
commit
2b36cf26fc
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue