@greensecurity/javascript-sdk 0.44.0-beta.67 → 0.44.0-beta.69
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/commonjs/__tests__/vendors.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +6 -5
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +14 -13
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.d.ts +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.js +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/expand.d.ts +1 -0
- package/dist/commonjs/models/components/expand.d.ts.map +1 -1
- package/dist/commonjs/models/components/expand.js +1 -0
- package/dist/commonjs/models/components/expand.js.map +1 -1
- package/dist/commonjs/models/components/invoicetransaction.d.ts +10 -0
- package/dist/commonjs/models/components/invoicetransaction.d.ts.map +1 -1
- package/dist/commonjs/models/components/invoicetransaction.js +6 -0
- package/dist/commonjs/models/components/invoicetransaction.js.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorInvoiceDetails.d.ts +2 -0
- package/dist/commonjs/react-query/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorInvoiceDetails.js +2 -0
- package/dist/commonjs/react-query/vendorsGetVendorInvoiceDetails.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +1 -0
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +1 -0
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js +6 -5
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +14 -13
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.d.ts +1 -0
- package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.js +1 -0
- package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/expand.d.ts +1 -0
- package/dist/esm/models/components/expand.d.ts.map +1 -1
- package/dist/esm/models/components/expand.js +1 -0
- package/dist/esm/models/components/expand.js.map +1 -1
- package/dist/esm/models/components/invoicetransaction.d.ts +10 -0
- package/dist/esm/models/components/invoicetransaction.d.ts.map +1 -1
- package/dist/esm/models/components/invoicetransaction.js +6 -0
- package/dist/esm/models/components/invoicetransaction.js.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorInvoiceDetails.d.ts +2 -0
- package/dist/esm/react-query/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorInvoiceDetails.js +2 -0
- package/dist/esm/react-query/vendorsGetVendorInvoiceDetails.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +1 -0
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +1 -0
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/vendors.test.ts +1 -1
- package/src/__tests__/webhooks.test.ts +6 -5
- package/src/__tests__/zones.test.ts +14 -13
- package/src/funcs/vendorsGetVendorInvoiceDetails.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/expand.ts +1 -0
- package/src/models/components/invoicetransaction.ts +16 -0
- package/src/react-query/vendorsGetVendorInvoiceDetails.ts +2 -0
- package/src/sdk/vendors.ts +1 -0
|
@@ -28,6 +28,14 @@ export type InvoiceTransaction = {
|
|
|
28
28
|
creditId?: number | null | undefined;
|
|
29
29
|
transactionId?: string | null | undefined;
|
|
30
30
|
success?: boolean | null | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Email of who the transaction is attributed to — the credit's performer for credit-paid transactions, or the payment profile's owner for card payments. Only populated when `invoice_transactions.payee` is included in `expand`; `null` otherwise.
|
|
33
|
+
*/
|
|
34
|
+
payee?: string | null | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Last four digits of the card used to pay, when applicable. `null` for credit-paid transactions.
|
|
37
|
+
*/
|
|
38
|
+
cardLast4?: string | null | undefined;
|
|
31
39
|
};
|
|
32
40
|
|
|
33
41
|
/** @internal */
|
|
@@ -81,12 +89,15 @@ export const InvoiceTransaction$inboundSchema: z.ZodType<
|
|
|
81
89
|
credit_id: z.nullable(types.number()).optional(),
|
|
82
90
|
transaction_id: z.nullable(types.string()).optional(),
|
|
83
91
|
success: z.nullable(types.boolean()).optional(),
|
|
92
|
+
payee: z.nullable(types.string()).optional(),
|
|
93
|
+
card_last4: z.nullable(types.string()).optional(),
|
|
84
94
|
}).transform((v) => {
|
|
85
95
|
return remap$(v, {
|
|
86
96
|
"date_processed": "dateProcessed",
|
|
87
97
|
"payment_profile": "paymentProfile",
|
|
88
98
|
"credit_id": "creditId",
|
|
89
99
|
"transaction_id": "transactionId",
|
|
100
|
+
"card_last4": "cardLast4",
|
|
90
101
|
});
|
|
91
102
|
});
|
|
92
103
|
/** @internal */
|
|
@@ -97,6 +108,8 @@ export type InvoiceTransaction$Outbound = {
|
|
|
97
108
|
credit_id?: number | null | undefined;
|
|
98
109
|
transaction_id?: string | null | undefined;
|
|
99
110
|
success?: boolean | null | undefined;
|
|
111
|
+
payee?: string | null | undefined;
|
|
112
|
+
card_last4?: string | null | undefined;
|
|
100
113
|
};
|
|
101
114
|
|
|
102
115
|
/** @internal */
|
|
@@ -113,12 +126,15 @@ export const InvoiceTransaction$outboundSchema: z.ZodType<
|
|
|
113
126
|
creditId: z.nullable(z.number().int()).optional(),
|
|
114
127
|
transactionId: z.nullable(z.string()).optional(),
|
|
115
128
|
success: z.nullable(z.boolean()).optional(),
|
|
129
|
+
payee: z.nullable(z.string()).optional(),
|
|
130
|
+
cardLast4: z.nullable(z.string()).optional(),
|
|
116
131
|
}).transform((v) => {
|
|
117
132
|
return remap$(v, {
|
|
118
133
|
dateProcessed: "date_processed",
|
|
119
134
|
paymentProfile: "payment_profile",
|
|
120
135
|
creditId: "credit_id",
|
|
121
136
|
transactionId: "transaction_id",
|
|
137
|
+
cardLast4: "card_last4",
|
|
122
138
|
});
|
|
123
139
|
});
|
|
124
140
|
|
|
@@ -64,6 +64,7 @@ export type VendorsGetVendorInvoiceDetailsQueryError =
|
|
|
64
64
|
* invoice.line_items
|
|
65
65
|
* invoice.invoice_transactions
|
|
66
66
|
* invoice.may_pay_invoice
|
|
67
|
+
* invoice_transactions.payee
|
|
67
68
|
*/
|
|
68
69
|
export function useVendorsGetVendorInvoiceDetails(
|
|
69
70
|
request: operations.GetVendorInvoiceDetailsRequest,
|
|
@@ -97,6 +98,7 @@ export function useVendorsGetVendorInvoiceDetails(
|
|
|
97
98
|
* invoice.line_items
|
|
98
99
|
* invoice.invoice_transactions
|
|
99
100
|
* invoice.may_pay_invoice
|
|
101
|
+
* invoice_transactions.payee
|
|
100
102
|
*/
|
|
101
103
|
export function useVendorsGetVendorInvoiceDetailsSuspense(
|
|
102
104
|
request: operations.GetVendorInvoiceDetailsRequest,
|
package/src/sdk/vendors.ts
CHANGED
|
@@ -718,6 +718,7 @@ export class Vendors extends ClientSDK {
|
|
|
718
718
|
* invoice.line_items
|
|
719
719
|
* invoice.invoice_transactions
|
|
720
720
|
* invoice.may_pay_invoice
|
|
721
|
+
* invoice_transactions.payee
|
|
721
722
|
*/
|
|
722
723
|
async getVendorInvoiceDetails(
|
|
723
724
|
request: operations.GetVendorInvoiceDetailsRequest,
|