payjpv2 1.2.0 → 1.3.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.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +9 -2
  4. data/docs/BankAccountStatus.md +15 -0
  5. data/docs/BankInfoResponse.md +2 -2
  6. data/docs/CardBrand.md +15 -0
  7. data/docs/CardFunding.md +15 -0
  8. data/docs/CheckoutSessionCreateRequest.md +1 -1
  9. data/docs/CheckoutSessionPaymentMethodOptionsCardRequest.md +2 -2
  10. data/docs/DisplayPreferenceRequest.md +1 -1
  11. data/docs/PaymentFlowCancelRequest.md +1 -1
  12. data/docs/PaymentFlowPaymentMethodOptionsCardRequest.md +2 -2
  13. data/docs/PaymentMethodCardDetailsResponse.md +4 -2
  14. data/docs/PaymentMethodConfigurationDisplayPreference.md +2 -2
  15. data/docs/PaymentMethodConfigurationPreference.md +15 -0
  16. data/docs/PaymentMethodConfigurationValue.md +15 -0
  17. data/docs/PaymentTransactionsApi.md +4 -4
  18. data/docs/ProductCreateRequest.md +1 -1
  19. data/docs/RequestExtendedAuthorization.md +15 -0
  20. data/docs/RequestThreeDSecure.md +15 -0
  21. data/docs/SetupFlowPaymentMethodOptionsCardRequest.md +1 -1
  22. data/lib/payjpv2/api/payment_transactions_api.rb +2 -2
  23. data/lib/payjpv2/models/balance_state.rb +4 -3
  24. data/lib/payjpv2/models/bank_account_status.rb +42 -0
  25. data/lib/payjpv2/models/bank_info_response.rb +24 -2
  26. data/lib/payjpv2/models/capture_method.rb +4 -3
  27. data/lib/payjpv2/models/card_brand.rb +45 -0
  28. data/lib/payjpv2/models/card_funding.rb +41 -0
  29. data/lib/payjpv2/models/checkout_session_create_request.rb +1 -1
  30. data/lib/payjpv2/models/checkout_session_mode.rb +4 -3
  31. data/lib/payjpv2/models/checkout_session_payment_method_options_card_request.rb +2 -22
  32. data/lib/payjpv2/models/checkout_session_status.rb +4 -3
  33. data/lib/payjpv2/models/checkout_session_submit_type.rb +4 -3
  34. data/lib/payjpv2/models/checkout_session_ui_mode.rb +4 -3
  35. data/lib/payjpv2/models/country.rb +4 -3
  36. data/lib/payjpv2/models/currency.rb +4 -3
  37. data/lib/payjpv2/models/customer_creation.rb +4 -3
  38. data/lib/payjpv2/models/display_preference_request.rb +6 -6
  39. data/lib/payjpv2/models/locale.rb +4 -3
  40. data/lib/payjpv2/models/payment_dispute_reason.rb +4 -3
  41. data/lib/payjpv2/models/payment_dispute_status.rb +4 -3
  42. data/lib/payjpv2/models/payment_flow_cancel_request.rb +1 -11
  43. data/lib/payjpv2/models/payment_flow_cancellation_reason.rb +4 -3
  44. data/lib/payjpv2/models/payment_flow_payment_method_options_card_request.rb +2 -22
  45. data/lib/payjpv2/models/payment_flow_status.rb +4 -3
  46. data/lib/payjpv2/models/payment_method_card_details_response.rb +40 -7
  47. data/lib/payjpv2/models/payment_method_configuration_display_preference.rb +2 -22
  48. data/lib/payjpv2/models/payment_method_configuration_preference.rb +42 -0
  49. data/lib/payjpv2/models/payment_method_configuration_value.rb +41 -0
  50. data/lib/payjpv2/models/payment_method_types.rb +4 -3
  51. data/lib/payjpv2/models/payment_refund_reason.rb +4 -3
  52. data/lib/payjpv2/models/payment_refund_status.rb +4 -3
  53. data/lib/payjpv2/models/payment_transaction_type.rb +4 -3
  54. data/lib/payjpv2/models/price_type.rb +4 -3
  55. data/lib/payjpv2/models/product_create_request.rb +15 -1
  56. data/lib/payjpv2/models/request_extended_authorization.rb +42 -0
  57. data/lib/payjpv2/models/request_three_d_secure.rb +41 -0
  58. data/lib/payjpv2/models/setup_flow_cancellation_reason.rb +4 -3
  59. data/lib/payjpv2/models/setup_flow_payment_method_options_card_request.rb +1 -11
  60. data/lib/payjpv2/models/setup_flow_status.rb +4 -3
  61. data/lib/payjpv2/models/statement_subject.rb +4 -3
  62. data/lib/payjpv2/models/statement_type.rb +4 -3
  63. data/lib/payjpv2/models/tax_type.rb +4 -3
  64. data/lib/payjpv2/models/usage.rb +4 -3
  65. data/lib/payjpv2/version.rb +1 -1
  66. data/lib/payjpv2.rb +7 -0
  67. data/spec/api/payment_transactions_api_spec.rb +2 -2
  68. data/spec/integration/anyof_deserialization_spec.rb +8 -1
  69. data/spec/models/bank_account_status_spec.rb +30 -0
  70. data/spec/models/card_brand_spec.rb +30 -0
  71. data/spec/models/card_funding_spec.rb +30 -0
  72. data/spec/models/checkout_session_payment_method_options_card_request_spec.rb +0 -8
  73. data/spec/models/display_preference_request_spec.rb +0 -4
  74. data/spec/models/payment_flow_cancel_request_spec.rb +0 -4
  75. data/spec/models/payment_flow_payment_method_options_card_request_spec.rb +0 -8
  76. data/spec/models/payment_method_card_details_response_spec.rb +6 -0
  77. data/spec/models/payment_method_configuration_display_preference_spec.rb +0 -8
  78. data/spec/models/payment_method_configuration_preference_spec.rb +30 -0
  79. data/spec/models/payment_method_configuration_value_spec.rb +30 -0
  80. data/spec/models/request_extended_authorization_spec.rb +30 -0
  81. data/spec/models/request_three_d_secure_spec.rb +30 -0
  82. data/spec/models/setup_flow_payment_method_options_card_request_spec.rb +0 -4
  83. metadata +29 -1
@@ -18,7 +18,7 @@ module PAYJPv2
18
18
  # Checkout などで顧客に表示される商品名
19
19
  attr_accessor :name
20
20
 
21
- # 商品 ID
21
+ # 商品 ID(255文字以内)
22
22
  attr_accessor :id
23
23
 
24
24
  # 商品が購入可能かどうか
@@ -128,6 +128,20 @@ module PAYJPv2
128
128
  @name = name
129
129
  end
130
130
 
131
+ # Custom attribute writer method with validation
132
+ # @param [Object] id Value to be assigned
133
+ def id=(id)
134
+ if id.nil?
135
+ raise ArgumentError, 'id cannot be nil'
136
+ end
137
+
138
+ if id.to_s.length > 255
139
+ raise ArgumentError, 'invalid value for "id", the character length must be smaller than or equal to 255.'
140
+ end
141
+
142
+ @id = id
143
+ end
144
+
131
145
  # Checks equality by comparing each attribute.
132
146
  # @param [Object] Object to be compared
133
147
  def ==(o)
@@ -0,0 +1,42 @@
1
+ =begin
2
+ #PAY.JP API v2
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.14.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module PAYJPv2
17
+ class RequestExtendedAuthorization
18
+ IF_AVAILABLE = "if_available".freeze
19
+ MUST_EXTEND = "must_extend".freeze
20
+ NEVER = "never".freeze
21
+
22
+ def self.all_vars
23
+ @all_vars ||= [IF_AVAILABLE, MUST_EXTEND, NEVER].freeze
24
+ end
25
+
26
+ # Builds the enum from string
27
+ # @param [String] The enum value in the form of the string
28
+ # @return [String] The enum value
29
+ def self.build_from_hash(value)
30
+ # Return unknown values as-is so that enum values added on the API side do not break older clients
31
+ value
32
+ end
33
+
34
+ # Builds the enum from string
35
+ # @param [String] The enum value in the form of the string
36
+ # @return [String] The enum value
37
+ def build_from_hash(value)
38
+ # Return unknown values as-is so that enum values added on the API side do not break older clients
39
+ value
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,41 @@
1
+ =begin
2
+ #PAY.JP API v2
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.14.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module PAYJPv2
17
+ class RequestThreeDSecure
18
+ ANY = "any".freeze
19
+ AUTOMATIC = "automatic".freeze
20
+
21
+ def self.all_vars
22
+ @all_vars ||= [ANY, AUTOMATIC].freeze
23
+ end
24
+
25
+ # Builds the enum from string
26
+ # @param [String] The enum value in the form of the string
27
+ # @return [String] The enum value
28
+ def self.build_from_hash(value)
29
+ # Return unknown values as-is so that enum values added on the API side do not break older clients
30
+ value
31
+ end
32
+
33
+ # Builds the enum from string
34
+ # @param [String] The enum value in the form of the string
35
+ # @return [String] The enum value
36
+ def build_from_hash(value)
37
+ # Return unknown values as-is so that enum values added on the API side do not break older clients
38
+ value
39
+ end
40
+ end
41
+ end
@@ -28,15 +28,16 @@ module PAYJPv2
28
28
  # @param [String] The enum value in the form of the string
29
29
  # @return [String] The enum value
30
30
  def self.build_from_hash(value)
31
- new.build_from_hash(value)
31
+ # Return unknown values as-is so that enum values added on the API side do not break older clients
32
+ value
32
33
  end
33
34
 
34
35
  # Builds the enum from string
35
36
  # @param [String] The enum value in the form of the string
36
37
  # @return [String] The enum value
37
38
  def build_from_hash(value)
38
- return value if SetupFlowCancellationReason.all_vars.include?(value)
39
- raise "Invalid ENUM value #{value} for class #SetupFlowCancellationReason"
39
+ # Return unknown values as-is so that enum values added on the API side do not break older clients
40
+ value
40
41
  end
41
42
  end
42
43
  end
@@ -60,7 +60,7 @@ module PAYJPv2
60
60
  # Attribute type mapping.
61
61
  def self.openapi_types
62
62
  {
63
- :request_three_d_secure => :'String'
63
+ :request_three_d_secure => :'RequestThreeDSecure'
64
64
  }
65
65
  end
66
66
 
@@ -91,16 +91,6 @@ module PAYJPv2
91
91
  end
92
92
  end
93
93
 
94
- # Custom attribute writer method checking allowed values (enum).
95
- # @param [Object] request_three_d_secure Object to be assigned
96
- def request_three_d_secure=(request_three_d_secure)
97
- validator = EnumAttributeValidator.new('String', ["automatic", "any"])
98
- unless validator.valid?(request_three_d_secure)
99
- raise ArgumentError, "invalid value for \"request_three_d_secure\", must be one of #{validator.allowable_values}."
100
- end
101
- @request_three_d_secure = request_three_d_secure
102
- end
103
-
104
94
  # Checks equality by comparing each attribute.
105
95
  # @param [Object] Object to be compared
106
96
  def ==(o)
@@ -30,15 +30,16 @@ module PAYJPv2
30
30
  # @param [String] The enum value in the form of the string
31
31
  # @return [String] The enum value
32
32
  def self.build_from_hash(value)
