solidus_nexio 0.3.5 → 0.4.0

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
  SHA256:
3
- metadata.gz: 355134f756c86e00f409800992ba709d1f2789a09a812ace9b7cd9ebea338e5a
4
- data.tar.gz: aee4401b115384d77e1d9b207c6416b7a6410fa6a32fde13e0979c250ffcc700
3
+ metadata.gz: 30a0a8caecebecbaed158c6c195072fdad67eed7308658d91d4fd8ee39bbc07b
4
+ data.tar.gz: 2baa67ea4406dd56ca2caaee620fe36c6ff8ba191b68c8c34ef998e5972905d3
5
5
  SHA512:
6
- metadata.gz: 7a7ae44d174c7d8de3d4281e70b487c5bb84e4d3ce06cdfffae0b1391b482356fe660f3c8b513c2238f9e911974406c01a042522a3af60df48ab37b67e33f379
7
- data.tar.gz: f6e5e143ffbf2fd3f9b067e939ec29ee156e371c7b6e2b24892cb711d988a84297ad8a4d21635d7fa459af733dc8e3abcd5527a6d1b3206d2cb1307db3a04386
6
+ metadata.gz: 56da292a0a75cea5dcea99eaae7ad90f4619cfa542f4afdc5dbef53f2735c0d9b7f8b472fb08167d20a01acbb263534dec993712df3bc4c18207ce55178c5cf9
7
+ data.tar.gz: 35e3c3b56afca1e4f4b6b4e8ebaa53e2267f5a184e49e33629cdb48ec93561914a772c94346ced58ecd9822ad01370ada3f2f24212eb256772286b67310ecf65
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ attrs = [:id, :month, :year, :cc_type, :last_digits, :name]
4
+ if @current_user_roles.include?("admin")
5
+ attrs += [:gateway_customer_profile_id, :gateway_payment_profile_id]
6
+ end
7
+
8
+ json.(payment_source, *attrs)
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ json.call(payment_source, :id, :token, :created_at)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusNexio
4
- VERSION = '0.3.5'
4
+ VERSION = '0.4.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_nexio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Whitespectre
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-16 00:00:00.000000000 Z
11
+ date: 2021-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -107,6 +107,8 @@ files:
107
107
  - app/views/solidus_nexio/payment_states/capture.html.erb
108
108
  - app/views/spree/admin/payments/source_forms/_nexio_own_form.html.erb
109
109
  - app/views/spree/admin/payments/source_views/_nexio_own_form.html.erb
110
+ - app/views/spree/api/payments/source_views/_nexio_own_form.json.jbuilder
111
+ - app/views/spree/api/source_views/_nexio_own_form.json.jbuilder
110
112
  - app/views/spree/checkout/existing_payment/_nexio_own_form.html.erb
111
113
  - app/views/spree/checkout/payment/_nexio_own_form.html.erb
112
114
  - config/locales/en.yml