einvoice 1.2.9 → 1.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 07e3c082a97358168aec1c115ebbb0c502796c0c3d7ad8130bce55960980503f
4
- data.tar.gz: 2adc96ae3c7674c4288f0203726e95a49e586782c8044551b4c80533c261278c
3
+ metadata.gz: 7390536205549c268fe288c78687a4d7462252947829ea3012684e5ebdf6c422
4
+ data.tar.gz: 773886f3e21ebb38c039a768102705b002843e446a232c1b2e6b799330fc08ba
5
5
  SHA512:
6
- metadata.gz: 8c14b0d757f58ce9c8f8cddb518a2add30eb9b85949d4c1cc4bd6705128bdedc9c94c17113c24f2b8d4b80b9ed0d307c54ef2eb76a88da1d21ce40f04c5fa87e
7
- data.tar.gz: 91232180e7d90d6ca4b3feaeebe4b1a7f59a49f6d9a61811fca4eff3ab21e39899f34738017898214b3142c575f0f129a7c4c2cfd676f722c793e136969bbd18
6
+ metadata.gz: 6f3127d35dc51a3a050c57822da981d22fe7622617097ed13f7248b242dda5f9674a7b0434e38387d5f17ae201791eb93fbb9a9ce4edc2df0dbb36c6e4ec0e91
7
+ data.tar.gz: f4dbbe086c730dbd01ee688d3deee93857562f0eb41d242427be4b5ab68e7d91657999d7b7430e74334c6ac5ebbc7422e662cda346a65b96ccd3222af437df26
@@ -79,6 +79,19 @@ module Einvoice
79
79
  Einvoice::Tradevan::Result.new(response)
80
80
  end
81
81
 
82
+ def search_invoice_by_transaction_number(payload, options = {})
83
+ response = connection(
84
+ ssl: {
85
+ verify: false
86
+ }
87
+ ).get do |request|
88
+ request.url endpoint_url || endpoint + "/DEFAULTAPI/get/searchInvoiceInfoByTransactionnumber"
89
+ request.params[:v] = encrypted_params(payload.slice(:companyUn, :orgId, :transactionNumber))
90
+ end.body
91
+
92
+ Einvoice::Tradevan::Result.new(response)
93
+ end
94
+
82
95
  def send_card_info_to_cust(payload, options = {})
83
96
  response = connection(
84
97
  ssl: {
@@ -1,3 +1,3 @@
1
1
  module Einvoice
2
- VERSION = "1.2.9"
2
+ VERSION = "1.2.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: einvoice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.9
4
+ version: 1.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Yun
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-13 00:00:00.000000000 Z
11
+ date: 2019-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday