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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +9 -2
- data/docs/BankAccountStatus.md +15 -0
- data/docs/BankInfoResponse.md +2 -2
- data/docs/CardBrand.md +15 -0
- data/docs/CardFunding.md +15 -0
- data/docs/CheckoutSessionCreateRequest.md +1 -1
- data/docs/CheckoutSessionPaymentMethodOptionsCardRequest.md +2 -2
- data/docs/DisplayPreferenceRequest.md +1 -1
- data/docs/PaymentFlowCancelRequest.md +1 -1
- data/docs/PaymentFlowPaymentMethodOptionsCardRequest.md +2 -2
- data/docs/PaymentMethodCardDetailsResponse.md +4 -2
- data/docs/PaymentMethodConfigurationDisplayPreference.md +2 -2
- data/docs/PaymentMethodConfigurationPreference.md +15 -0
- data/docs/PaymentMethodConfigurationValue.md +15 -0
- data/docs/PaymentTransactionsApi.md +4 -4
- data/docs/ProductCreateRequest.md +1 -1
- data/docs/RequestExtendedAuthorization.md +15 -0
- data/docs/RequestThreeDSecure.md +15 -0
- data/docs/SetupFlowPaymentMethodOptionsCardRequest.md +1 -1
- data/lib/payjpv2/api/payment_transactions_api.rb +2 -2
- data/lib/payjpv2/models/balance_state.rb +4 -3
- data/lib/payjpv2/models/bank_account_status.rb +42 -0
- data/lib/payjpv2/models/bank_info_response.rb +24 -2
- data/lib/payjpv2/models/capture_method.rb +4 -3
- data/lib/payjpv2/models/card_brand.rb +45 -0
- data/lib/payjpv2/models/card_funding.rb +41 -0
- data/lib/payjpv2/models/checkout_session_create_request.rb +1 -1
- data/lib/payjpv2/models/checkout_session_mode.rb +4 -3
- data/lib/payjpv2/models/checkout_session_payment_method_options_card_request.rb +2 -22
- data/lib/payjpv2/models/checkout_session_status.rb +4 -3
- data/lib/payjpv2/models/checkout_session_submit_type.rb +4 -3
- data/lib/payjpv2/models/checkout_session_ui_mode.rb +4 -3
- data/lib/payjpv2/models/country.rb +4 -3
- data/lib/payjpv2/models/currency.rb +4 -3
- data/lib/payjpv2/models/customer_creation.rb +4 -3
- data/lib/payjpv2/models/display_preference_request.rb +6 -6
- data/lib/payjpv2/models/locale.rb +4 -3
- data/lib/payjpv2/models/payment_dispute_reason.rb +4 -3
- data/lib/payjpv2/models/payment_dispute_status.rb +4 -3
- data/lib/payjpv2/models/payment_flow_cancel_request.rb +1 -11
- data/lib/payjpv2/models/payment_flow_cancellation_reason.rb +4 -3
- data/lib/payjpv2/models/payment_flow_payment_method_options_card_request.rb +2 -22
- data/lib/payjpv2/models/payment_flow_status.rb +4 -3
- data/lib/payjpv2/models/payment_method_card_details_response.rb +40 -7
- data/lib/payjpv2/models/payment_method_configuration_display_preference.rb +2 -22
- data/lib/payjpv2/models/payment_method_configuration_preference.rb +42 -0
- data/lib/payjpv2/models/payment_method_configuration_value.rb +41 -0
- data/lib/payjpv2/models/payment_method_types.rb +4 -3
- data/lib/payjpv2/models/payment_refund_reason.rb +4 -3
- data/lib/payjpv2/models/payment_refund_status.rb +4 -3
- data/lib/payjpv2/models/payment_transaction_type.rb +4 -3
- data/lib/payjpv2/models/price_type.rb +4 -3
- data/lib/payjpv2/models/product_create_request.rb +15 -1
- data/lib/payjpv2/models/request_extended_authorization.rb +42 -0
- data/lib/payjpv2/models/request_three_d_secure.rb +41 -0
- data/lib/payjpv2/models/setup_flow_cancellation_reason.rb +4 -3
- data/lib/payjpv2/models/setup_flow_payment_method_options_card_request.rb +1 -11
- data/lib/payjpv2/models/setup_flow_status.rb +4 -3
- data/lib/payjpv2/models/statement_subject.rb +4 -3
- data/lib/payjpv2/models/statement_type.rb +4 -3
- data/lib/payjpv2/models/tax_type.rb +4 -3
- data/lib/payjpv2/models/usage.rb +4 -3
- data/lib/payjpv2/version.rb +1 -1
- data/lib/payjpv2.rb +7 -0
- data/spec/api/payment_transactions_api_spec.rb +2 -2
- data/spec/integration/anyof_deserialization_spec.rb +8 -1
- data/spec/models/bank_account_status_spec.rb +30 -0
- data/spec/models/card_brand_spec.rb +30 -0
- data/spec/models/card_funding_spec.rb +30 -0
- data/spec/models/checkout_session_payment_method_options_card_request_spec.rb +0 -8
- data/spec/models/display_preference_request_spec.rb +0 -4
- data/spec/models/payment_flow_cancel_request_spec.rb +0 -4
- data/spec/models/payment_flow_payment_method_options_card_request_spec.rb +0 -8
- data/spec/models/payment_method_card_details_response_spec.rb +6 -0
- data/spec/models/payment_method_configuration_display_preference_spec.rb +0 -8
- data/spec/models/payment_method_configuration_preference_spec.rb +30 -0
- data/spec/models/payment_method_configuration_value_spec.rb +30 -0
- data/spec/models/request_extended_authorization_spec.rb +30 -0
- data/spec/models/request_three_d_secure_spec.rb +30 -0
- data/spec/models/setup_flow_payment_method_options_card_request_spec.rb +0 -4
- metadata +29 -1
|
@@ -27,15 +27,16 @@ module PAYJPv2
|
|
|
27
27
|
# @param [String] The enum value in the form of the string
|
|
28
28
|
# @return [String] The enum value
|
|
29
29
|
def self.build_from_hash(value)
|
|
30
|
-
|
|
30
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
31
|
+
value
|
|
31
32
|
end
|
|
32
33
|
|
|
33
34
|
# Builds the enum from string
|
|
34
35
|
# @param [String] The enum value in the form of the string
|
|
35
36
|
# @return [String] The enum value
|
|
36
37
|
def build_from_hash(value)
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
39
|
+
value
|
|
39
40
|
end
|
|
40
41
|
end
|
|
41
42
|
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
|
-
|
|
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
|
-
|
|
39
|
-
|
|
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
|
|
@@ -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
|
-
|
|
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
|
-
|
|
36
|
-
|
|
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
|
|
@@ -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
|
-
|
|
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
|
-
|
|
36
|
-
|
|
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
|
|
@@ -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
|
-
|
|
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
|
-
|
|
36
|
-
|
|
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
|
-
|
|
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
|
-
|
|
37
|
-
|
|
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
|
|
@@ -60,7 +60,7 @@ module PAYJPv2
|
|
|
60
60
|
# Attribute type mapping.
|
|
61
61
|
def self.openapi_types
|
|
62
62
|
{
|
|
63
|
-
:preference => :'
|
|
63
|
+
:preference => :'PaymentMethodConfigurationPreference'
|
|
64
64
|
}
|
|
65
65
|
end
|
|
66
66
|
|
|
@@ -93,13 +93,13 @@ module PAYJPv2
|
|
|
93
93
|
end
|
|
94
94
|
end
|
|
95
95
|
|
|
96
|
-
# Custom attribute writer method
|
|
97
|
-
# @param [Object] preference
|
|
96
|
+
# Custom attribute writer method with validation
|
|
97
|
+
# @param [Object] preference Value to be assigned
|
|
98
98
|
def preference=(preference)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
raise ArgumentError, "invalid value for \"preference\", must be one of #{validator.allowable_values}."
|
|
99
|
+
if preference.nil?
|
|
100
|
+
raise ArgumentError, 'preference cannot be nil'
|
|
102
101
|
end
|
|
102
|
+
|
|
103
103
|
@preference = preference
|
|
104
104
|
end
|
|
105
105
|
|
|
@@ -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
|
-
|
|
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
|
-
|
|
37
|
-
|
|
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
|
|
@@ -39,15 +39,16 @@ module PAYJPv2
|
|
|
39
39
|
# @param [String] The enum value in the form of the string
|
|
40
40
|
# @return [String] The enum value
|
|
41
41
|
def self.build_from_hash(value)
|
|
42
|
-
|
|
42
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
43
|
+
value
|
|
43
44
|
end
|
|
44
45
|
|
|
45
46
|
# Builds the enum from string
|
|
46
47
|
# @param [String] The enum value in the form of the string
|
|
47
48
|
# @return [String] The enum value
|
|
48
49
|
def build_from_hash(value)
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
51
|
+
value
|
|
51
52
|
end
|
|
52
53
|
end
|
|
53
54
|
end
|
|
@@ -32,15 +32,16 @@ module PAYJPv2
|
|
|
32
32
|
# @param [String] The enum value in the form of the string
|
|
33
33
|
# @return [String] The enum value
|
|
34
34
|
def self.build_from_hash(value)
|
|
35
|
-
|
|
35
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
36
|
+
value
|
|
36
37
|
end
|
|
37
38
|
|
|
38
39
|
# Builds the enum from string
|
|
39
40
|
# @param [String] The enum value in the form of the string
|
|
40
41
|
# @return [String] The enum value
|
|
41
42
|
def build_from_hash(value)
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
44
|
+
value
|
|
44
45
|
end
|
|
45
46
|
end
|
|
46
47
|
end
|
|
@@ -60,7 +60,7 @@ module PAYJPv2
|
|
|
60
60
|
# Attribute type mapping.
|
|
61
61
|
def self.openapi_types
|
|
62
62
|
{
|
|
63
|
-
:cancellation_reason => :'
|
|
63
|
+
:cancellation_reason => :'PaymentFlowCancellationReason'
|
|
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] cancellation_reason Object to be assigned
|
|
96
|
-
def cancellation_reason=(cancellation_reason)
|
|
97
|
-
validator = EnumAttributeValidator.new('String', ["duplicate", "fraudulent", "requested_by_customer", "abandoned"])
|
|
98
|
-
unless validator.valid?(cancellation_reason)
|
|
99
|
-
raise ArgumentError, "invalid value for \"cancellation_reason\", must be one of #{validator.allowable_values}."
|
|
100
|
-
end
|
|
101
|
-
@cancellation_reason = cancellation_reason
|
|
102
|
-
end
|
|
103
|
-
|
|
104
94
|
# Checks equality by comparing each attribute.
|
|
105
95
|
# @param [Object] Object to be compared
|
|
106
96
|
def ==(o)
|
|
@@ -32,15 +32,16 @@ module PAYJPv2
|
|
|
32
32
|
# @param [String] The enum value in the form of the string
|
|
33
33
|
# @return [String] The enum value
|
|
34
34
|
def self.build_from_hash(value)
|
|
35
|
-
|
|
35
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
36
|
+
value
|
|
36
37
|
end
|
|
37
38
|
|
|
38
39
|
# Builds the enum from string
|
|
39
40
|
# @param [String] The enum value in the form of the string
|
|
40
41
|
# @return [String] The enum value
|
|
41
42
|
def build_from_hash(value)
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
44
|
+
value
|
|
44
45
|
end
|
|
45
46
|
end
|
|
46
47
|
end
|
|
@@ -64,8 +64,8 @@ module PAYJPv2
|
|
|
64
64
|
# Attribute type mapping.
|
|
65
65
|
def self.openapi_types
|
|
66
66
|
{
|
|
67
|
-
:request_extended_authorization => :'
|
|
68
|
-
:request_three_d_secure => :'
|
|
67
|
+
:request_extended_authorization => :'RequestExtendedAuthorization',
|
|
68
|
+
:request_three_d_secure => :'RequestThreeDSecure'
|
|
69
69
|
}
|
|
70
70
|
end
|
|
71
71
|
|
|
@@ -100,26 +100,6 @@ module PAYJPv2
|
|
|
100
100
|
end
|
|
101
101
|
end
|
|
102
102
|
|
|
103
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
104
|
-
# @param [Object] request_extended_authorization Object to be assigned
|
|
105
|
-
def request_extended_authorization=(request_extended_authorization)
|
|
106
|
-
validator = EnumAttributeValidator.new('String', ["if_available", "must_extend", "never"])
|
|
107
|
-
unless validator.valid?(request_extended_authorization)
|
|
108
|
-
raise ArgumentError, "invalid value for \"request_extended_authorization\", must be one of #{validator.allowable_values}."
|
|
109
|
-
end
|
|
110
|
-
@request_extended_authorization = request_extended_authorization
|
|
111
|
-
end
|
|
112
|
-
|
|
113
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
114
|
-
# @param [Object] request_three_d_secure Object to be assigned
|
|
115
|
-
def request_three_d_secure=(request_three_d_secure)
|
|
116
|
-
validator = EnumAttributeValidator.new('String', ["any", "automatic"])
|
|
117
|
-
unless validator.valid?(request_three_d_secure)
|
|
118
|
-
raise ArgumentError, "invalid value for \"request_three_d_secure\", must be one of #{validator.allowable_values}."
|
|
119
|
-
end
|
|
120
|
-
@request_three_d_secure = request_three_d_secure
|
|
121
|
-
end
|
|
122
|
-
|
|
123
103
|
# Checks equality by comparing each attribute.
|
|
124
104
|
# @param [Object] Object to be compared
|
|
125
105
|
def ==(o)
|
|
@@ -31,15 +31,16 @@ module PAYJPv2
|
|
|
31
31
|
# @param [String] The enum value in the form of the string
|
|
32
32
|
# @return [String] The enum value
|
|
33
33
|
def self.build_from_hash(value)
|
|
34
|
-
|
|
34
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
35
|
+
value
|
|
35
36
|
end
|
|
36
37
|
|
|
37
38
|
# Builds the enum from string
|
|
38
39
|
# @param [String] The enum value in the form of the string
|
|
39
40
|
# @return [String] The enum value
|
|
40
41
|
def build_from_hash(value)
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
43
|
+
value
|
|
43
44
|
end
|
|
44
45
|
end
|
|
45
46
|
end
|
|
@@ -18,7 +18,6 @@ module PAYJPv2
|
|
|
18
18
|
# カードの下4桁
|
|
19
19
|
attr_accessor :last4
|
|
20
20
|
|
|
21
|
-
# カードのブランド
|
|
22
21
|
attr_accessor :brand
|
|
23
22
|
|
|
24
23
|
# カードの有効期限(月)
|
|
@@ -32,6 +31,30 @@ module PAYJPv2
|
|
|
32
31
|
|
|
33
32
|
attr_accessor :country
|
|
34
33
|
|
|
34
|
+
attr_accessor :funding
|
|
35
|
+
|
|
36
|
+
class EnumAttributeValidator
|
|
37
|
+
attr_reader :datatype
|
|
38
|
+
attr_reader :allowable_values
|
|
39
|
+
|
|
40
|
+
def initialize(datatype, allowable_values)
|
|
41
|
+
@allowable_values = allowable_values.map do |value|
|
|
42
|
+
case datatype.to_s
|
|
43
|
+
when /Integer/i
|
|
44
|
+
value.to_i
|
|
45
|
+
when /Float/i
|
|
46
|
+
value.to_f
|
|
47
|
+
else
|
|
48
|
+
value
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def valid?(value)
|
|
54
|
+
!value || allowable_values.include?(value)
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
35
58
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
59
|
def self.attribute_map
|
|
37
60
|
{
|
|
@@ -40,7 +63,8 @@ module PAYJPv2
|
|
|
40
63
|
:exp_month => :exp_month,
|
|
41
64
|
:exp_year => :exp_year,
|
|
42
65
|
:fingerprint => :fingerprint,
|
|
43
|
-
:country => :country
|
|
66
|
+
:country => :country,
|
|
67
|
+
:funding => :funding
|
|
44
68
|
}
|
|
45
69
|
end
|
|
46
70
|
|
|
@@ -58,18 +82,20 @@ module PAYJPv2
|
|
|
58
82
|
def self.openapi_types
|
|
59
83
|
{
|
|
60
84
|
:last4 => :'String',
|
|
61
|
-
:brand => :'
|
|
85
|
+
:brand => :'CardBrand',
|
|
62
86
|
:exp_month => :'Integer',
|
|
63
87
|
:exp_year => :'Integer',
|
|
64
88
|
:fingerprint => :'String',
|
|
65
|
-
:country => :'String'
|
|
89
|
+
:country => :'String',
|
|
90
|
+
:funding => :'CardFunding'
|
|
66
91
|
}
|
|
67
92
|
end
|
|
68
93
|
|
|
69
94
|
# List of attributes with nullable: true
|
|
70
95
|
def self.openapi_nullable
|
|
71
96
|
Set.new([
|
|
72
|
-
:country
|
|
97
|
+
:country,
|
|
98
|
+
:funding
|
|
73
99
|
])
|
|
74
100
|
end
|
|
75
101
|
|
|
@@ -124,6 +150,12 @@ module PAYJPv2
|
|
|
124
150
|
else
|
|
125
151
|
self.country = nil
|
|
126
152
|
end
|
|
153
|
+
|
|
154
|
+
if attributes.key?(:funding)
|
|
155
|
+
self.funding = attributes[:funding]
|
|
156
|
+
else
|
|
157
|
+
self.funding = nil
|
|
158
|
+
end
|
|
127
159
|
end
|
|
128
160
|
|
|
129
161
|
# Custom attribute writer method with validation
|
|
@@ -186,7 +218,8 @@ module PAYJPv2
|
|
|
186
218
|
exp_month == o.exp_month &&
|
|
187
219
|
exp_year == o.exp_year &&
|
|
188
220
|
fingerprint == o.fingerprint &&
|
|
189
|
-
country == o.country
|
|
221
|
+
country == o.country &&
|
|
222
|
+
funding == o.funding
|
|
190
223
|
end
|
|
191
224
|
|
|
192
225
|
# @see the `==` method
|
|
@@ -198,7 +231,7 @@ module PAYJPv2
|
|
|
198
231
|
# Calculates hash code according to all attributes.
|
|
199
232
|
# @return [Integer] Hash code
|
|
200
233
|
def hash
|
|
201
|
-
[last4, brand, exp_month, exp_year, fingerprint, country].hash
|
|
234
|
+
[last4, brand, exp_month, exp_year, fingerprint, country, funding].hash
|
|
202
235
|
end
|
|
203
236
|
|
|
204
237
|
# Builds the object from hash
|
|
@@ -64,8 +64,8 @@ module PAYJPv2
|
|
|
64
64
|
# Attribute type mapping.
|
|
65
65
|
def self.openapi_types
|
|
66
66
|
{
|
|
67
|
-
:preference => :'
|
|
68
|
-
:value => :'
|
|
67
|
+
:preference => :'PaymentMethodConfigurationPreference',
|
|
68
|
+
:value => :'PaymentMethodConfigurationValue'
|
|
69
69
|
}
|
|
70
70
|
end
|
|
71
71
|
|
|
@@ -100,26 +100,6 @@ module PAYJPv2
|
|
|
100
100
|
end
|
|
101
101
|
end
|
|
102
102
|
|
|
103
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
104
|
-
# @param [Object] preference Object to be assigned
|
|
105
|
-
def preference=(preference)
|
|
106
|
-
validator = EnumAttributeValidator.new('String', ["none", "off", "on"])
|
|
107
|
-
unless validator.valid?(preference)
|
|
108
|
-
raise ArgumentError, "invalid value for \"preference\", must be one of #{validator.allowable_values}."
|
|
109
|
-
end
|
|
110
|
-
@preference = preference
|
|
111
|
-
end
|
|
112
|
-
|
|
113
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
114
|
-
# @param [Object] value Object to be assigned
|
|
115
|
-
def value=(value)
|
|
116
|
-
validator = EnumAttributeValidator.new('String', ["off", "on"])
|
|
117
|
-
unless validator.valid?(value)
|
|
118
|
-
raise ArgumentError, "invalid value for \"value\", must be one of #{validator.allowable_values}."
|
|
119
|
-
end
|
|
120
|
-
@value = value
|
|
121
|
-
end
|
|
122
|
-
|
|
123
103
|
# Checks equality by comparing each attribute.
|
|
124
104
|
# @param [Object] Object to be compared
|
|
125
105
|
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 PaymentMethodConfigurationPreference
|
|
18
|
+
ON = "on".freeze
|
|
19
|
+
OFF = "off".freeze
|
|
20
|
+
NONE = "none".freeze
|
|
21
|
+
|
|
22
|
+
def self.all_vars
|
|
23
|
+
@all_vars ||= [ON, OFF, NONE].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 PaymentMethodConfigurationValue
|
|
18
|
+
ON = "on".freeze
|
|
19
|
+
OFF = "off".freeze
|
|
20
|
+
|
|
21
|
+
def self.all_vars
|
|
22
|
+
@all_vars ||= [ON, OFF].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
|
|
@@ -27,15 +27,16 @@ module PAYJPv2
|
|
|
27
27
|
# @param [String] The enum value in the form of the string
|
|
28
28
|
# @return [String] The enum value
|
|
29
29
|
def self.build_from_hash(value)
|
|
30
|
-
|
|
30
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
31
|
+
value
|
|
31
32
|
end
|
|
32
33
|
|
|
33
34
|
# Builds the enum from string
|
|
34
35
|
# @param [String] The enum value in the form of the string
|
|
35
36
|
# @return [String] The enum value
|
|
36
37
|
def build_from_hash(value)
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
39
|
+
value
|
|
39
40
|
end
|
|
40
41
|
end
|
|
41
42
|
end
|
|
@@ -27,15 +27,16 @@ module PAYJPv2
|
|
|
27
27
|
# @param [String] The enum value in the form of the string
|
|
28
28
|
# @return [String] The enum value
|
|
29
29
|
def self.build_from_hash(value)
|
|
30
|
-
|
|
30
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
31
|
+
value
|
|
31
32
|
end
|
|
32
33
|
|
|
33
34
|
# Builds the enum from string
|
|
34
35
|
# @param [String] The enum value in the form of the string
|
|
35
36
|
# @return [String] The enum value
|
|
36
37
|
def build_from_hash(value)
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
# Return unknown values as-is so that enum values added on the API side do not break older clients
|
|
39
|
+
value
|
|
39
40
|
end
|
|
40
41
|
end
|
|
41
42
|
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
|
-
|
|
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
|
-
|
|
40
|
-
|
|
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
|
|
@@ -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
|
-
|
|
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
|
-
|
|
39
|
-
|
|
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
|
|
@@ -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
|
-
|
|
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
|
-
|
|
36
|
-
|
|
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
|