jamm 1.4.1 → 1.6.0

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: 13f9b9df13c9a75e63d547b6c00418973e5a4cb2c07ddd23b4cd4b2d6b013e7e
4
- data.tar.gz: 4c6307afc06ac97595db9ae49e16531e8201c3e9eabd00e0f9f96dca788c0d58
3
+ metadata.gz: 39fcf04f73f19b957ee852c27e89be74607772620b9645d5f5395c8c1e016f07
4
+ data.tar.gz: 012cdbd996aa04e6031d659f58571447577de3fd2cccd2a67a8a863c95144e07
5
5
  SHA512:
6
- metadata.gz: 81ea42b0a01fb6cd567ef6cb26ab1a73ca69fc322fc639a7345b5df16aeebab3a83149ae599135a7498a10ccfc6afd8823084e7cc99f22c5ed4ce496f6d79fcd
7
- data.tar.gz: 134c65adc3f91dad79f7d48496768adf59cbcaf22a83688b001e995ab33fc1bcd79602d33bd4d6153598ddc60e95552b7e4f8062c22bb707db2dbe823eb80a17
6
+ metadata.gz: e2488f0a84b311fe9a2f51419f2155ed23f2f6138ccd85b43701b019af245ff50ce0be78d804770e535434d355cdda3567ce0f3005a2570c7898997da60e6f30
7
+ data.tar.gz: 9fb9ef6c1951881bcfc83284b2081928375fdc4258bdad83fcc82cc15d78aedb51ade34cd22c5b0686ce341065fe0f57e4d87a0410c585f4c24516edc7cf5d86
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jamm (1.4.1)
4
+ jamm (1.6.0)
5
5
  rest-client (~> 2.0)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
@@ -22,7 +22,9 @@ GEM
22
22
  ffi (>= 1.15.0)
23
23
  faker (3.5.1)
24
24
  i18n (>= 1.8.11, < 2)
25
- ffi (1.17.0)
25
+ ffi (1.17.0-aarch64-linux-gnu)
26
+ ffi (1.17.0-arm64-darwin)
27
+ ffi (1.17.0-x86_64-linux-gnu)
26
28
  gimei (1.5.0)
27
29
  hashdiff (1.1.0)
28
30
  http-accept (1.7.0)
@@ -57,7 +59,7 @@ GEM
57
59
  http-cookie (>= 1.0.2, < 2.0)
58
60
  mime-types (>= 1.16, < 4.0)
59
61
  netrc (~> 0.8)
60
- rexml (3.3.9)
62
+ rexml (3.4.2)
61
63
  rubocop (1.63.3)
62
64
  json (~> 2.3)
63
65
  language_server-protocol (>= 3.17.0)
@@ -290,8 +290,8 @@ module Api
290
290
  # Get a list of charges for a customer
291
291
  # @param customer [String] @gotags: validate:\&quot;required\&quot;
292
292
  # @param [Hash] opts the optional parameters
293
- # @option opts [Integer] :pagination_page_size
294
- # @option opts [String] :pagination_page_token
293
+ # @option opts [Integer] :pagination_page_size
294
+ # @option opts [String] :pagination_page_token
295
295
  # @return [GetChargesResponse]
296
296
  def get_charges(customer, opts = {})
297
297
  data, _status_code, _headers = get_charges_with_http_info(customer, opts)
@@ -302,8 +302,8 @@ module Api
302
302
  # Get a list of charges for a customer
303
303
  # @param customer [String] @gotags: validate:\&quot;required\&quot;
304
304
  # @param [Hash] opts the optional parameters
305
- # @option opts [Integer] :pagination_page_size
306
- # @option opts [String] :pagination_page_token
305
+ # @option opts [Integer] :pagination_page_size
306
+ # @option opts [String] :pagination_page_token
307
307
  # @return [Array<(GetChargesResponse, Integer, Hash)>] GetChargesResponse data, response status code and response headers
308
308
  def get_charges_with_http_info(customer, opts = {})
309
309
  if @api_client.config.debugging
@@ -22,6 +22,8 @@ module Api
22
22
 
23
23
  attr_accessor :name
24
24
 
25
+ attr_accessor :phone
26
+
25
27
  attr_accessor :katakana_last_name
26
28
 
27
29
  attr_accessor :katakana_first_name
@@ -41,6 +43,7 @@ module Api
41
43
  :'email' => :'email',
42
44
  :'force_kyc' => :'forceKyc',
43
45
  :'name' => :'name',
46
+ :'phone' => :'phone',
44
47
  :'katakana_last_name' => :'katakanaLastName',
45
48
  :'katakana_first_name' => :'katakanaFirstName',
46
49
  :'address' => :'address',
@@ -61,6 +64,7 @@ module Api
61
64
  :'email' => :'String',
62
65
  :'force_kyc' => :'Boolean',
