react-native-tpay 1.3.1 → 1.3.4

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.
@@ -19,7 +19,7 @@ final class TransactionConfiguration {
19
19
 
20
20
  let payerContext = makeTransactionPayerContext(from: signleTransaction)
21
21
 
22
- return SingleTransaction(amount: signleTransaction.amount, description: signleTransaction.description, payerContext: payerContext)
22
+ return SingleTransaction(amount: signleTransaction.amount, description: signleTransaction.description, hiddenDescription: signleTransaction.hiddenDescription, payerContext: payerContext)
23
23
  }
24
24
 
25
25
  static func cardTokenTransaction(transactionConfiguration: String) -> Transaction? {
@@ -28,7 +28,7 @@ final class TransactionConfiguration {
28
28
  return nil
29
29
  }
30
30
  let payerContext = makeTokenPayerContext(from: tokenPayment)
31
- return SingleTransaction(amount: tokenPayment.amount, description: tokenPayment.description, payerContext: payerContext)
31
+ return SingleTransaction(amount: tokenPayment.amount, description: tokenPayment.description, hiddenDescription: tokenPayment.hiddenDescription, payerContext: payerContext)
32
32
  }
33
33
 
34
34
  static func addCard(tokenisationConfiguration: String) -> TokenizationData? {
@@ -62,6 +62,7 @@ final class TransactionConfiguration {
62
62
  return .init(amount: cardPayment.paymentDetails.amount,
63
63
  description: cardPayment.paymentDetails.description,
64
64
  payerContext: .init(payer: payer),
65
+ hiddenDescription: cardPayment.paymentDetails.hiddenDescription,
65
66
  paymentChannel: paymentChannel,
66
67
  card: card,
67
68
  cardToken: cardToken,
@@ -81,6 +82,7 @@ final class TransactionConfiguration {
81
82
  return .init(amount: blikPayment.paymentDetails.amount,
82
83
  description: blikPayment.paymentDetails.description,
83
84
  payerContext: .init(payer: payer),
85
+ hiddenDescription: blikPayment.paymentDetails.hiddenDescription,
84
86
  token: blikPayment.code,
85
87
  alias: blikPayment.alias?.value,
86
88
  paymentChannel: paymentChannel,
@@ -100,6 +102,7 @@ final class TransactionConfiguration {
100
102
  return .init(amount: bankPayment.paymentDetails.amount,
101
103
  description: bankPayment.paymentDetails.description,
102
104
  payerContext: .init(payer: payer),
105
+ hiddenDescription: bankPayment.paymentDetails.hiddenDescription,
103
106
  paymentChannel: paymentChannel,
104
107
  callbacks: callbacks)
105
108
  }
@@ -117,6 +120,7 @@ final class TransactionConfiguration {
117
120
  return .init(amount: digitalWalletPayment.paymentDetails.amount,
118
121
  description: digitalWalletPayment.paymentDetails.description,
119
122
  payerContext: .init(payer: payer),
123
+ hiddenDescription: digitalWalletPayment.paymentDetails.hiddenDescription,
120
124
  paymentChannel: paymentChannel,
121
125
  token: digitalWalletPayment.applePayToken,
122
126
  callbacks: callbacks)
@@ -135,6 +139,7 @@ final class TransactionConfiguration {
135
139
  return .init(amount: payPoPayment.paymentDetails.amount,
136
140
  description: payPoPayment.paymentDetails.description,
137
141
  payerContext: .init(payer: payer),
142
+ hiddenDescription: payPoPayment.paymentDetails.hiddenDescription,
138
143
  paymentChannel: paymentChannel,
139
144
  callbacks: callbacks)
140
145
  }
@@ -7,6 +7,7 @@ struct BankPayment: Transaction {
7
7
  let amount: Double
8
8
  let description: String
9
9
  let payerContext: PayerContext?
10
+ let hiddenDescription: String?
10
11
  let paymentChannel: Headless.Models.PaymentChannel
11
12
  let callbacks: CallbacksConfiguration
12
13
  }
@@ -7,6 +7,7 @@ struct BlikPayment: Transaction {
7
7
  let amount: Double
8
8
  let description: String
9
9
  let payerContext: PayerContext?
10
+ let hiddenDescription: String?
10
11
  let token: String?
11
12
  let alias: String?
12
13
  let paymentChannel: Headless.Models.PaymentChannel
@@ -7,6 +7,7 @@ struct CardPayment: Transaction {
7
7
  let amount: Double
8
8
  let description: String
9
9
  let payerContext: PayerContext?
10
+ let hiddenDescription: String?
10
11
  let paymentChannel: Headless.Models.PaymentChannel
11
12
  let card: Headless.Models.Card?
12
13
  let cardToken: Headless.Models.CardToken?
@@ -7,6 +7,7 @@ struct DigitalWalletPayment: Transaction {
7
7
  let amount: Double
8
8
  let description: String
9
9
  let payerContext: PayerContext?
10
+ let hiddenDescription: String?
10
11
  let paymentChannel: Headless.Models.PaymentChannel
11
12
  let token: String
12
13
  let callbacks: CallbacksConfiguration
@@ -7,6 +7,7 @@ struct PayPoPayment: Transaction {
7
7
  let amount: Double
8
8
  let description: String
9
9
  let payerContext: PayerContext?
10
+ let hiddenDescription: String?
10
11
  let paymentChannel: Headless.Models.PaymentChannel
11
12
  let callbacks: CallbacksConfiguration
12
13
  }
@@ -6,5 +6,6 @@ extension Transportation {
6
6
 
7
7
  let amount: Double
8
8
  let description: String
9
+ let hiddenDescription: String?
9
10
  }
10
11
  }
@@ -6,6 +6,7 @@ extension Transportation {
6
6
 
7
7
  let amount: Double
8
8
  let description: String
9
+ let hiddenDescription: String?
9
10
  let payerContext: PayerContext?
10
11
  }
11
12
  }
@@ -7,6 +7,7 @@ extension Transportation {
7
7
  let cardToken: String
8
8
  let amount: Double
9
9
  let description: String
10
+ let hiddenDescription: String?
10
11
  let payer: Payer?
11
12
  }
12
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-tpay",
3
- "version": "1.3.1",
3
+ "version": "1.3.4",
4
4
  "description": "The Tpay SDK empowers your app to seamlessly integrate Tpay’s payment functionalities, providing a comprehensive and developer-friendly solution for managing payments.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -38,5 +38,5 @@ Pod::Spec.new do |s|
38
38
  s.dependency "ReactCommon/turbomodule/core"
39
39
  end
40
40
  end
41
- s.dependency "Tpay-SDK", "1.3.0"
41
+ s.dependency "Tpay-SDK", "1.3.1"
42
42
  end