Skip to content

Commit

Permalink
misc: Add external_customer_id on wallet serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
rsempe committed Sep 1, 2022
1 parent ac3965f commit 4178b0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/serializers/v1/wallet_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ def serialize
{
lago_id: model.id,
lago_customer_id: model.customer_id,
external_customer_id: model.customer.customer_id,
status: model.status,
currency: model.currency,
name: model.name,
Expand Down
1 change: 1 addition & 0 deletions spec/requests/api/v1/wallets_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
result = JSON.parse(response.body, symbolize_names: true)[:wallet]
expect(result[:lago_id]).to be_present
expect(result[:name]).to eq(create_params[:name])
expect(result[:external_customer_id]).to eq(customer.customer_id)
end
end

Expand Down

0 comments on commit 4178b0d

Please sign in to comment.