mp_api 2.1.0 → 2.1.1

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: 9fd6a9cf6f8ffc9c3bb7ecdf789f3e258f3c55c612424fcc7ac864106418129b
4
- data.tar.gz: c64d6411451da4224df9042d65d1c767c977e8ba0182b100229e320e9c9dfaf7
3
+ metadata.gz: 05f6451c6051fb8231aa8637f80ba0dc71abc6ebd3879e36f820c2feb3d9fa53
4
+ data.tar.gz: b9a7aa95a288acd705c12591e87902c6c2fb80b318b5e9fb0ab512da574332f8
5
5
  SHA512:
6
- metadata.gz: 323a304f07dc1534a8a83a98a0427e8d17ef19cb1ae49d219ed20fd2ab073425c9c6a57fdb1a2d8ff9fbac835f097f53218e8c0c4b82350f9771c1d7394dfae4
7
- data.tar.gz: a25cc62b0bd35c3693ab183f087fad010c48c2cfadb65171edab691e764b68f198590de2cc47b990500e2fec8fc9dc52b3b68d0bc31e1d003d8ece3979238f31
6
+ metadata.gz: 1ecb1574a33739a8b2a2550fbfdc273c4ca5ec2748834a56dbe47bf28709042dee64510c89bed9874ede8b72ada9cfcbb4f0cbd98685e3fa242e7cd7ca7e08a4
7
+ data.tar.gz: fa7d5f11963ab43f0da0bca7583b9c117b293caae604ccb4db76902f8e89b833771993256613c87d30df57e0f66c9e7fadd91a5f5ded4968fbf254b43032d928
data/lib/mp_api/client.rb CHANGED
@@ -76,7 +76,7 @@ module MpApi
76
76
  expiration_month: expiration_month,
77
77
  security_code: security_code,
78
78
  cardholder: {
79
- name: cardholder_name
79
+ name: cardholder_name.gsub(/[^a-z A-Z]/, "")
80
80
  }
81
81
  }
82
82
  post("/card_tokens", body:)
@@ -102,7 +102,7 @@ module MpApi
102
102
  def create_customer(email:, first_name: nil, identification_type:, identification_number:, phone_area_code: "55", phone_number: nil)
103
103
  body = {
104
104
  email: email,
105
- first_name: first_name,
105
+ first_name: first_name.gsub(/[^a-z A-Z]/, ""),
106
106
  identification: {
107
107
  type: identification_type,
108
108
  number: identification_number
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MpApi
4
- VERSION = "2.1.0"
4
+ VERSION = "2.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mp_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todas Essas Coisas