interfactura-ruby 0.1.4 → 0.1.5

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: 06cc8c0d3c5f0f269f1113006d2a5678288672ed
4
- data.tar.gz: 0ca0946ee55ed98f0deba2ca24aee31aa75acc53
3
+ metadata.gz: 039e8f152e51223be10967a042862ca92026adf3
4
+ data.tar.gz: c21fdb4a996054de2070db5644f2d06e19ff80a7
5
5
  SHA512:
6
- metadata.gz: 7151fbd976aa4cae021f46cf32faf96d3634dfe24875cd995aa7cab8ddfc7c63b615c27d849428cbb55a83d7ad301e8ba68ffa98dbc168f15e565cd398dc408b
7
- data.tar.gz: e4b66e408f66e251546ec5d0095eeeb980eb8954a543485579a688e626be6927063db7e11244d163f56ba0c8a562829b2e9945346c8339f70784e3dbf0f1057f
6
+ metadata.gz: 140153580c45168453d535ed9733d5a11bc044a70d29ea25e04e2c0dfca234620464119ab928a343b76032a80b22e479fe429f5cb5bf71299c3979e86312f380
7
+ data.tar.gz: 29c1c9a1e87177bc1b51bb8267c08dc5f9a75fbf9267e9c913c17b2d145b40630bb5031ad7ef5cf67d5536ac28d5ccd26f844c4ee1acc03298a4dfd78379e0a9
@@ -3,7 +3,7 @@ module Interfactura
3
3
  class Invoice
4
4
  attr_accessor :total, :rfc, :name, :phone, :email,
5
5
  :city, :municipality, :street, :number,
6
- :zipcode, :state, :id, :colony
6
+ :zipcode, :state, :id, :colony, :order_id
7
7
 
8
8
  IVA = 0.16
9
9
 
@@ -21,6 +21,7 @@ module Interfactura
21
21
  @municipality = attributes[:municipality]
22
22
  @street = attributes[:street]
23
23
  @number = attributes[:number]
24
+ @order_id = attributes[:order_id]
24
25
  end
25
26
 
26
27
  def subtotal
@@ -1,7 +1,7 @@
1
1
  <?xml version='1.0' encoding='UTF-8'?>
2
2
  <FacturaInterfactura>
3
- <Encabezado Moneda='MXN' TipoCambio='1' Total='<%= total %>' Observaciones='ninguna' SubTotal='<%= subtotal %>' IVAPCT='16' Iva='<%= iva %>' TipoDocumento='Factura' CondicionPago='' formaDePago='PAGO EN UNA SOLA EXHIBICION' FolioReferencia='<%= id %>' metodoDePago='tarjeta de debito/credito' RegimenFiscalEmisor='persona moral'>
4
- <Cuerpo Renglon='1' Cantidad='1' Concepto='Traduccion' PUnitario='<%= total %>' Importe='<%= total %>' UM='UN'/>
3
+ <Encabezado EmailTracking='<%= email %>' Moneda='MXN' TipoCambio='1' Total='<%= total %>' Observaciones='ninguna' SubTotal='<%= subtotal %>' IVAPCT='16' Iva='<%= iva %>' TipoDocumento='Factura' CondicionPago='' formaDePago='PAGO EN UNA SOLA EXHIBICION' FolioReferencia='<%= id %>' metodoDePago='tarjeta de debito/credito' RegimenFiscalEmisor='persona moral'>
4
+ <Cuerpo Renglon='1' Cantidad='1' Concepto='Dash Traducciones - <%= order_id %>' PUnitario='<%= total %>' Importe='<%= total %>' UM='UN'/>
5
5
  </Encabezado>
6
6
  <Emisor RI='0113086'/>
7
7
  <Receptor RFC='<%= rfc %>' nombre='<%= name %>' Telefono='<%= phone %>' Email='<%= email %>'>
@@ -1,5 +1,5 @@
1
1
  module Interfactura
2
2
  module Ruby
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: interfactura-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Icalia Labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-18 00:00:00.000000000 Z
11
+ date: 2017-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri-happymapper
@@ -161,8 +161,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  version: '0'
162
162
  requirements: []
163
163
  rubyforge_project:
164
- rubygems_version: 2.6.8
164
+ rubygems_version: 2.5.1
165
165
  signing_key:
166
166
  specification_version: 4
167
167
  summary: A Ruby SDK to connect to Interfactura Web Services
168
168
  test_files: []
169
+ has_rdoc: