gotransverse-tract-api 0.17.0 → 0.17.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1fbdc6e81fe7bef35f26c4c767cad3340066069
4
- data.tar.gz: 5a7450900f88d7df17695fc4fb714327ad14f630
3
+ metadata.gz: de45af11abe9f1211023d1c6c1e0436864f77f7e
4
+ data.tar.gz: 644e23b9ced362c131ddd1cb84122994a454f718
5
5
  SHA512:
6
- metadata.gz: b8eedad69638c239961ecb773b91471b2e3d60512346465688ab51e2604e2553786e32419715234d069b4d532130f6c26f40da0e6a3085113a5049fc4aa5180c
7
- data.tar.gz: e062d25a2b0998508210ad86b673ec1a7b3298ba84299ce65a08990148d93fd907b887bb5ecc77161d18fe8dfe7e9e853519a2dbb6df81efb42216bd09b7a579
6
+ metadata.gz: 2732468be1aa07f319e1041b4da66e01819ae38018a610d0f5eb043546e19edb79f0cdbd8d8067d87add36a05e1a22d9618565408b5b79f72b3aa9b911223adf
7
+ data.tar.gz: 764ab0a09fdbaada5754513d4f1590dd3e4fca18adeaa66cd03ae659c06883eeeee9ac2f3a1de778b04162dbebe7527988fa525d5006885996423569df69464a
@@ -466,12 +466,15 @@ module GoTransverseTractApi
466
466
  eid: eid,
467
467
  billType: billing_account[:bill_type],
468
468
  automaticRecurringPayment: billing_account[:automatic_recurring_payment]
469
- },
470
- billingAccountCategory: {
471
- eid: billing_account[:billing_account_category][:eid]
472
469
  }
473
470
  }
474
471
 
472
+ if billing_account[:billing_account_category].present?
473
+ data[:billingAccountCategory] = {
474
+ eid: billing_account[:billing_account_category][:eid]
475
+ }
476
+ end
477
+
475
478
  data[:billingAccount][:paymentTerm] = billing_account[:payment_term] if billing_account[:payment_term].present?
476
479
 
477
480
  xml_data = GoTransverseTractApi.generateXML(data, 'billingAccount')
@@ -1,6 +1,6 @@
1
1
  module GoTransverseTractApi
2
2
 
3
- VERSION = "0.17.0"
3
+ VERSION = "0.17.1"
4
4
  TARGET_API_VERSION = "1.29"
5
5
 
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gotransverse-tract-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien DeFrance