@pixelpay/capacitor-plugin 0.0.1

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.
@@ -0,0 +1,17 @@
1
+ require 'json'
2
+
3
+ package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
+
5
+ Pod::Spec.new do |s|
6
+ s.name = 'PixelpayCapacitorPlugin'
7
+ s.version = package['version']
8
+ s.summary = package['description']
9
+ s.license = package['license']
10
+ s.homepage = package['repository']['url']
11
+ s.author = package['author']
12
+ s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13
+ s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
14
+ s.ios.deployment_target = '12.0'
15
+ s.dependency 'Capacitor'
16
+ s.swift_version = '5.1'
17
+ end
package/README.md ADDED
@@ -0,0 +1,181 @@
1
+ # @pixelpay/capacitor-plugin
2
+
3
+ Native bridge with Capacitor plugin and PixelPaySDK
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @pixelpay/capacitor-plugin
9
+ npx cap sync
10
+ ```
11
+
12
+ ## API
13
+
14
+ <docgen-index>
15
+
16
+ * [`transactionDoSale(...)`](#transactiondosale)
17
+ * [`transactionDoAuth(...)`](#transactiondoauth)
18
+ * [`transactionDoCapture(...)`](#transactiondocapture)
19
+ * [`transactionDoVoid(...)`](#transactiondovoid)
20
+ * [`transactionGetStatus(...)`](#transactiongetstatus)
21
+ * [`tokenizationVaultCard(...)`](#tokenizationvaultcard)
22
+ * [`tokenizationUpdateCard(...)`](#tokenizationupdatecard)
23
+ * [`tokenizationShowCard(...)`](#tokenizationshowcard)
24
+ * [`tokenizationShowCards(...)`](#tokenizationshowcards)
25
+ * [`tokenizationDeleteCard(...)`](#tokenizationdeletecard)
26
+
27
+ </docgen-index>
28
+
29
+ <docgen-api>
30
+ <!--Update the source file JSDoc comments and rerun docgen to update the docs below-->
31
+
32
+ ### transactionDoSale(...)
33
+
34
+ ```typescript
35
+ transactionDoSale(options: { settings: string; request: string; }) => Promise<{ status: number; response: string; }>
36
+ ```
37
+
38
+ | Param | Type |
39
+ | ------------- | --------------------------------------------------- |
40
+ | **`options`** | <code>{ settings: string; request: string; }</code> |
41
+
42
+ **Returns:** <code>Promise&lt;{ status: number; response: string; }&gt;</code>
43
+
44
+ --------------------
45
+
46
+
47
+ ### transactionDoAuth(...)
48
+
49
+ ```typescript
50
+ transactionDoAuth(options: { settings: string; request: string; }) => Promise<{ status: number; response: string; }>
51
+ ```
52
+
53
+ | Param | Type |
54
+ | ------------- | --------------------------------------------------- |
55
+ | **`options`** | <code>{ settings: string; request: string; }</code> |
56
+
57
+ **Returns:** <code>Promise&lt;{ status: number; response: string; }&gt;</code>
58
+
59
+ --------------------
60
+
61
+
62
+ ### transactionDoCapture(...)
63
+
64
+ ```typescript
65
+ transactionDoCapture(options: { settings: string; request: string; }) => Promise<{ status: number; response: string; }>
66
+ ```
67
+
68
+ | Param | Type |
69
+ | ------------- | --------------------------------------------------- |
70
+ | **`options`** | <code>{ settings: string; request: string; }</code> |
71
+
72
+ **Returns:** <code>Promise&lt;{ status: number; response: string; }&gt;</code>
73
+
74
+ --------------------
75
+
76
+
77
+ ### transactionDoVoid(...)
78
+
79
+ ```typescript
80
+ transactionDoVoid(options: { settings: string; request: string; }) => Promise<{ status: number; response: string; }>
81
+ ```
82
+
83
+ | Param | Type |
84
+ | ------------- | --------------------------------------------------- |
85
+ | **`options`** | <code>{ settings: string; request: string; }</code> |
86
+
87
+ **Returns:** <code>Promise&lt;{ status: number; response: string; }&gt;</code>
88
+
89
+ --------------------
90
+
91
+
92
+ ### transactionGetStatus(...)
93
+
94
+ ```typescript
95
+ transactionGetStatus(options: { settings: string; request: string; }) => Promise<{ status: number; response: string; }>
96
+ ```
97
+
98
+ | Param | Type |
99
+ | ------------- | --------------------------------------------------- |
100
+ | **`options`** | <code>{ settings: string; request: string; }</code> |
101
+
102
+ **Returns:** <code>Promise&lt;{ status: number; response: string; }&gt;</code>
103
+
104
+ --------------------
105
+
106
+
107
+ ### tokenizationVaultCard(...)
108
+
109
+ ```typescript
110
+ tokenizationVaultCard(options: { settings: string; request: string; }) => Promise<{ status: number; response: string; }>
111
+ ```
112
+
113
+ | Param | Type |
114
+ | ------------- | --------------------------------------------------- |
115
+ | **`options`** | <code>{ settings: string; request: string; }</code> |
116
+
117
+ **Returns:** <code>Promise&lt;{ status: number; response: string; }&gt;</code>
118
+
119
+ --------------------
120
+
121
+
122
+ ### tokenizationUpdateCard(...)
123
+
124
+ ```typescript
125
+ tokenizationUpdateCard(options: { settings: string; token: string; request: string; }) => Promise<{ status: number; response: string; }>
126
+ ```
127
+
128
+ | Param | Type |
129
+ | ------------- | ------------------------------------------------------------------ |
130
+ | **`options`** | <code>{ settings: string; token: string; request: string; }</code> |
131
+
132
+ **Returns:** <code>Promise&lt;{ status: number; response: string; }&gt;</code>
133
+
134
+ --------------------
135
+
136
+
137
+ ### tokenizationShowCard(...)
138
+
139
+ ```typescript
140
+ tokenizationShowCard(options: { settings: string; token: string; }) => Promise<{ status: number; response: string; }>
141
+ ```
142
+
143
+ | Param | Type |
144
+ | ------------- | ------------------------------------------------- |
145
+ | **`options`** | <code>{ settings: string; token: string; }</code> |
146
+
147
+ **Returns:** <code>Promise&lt;{ status: number; response: string; }&gt;</code>
148
+
149
+ --------------------
150
+
151
+
152
+ ### tokenizationShowCards(...)
153
+
154
+ ```typescript
155
+ tokenizationShowCards(options: { settings: string; tokens: string; }) => Promise<{ status: number; response: string; }>
156
+ ```
157
+
158
+ | Param | Type |
159
+ | ------------- | -------------------------------------------------- |
160
+ | **`options`** | <code>{ settings: string; tokens: string; }</code> |
161
+
162
+ **Returns:** <code>Promise&lt;{ status: number; response: string; }&gt;</code>
163
+
164
+ --------------------
165
+
166
+
167
+ ### tokenizationDeleteCard(...)
168
+
169
+ ```typescript
170
+ tokenizationDeleteCard(options: { settings: string; token: string; }) => Promise<{ status: number; response: string; }>
171
+ ```
172
+
173
+ | Param | Type |
174
+ | ------------- | ------------------------------------------------- |
175
+ | **`options`** | <code>{ settings: string; token: string; }</code> |
176
+
177
+ **Returns:** <code>Promise&lt;{ status: number; response: string; }&gt;</code>
178
+
179
+ --------------------
180
+
181
+ </docgen-api>
@@ -0,0 +1,58 @@
1
+ ext {
2
+ junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.1'
3
+ androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.2.0'
4
+ androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.2'
5
+ androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.3.0'
6
+ }
7
+
8
+ buildscript {
9
+ repositories {
10
+ google()
11
+ jcenter()
12
+ }
13
+ dependencies {
14
+ classpath 'com.android.tools.build:gradle:4.2.1'
15
+ }
16
+ }
17
+
18
+ apply plugin: 'com.android.library'
19
+
20
+ android {
21
+ compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 30
22
+ defaultConfig {
23
+ minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 21
24
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 30
25
+ versionCode 1
26
+ versionName "1.0"
27
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
28
+ }
29
+ buildTypes {
30
+ release {
31
+ minifyEnabled false
32
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
33
+ }
34
+ }
35
+ lintOptions {
36
+ abortOnError false
37
+ }
38
+ compileOptions {
39
+ sourceCompatibility JavaVersion.VERSION_1_8
40
+ targetCompatibility JavaVersion.VERSION_1_8
41
+ }
42
+ }
43
+
44
+ repositories {
45
+ google()
46
+ mavenCentral()
47
+ jcenter()
48
+ }
49
+
50
+
51
+ dependencies {
52
+ implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
53
+ implementation project(':capacitor-android')
54
+ implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
55
+ testImplementation "junit:junit:$junitVersion"
56
+ androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
57
+ androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
58
+ }
@@ -0,0 +1,3 @@
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
+ package="com.pixel.plugins.capacitor">
3
+ </manifest>
@@ -0,0 +1,142 @@
1
+ package com.pixel.plugins.capacitor;
2
+
3
+ import com.getcapacitor.JSObject;
4
+ import com.getcapacitor.Plugin;
5
+ import com.getcapacitor.PluginCall;
6
+ import com.getcapacitor.PluginMethod;
7
+ import com.getcapacitor.annotation.CapacitorPlugin;
8
+
9
+ import com.pixel.sdk.base.Helpers;
10
+ import com.pixel.sdk.base.Response;
11
+ import com.pixel.sdk.mobile.services.Tokenization;
12
+ import com.pixel.sdk.mobile.services.Transaction;
13
+ import com.pixel.sdk.models.Settings;
14
+ import com.pixel.sdk.requests.AuthTransaction;
15
+ import com.pixel.sdk.requests.CaptureTransaction;
16
+ import com.pixel.sdk.requests.CardTokenization;
17
+ import com.pixel.sdk.requests.SaleTransaction;
18
+ import com.pixel.sdk.requests.StatusTransaction;
19
+ import com.pixel.sdk.requests.VoidTransaction;
20
+
21
+ @CapacitorPlugin(name = "PixelPaySDK")
22
+ public class PixelPaySDKPlugin extends Plugin {
23
+ private static final String SDK_ID = "sdk-ionic";
24
+
25
+ private Settings buildSettings(String settings) {
26
+ final Settings model = Helpers.jsonToObject(settings, Settings.class);
27
+ model.sdk = PixelPaySDKPlugin.SDK_ID;
28
+
29
+ return model;
30
+ }
31
+
32
+ private Transaction getTransactionService(String settings) {
33
+ return (new Transaction(this.buildSettings(settings), getActivity()));
34
+ }
35
+
36
+ private Tokenization getTokenizationService(String settings) {
37
+ return (new Tokenization(this.buildSettings(settings), getActivity()));
38
+ }
39
+
40
+ private void parseSuccess(PluginCall call, Response response) {
41
+ JSObject map = new JSObject();
42
+
43
+ map.put("status", String.valueOf(response.getStatus()));
44
+ map.put("response", response.toJson());
45
+
46
+ call.resolve(map);
47
+ }
48
+
49
+ private void parseError(PluginCall call, Exception error) {
50
+ call.reject(error.getLocalizedMessage());
51
+ }
52
+
53
+ @PluginMethod
54
+ public void transactionDoSale(PluginCall call) {
55
+ this.getTransactionService(call.getString("settings"))
56
+ .doSale(Helpers.jsonToObject(call.getString("request"), SaleTransaction.class))
57
+ .then(response -> this.parseSuccess(call, response))
58
+ .thenCatch(err -> this.parseError(call, err))
59
+ .start();
60
+ }
61
+
62
+ @PluginMethod
63
+ public void transactionDoAuth(PluginCall call) {
64
+ this.getTransactionService(call.getString("settings"))
65
+ .doAuth(Helpers.jsonToObject(call.getString("request"), AuthTransaction.class))
66
+ .then(response -> this.parseSuccess(call, response))
67
+ .thenCatch(err -> this.parseError(call, err))
68
+ .start();
69
+ }
70
+
71
+ @PluginMethod
72
+ public void transactionDoCapture(PluginCall call) {
73
+ this.getTransactionService(call.getString("settings"))
74
+ .doCapture(Helpers.jsonToObject(call.getString("request"), CaptureTransaction.class))
75
+ .then(response -> this.parseSuccess(call, response))
76
+ .thenCatch(err -> this.parseError(call, err))
77
+ .start();
78
+ }
79
+
80
+ @PluginMethod
81
+ public void transactionDoVoid(PluginCall call) {
82
+ this.getTransactionService(call.getString("settings"))
83
+ .doVoid(Helpers.jsonToObject(call.getString("request"), VoidTransaction.class))
84
+ .then(response -> this.parseSuccess(call, response))
85
+ .thenCatch(err -> this.parseError(call, err))
86
+ .start();
87
+ }
88
+
89
+ @PluginMethod
90
+ public void transactionGetStatus(PluginCall call) {
91
+ this.getTransactionService(call.getString("settings"))
92
+ .getStatus(Helpers.jsonToObject(call.getString("request"), StatusTransaction.class))
93
+ .then(response -> this.parseSuccess(call, response))
94
+ .thenCatch(err -> this.parseError(call, err))
95
+ .start();
96
+ }
97
+
98
+ @PluginMethod
99
+ public void tokenizationVaultCard(PluginCall call) {
100
+ this.getTokenizationService(call.getString("settings"))
101
+ .vaultCard(Helpers.jsonToObject(call.getString("request"), CardTokenization.class))
102
+ .then(response -> this.parseSuccess(call, response))
103
+ .thenCatch(err -> this.parseError(call, err))
104
+ .start();
105
+ }
106
+
107
+ @PluginMethod
108
+ public void tokenizationUpdateCard(PluginCall call) {
109
+ this.getTokenizationService(call.getString("settings"))
110
+ .updateCard(call.getString("token"), Helpers.jsonToObject(call.getString("request"), CardTokenization.class))
111
+ .then(response -> this.parseSuccess(call, response))
112
+ .thenCatch(err -> this.parseError(call, err))
113
+ .start();
114
+ }
115
+
116
+ @PluginMethod
117
+ public void tokenizationShowCard(PluginCall call) {
118
+ this.getTokenizationService(call.getString("settings"))
119
+ .showCard(call.getString("token"))
120
+ .then(response -> this.parseSuccess(call, response))
121
+ .thenCatch(err -> this.parseError(call, err))
122
+ .start();
123
+ }
124
+
125
+ @PluginMethod
126
+ public void tokenizationShowCards(PluginCall call) {
127
+ this.getTokenizationService(call.getString("settings"))
128
+ .showCards(call.getString("tokens").split("|"))
129
+ .then(response -> this.parseSuccess(call, response))
130
+ .thenCatch(err -> this.parseError(call, err))
131
+ .start();
132
+ }
133
+
134
+ @PluginMethod
135
+ public void tokenizationDeleteCard(PluginCall call) {
136
+ this.getTokenizationService(call.getString("settings"))
137
+ .deleteCard(call.getString("token"))
138
+ .then(response -> this.parseSuccess(call, response))
139
+ .thenCatch(err -> this.parseError(call, err))
140
+ .start();
141
+ }
142
+ }
File without changes
package/dist/docs.json ADDED
@@ -0,0 +1,175 @@
1
+ {
2
+ "api": {
3
+ "name": "PixelPaySDKPlugin",
4
+ "slug": "pixelpaysdkplugin",
5
+ "docs": "",
6
+ "tags": [],
7
+ "methods": [
8
+ {
9
+ "name": "transactionDoSale",
10
+ "signature": "(options: { settings: string; request: string; }) => Promise<{ status: number; response: string; }>",
11
+ "parameters": [
12
+ {
13
+ "name": "options",
14
+ "docs": "",
15
+ "type": "{ settings: string; request: string; }"
16
+ }
17
+ ],
18
+ "returns": "Promise<{ status: number; response: string; }>",
19
+ "tags": [],
20
+ "docs": "",
21
+ "complexTypes": [],
22
+ "slug": "transactiondosale"
23
+ },
24
+ {
25
+ "name": "transactionDoAuth",
26
+ "signature": "(options: { settings: string; request: string; }) => Promise<{ status: number; response: string; }>",
27
+ "parameters": [
28
+ {
29
+ "name": "options",
30
+ "docs": "",
31
+ "type": "{ settings: string; request: string; }"
32
+ }
33
+ ],
34
+ "returns": "Promise<{ status: number; response: string; }>",
35
+ "tags": [],
36
+ "docs": "",
37
+ "complexTypes": [],
38
+ "slug": "transactiondoauth"
39
+ },
40
+ {
41
+ "name": "transactionDoCapture",
42
+ "signature": "(options: { settings: string; request: string; }) => Promise<{ status: number; response: string; }>",
43
+ "parameters": [
44
+ {
45
+ "name": "options",
46
+ "docs": "",
47
+ "type": "{ settings: string; request: string; }"
48
+ }
49
+ ],
50
+ "returns": "Promise<{ status: number; response: string; }>",
51
+ "tags": [],
52
+ "docs": "",
53
+ "complexTypes": [],
54
+ "slug": "transactiondocapture"
55
+ },
56
+ {
57
+ "name": "transactionDoVoid",
58
+ "signature": "(options: { settings: string; request: string; }) => Promise<{ status: number; response: string; }>",
59
+ "parameters": [
60
+ {
61
+ "name": "options",
62
+ "docs": "",
63
+ "type": "{ settings: string; request: string; }"
64
+ }
65
+ ],
66
+ "returns": "Promise<{ status: number; response: string; }>",
67
+ "tags": [],
68
+ "docs": "",
69
+ "complexTypes": [],
70
+ "slug": "transactiondovoid"
71
+ },
72
+ {
73
+ "name": "transactionGetStatus",
74
+ "signature": "(options: { settings: string; request: string; }) => Promise<{ status: number; response: string; }>",
75
+ "parameters": [
76
+ {
77
+ "name": "options",
78
+ "docs": "",
79
+ "type": "{ settings: string; request: string; }"
80
+ }
81
+ ],
82
+ "returns": "Promise<{ status: number; response: string; }>",
83
+ "tags": [],
84
+ "docs": "",
85
+ "complexTypes": [],
86
+ "slug": "transactiongetstatus"
87
+ },
88
+ {
89
+ "name": "tokenizationVaultCard",
90
+ "signature": "(options: { settings: string; request: string; }) => Promise<{ status: number; response: string; }>",
91
+ "parameters": [
92
+ {
93
+ "name": "options",
94
+ "docs": "",
95
+ "type": "{ settings: string; request: string; }"
96
+ }
97
+ ],
98
+ "returns": "Promise<{ status: number; response: string; }>",
99
+ "tags": [],
100
+ "docs": "",
101
+ "complexTypes": [],
102
+ "slug": "tokenizationvaultcard"
103
+ },
104
+ {
105
+ "name": "tokenizationUpdateCard",
106
+ "signature": "(options: { settings: string; token: string; request: string; }) => Promise<{ status: number; response: string; }>",
107
+ "parameters": [
108
+ {
109
+ "name": "options",
110
+ "docs": "",
111
+ "type": "{ settings: string; token: string; request: string; }"
112
+ }
113
+ ],
114
+ "returns": "Promise<{ status: number; response: string; }>",
115
+ "tags": [],
116
+ "docs": "",
117
+ "complexTypes": [],
118
+ "slug": "tokenizationupdatecard"
119
+ },
120
+ {
121
+ "name": "tokenizationShowCard",
122
+ "signature": "(options: { settings: string; token: string; }) => Promise<{ status: number; response: string; }>",
123
+ "parameters": [
124
+ {
125
+ "name": "options",
126
+ "docs": "",
127
+ "type": "{ settings: string; token: string; }"
128
+ }
129
+ ],
130
+ "returns": "Promise<{ status: number; response: string; }>",
131
+ "tags": [],
132
+ "docs": "",
133
+ "complexTypes": [],
134
+ "slug": "tokenizationshowcard"
135
+ },
136
+ {
137
+ "name": "tokenizationShowCards",
138
+ "signature": "(options: { settings: string; tokens: string; }) => Promise<{ status: number; response: string; }>",
139
+ "parameters": [
140
+ {
141
+ "name": "options",
142
+ "docs": "",
143
+ "type": "{ settings: string; tokens: string; }"
144
+ }
145
+ ],
146
+ "returns": "Promise<{ status: number; response: string; }>",
147
+ "tags": [],
148
+ "docs": "",
149
+ "complexTypes": [],
150
+ "slug": "tokenizationshowcards"
151
+ },
152
+ {
153
+ "name": "tokenizationDeleteCard",
154
+ "signature": "(options: { settings: string; token: string; }) => Promise<{ status: number; response: string; }>",
155
+ "parameters": [
156
+ {
157
+ "name": "options",
158
+ "docs": "",
159
+ "type": "{ settings: string; token: string; }"
160
+ }
161
+ ],
162
+ "returns": "Promise<{ status: number; response: string; }>",
163
+ "tags": [],
164
+ "docs": "",
165
+ "complexTypes": [],
166
+ "slug": "tokenizationdeletecard"
167
+ }
168
+ ],
169
+ "properties": []
170
+ },
171
+ "interfaces": [],
172
+ "enums": [],
173
+ "typeAliases": [],
174
+ "pluginConfigs": []
175
+ }
@@ -0,0 +1,73 @@
1
+ export interface PixelPaySDKPlugin {
2
+ transactionDoSale(options: {
3
+ settings: string;
4
+ request: string;
5
+ }): Promise<{
6
+ status: number;
7
+ response: string;
8
+ }>;
9
+ transactionDoAuth(options: {
10
+ settings: string;
11
+ request: string;
12
+ }): Promise<{
13
+ status: number;
14
+ response: string;
15
+ }>;
16
+ transactionDoCapture(options: {
17
+ settings: string;
18
+ request: string;
19
+ }): Promise<{
20
+ status: number;
21
+ response: string;
22
+ }>;
23
+ transactionDoVoid(options: {
24
+ settings: string;
25
+ request: string;
26
+ }): Promise<{
27
+ status: number;
28
+ response: string;
29
+ }>;
30
+ transactionGetStatus(options: {
31
+ settings: string;
32
+ request: string;
33
+ }): Promise<{
34
+ status: number;
35
+ response: string;
36
+ }>;
37
+ tokenizationVaultCard(options: {
38
+ settings: string;
39
+ request: string;
40
+ }): Promise<{
41
+ status: number;
42
+ response: string;
43
+ }>;
44
+ tokenizationUpdateCard(options: {
45
+ settings: string;
46
+ token: string;
47
+ request: string;
48
+ }): Promise<{
49
+ status: number;
50
+ response: string;
51
+ }>;
52
+ tokenizationShowCard(options: {
53
+ settings: string;
54
+ token: string;
55
+ }): Promise<{
56
+ status: number;
57
+ response: string;
58
+ }>;
59
+ tokenizationShowCards(options: {
60
+ settings: string;
61
+ tokens: string;
62
+ }): Promise<{
63
+ status: number;
64
+ response: string;
65
+ }>;
66
+ tokenizationDeleteCard(options: {
67
+ settings: string;
68
+ token: string;
69
+ }): Promise<{
70
+ status: number;
71
+ response: string;
72
+ }>;
73
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=definitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface PixelPaySDKPlugin {\n\ttransactionDoSale(options: { settings: string, request: string }): Promise<{ status: number, response: string }>;\n\ttransactionDoAuth(options: { settings: string, request: string }): Promise<{ status: number, response: string }>;\n\ttransactionDoCapture(options: { settings: string, request: string }): Promise<{ status: number, response: string }>;\n\ttransactionDoVoid(options: { settings: string, request: string }): Promise<{ status: number, response: string }>;\n\ttransactionGetStatus(options: { settings: string, request: string }): Promise<{ status: number, response: string }>;\n\n\ttokenizationVaultCard(options: { settings: string, request: string }): Promise<{ status: number, response: string }>;\n\ttokenizationUpdateCard(options: { settings: string, token: string, request: string }): Promise<{ status: number, response: string }>;\n\ttokenizationShowCard(options: { settings: string, token: string }): Promise<{ status: number, response: string }>;\n\ttokenizationShowCards(options: { settings: string, tokens: string }): Promise<{ status: number, response: string }>;\n\ttokenizationDeleteCard(options: { settings: string, token: string }): Promise<{ status: number, response: string }>;\n}\n"]}