33
- new.build_from_hash(value)
33
+ # Return unknown values as-is so that enum values added on the API side do not break older clients
34
+ value
34
35
  end
35
36
 
36
37
  # Builds the enum from string
37
38
  # @param [String] The enum value in the form of the string
38
39
  # @return [String] The enum value
39
40
  def build_from_hash(value)
40
- return value if SetupFlowStatus.all_vars.include?(value)
41
- raise "Invalid ENUM value #{value} for class #SetupFlowStatus"
41
+ # Return unknown values as-is so that enum values added on the API side do not break older clients
42
+ value
42
43
  end
43
44
  end
44
45
  end
@@ -41,15 +41,16 @@ module PAYJPv2
41
41
  # @param [String] The enum value in the form of the string
42
42
  # @return [String] The enum value
43
43
  def self.build_from_hash(value)
44
- new.build_from_hash(value)
44
+ # Return unknown values as-is so that enum values added on the API side do not break older clients
45
+ value
45
46
  end
46
47
 
47
48
  # Builds the enum from string
48
49
  # @param [String] The enum value in the form of the string
49
50
  # @return [String] The enum value
50
51
  def build_from_hash(value)
51
- return value if StatementSubject.all_vars.include?(value)
52
- raise "Invalid ENUM value #{value} for class #StatementSubject"
52
+ # Return unknown values as-is so that enum values added on the API side do not break older clients
53
+ value
53
54
  end
54
55
  end
55
56
  end
@@ -29,15 +29,16 @@ module PAYJPv2
29
29
  # @param [String] The enum value in the form of the string
30
30
  # @return [String] The enum value
31
31
  def self.build_from_hash(value)
32
- new.build_from_hash(value)
32
+ # Return unknown values as-is so that enum values added on the API side do not break older clients
33
+ value
33
34
  end
34
35
 
35
36
  # Builds the enum from string
36
37
  # @param [String] The enum value in the form of the string
37
38
  # @return [String] The enum value
38
39
  def build_from_hash(value)
39
- return value if StatementType.all_vars.include?(value)
40
- raise "Invalid ENUM value #{value} for class #StatementType"
40
+ # Return unknown values as-is so that enum values added on the API side do not break older clients
41
+ value
41
42
  end
42
43
  end
43
44
  end
@@ -25,15 +25,16 @@ module PAYJPv2
25
25
  # @param [String] The enum value in the form of the string
26
26
  # @return [String] The enum value
27
27
  def self.build_from_hash(value)
28
- new.build_from_hash(value)
28
+ # Return unknown values as-is so that enum values added on the API side do not break older clients
29
+ value
29
30
  end
30
31
 
31
32
  # Builds the enum from string
32
33
  # @param [String] The enum value in the form of the string
33
34
  # @return [String] The enum value
34
35
  def build_from_hash(value)
35
- return value if TaxType.all_vars.include?(value)
36
- raise "Invalid ENUM value #{value} for class #TaxType"
36
+ # Return unknown values as-is so that enum values added on the API side do not break older clients
37
+ value
37
38
  end
38
39
  end
39
40
  end
@@ -26,15 +26,16 @@ module PAYJPv2
26
26
  # @param [String] The enum value in the form of the string
27
27
  # @return [String] The enum value
28
28
  def self.build_from_hash(value)
29
- new.build_from_hash(value)
29
+ # Return unknown values as-is so that enum values added on the API side do not break older clients
30
+ value
30
31
  end
31
32
 
32
33
  # Builds the enum from string
33
34
  # @param [String] The enum value in the form of the string
34
35
  # @return [String] The enum value
35
36
  def build_from_hash(value)
36
- return value if Usage.all_vars.include?(value)
37
- raise "Invalid ENUM value #{value} for class #Usage"
37
+ # Return unknown values as-is so that enum values added on the API side do not break older clients
38
+ value
38
39
  end
39
40
  end
40
41
  end
