jamm 1.4.1 → 1.5.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: ddb99164959ddeca7df79433b4baa3acda7fb4eb7787bc86d5f12074d4f74e35
4
+ data.tar.gz: a7426305b20eb9b7ffa0f0986284e906bb177f4cc4080d04d86a4789be85209f
5
5
  SHA512:
6
- metadata.gz: 81ea42b0a01fb6cd567ef6cb26ab1a73ca69fc322fc639a7345b5df16aeebab3a83149ae599135a7498a10ccfc6afd8823084e7cc99f22c5ed4ce496f6d79fcd
7
- data.tar.gz: 134c65adc3f91dad79f7d48496768adf59cbcaf22a83688b001e995ab33fc1bcd79602d33bd4d6153598ddc60e95552b7e4f8062c22bb707db2dbe823eb80a17
6
+ metadata.gz: dd5e3b0d55a4191680272f2b1842bc1923b439460fb246fdab2d49e58747d66aaef23d9d7dbfb73b5636325c672a95f9f73b83d34fbbd086823ffb368990ea82
7
+ data.tar.gz: e16d5e3383da0ba29a9d2704e7faf127eed7584e2a05f241253cd2836db012ae7cfba9ef82ab2b9c2f1ac4d424dad3894d4f17546b959299c4f660801108aec7
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.5.0)
5
5
  rest-client (~> 2.0)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
@@ -57,7 +57,7 @@ GEM
57
57
  http-cookie (>= 1.0.2, < 2.0)
58
58
  mime-types (>= 1.16, < 4.0)
59
59
  netrc (~> 0.8)
60
- rexml (3.3.9)
60
+ rexml (3.4.2)
61
61
  rubocop (1.63.3)
62
62
  json (~> 2.3)
63
63
  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
@@ -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
@@ -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.5.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.5.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-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client