pcp-server-ruby-sdk 1.3.1 → 1.4.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: b8ce0d57a0a0e4d9c198eb972c3be51d325e4f12a54ec51d71dc12e84ad0b6d8
4
- data.tar.gz: 5768198ed551baecf7a798f281a68e3134b783d49f8eb0848c64ea6cbb1714e3
3
+ metadata.gz: 91bbea2101c1d5ab290390d1915b301b2cf18ca80dbef0fd49f4930513e81ea5
4
+ data.tar.gz: 2963319a0835827e6d9d69aeacb3f3beef0ba62188c92b144788dffaff335a2e
5
5
  SHA512:
6
- metadata.gz: 6d6b1ff0f33d0d2c138813a86300ad55f6be2763476de2b71448c340d2be00b14cb3bad7a99348452a683042cc6e5f94e8911dccfb7a18a5d1682e27bb77aace
7
- data.tar.gz: aab39f7785eac2e22e312fe70764840809a74d9b2443d5542650feedd32b41109795c9799b6b4b40e66cb6228f21901823a40ae125d6ac6d86b1ed7f04f947a8
6
+ metadata.gz: 704252b2436fbc2de0e1d42c5e78df92665644451eda832f1ada9aa6d676abd7f8be832d0c2e1d60ca91bd8cf6fe6b665354a65e72c422dcc6b3a51a43352551
7
+ data.tar.gz: 0ce58ca90c7fb6deacce228ebaddbabcb6b00f3c9d377fc96f365d4792d5f880d9b3bdea8076a4aee890d02407cf0397a5e303de40c4bb914b14a535a6f73b53
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # [1.4.0](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/compare/v1.3.1...v1.4.0) (2025-09-26)
2
+
3
+ ### Features
4
+
5
+ * feat: add paypal parameters ([854b72d2699f3250ccfec7b09beda3b82c5d22bd](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/commit/854b72d2699f3250ccfec7b09beda3b82c5d22bd))
6
+
1
7
  ## [1.3.1](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/compare/v0.0.6...v1.3.1) (2025-09-04)
2
8
 
3
9
  ### Bug Fixes
@@ -12,12 +12,16 @@ module PCPServerSDK
12
12
 
13
13
  attr_accessor :shipping_address
14
14
 
15
+ # PayPal transaction ID
16
+ attr_accessor :pay_pal_transaction_id
17
+
15
18
  # Attribute mapping from ruby-style variable name to JSON key.
16
19
  def self.attribute_map
17
20
  {
18
21
  :'billing_address' => :'billingAddress',
19
22
  :'customer_account' => :'customerAccount',
20
- :'shipping_address' => :'shippingAddress'
23
+ :'shipping_address' => :'shippingAddress',
24
+ :'pay_pal_transaction_id' => :'payPalTransactionId'
21
25
  }
22
26
  end
23
27
 
@@ -31,7 +35,8 @@ module PCPServerSDK
31
35
  {
32
36
  :'billing_address' => :'Address',
33
37
  :'customer_account' => :'PaymentProduct840CustomerAccount',
34
- :'shipping_address' => :'Address'
38
+ :'shipping_address' => :'Address',
39
+ :'pay_pal_transaction_id' => :'String'
35
40
  }
36
41
  end
37
42
 
@@ -67,6 +72,10 @@ module PCPServerSDK
67
72
  if attributes.key?(:'shipping_address')
68
73
  self.shipping_address = attributes[:'shipping_address']
69
74
  end
75
+
76
+ if attributes.key?(:'pay_pal_transaction_id')
77
+ self.pay_pal_transaction_id = attributes[:'pay_pal_transaction_id']
78
+ end
70
79
  end
71
80
 
72
81
  # Checks equality by comparing each attribute.
@@ -74,9 +83,10 @@ module PCPServerSDK
74
83
  def ==(o)
75
84
  return true if self.equal?(o)
76
85
  self.class == o.class &&
77
- billing_address == o.billing_address &&
78
- customer_account == o.customer_account &&
79
- shipping_address == o.shipping_address
86
+ billing_address == o.billing_address &&
87
+ customer_account == o.customer_account &&
88
+ shipping_address == o.shipping_address &&
89
+ pay_pal_transaction_id == o.pay_pal_transaction_id
80
90
  end
81
91
 
82
92
  # @see the `==` method
@@ -88,7 +98,7 @@ module PCPServerSDK
88
98
  # Calculates hash code according to all attributes.
89
99
  # @return [Integer] Hash code
90
100
  def hash
91
- [billing_address, customer_account, shipping_address].hash
101
+ [billing_address, customer_account, shipping_address, pay_pal_transaction_id].hash
92
102
  end
