-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathfee_spec.rb
More file actions
23 lines (21 loc) · 1.03 KB
/
fee_spec.rb
File metadata and controls
23 lines (21 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'spec_helper'
# Unit tests for OpenapiClient::Fee
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
RSpec.describe 'Fee' do
before do
configure_tests
end
describe 'test an instance of Fee' do
let(:api_instance) { OpenapiClient::CreateFeeApi.new(OpenapiClient::ApiClient.new(configuration)) }
it 'should create an instance of Fee' do
request = { data: OpenapiClient::CreateFee.new(type: 'fee', attributes: OpenapiClient::CreateFeeAttributes.new(
{ amount: 100, description: 'test', tags: { "purpose": 'tax' }, idempotency_key: "13848484884" } ),
relationships: OpenapiClient::FeeRelationships.new(
account: { "data": { "type": 'account', "id": '36099' } }
)).to_hash }
response = api_instance.execute(request)
expect(response.data.type).to eq('fee')
end
end
end