@getopenpay/openpay-js 0.5.2 → 0.5.3-alpha.06a0f22
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.
- package/dist/{Resource-BCwzhHdr.js → Resource-CK2Ya-le.js} +2 -2
- package/dist/{SimpleSpanProcessor-chuJXVe5.js → SimpleSpanProcessor-58znmE0P.js} +6 -6
- package/dist/{detect-resources-BcZAWFxm.js → detect-resources-D2ACJqD_.js} +6 -6
- package/dist/{diag-api-DVWdaM_5.js → diag-api-Cw56CuP-.js} +1 -1
- package/dist/{index-C-ccmg0o.js → index-BJKhhsof.js} +4 -4
- package/dist/{index-D4LbNUEI.js → index-B_noCYmx.js} +5 -5
- package/dist/{index-BVbeGNGK.js → index-C8_kFe-5.js} +256 -257
- package/dist/{index-GU4B98Sc.js → index-ChHwzfeh.js} +1 -1
- package/dist/{index-G4yJVL8S.js → index-D6ZqlmfW.js} +1 -1
- package/dist/{index-B7lHYRY-.js → index-D87gCXop.js} +1 -1
- package/dist/{index-m-ctDxHJ.js → index-DWeD3UPb.js} +5 -5
- package/dist/{index-CqQHeM64.js → index-XJQEO5ew.js} +4 -4
- package/dist/{index-Ur3w_iVo.js → index-Z9RmMQ2Y.js} +4 -4
- package/dist/{index-d_a__Vrd.js → index-i48oQUdV.js} +1 -1
- package/dist/index.d.ts +2 -148
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/{metrics-api-DvG8X_VW.js → metrics-api-l6HjTe7E.js} +1 -1
- package/dist/{sdk-info-Yldl_Nh7.js → sdk-info-B2kwiOQV.js} +1 -1
- package/dist/{url-c22wWJRm.js → url-Gx7TzErP.js} +1 -1
- package/dist/{utils-Cog5OvOK.js → utils-CGfwMYwn.js} +1 -1
- package/dist/{utils-BlKzJ1p8.js → utils-DcEP2Fcf.js} +3 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as I, t as l, i as D, T as o, d as T, e as b } from "./index-
|
|
1
|
+
import { b as I, t as l, i as D, T as o, d as T, e as b } from "./index-C8_kFe-5.js";
|
|
2
2
|
var C = I("OpenTelemetry SDK Context Key SUPPRESS_TRACING");
|
|
3
3
|
function A(r) {
|
|
4
4
|
return r.getValue(C) === !0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as r, b as e, B as o, a as p, C as n, F as S, I as c, N as l, P as m, R as t, d, S as i, e as P, c as B, T as I } from "./SimpleSpanProcessor-
|
|
1
|
+
import { A as r, b as e, B as o, a as p, C as n, F as S, I as c, N as l, P as m, R as t, d, S as i, e as P, c as B, T as I } from "./SimpleSpanProcessor-58znmE0P.js";
|
|
2
2
|
export {
|
|
3
3
|
r as AlwaysOffSampler,
|
|
4
4
|
e as AlwaysOnSampler,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as diag } from "./diag-api-
|
|
1
|
+
import { d as diag } from "./diag-api-Cw56CuP-.js";
|
|
2
2
|
import { E as ExportResultCode, h as hexToBinary } from "./ExportResult-Bo1QOwfo.js";
|
|
3
3
|
import { c as commonjsGlobal } from "./_commonjsHelpers-DnMzE-71.js";
|
|
4
4
|
var OTLPExporterBase = (
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { m as s } from "./metrics-api-
|
|
2
|
-
import { t as d } from "./index-
|
|
3
|
-
import { l as u } from "./utils-
|
|
4
|
-
import { I as N, i as T, s as w, a as E } from "./utils-
|
|
5
|
-
import { d as f } from "./diag-api-
|
|
1
|
+
import { m as s } from "./metrics-api-l6HjTe7E.js";
|
|
2
|
+
import { t as d } from "./index-C8_kFe-5.js";
|
|
3
|
+
import { l as u } from "./utils-DcEP2Fcf.js";
|
|
4
|
+
import { I as N, i as T, s as w, a as E } from "./utils-DcEP2Fcf.js";
|
|
5
|
+
import { d as f } from "./diag-api-Cw56CuP-.js";
|
|
6
6
|
function l(e, r, t, o) {
|
|
7
7
|
for (var n = 0, a = e.length; n < a; n++) {
|
|
8
8
|
var i = e[n];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { R as l } from "./Resource-
|
|
2
|
-
import { d as ee } from "./Resource-
|
|
3
|
-
import { d as v } from "./diag-api-
|
|
4
|
-
import { e as A, f as m, g as b, h as w, S as D } from "./sdk-info-
|
|
1
|
+
import { R as l } from "./Resource-CK2Ya-le.js";
|
|
2
|
+
import { d as ee } from "./Resource-CK2Ya-le.js";
|
|
3
|
+
import { d as v } from "./diag-api-Cw56CuP-.js";
|
|
4
|
+
import { e as A, f as m, g as b, h as w, S as D } from "./sdk-info-B2kwiOQV.js";
|
|
5
5
|
var T = (
|
|
6
6
|
/** @class */
|
|
7
7
|
function() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { z as de, p as T, r as _e, w as ye, j as ve, n as he, y as me, dJ as ge, h as Se, dK as Ae, l as Ee, q as Te, i as Pe, m as Re, o as Oe, t as be, u as Ce } from "./url-
|
|
2
|
-
import { b as k, t as O, i as Y, T as b, d as Ie, c as B } from "./index-
|
|
3
|
-
import { d as _ } from "./diag-api-
|
|
1
|
+
import { z as de, p as T, r as _e, w as ye, j as ve, n as he, y as me, dJ as ge, h as Se, dK as Ae, l as Ee, q as Te, i as Pe, m as Re, o as Oe, t as be, u as Ce } from "./url-Gx7TzErP.js";
|
|
2
|
+
import { b as k, t as O, i as Y, T as b, d as Ie, c as B } from "./index-C8_kFe-5.js";
|
|
3
|
+
import { d as _ } from "./diag-api-Cw56CuP-.js";
|
|
4
4
|
import { h as X, E as je } from "./ExportResult-Bo1QOwfo.js";
|
|
5
|
-
import { D as Me, j as Ne, br as we, bs as De, bt as Le, b as xe, T as Ge, bu as Be, h as Ve, i as Ue, bv as He } from "./sdk-info-
|
|
5
|
+
import { D as Me, j as Ne, br as we, bs as De, bt as Le, b as xe, T as Ge, bu as Be, h as Ve, i as Ue, bv as He } from "./sdk-info-B2kwiOQV.js";
|
|
6
6
|
import { _ as Ke } from "./utils-BGeftTvk.js";
|
|
7
7
|
var p;
|
|
8
8
|
(function(e) {
|
package/dist/index.d.ts
CHANGED
|
@@ -550,13 +550,8 @@ declare interface LoopConnectConfig {
|
|
|
550
550
|
declare type LoopCryptoFlowCustomParams =
|
|
551
551
|
| {
|
|
552
552
|
customer: Omit<CustomerResponse, 'paymentMethods' | 'merchants' | 'dateCreated'>;
|
|
553
|
-
|
|
554
|
-
mode: '
|
|
555
|
-
success: true;
|
|
556
|
-
}
|
|
557
|
-
| {
|
|
558
|
-
customer: Omit<CustomerResponse, 'paymentMethods' | 'merchants' | 'dateCreated'>;
|
|
559
|
-
mode: 'setup';
|
|
553
|
+
paymentMethod: Omit<PaymentMethodResponse, 'customer' | 'dateCreated'>;
|
|
554
|
+
mode: 'setup' | 'payment' | 'subscription';
|
|
560
555
|
success: true;
|
|
561
556
|
}
|
|
562
557
|
| {
|
|
@@ -875,11 +870,6 @@ export declare class OpenPayForm {
|
|
|
875
870
|
updateCallbacks: (newCallbacks: AllCallbacks) => void;
|
|
876
871
|
}
|
|
877
872
|
|
|
878
|
-
/**
|
|
879
|
-
* @deprecated Use interface PayInCreatedEvent for data returned from the creation of a PayIn
|
|
880
|
-
*/
|
|
881
|
-
declare interface PayInCompleteEvent extends PayinResponse {}
|
|
882
|
-
|
|
883
873
|
declare enum PayInFailed {
|
|
884
874
|
// Create payment method
|
|
885
875
|
METHOD_CREATION_FAILED = 'methodCreationFailed',
|
|
@@ -903,109 +893,6 @@ declare interface PayInFailedEvent {
|
|
|
903
893
|
data: PayInFailedData;
|
|
904
894
|
}
|
|
905
895
|
|
|
906
|
-
declare interface PayinPaymentMethodResponse
|
|
907
|
-
extends Omit<PaymentMethodResponse, 'merchantId' | 'entityId' | 'dateCreated'> {
|
|
908
|
-
/**
|
|
909
|
-
* The status of the payment method
|
|
910
|
-
*/
|
|
911
|
-
status: 'ok' | 'insufficient_balance' | 'insufficient_authorization' | 'insufficient_balance_authorization';
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
declare interface PayinPayoutDestinationResponse
|
|
915
|
-
extends Omit<PayoutDestinationResponse, 'merchantId' | 'entityId' | 'isDefault' | 'dateCreated'> {}
|
|
916
|
-
|
|
917
|
-
declare interface PayinResponse {
|
|
918
|
-
/**
|
|
919
|
-
* The unique identifier for the payin
|
|
920
|
-
* @example "8f47c6e9-2b3a-4d5c-9f8e-1a2b3c4d5e6f"
|
|
921
|
-
*/
|
|
922
|
-
payinId: string;
|
|
923
|
-
/**
|
|
924
|
-
* The unique identifier of the merchant this payin is associated with
|
|
925
|
-
* @example "67e55044-10b1-426f-9247-bb680e5fe0c8"
|
|
926
|
-
*/
|
|
927
|
-
merchantId: string;
|
|
928
|
-
/**
|
|
929
|
-
* The amount to be paid, specified in either fiat or crypto based on amountType
|
|
930
|
-
* @example "100.00"
|
|
931
|
-
*/
|
|
932
|
-
amount: string;
|
|
933
|
-
/**
|
|
934
|
-
* The type of the amount, either "fiat" or "token"
|
|
935
|
-
* @example "fiat"
|
|
936
|
-
*/
|
|
937
|
-
amountType: 'fiat' | 'token';
|
|
938
|
-
/**
|
|
939
|
-
* The date the payment will take place, represented as a Unix timestamp
|
|
940
|
-
* @example 1716211200
|
|
941
|
-
*/
|
|
942
|
-
billDate: number;
|
|
943
|
-
/**
|
|
944
|
-
* The unique invoice identifier representing this payin transaction
|
|
945
|
-
* @example "1234567890abcdef"
|
|
946
|
-
*/
|
|
947
|
-
invoiceId: string;
|
|
948
|
-
/**
|
|
949
|
-
* (Optional) A description or note that provides additional context about this payin. This can be used to help identify or provide details about the payment for internal reference or customer communications.
|
|
950
|
-
* @example "Payment for Developer plan"
|
|
951
|
-
*/
|
|
952
|
-
description: string | null;
|
|
953
|
-
/**
|
|
954
|
-
* (Optional) The external invoice ID used to tie this payin to an invoice in an external system
|
|
955
|
-
* @example "1234567890abcdef"
|
|
956
|
-
*/
|
|
957
|
-
externalInvoiceRef: string | null;
|
|
958
|
-
/**
|
|
959
|
-
* The type of the payin, either "subscription" or "invoice"
|
|
960
|
-
* @example "subscription"
|
|
961
|
-
*/
|
|
962
|
-
payinType: 'subscription' | 'invoice';
|
|
963
|
-
/**
|
|
964
|
-
* The status of the payin, can be "scheduled", "pending", "completed", or "failed"
|
|
965
|
-
* @example "scheduled"
|
|
966
|
-
*/
|
|
967
|
-
payinStatus: 'scheduled' | 'pending' | 'completed' | 'failed' | 'canceled' | 'uncollectible' | 'draft';
|
|
968
|
-
/**
|
|
969
|
-
* The transaction details for the payin
|
|
970
|
-
*/
|
|
971
|
-
transaction: PayinTransactionResponse | null;
|
|
972
|
-
/**
|
|
973
|
-
* The payment method used for this payin
|
|
974
|
-
*/
|
|
975
|
-
paymentMethod: PayinPaymentMethodResponse;
|
|
976
|
-
/**
|
|
977
|
-
* The payout destination used for this payin
|
|
978
|
-
*/
|
|
979
|
-
payoutDestination: PayinPayoutDestinationResponse;
|
|
980
|
-
/**
|
|
981
|
-
* The date the payin record was created, represented as a Unix timestamp in seconds.
|
|
982
|
-
* @example 1716211200
|
|
983
|
-
*/
|
|
984
|
-
dateCreated: number;
|
|
985
|
-
}
|
|
986
|
-
|
|
987
|
-
declare interface PayinTransactionResponse {
|
|
988
|
-
/**
|
|
989
|
-
* The transaction id generated by the blockchain network when the transaction is processed
|
|
990
|
-
* @example "0xcfdfbb523c079e47e9a17ba236fa978257d4331e96ec43997e974b97522047fe"
|
|
991
|
-
*/
|
|
992
|
-
transactionId: string;
|
|
993
|
-
/**
|
|
994
|
-
* The URL to view this transaction in a blockchain explorer. The specific explorer URL depends on the blockchain network the transaction was processed on
|
|
995
|
-
* @example "https://etherscan.io/tx/0xcfdfbb523c079e47e9a17ba236fa978257d4331e96ec43997e974b97522047fe"
|
|
996
|
-
*/
|
|
997
|
-
transactionUrl: string;
|
|
998
|
-
/**
|
|
999
|
-
* The actual token amount that was transferred including all decimal places. For example - an amount of 1.99 USDC will result in a `amountTransferred` of "1990000"
|
|
1000
|
-
* @example "1990000"
|
|
1001
|
-
*/
|
|
1002
|
-
amountTransferred: string | null;
|
|
1003
|
-
/**
|
|
1004
|
-
* The exchange rate that was applied when the payment was processed on the blockchain
|
|
1005
|
-
*/
|
|
1006
|
-
exchangeRate: PaymentMethodTokenExchangeRate | null;
|
|
1007
|
-
}
|
|
1008
|
-
|
|
1009
896
|
declare type PaymentDataRequest = google.payments.api.PaymentDataRequest;
|
|
1010
897
|
|
|
1011
898
|
declare interface PaymentMethodPreAuthorization {
|
|
@@ -1119,39 +1006,6 @@ declare type PaymentRequestStatus = {
|
|
|
1119
1006
|
startFlow: (params?: PaymentRequestStartParams) => Promise<void>;
|
|
1120
1007
|
};
|
|
1121
1008
|
|
|
1122
|
-
declare interface PayoutDestinationResponse {
|
|
1123
|
-
/**
|
|
1124
|
-
* The unique identifier for the payout destination
|
|
1125
|
-
* @example "1234567890abcdef"
|
|
1126
|
-
*/
|
|
1127
|
-
payoutDestinationId: string;
|
|
1128
|
-
/**
|
|
1129
|
-
* The merchant ID associated with this payout destination
|
|
1130
|
-
* @example "1234567890abcdef"
|
|
1131
|
-
*/
|
|
1132
|
-
merchantId: string;
|
|
1133
|
-
/**
|
|
1134
|
-
* The blockchain network ID the payout destination is associated with
|
|
1135
|
-
* @example 1
|
|
1136
|
-
*/
|
|
1137
|
-
networkId: number;
|
|
1138
|
-
/**
|
|
1139
|
-
* The blockchain wallet address where payments will be sent. Must be a valid address for the specified network.
|
|
1140
|
-
* @example "0x1234567890abcdef"
|
|
1141
|
-
*/
|
|
1142
|
-
walletAddress: string;
|
|
1143
|
-
/**
|
|
1144
|
-
* Whether the payout destination is the default payout destination for the merchant.
|
|
1145
|
-
* @example true
|
|
1146
|
-
*/
|
|
1147
|
-
isDefault: boolean;
|
|
1148
|
-
/**
|
|
1149
|
-
* The date the payout destination record was created, represented as a Unix timestamp in seconds.
|
|
1150
|
-
* @example 1716211200
|
|
1151
|
-
*/
|
|
1152
|
-
dateCreated: number;
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
1009
|
declare type PaypalFlowCustomParams = {
|
|
1156
1010
|
isAnonymous?: boolean;
|
|
1157
1011
|
useRedirectFlow?: boolean;
|
package/dist/index.es.js
CHANGED