|
18 | 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) |
19 | 19 | # Please update as you see appropriate |
20 | 20 | describe FattureInCloud_Ruby_Sdk::GetBinIssuedDocumentResponse do |
21 | | - let(:instance) { FattureInCloud_Ruby_Sdk::GetBinIssuedDocumentResponse.new } |
| 21 | + instance = FattureInCloud_Ruby_Sdk::GetBinIssuedDocumentResponse.new |
| 22 | + instance.data = { |
| 23 | + id: 12345, |
| 24 | + type: 'invoice', |
| 25 | + year: 2021, |
| 26 | + numeration: 'rec123', |
| 27 | + subject: '', |
| 28 | + visible_subject: '', |
| 29 | + rc_center: '', |
| 30 | + stamp_duty: 0, |
| 31 | + use_gross_prices: false, |
| 32 | + e_invoice: false, |
| 33 | + delivery_note: false, |
| 34 | + accompanying_invoice: false, |
| 35 | + amount_net: 68.18, |
| 36 | + amount_vat: 6.82, |
| 37 | + amount_gross: 75, |
| 38 | + amount_due_discount: 0, |
| 39 | + amount_rivalsa: 0, |
| 40 | + amount_cassa: 0, |
| 41 | + amount_withholding_tax: 0, |
| 42 | + amount_other_withholding_tax: 0, |
| 43 | + h_margins: 15, |
| 44 | + v_margins: 16, |
| 45 | + show_payment_method: false, |
| 46 | + show_payments: true, |
| 47 | + show_totals: 'all', |
| 48 | + show_notification_button: false, |
| 49 | + is_marked: false, |
| 50 | + entity: { |
| 51 | + id: 54321, |
| 52 | + name: 'Mary Red S.r.L.', |
| 53 | + vat_number: 'IT05432181211', |
| 54 | + tax_code: 'IT05432181211', |
| 55 | + address_street: 'Corso impero, 66', |
| 56 | + address_postal_code: '20900', |
| 57 | + address_city: 'Milano', |
| 58 | + address_province: 'MI', |
| 59 | + address_extra: '', |
| 60 | + country: 'Italia', |
| 61 | + certified_email: 'mary@pec.red.com', |
| 62 | + ei_code: 'ABCXCR1' |
| 63 | + }, |
| 64 | + date: '2021-08-20', |
| 65 | + number: 1, |
| 66 | + currency: { |
| 67 | + id: 'EUR', |
| 68 | + exchange_rate: '1.00000', |
| 69 | + symbol: '€' |
| 70 | + }, |
| 71 | + language: { |
| 72 | + code: 'it', |
| 73 | + name: 'Italiano' |
| 74 | + }, |
| 75 | + notes: '', |
| 76 | + rivalsa: 0, |
| 77 | + cassa: 0, |
| 78 | + withholding_tax: 0, |
| 79 | + withholding_tax_taxable: 100, |
| 80 | + other_withholding_tax: 0, |
| 81 | + payment_method: { |
| 82 | + id: 4, |
| 83 | + name: 'Credit card' |
| 84 | + }, |
| 85 | + use_split_payment: false, |
| 86 | + items_list: [ |
| 87 | + { |
| 88 | + product_id: 5432, |
| 89 | + code: 'SG3', |
| 90 | + name: 'Soggiorno', |
| 91 | + measure: '', |
| 92 | + net_price: 68.18182, |
| 93 | + category: '', |
| 94 | + id: 277876033, |
| 95 | + gross_price: 75, |
| 96 | + apply_withholding_taxes: true, |
| 97 | + discount: 0, |
| 98 | + discount_highlight: false, |
| 99 | + in_dn: false, |
| 100 | + qty: 1, |
| 101 | + vat: { |
| 102 | + id: 3, |
| 103 | + value: 10, |
| 104 | + description: '' |
| 105 | + }, |
| 106 | + stock: false, |
| 107 | + description: '', |
| 108 | + not_taxable: false |
| 109 | + } |
| 110 | + ], |
| 111 | + payments_list: [ |
| 112 | + { |
| 113 | + amount: 75, |
| 114 | + due_date: '2020-08-23', |
| 115 | + id: 69078013, |
| 116 | + payment_terms: { |
| 117 | + days: 0, |
| 118 | + type: 'standard' |
| 119 | + }, |
| 120 | + status: 'not_paid', |
| 121 | + } |
| 122 | + ], |
| 123 | + attachment_url: 'kdijrnf893hnwkfk45f50f.pdf', |
| 124 | + next_due_date: '2020-08-23', |
| 125 | + template: { |
| 126 | + id: 2821, |
| 127 | + name: 'Light Smoke' |
| 128 | + }, |
| 129 | + url: 'y12h45rn9yf2mse0p43t7ec90vr.pdf', |
| 130 | + show_tspay_button: false |
| 131 | + } |
22 | 132 |
|
23 | 133 | describe 'test an instance of GetBinIssuedDocumentResponse' do |
24 | 134 | it 'should create an instance of GetBinIssuedDocumentResponse' do |
25 | | - # uncomment below to test the instance creation |
26 | | - # expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::GetBinIssuedDocumentResponse) |
| 135 | + expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::GetBinIssuedDocumentResponse) |
27 | 136 | end |
28 | 137 | end |
29 | 138 |
|
30 | 139 | describe 'test attribute "data"' do |
31 | 140 | it 'should work' do |
32 | | - # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ |
| 141 | + expect(instance.data).to be_a_kind_of(Object) |
33 | 142 | end |
34 | 143 | end |
35 | 144 |
|
|
0 commit comments