63
66
  :'name' => :'String',
67
+ :'phone' => :'String',
64
68
  :'katakana_last_name' => :'String',
65
69
  :'katakana_first_name' => :'String',
66
70
  :'address' => :'String',
@@ -103,6 +107,10 @@ module Api
103
107
  self.name = attributes[:'name']
104
108
  end
105
109
 
110
+ if attributes.key?(:'phone')
111
+ self.phone = attributes[:'phone']
112
+ end
113
+
106
114
  if attributes.key?(:'katakana_last_name')
107
115
  self.katakana_last_name = attributes[:'katakana_last_name']
108
116
  end
@@ -153,6 +161,7 @@ module Api
153
161
  email == o.email &&
154
162
  force_kyc == o.force_kyc &&
155
163
  name == o.name &&
164
+ phone == o.phone &&
156
165
  katakana_last_name == o.katakana_last_name &&
157
166
  katakana_first_name == o.katakana_first_name &&
158
167
  address == o.address &&
@@ -170,7 +179,7 @@ module Api
170
179
  # Calculates hash code according to all attributes.
171
180
  # @return [Integer] Hash code
172
181
  def hash
173
- [email, force_kyc, name, katakana_last_name, katakana_first_name, address, birth_date, gender, metadata].hash
182
+ [email, force_kyc, name, phone, katakana_last_name, katakana_first_name, address, birth_date, gender, metadata].hash
174
183
  end
175
184
 
176
185
  # Builds the object from hash
@@ -20,6 +20,8 @@ module Api
20
20
 
21
21
  attr_accessor :email
22
22
 
23
+ attr_accessor :link_initialized
24
+
23
25
  attr_accessor :activated
24
26
 
25
27
  attr_accessor :status