93
103
 
94
104
  # Builds the object from hash
@@ -9,14 +9,26 @@ module PCPServerSDK
9
9
  # Indicates whether to use PayPal Express Checkout Shortcut. * true = When shortcut is enabled, the consumer can select a shipping address during PayPal checkout. * false = When shortcut is disabled, the consumer cannot change the shipping address. Default value is false. Please note that this field is ignored when order.additionalInput.typeInformation.purchaseType is set to \"digital\"
10
10
  attr_accessor :address_selection_at_pay_pal
11
11
 
12
- # A unique ID determined by the merchant, to link a Paypal transaction to a FraudNet PayPal risk session. Only applicable to customer-initiated transactions, when the FraudNet SDK is used, and to be passed in the API request the same tracking ID value (FraudNet Session Identifier).
12
+ # A unique ID determined by the merchant, to link a Paypal transaction to a FraudNet PayPal risk session. Only applicable to customer-initiated transactions, when the FraudNet SDK is used, and to be passed in the API request the same tracking ID value (FraudNet Session Identifier). This SDK is available here https://developer.paypal.com/docs/checkout/apm/pay-upon-invoice/fraudnet/
13
13
  attr_accessor :fraud_net_id
14
14
 
15
+ # Required parameter which defines how PayPal is being integrated inside the checkout page.
16
+ # * true = the current integration uses PayPal SDK
17
+ # * false = classic usage with PayPal Redirect flow
18
+ # @return [Boolean]
19
+ attr_accessor :java_script_sdk_flow
20
+
21
+ # Required parameter for a COMPLETE CALL (not only an ORDER CALL) which one value "CONFIRM_ORDER_STATUS" signals process is finished on merchant side.
22
+ # @return [String] Only value: "CONFIRM_ORDER_STATUS"
23
+ attr_accessor :action
24
+
15
25
  # Attribute mapping from ruby-style variable name to JSON key.
16
26
  def self.attribute_map
17
27
  {
18
28
  :'address_selection_at_pay_pal' => :'addressSelectionAtPayPal',
19
- :'fraud_net_id' => :'fraudNetId'
29
+ :'fraud_net_id' => :'fraudNetId',
30
+ :'java_script_sdk_flow' => :'javaScriptSdkFlow',
31
+ :'action' => :'action'
20
32
  }
21
33
  end
22
34
 
@@ -29,7 +41,9 @@ module PCPServerSDK
29
41
  def self.openapi_types
30
42
  {
31
43
  :'address_selection_at_pay_pal' => :'Boolean',
32
- :'fraud_net_id' => :'String'
44
+ :'fraud_net_id' => :'String',
45
+ :'java_script_sdk_flow' => :'Boolean',
46
+ :'action' => :'String'
33
47
  }
34
48
  end
35
49
 
@@ -61,6 +75,14 @@ module PCPServerSDK
61
75
  if attributes.key?(:'fraud_net_id')
62
76
  self.fraud_net_id = attributes[:'fraud_net_id']
63
77
  end
78
+
79
+ if attributes.key?(:'java_script_sdk_flow')
80
+ self.java_script_sdk_flow = attributes[:'java_script_sdk_flow']
81
+ end
82
+
83
+ if attributes.key?(:'action')
84
+ self.action = attributes[:'action']
85
+ end
64
86
  end
65
87
 
66
88
  # Checks equality by comparing each attribute.
@@ -68,8 +90,10 @@ module PCPServerSDK
68
90
  def ==(o)
69
91
  return true if self.equal?(o)
70
92
  self.class == o.class &&
71
- address_selection_at_pay_pal == o.address_selection_at_pay_pal &&
72
- fraud_net_id == o.fraud_net_id
93
+ address_selection_at_pay_pal == o.address_selection_at_pay_pal &&
94
+ fraud_net_id == o.fraud_net_id &&
95
+ java_script_sdk_flow == o.java_script_sdk_flow &&
96
+ action == o.action
73
97
  end
74
98
 
75
99
  # @see the `==` method
@@ -81,7 +105,7 @@ module PCPServerSDK
81
105
  # Calculates hash code according to all attributes.
82
106
  # @return [Integer] Hash code
83
107
  def hash
84
- [address_selection_at_pay_pal, fraud_net_id].hash
108
+ [address_selection_at_pay_pal, fraud_net_id, java_script_sdk_flow, action].hash
85
109
  end
86
110
 
87
111
  # Builds the object from hash
@@ -1,4 +1,4 @@
1
1
 
2
2
  module PCPServerSDK
3
- VERSION = '1.3.1'
3
+ VERSION = '1.4.0'
4
4
  end