@@ -11,5 +11,5 @@ Generator version: 7.14.0
11
11
  =end
12
12
 
13
13
  module PAYJPv2
14
- VERSION = '1.2.0'
14
+ VERSION = '1.3.0'
15
15
  end
data/lib/payjpv2.rb CHANGED
@@ -22,9 +22,12 @@ require 'payjpv2/models/balance_list_response'
22
22
  require 'payjpv2/models/balance_response'
23
23
  require 'payjpv2/models/balance_state'
24
24
  require 'payjpv2/models/balance_url_response'
25
+ require 'payjpv2/models/bank_account_status'
25
26
  require 'payjpv2/models/bank_info_response'
26
27
  require 'payjpv2/models/capture_method'
28
+ require 'payjpv2/models/card_brand'
27
29
  require 'payjpv2/models/card_config_request'
30
+ require 'payjpv2/models/card_funding'
28
31
  require 'payjpv2/models/checkout_session_create_request'
29
32
  require 'payjpv2/models/checkout_session_customer_details_address_response'
30
33
  require 'payjpv2/models/checkout_session_customer_details_response'
@@ -85,8 +88,10 @@ require 'payjpv2/models/payment_method_card_update_request'
85
88
  require 'payjpv2/models/payment_method_configuration_details_response'
86
89
  require 'payjpv2/models/payment_method_configuration_display_preference'
87
90
  require 'payjpv2/models/payment_method_configuration_list_response'
91
+ require 'payjpv2/models/payment_method_configuration_preference'
88
92
  require 'payjpv2/models/payment_method_configuration_setting_response'
89
93
  require 'payjpv2/models/payment_method_configuration_update_request'
94
+ require 'payjpv2/models/payment_method_configuration_value'
90
95
  require 'payjpv2/models/payment_method_create_card_details_request'
91
96
  require 'payjpv2/models/payment_method_create_request'
92
97
  require 'payjpv2/models/payment_method_list_response'
@@ -119,6 +124,8 @@ require 'payjpv2/models/product_list_response'
119
124
  require 'payjpv2/models/product_update_request'
120
125
  require 'payjpv2/models/redirect_options_request'
121
126
  require 'payjpv2/models/redirect_options_response'
127
+ require 'payjpv2/models/request_extended_authorization'
128
+ require 'payjpv2/models/request_three_d_secure'
122
129
  require 'payjpv2/models/setup_flow_cancel_request'
123
130
  require 'payjpv2/models/setup_flow_cancellation_reason'
124
131
  require 'payjpv2/models/setup_flow_create_request'
@@ -39,8 +39,8 @@ describe 'PaymentTransactionsApi' do
39
39
  # @option opts [String] :starting_after このIDより後のデータを取得
40
40
  # @option opts [String] :ending_before このIDより前のデータを取得
41
41
  # @option opts [String] :term_id 集計区間 ID
42
- # @option opts [String] :type 取引タイプ
43
- # @option opts [String] :payment_method_type 支払い方法タイプ
42
+ # @option opts [PaymentTransactionType] :type 取引タイプ
43
+ # @option opts [PaymentMethodTypes] :payment_method_type 支払い方法タイプ
44
44
  # @return [PaymentTransactionListResponse]
45
45
  describe 'get_all_payment_transactions test' do
46
46
  it 'should work' do
@@ -47,7 +47,7 @@ describe 'anyOf module deserialization via ApiClient#convert_to_type' do
47
47
  },
