@gr4vy/sdk 2.3.6 → 2.3.7
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/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/paypaloptions.d.ts +25 -0
- package/models/components/paypaloptions.d.ts.map +1 -1
- package/models/components/paypaloptions.js +9 -0
- package/models/components/paypaloptions.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/paypaloptions.ts +34 -0
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -44,8 +44,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
44
44
|
export declare const SDK_METADATA: {
|
|
45
45
|
readonly language: "typescript";
|
|
46
46
|
readonly openapiDocVersion: "1.0.0";
|
|
47
|
-
readonly sdkVersion: "2.3.
|
|
48
|
-
readonly genVersion: "2.
|
|
49
|
-
readonly userAgent: "speakeasy-sdk/typescript 2.3.
|
|
47
|
+
readonly sdkVersion: "2.3.7";
|
|
48
|
+
readonly genVersion: "2.911.0";
|
|
49
|
+
readonly userAgent: "speakeasy-sdk/typescript 2.3.7 2.911.0 1.0.0 @gr4vy/sdk";
|
|
50
50
|
};
|
|
51
51
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -37,8 +37,8 @@ function serverURLFromOptions(options) {
|
|
|
37
37
|
exports.SDK_METADATA = {
|
|
38
38
|
language: "typescript",
|
|
39
39
|
openapiDocVersion: "1.0.0",
|
|
40
|
-
sdkVersion: "2.3.
|
|
41
|
-
genVersion: "2.
|
|
42
|
-
userAgent: "speakeasy-sdk/typescript 2.3.
|
|
40
|
+
sdkVersion: "2.3.7",
|
|
41
|
+
genVersion: "2.911.0",
|
|
42
|
+
userAgent: "speakeasy-sdk/typescript 2.3.7 2.911.0 1.0.0 @gr4vy/sdk",
|
|
43
43
|
};
|
|
44
44
|
//# sourceMappingURL=config.js.map
|
|
@@ -16,6 +16,26 @@ export type PaypalOptions = {
|
|
|
16
16
|
* Shipping information to be passed to the PayPal API.
|
|
17
17
|
*/
|
|
18
18
|
shipping?: PaypalShippingOptions | null | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Customizes the PayPal Checkout button text. Use `PAY_NOW` to show a pay now button, or `CONTINUE` to show a continue button for deferred payments.
|
|
21
|
+
*/
|
|
22
|
+
userAction?: string | null | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Controls the shipping address display in the PayPal Checkout flow. Use `GET_FROM_FILE` to use the shipping address from the PayPal account, `NO_SHIPPING` to hide shipping address fields, or `SET_PROVIDED_ADDRESS` to use the shipping address provided in the request.
|
|
25
|
+
*/
|
|
26
|
+
shippingPreference?: string | null | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* The merchant brand name that appears in the PayPal Checkout flow. Maximum 127 characters.
|
|
29
|
+
*/
|
|
30
|
+
brandName?: string | null | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The type of landing page to display on the PayPal Checkout. Use `LOGIN` to show the PayPal login page, `GUEST_CHECKOUT` to show the guest checkout page, or `NO_PREFERENCE` to let PayPal decide.
|
|
33
|
+
*/
|
|
34
|
+
landingPage?: string | null | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* The BCP 47 locale used to localize the PayPal Checkout page. For example, `en-US` or `fr-FR`.
|
|
37
|
+
*/
|
|
38
|
+
locale?: string | null | undefined;
|
|
19
39
|
};
|
|
20
40
|
/** @internal */
|
|
21
41
|
export type PaypalOptions$Outbound = {
|
|
@@ -24,6 +44,11 @@ export type PaypalOptions$Outbound = {
|
|
|
24
44
|
[k: string]: string;
|
|
25
45
|
}> | null | undefined;
|
|
26
46
|
shipping?: PaypalShippingOptions$Outbound | null | undefined;
|
|
47
|
+
user_action?: string | null | undefined;
|
|
48
|
+
shipping_preference?: string | null | undefined;
|
|
49
|
+
brand_name?: string | null | undefined;
|
|
50
|
+
landing_page?: string | null | undefined;
|
|
51
|
+
locale?: string | null | undefined;
|
|
27
52
|
};
|
|
28
53
|
/** @internal */
|
|
29
54
|
export declare const PaypalOptions$outboundSchema: z.ZodType<PaypalOptions$Outbound, z.ZodTypeDef, PaypalOptions>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paypaloptions.d.ts","sourceRoot":"","sources":["../../src/models/components/paypaloptions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,+BAA+B,EAC/B,wCAAwC,EAEzC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,qBAAqB,EACrB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AAEpC,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,yBAAyB,CAAC,EACtB,+BAA+B,GAC/B,IAAI,GACJ,SAAS,CAAC;IACd;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACnE;;OAEG;IACH,QAAQ,CAAC,EAAE,qBAAqB,GAAG,IAAI,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"paypaloptions.d.ts","sourceRoot":"","sources":["../../src/models/components/paypaloptions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,+BAA+B,EAC/B,wCAAwC,EAEzC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,qBAAqB,EACrB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AAEpC,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,yBAAyB,CAAC,EACtB,+BAA+B,GAC/B,IAAI,GACJ,SAAS,CAAC;IACd;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG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,aAAa,CAqBb,CAAC;AAEH,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAExE"}
|
|
@@ -47,10 +47,19 @@ exports.PaypalOptions$outboundSchema = z.object({
|
|
|
47
47
|
orderUpdateCallbackConfig: z.nullable(paypalorderupdatecallbackconfig_js_1.PaypalOrderUpdateCallbackConfig$outboundSchema).optional(),
|
|
48
48
|
additionalData: z.nullable(z.array(z.record(z.string()))).optional(),
|
|
49
49
|
shipping: z.nullable(paypalshippingoptions_js_1.PaypalShippingOptions$outboundSchema).optional(),
|
|
50
|
+
userAction: z.nullable(z.string()).optional(),
|
|
51
|
+
shippingPreference: z.nullable(z.string()).optional(),
|
|
52
|
+
brandName: z.nullable(z.string()).optional(),
|
|
53
|
+
landingPage: z.nullable(z.string()).optional(),
|
|
54
|
+
locale: z.nullable(z.string()).optional(),
|
|
50
55
|
}).transform((v) => {
|
|
51
56
|
return (0, primitives_js_1.remap)(v, {
|
|
52
57
|
orderUpdateCallbackConfig: "order_update_callback_config",
|
|
53
58
|
additionalData: "additional_data",
|
|
59
|
+
userAction: "user_action",
|
|
60
|
+
shippingPreference: "shipping_preference",
|
|
61
|
+
brandName: "brand_name",
|
|
62
|
+
landingPage: "landing_page",
|
|
54
63
|
});
|
|
55
64
|
});
|
|
56
65
|
function paypalOptionsToJSON(paypalOptions) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paypaloptions.js","sourceRoot":"","sources":["../../src/models/components/paypaloptions.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"paypaloptions.js","sourceRoot":"","sources":["../../src/models/components/paypaloptions.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+FH,kDAEC;AA/FD,0CAA4B;AAC5B,2DAA0D;AAC1D,6FAI8C;AAC9C,yEAIoC;AAu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CAAC,aAAa,CAAC,CAAC,CAAC;AAC3E,CAAC"}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -77,7 +77,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
77
77
|
export const SDK_METADATA = {
|
|
78
78
|
language: "typescript",
|
|
79
79
|
openapiDocVersion: "1.0.0",
|
|
80
|
-
sdkVersion: "2.3.
|
|
81
|
-
genVersion: "2.
|
|
82
|
-
userAgent: "speakeasy-sdk/typescript 2.3.
|
|
80
|
+
sdkVersion: "2.3.7",
|
|
81
|
+
genVersion: "2.911.0",
|
|
82
|
+
userAgent: "speakeasy-sdk/typescript 2.3.7 2.911.0 1.0.0 @gr4vy/sdk",
|
|
83
83
|
} as const;
|
|
@@ -31,6 +31,26 @@ export type PaypalOptions = {
|
|
|
31
31
|
* Shipping information to be passed to the PayPal API.
|
|
32
32
|
*/
|
|
33
33
|
shipping?: PaypalShippingOptions | null | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Customizes the PayPal Checkout button text. Use `PAY_NOW` to show a pay now button, or `CONTINUE` to show a continue button for deferred payments.
|
|
36
|
+
*/
|
|
37
|
+
userAction?: string | null | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Controls the shipping address display in the PayPal Checkout flow. Use `GET_FROM_FILE` to use the shipping address from the PayPal account, `NO_SHIPPING` to hide shipping address fields, or `SET_PROVIDED_ADDRESS` to use the shipping address provided in the request.
|
|
40
|
+
*/
|
|
41
|
+
shippingPreference?: string | null | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* The merchant brand name that appears in the PayPal Checkout flow. Maximum 127 characters.
|
|
44
|
+
*/
|
|
45
|
+
brandName?: string | null | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* The type of landing page to display on the PayPal Checkout. Use `LOGIN` to show the PayPal login page, `GUEST_CHECKOUT` to show the guest checkout page, or `NO_PREFERENCE` to let PayPal decide.
|
|
48
|
+
*/
|
|
49
|
+
landingPage?: string | null | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* The BCP 47 locale used to localize the PayPal Checkout page. For example, `en-US` or `fr-FR`.
|
|
52
|
+
*/
|
|
53
|
+
locale?: string | null | undefined;
|
|
34
54
|
};
|
|
35
55
|
|
|
36
56
|
/** @internal */
|
|
@@ -41,6 +61,11 @@ export type PaypalOptions$Outbound = {
|
|
|
41
61
|
| undefined;
|
|
42
62
|
additional_data?: Array<{ [k: string]: string }> | null | undefined;
|
|
43
63
|
shipping?: PaypalShippingOptions$Outbound | null | undefined;
|
|
64
|
+
user_action?: string | null | undefined;
|
|
65
|
+
shipping_preference?: string | null | undefined;
|
|
66
|
+
brand_name?: string | null | undefined;
|
|
67
|
+
landing_page?: string | null | undefined;
|
|
68
|
+
locale?: string | null | undefined;
|
|
44
69
|
};
|
|
45
70
|
|
|
46
71
|
/** @internal */
|
|
@@ -54,10 +79,19 @@ export const PaypalOptions$outboundSchema: z.ZodType<
|
|
|
54
79
|
).optional(),
|
|
55
80
|
additionalData: z.nullable(z.array(z.record(z.string()))).optional(),
|
|
56
81
|
shipping: z.nullable(PaypalShippingOptions$outboundSchema).optional(),
|
|
82
|
+
userAction: z.nullable(z.string()).optional(),
|
|
83
|
+
shippingPreference: z.nullable(z.string()).optional(),
|
|
84
|
+
brandName: z.nullable(z.string()).optional(),
|
|
85
|
+
landingPage: z.nullable(z.string()).optional(),
|
|
86
|
+
locale: z.nullable(z.string()).optional(),
|
|
57
87
|
}).transform((v) => {
|
|
58
88
|
return remap$(v, {
|
|
59
89
|
orderUpdateCallbackConfig: "order_update_callback_config",
|
|
60
90
|
additionalData: "additional_data",
|
|
91
|
+
userAction: "user_action",
|
|
92
|
+
shippingPreference: "shipping_preference",
|
|
93
|
+
brandName: "brand_name",
|
|
94
|
+
landingPage: "landing_page",
|
|
61
95
|
});
|
|
62
96
|
});
|
|
63
97
|
|