@@ -35,6 +37,7 @@ module Api
35
37
  {
36
38
  :'id' => :'id',
37
39
  :'email' => :'email',
40
+ :'link_initialized' => :'linkInitialized',
38
41
  :'activated' => :'activated',
39
42
  :'status' => :'status',
40
43
  :'bank_information' => :'bankInformation',
@@ -53,6 +56,7 @@ module Api
53
56
  {
54
57
  :'id' => :'String',
55
58
  :'email' => :'String',
59
+ :'link_initialized' => :'Boolean',
56
60
  :'activated' => :'Boolean',
57
61
  :'status' => :'Apiv1Status',
58
62
  :'bank_information' => :'BankInformation',
@@ -90,6 +94,10 @@ module Api
90
94
  self.email = attributes[:'email']
91
95
  end
92
96
 
97
+ if attributes.key?(:'link_initialized')
98
+ self.link_initialized = attributes[:'link_initialized']
99
+ end
100
+
93
101
  if attributes.key?(:'activated')
94
102
  self.activated = attributes[:'activated']
95
103
  end
@@ -133,6 +141,7 @@ module Api
133
141
  self.class == o.class &&
134
142
  id == o.id &&
135
143
  email == o.email &&
144
+ link_initialized == o.link_initialized &&
136
145
  activated == o.activated &&
137
146
  status == o.status &&
138
147
  bank_information == o.bank_information &&
@@ -149,7 +158,7 @@ module Api
149
158
  # Calculates hash code according to all attributes.
150
159
  # @return [Integer] Hash code
151
160
  def hash
152
- [id, email, activated, status, bank_information, created_at, updated_at].hash
161
+ [id, email, link_initialized, activated, status, bank_information, created_at, updated_at].hash
153
162
  end
154
163
 
155
164
  # Builds the object from hash
@@ -34,9 +34,10 @@ module Api
34
34
  PAYMENT_CHARGE_OVER_LIMIT = "ERROR_TYPE_PAYMENT_CHARGE_OVER_LIMIT".freeze
35
35
  PAYMENT_CHARGE_SUBSCRIPTION_EXPIRED = "ERROR_TYPE_PAYMENT_CHARGE_SUBSCRIPTION_EXPIRED".freeze
36
36
  PAYMENT_LINK_EXPIRED = "ERROR_TYPE_PAYMENT_LINK_EXPIRED".freeze
37
+ PAYMENT_CHARGE_INSUFFICIENT_FUNDS = "ERROR_TYPE_PAYMENT_CHARGE_INSUFFICIENT_FUNDS".freeze
37
38
 
38
39
  def self.all_vars
39
- @all_vars ||= [UNSPECIFIED, AUTH_FAILED, AUTH_REJECTED, ACCOUNT_CREATION_FAILED, ACCOUNT_MODIFICATION_FAILED, ACCOUNT_DELETION_FAILED, ACCOUNT_BANK_REGISTRATION_FAILED, KYC_REJECTED, NOTIFICATION_WEBHOOK_FAILED, NOTIFICATION_EMAIL_FAILED, NOTIFICATION_SMS_FAILED, PAYMENT_GATEWAY_UNAVAILABLE, PAYMENT_GATEWAY_FAILED, PAYMENT_VALIDATION_FAILED, PAYMENT_CHARGE_FAILED, PAYMENT_CHARGE_REJECTED, PAYMENT_CHARGE_OVER_LIMIT, PAYMENT_CHARGE_SUBSCRIPTION_EXPIRED, PAYMENT_LINK_EXPIRED].freeze
40
+ @all_vars ||= [UNSPECIFIED, AUTH_FAILED, AUTH_REJECTED, ACCOUNT_CREATION_FAILED, ACCOUNT_MODIFICATION_FAILED, ACCOUNT_DELETION_FAILED, ACCOUNT_BANK_REGISTRATION_FAILED, KYC_REJECTED, NOTIFICATION_WEBHOOK_FAILED, NOTIFICATION_EMAIL_FAILED, NOTIFICATION_SMS_FAILED, PAYMENT_GATEWAY_UNAVAILABLE, PAYMENT_GATEWAY_FAILED, PAYMENT_VALIDATION_FAILED, PAYMENT_CHARGE_FAILED, PAYMENT_CHARGE_REJECTED, PAYMENT_CHARGE_OVER_LIMIT, PAYMENT_CHARGE_SUBSCRIPTION_EXPIRED, PAYMENT_LINK_EXPIRED, PAYMENT_CHARGE_INSUFFICIENT_FUNDS].freeze
40
41
  end
41
42
 
42
43
  # Builds the enum from string
@@ -15,10 +15,10 @@ require 'time'
15
15
 
16
16
  module Api
17
17
  class URL
18
- # URL to redirect the customer from Jamm to shop after payment is successful. 決済が成功した場合に、顧客をJammからショップへリダイレクトするURLです。 @gotags: validate:\"required,http_url\"
18
+ # URL to redirect the customer from Jamm to shop after payment is successful. 決済が成功した場合に、顧客をJammからショップへリダイレクトするURLです。 @gotags: validate:\"omitempty,http_url\"
19
19
  attr_accessor :success_url
20
20
 
21
- # URL to redirect the customer from Jamm to shop after payment is failed. 決済が失敗した場合に、顧客をJammからショップへリダイレクトするURLです。 @gotags: validate:\"required,http_url\"
21
+ # URL to redirect the customer from Jamm to shop after payment is failed. 決済が失敗した場合に、顧客をJammからショップへリダイレクトするURLです。 @gotags: validate:\"omitempty,http_url\"
22
22
  attr_accessor :failure_url
23
23
 
24
24
  # Attribute mapping from ruby-style variable name to JSON key.
data/lib/jamm/charge.rb CHANGED
@@ -8,7 +8,7 @@ require 'jamm/errors'
8
8
  module Jamm
9
9
  module Charge
10
10
  # DEPRECATED, use Jamm::Payment.on_session
11
- def self.create_with_redirect(customer:, charge:, redirect:)
11
+ def self.create_with_redirect(customer:, charge:, redirect: nil)
12
12
  Jamm::Deprecation.warn('Jamm::Charge.create_with_redirect')
13
13
 
14
14
  request = Jamm::OpenAPI::AddChargeRequest.new(
data/lib/jamm/contract.rb CHANGED
@@ -7,7 +7,7 @@ require 'jamm/errors'
7
7
 
8
8
  module Jamm
9
9
  module Contract
10
- def self.create_with_charge(buyer:, charge:, redirect:)
10
+ def self.create_with_charge(buyer:, charge:, redirect: nil)
11
11
  request = Jamm::OpenAPI::CreateContractWithChargeRequest.new(
12
12
  buyer: buyer,
13
13
  charge: charge,
@@ -19,7 +19,7 @@ module Jamm
19
19
  raise Jamm::ApiError.from_error(e)
20
20
  end
21
21
 
22
- def self.create_without_charge(buyer:, redirect:)
22
+ def self.create_without_charge(buyer:, redirect: nil)
23
23
  request = Jamm::OpenAPI::CreateContractWithoutChargeRequest.new(
24
24
  buyer: buyer,
25
25
  redirect: redirect
data/lib/jamm/payment.rb CHANGED
@@ -7,7 +7,7 @@ require 'jamm/errors'
7
7
 
8
8
  module Jamm
9
9
  module Payment
10
- def self.on_session(charge:, redirect:, customer: nil, buyer: nil)
10
+ def self.on_session(charge:, redirect: nil, customer: nil, buyer: nil)
11
11
  request = if customer.nil?
12
12
  Jamm::OpenAPI::OnSessionPaymentRequest.new(
13
13
  buyer: buyer,
data/lib/jamm/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Jamm
4
- VERSION = '1.4.1'
4
+ VERSION = '1.6.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jamm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-22 00:00:00.000000000 Z
11
+ date: 2025-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client