48
48
  'card' => {
49
49
  'last4' => '4242',
50
- 'brand' => 'visa',
50
+ 'brand' => 'Visa',
51
51
  'exp_month' => 12,
52
52
  'exp_year' => 2030,
53
53
  'fingerprint' => 'fp_test',
@@ -104,4 +104,11 @@ describe 'anyOf module deserialization via ApiClient#convert_to_type' do
104
104
  expect(result.id).to eq('pm_test_paypay')
105
105
  expect(result.type).to eq('paypay')
106
106
  end
107
+
108
+ it 'API 側で enum に追加された未知の値もそのまま読めること' do
109
+ payload = card_payload.merge('card' => card_payload['card'].merge('brand' => 'UnionPay', 'funding' => 'credit'))
110
+ result = api_client.send(:convert_to_type, payload, 'PaymentMethodResponse')
111
+ expect(result.card.brand).to eq('UnionPay')
112
+ expect(result.card.funding).to eq('credit')
113
+ end
107
114
  end
@@ -0,0 +1,30 @@
1
+ =begin
2
+ #PAY.JP API v2
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.14.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PAYJPv2::BankAccountStatus
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe PAYJPv2::BankAccountStatus do
21
+ let(:instance) { PAYJPv2::BankAccountStatus.new }
22
+
23
+ describe 'test an instance of BankAccountStatus' do
24
+ it 'should create an instance of BankAccountStatus' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(PAYJPv2::BankAccountStatus)
27
+ end
28
+ end
29
+
30
+ end
@@ -0,0 +1,30 @@
1
+ =begin
2
+ #PAY.JP API v2
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.14.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PAYJPv2::CardBrand
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe PAYJPv2::CardBrand do
21
+ let(:instance) { PAYJPv2::CardBrand.new }
22
+
23
+ describe 'test an instance of CardBrand' do
24
+ it 'should create an instance of CardBrand' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(PAYJPv2::CardBrand)
27
+ end
28
+ end
29
+
30
+ end
@@ -0,0 +1,30 @@
1
+ =begin
2
+ #PAY.JP API v2
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.14.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PAYJPv2::CardFunding
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe PAYJPv2::CardFunding do
21
+ let(:instance) { PAYJPv2::CardFunding.new }
22
+
23
+ describe 'test an instance of CardFunding' do
24
+ it 'should create an instance of CardFunding' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(PAYJPv2::CardFunding)
27
+ end
28
+ end
29
+
30
+ end
@@ -30,20 +30,12 @@ describe PAYJPv2::CheckoutSessionPaymentMethodOptionsCardRequest do
30
30
  describe 'test attribute "request_extended_authorization"' do
31
31
  it 'should work' do
32
32
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["if_available", "must_extend", "never"])
34
- # validator.allowable_values.each do |value|
35
- # expect { instance.request_extended_authorization = value }.not_to raise_error
36
- # end
37
33
  end
38
34
  end
39
35
 
40
36
  describe 'test attribute "request_three_d_secure"' do
41
37
  it 'should work' do
42
38
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["any", "automatic"])
44
- # validator.allowable_values.each do |value|
45
- # expect { instance.request_three_d_secure = value }.not_to raise_error
46
- # end
47
39
  end
48
40
  end
49
41
 
@@ -30,10 +30,6 @@ describe PAYJPv2::DisplayPreferenceRequest do
30
30
  describe 'test attribute "preference"' do
31
31
  it 'should work' do
32
32
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["none", "off", "on"])
34
- # validator.allowable_values.each do |value|
35
- # expect { instance.preference = value }.not_to raise_error
36
- # end
37
33
  end
38
34
  end
39
35
 
@@ -30,10 +30,6 @@ describe PAYJPv2::PaymentFlowCancelRequest do
30
30
  describe 'test attribute "cancellation_reason"' do
31
31
  it 'should work' do
32
32
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["duplicate", "fraudulent", "requested_by_customer", "abandoned"])
34
- # validator.allowable_values.each do |value|
35
- # expect { instance.cancellation_reason = value }.not_to raise_error
36
- # end
37
33
  end
38
34
  end
39
35
 
@@ -30,20 +30,12 @@ describe PAYJPv2::PaymentFlowPaymentMethodOptionsCardRequest do
30
30
  describe 'test attribute "request_extended_authorization"' do
31
31
  it 'should work' do
32
32
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["if_available", "must_extend", "never"])
34
- # validator.allowable_values.each do |value|
35
- # expect { instance.request_extended_authorization = value }.not_to raise_error
36
- # end
37
33
  end
38
34
  end
39
35
 
40
36
  describe 'test attribute "request_three_d_secure"' do
41
37
  it 'should work' do
42
38
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["any", "automatic"])
44
- # validator.allowable_values.each do |value|
45
- # expect { instance.request_three_d_secure = value }.not_to raise_error
46
- # end
47
39
  end
48
40
  end
49
41
 
@@ -63,4 +63,10 @@ describe PAYJPv2::PaymentMethodCardDetailsResponse do
63
63
  end
64
64
  end
65
65
 
66
+ describe 'test attribute "funding"' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
+ end
70
+ end
71
+
66
72
  end
@@ -30,20 +30,12 @@ describe PAYJPv2::PaymentMethodConfigurationDisplayPreference do
30
30
  describe 'test attribute "preference"' do
31
31
  it 'should work' do
32
32
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["none", "off", "on"])
34
- # validator.allowable_values.each do |value|
35
- # expect { instance.preference = value }.not_to raise_error
36
- # end
37
33
  end
38
34
  end
39
35
 
40
36
  describe 'test attribute "value"' do
41
37
  it 'should work' do
42
38
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["off", "on"])
44
- # validator.allowable_values.each do |value|
45
- # expect { instance.value = value }.not_to raise_error
46
- # end
47
39
  end
48
40
  end
49
41
 
@@ -0,0 +1,30 @@
1
+ =begin
2
+ #PAY.JP API v2
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.14.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PAYJPv2::PaymentMethodConfigurationPreference
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe PAYJPv2::PaymentMethodConfigurationPreference do
21
+ let(:instance) { PAYJPv2::PaymentMethodConfigurationPreference.new }
22
+
23
+ describe 'test an instance of PaymentMethodConfigurationPreference' do
24
+ it 'should create an instance of PaymentMethodConfigurationPreference' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(PAYJPv2::PaymentMethodConfigurationPreference)
27
+ end
28
+ end
29
+
30
+ end
@@ -0,0 +1,30 @@
1
+ =begin
2
+ #PAY.JP API v2
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.14.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PAYJPv2::PaymentMethodConfigurationValue
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe PAYJPv2::PaymentMethodConfigurationValue do
21
+ let(:instance) { PAYJPv2::PaymentMethodConfigurationValue.new }
22
+
23
+ describe 'test an instance of PaymentMethodConfigurationValue' do
24
+ it 'should create an instance of PaymentMethodConfigurationValue' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(PAYJPv2::PaymentMethodConfigurationValue)
27
+ end
28
+ end
29
+
30
+ end
@@ -0,0 +1,30 @@
1
+ =begin
2
+ #PAY.JP API v2
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.14.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PAYJPv2::RequestExtendedAuthorization
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe PAYJPv2::RequestExtendedAuthorization do
21
+ let(:instance) { PAYJPv2::RequestExtendedAuthorization.new }
22
+
23
+ describe 'test an instance of RequestExtendedAuthorization' do
24
+ it 'should create an instance of RequestExtendedAuthorization' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(PAYJPv2::RequestExtendedAuthorization)
27
+ end
28
+ end
29
+
30
+ end
@@ -0,0 +1,30 @@
1
+ =begin
2
+ #PAY.JP API v2
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.14.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PAYJPv2::RequestThreeDSecure
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe PAYJPv2::RequestThreeDSecure do
21
+ let(:instance) { PAYJPv2::RequestThreeDSecure.new }
22
+
23
+ describe 'test an instance of RequestThreeDSecure' do
24
+ it 'should create an instance of RequestThreeDSecure' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(PAYJPv2::RequestThreeDSecure)
27
+ end
28
+ end
29
+
30
+ end