@commercelayer/cli-plugin-triggers 1.1.2 → 1.3.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.
- package/README.md +613 -349
- package/lib/base.d.ts +4 -2
- package/lib/base.js +17 -3
- package/lib/commands/adyen_payment/details.d.ts +3 -0
- package/lib/commands/adyen_payment/details.js +2 -0
- package/lib/commands/adyen_payment/index.d.ts +3 -0
- package/lib/commands/authorization/capture.d.ts +3 -0
- package/lib/commands/authorization/capture.js +2 -0
- package/lib/commands/authorization/capture_amount_cents.d.ts +3 -0
- package/lib/commands/authorization/capture_amount_cents.js +2 -0
- package/lib/commands/authorization/index.d.ts +3 -0
- package/lib/commands/authorization/void.d.ts +3 -0
- package/lib/commands/authorization/void.js +2 -0
- package/lib/commands/bundle/compute_compare_at_amount.d.ts +3 -0
- package/lib/commands/bundle/compute_compare_at_amount.js +2 -0
- package/lib/commands/bundle/compute_price_amount.d.ts +18 -0
- package/lib/commands/bundle/compute_price_amount.js +23 -0
- package/lib/commands/bundle/index.d.ts +3 -0
- package/lib/commands/capture/index.d.ts +3 -0
- package/lib/commands/capture/refund.d.ts +3 -0
- package/lib/commands/capture/refund.js +2 -0
- package/lib/commands/capture/refund_amount_cents.d.ts +3 -0
- package/lib/commands/capture/refund_amount_cents.js +2 -0
- package/lib/commands/checkout_com_payment/details.d.ts +3 -0
- package/lib/commands/checkout_com_payment/details.js +2 -0
- package/lib/commands/checkout_com_payment/index.d.ts +3 -0
- package/lib/commands/checkout_com_payment/refresh.d.ts +3 -0
- package/lib/commands/checkout_com_payment/refresh.js +2 -0
- package/lib/commands/customer_password_reset/index.d.ts +3 -0
- package/lib/commands/customer_password_reset/reset_password_token.d.ts +3 -0
- package/lib/commands/customer_password_reset/reset_password_token.js +2 -0
- package/lib/commands/gift_card/activate.d.ts +3 -0
- package/lib/commands/gift_card/activate.js +2 -0
- package/lib/commands/gift_card/balance_change_cents.d.ts +3 -0
- package/lib/commands/gift_card/balance_change_cents.js +2 -0
- package/lib/commands/gift_card/deactivate.d.ts +3 -0
- package/lib/commands/gift_card/deactivate.js +2 -0
- package/lib/commands/gift_card/index.d.ts +3 -0
- package/lib/commands/gift_card/purchase.d.ts +3 -0
- package/lib/commands/gift_card/purchase.js +2 -0
- package/lib/commands/in_stock_subscription/activate.d.ts +3 -0
- package/lib/commands/in_stock_subscription/activate.js +2 -0
- package/lib/commands/in_stock_subscription/deactivate.d.ts +3 -0
- package/lib/commands/in_stock_subscription/deactivate.js +2 -0
- package/lib/commands/in_stock_subscription/index.d.ts +3 -0
- package/lib/commands/{adyen_payment/authorize.d.ts → klarna_payment/index.d.ts} +4 -1
- package/lib/commands/klarna_payment/index.js +40 -0
- package/lib/commands/{checkout_com_payment/authorize.d.ts → klarna_payment/update.d.ts} +4 -1
- package/lib/commands/klarna_payment/update.js +23 -0
- package/lib/commands/order/approve.d.ts +3 -0
- package/lib/commands/order/approve.js +2 -0
- package/lib/commands/order/approve_and_capture.d.ts +3 -0
- package/lib/commands/order/approve_and_capture.js +2 -0
- package/lib/commands/order/archive.d.ts +3 -0
- package/lib/commands/order/archive.js +2 -0
- package/lib/commands/order/authorization_amount_cents.d.ts +3 -0
- package/lib/commands/order/authorization_amount_cents.js +2 -0
- package/lib/commands/order/authorize.d.ts +3 -0
- package/lib/commands/order/authorize.js +2 -0
- package/lib/commands/order/billing_address_clone_id.d.ts +3 -0
- package/lib/commands/order/billing_address_clone_id.js +2 -0
- package/lib/commands/order/billing_address_same_as_shipping.d.ts +3 -0
- package/lib/commands/order/billing_address_same_as_shipping.js +2 -0
- package/lib/commands/order/cancel.d.ts +3 -0
- package/lib/commands/order/cancel.js +2 -0
- package/lib/commands/order/capture.d.ts +3 -0
- package/lib/commands/order/capture.js +2 -0
- package/lib/commands/order/customer_payment_source_id.d.ts +3 -0
- package/lib/commands/order/customer_payment_source_id.js +2 -0
- package/lib/commands/order/index.d.ts +3 -0
- package/lib/commands/order/place.d.ts +3 -0
- package/lib/commands/order/place.js +2 -0
- package/lib/commands/order/refresh.d.ts +3 -0
- package/lib/commands/order/refresh.js +2 -0
- package/lib/commands/order/refund.d.ts +3 -0
- package/lib/commands/order/refund.js +2 -0
- package/lib/commands/order/save_billing_address_to_customer_address_book.d.ts +3 -0
- package/lib/commands/order/save_billing_address_to_customer_address_book.js +2 -0
- package/lib/commands/order/save_payment_source_to_customer_wallet.d.ts +3 -0
- package/lib/commands/order/save_payment_source_to_customer_wallet.js +2 -0
- package/lib/commands/order/save_shipping_address_to_customer_address_book.d.ts +3 -0
- package/lib/commands/order/save_shipping_address_to_customer_address_book.js +2 -0
- package/lib/commands/order/shipping_address_clone_id.d.ts +3 -0
- package/lib/commands/order/shipping_address_clone_id.js +2 -0
- package/lib/commands/order/shipping_address_same_as_billing.d.ts +3 -0
- package/lib/commands/order/shipping_address_same_as_billing.js +2 -0
- package/lib/commands/order/unarchive.d.ts +3 -0
- package/lib/commands/order/unarchive.js +2 -0
- package/lib/commands/order/update_taxes.d.ts +3 -0
- package/lib/commands/order/update_taxes.js +2 -0
- package/lib/commands/order_subscription/activate.d.ts +3 -0
- package/lib/commands/order_subscription/activate.js +2 -0
- package/lib/commands/order_subscription/cancel.d.ts +3 -0
- package/lib/commands/order_subscription/cancel.js +2 -0
- package/lib/commands/order_subscription/deactivate.d.ts +3 -0
- package/lib/commands/order_subscription/deactivate.js +2 -0
- package/lib/commands/order_subscription/index.d.ts +3 -0
- package/lib/commands/return/approve.d.ts +3 -0
- package/lib/commands/return/approve.js +2 -0
- package/lib/commands/return/archive.d.ts +3 -0
- package/lib/commands/return/archive.js +2 -0
- package/lib/commands/return/cancel.d.ts +3 -0
- package/lib/commands/return/cancel.js +2 -0
- package/lib/commands/return/index.d.ts +3 -0
- package/lib/commands/return/receive.d.ts +3 -0
- package/lib/commands/return/receive.js +2 -0
- package/lib/commands/return/reject.d.ts +3 -0
- package/lib/commands/return/reject.js +2 -0
- package/lib/commands/return/request.d.ts +3 -0
- package/lib/commands/return/request.js +2 -0
- package/lib/commands/return/restock.d.ts +3 -0
- package/lib/commands/return/restock.js +2 -0
- package/lib/commands/return/ship.d.ts +3 -0
- package/lib/commands/return/ship.js +2 -0
- package/lib/commands/return/unarchive.d.ts +3 -0
- package/lib/commands/return/unarchive.js +2 -0
- package/lib/commands/return_line_item/index.d.ts +3 -0
- package/lib/commands/return_line_item/restock.d.ts +3 -0
- package/lib/commands/return_line_item/restock.js +2 -0
- package/lib/commands/shipment/get_rates.d.ts +3 -0
- package/lib/commands/shipment/get_rates.js +2 -0
- package/lib/commands/shipment/index.d.ts +3 -0
- package/lib/commands/shipment/on_hold.d.ts +3 -0
- package/lib/commands/shipment/on_hold.js +2 -0
- package/lib/commands/shipment/packing.d.ts +3 -0
- package/lib/commands/shipment/packing.js +2 -0
- package/lib/commands/shipment/picking.d.ts +3 -0
- package/lib/commands/shipment/picking.js +2 -0
- package/lib/commands/shipment/purchase.d.ts +3 -0
- package/lib/commands/shipment/purchase.js +2 -0
- package/lib/commands/shipment/ready_to_ship.d.ts +3 -0
- package/lib/commands/shipment/ready_to_ship.js +2 -0
- package/lib/commands/shipment/ship.d.ts +3 -0
- package/lib/commands/shipment/ship.js +2 -0
- package/lib/commands/stock_transfer/cancel.d.ts +3 -0
- package/lib/commands/stock_transfer/cancel.js +2 -0
- package/lib/commands/stock_transfer/complete.d.ts +3 -0
- package/lib/commands/stock_transfer/complete.js +2 -0
- package/lib/commands/stock_transfer/in_transit.d.ts +3 -0
- package/lib/commands/stock_transfer/in_transit.js +2 -0
- package/lib/commands/stock_transfer/index.d.ts +3 -0
- package/lib/commands/stock_transfer/picking.d.ts +3 -0
- package/lib/commands/stock_transfer/picking.js +2 -0
- package/lib/commands/stock_transfer/upcoming.d.ts +3 -0
- package/lib/commands/stock_transfer/upcoming.js +2 -0
- package/lib/commands/stripe_payment/index.d.ts +3 -0
- package/lib/commands/stripe_payment/refresh.d.ts +3 -0
- package/lib/commands/stripe_payment/refresh.js +2 -0
- package/lib/commands/webhook/index.d.ts +3 -0
- package/lib/commands/webhook/reset_circuit.d.ts +3 -0
- package/lib/commands/webhook/reset_circuit.js +2 -0
- package/lib/triggers/adyen_payments.d.ts +1 -1
- package/lib/triggers/adyen_payments.js +0 -5
- package/lib/triggers/bundles.d.ts +1 -1
- package/lib/triggers/bundles.js +5 -0
- package/lib/triggers/checkout_com_payments.d.ts +1 -1
- package/lib/triggers/checkout_com_payments.js +0 -5
- package/lib/triggers/klarna_payments.d.ts +5 -0
- package/lib/triggers/klarna_payments.js +10 -0
- package/oclif.manifest.json +1 -1
- package/package.json +12 -6
- package/lib/commands/adyen_payment/authorize.js +0 -21
- package/lib/commands/checkout_com_payment/authorize.js +0 -21
package/lib/base.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { Order } from '@commercelayer/sdk';
|
|
2
1
|
import Command, { flags } from '@oclif/command';
|
|
3
2
|
export default abstract class extends Command {
|
|
4
3
|
static flags: {
|
|
5
4
|
organization: flags.IOptionFlag<string>;
|
|
6
5
|
domain: flags.IOptionFlag<string | undefined>;
|
|
7
6
|
accessToken: flags.IOptionFlag<string>;
|
|
7
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
10
|
};
|
|
9
11
|
static args: {
|
|
10
12
|
name: string;
|
|
@@ -14,7 +16,7 @@ export default abstract class extends Command {
|
|
|
14
16
|
init(): Promise<any>;
|
|
15
17
|
catch(error: any): Promise<void>;
|
|
16
18
|
protected handleError(error: any, flags?: any): void;
|
|
17
|
-
protected printOutput(
|
|
19
|
+
protected printOutput(res: any, flags: any): void;
|
|
18
20
|
protected successMessage(resource: string, action: string, id: string): void;
|
|
19
21
|
}
|
|
20
22
|
export { flags };
|
package/lib/base.js
CHANGED
|
@@ -31,8 +31,8 @@ class default_1 extends command_1.default {
|
|
|
31
31
|
else
|
|
32
32
|
throw error;
|
|
33
33
|
}
|
|
34
|
-
printOutput(
|
|
35
|
-
this.log(cli_core_1.output.formatOutput(
|
|
34
|
+
printOutput(res, flags) {
|
|
35
|
+
this.log(cli_core_1.output.formatOutput(res, flags));
|
|
36
36
|
}
|
|
37
37
|
successMessage(resource, action, id) {
|
|
38
38
|
this.log(`\nAction ${chalk_1.default.italic.cyanBright(action)} executed without errors on ${resource.replace(/_/g, ' ')} ${chalk_1.default.yellowBright(id)}\n`);
|
|
@@ -58,7 +58,21 @@ default_1.flags = {
|
|
|
58
58
|
required: true,
|
|
59
59
|
env: 'CL_CLI_ACCESS_TOKEN',
|
|
60
60
|
}),
|
|
61
|
+
print: command_1.flags.boolean({
|
|
62
|
+
char: 'p',
|
|
63
|
+
description: 'print out the modified resource',
|
|
64
|
+
}),
|
|
65
|
+
json: command_1.flags.boolean({
|
|
66
|
+
char: 'j',
|
|
67
|
+
description: 'print result in JSON format',
|
|
68
|
+
dependsOn: ['print'],
|
|
69
|
+
}),
|
|
70
|
+
unformatted: command_1.flags.boolean({
|
|
71
|
+
char: 'u',
|
|
72
|
+
description: 'print JSON output without indentation',
|
|
73
|
+
dependsOn: ['json'],
|
|
74
|
+
}),
|
|
61
75
|
};
|
|
62
76
|
default_1.args = [
|
|
63
|
-
{ name: 'id', description: 'the unique
|
|
77
|
+
{ name: 'id', description: 'the unique ID of the resource', required: true },
|
|
64
78
|
];
|
|
@@ -5,6 +5,9 @@ export default class AdyenPaymentDetails extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class AdyenPaymentDetails extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(AdyenPaymentDetails);
|
|
11
11
|
const res = await (0, exec_1.default)('adyen_payments', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('adyen_payment', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class AdyenPaymentIndex extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -5,6 +5,9 @@ export default class AuthorizationCapture extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class AuthorizationCapture extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(AuthorizationCapture);
|
|
11
11
|
const res = await (0, exec_1.default)('authorizations', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('authorization', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class AuthorizationCaptureAmountCents extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class AuthorizationCaptureAmountCents extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(AuthorizationCaptureAmountCents);
|
|
11
11
|
const res = await (0, exec_1.default)('authorizations', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('authorization', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class AuthorizationIndex extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -5,6 +5,9 @@ export default class AuthorizationVoid extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class AuthorizationVoid extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(AuthorizationVoid);
|
|
11
11
|
const res = await (0, exec_1.default)('authorizations', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('authorization', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class BundleComputeCompareAtAmount extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class BundleComputeCompareAtAmount extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(BundleComputeCompareAtAmount);
|
|
11
11
|
const res = await (0, exec_1.default)('bundles', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('bundle', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Command from '../../base';
|
|
2
|
+
export default class BundleComputePriceAmount extends Command {
|
|
3
|
+
static description: string;
|
|
4
|
+
static flags: {
|
|
5
|
+
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
|
+
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
|
+
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
11
|
+
};
|
|
12
|
+
static args: {
|
|
13
|
+
name: string;
|
|
14
|
+
description: string;
|
|
15
|
+
required: boolean;
|
|
16
|
+
}[];
|
|
17
|
+
run(): Promise<any>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const base_1 = (0, tslib_1.__importDefault)(require("../../base"));
|
|
5
|
+
const exec_1 = (0, tslib_1.__importDefault)(require("../../exec"));
|
|
6
|
+
const bundles_1 = require("../../triggers/bundles");
|
|
7
|
+
const TRIGGER = 'compute_price_amount';
|
|
8
|
+
class BundleComputePriceAmount extends base_1.default {
|
|
9
|
+
async run() {
|
|
10
|
+
const { args, flags } = this.parse(BundleComputePriceAmount);
|
|
11
|
+
const res = await (0, exec_1.default)('bundles', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
14
|
+
this.successMessage('bundle', TRIGGER, res.id);
|
|
15
|
+
return res;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.default = BundleComputePriceAmount;
|
|
19
|
+
BundleComputePriceAmount.description = bundles_1.triggers[TRIGGER].description;
|
|
20
|
+
BundleComputePriceAmount.flags = Object.assign({}, base_1.default.flags);
|
|
21
|
+
BundleComputePriceAmount.args = [
|
|
22
|
+
...base_1.default.args,
|
|
23
|
+
];
|
|
@@ -5,6 +5,9 @@ export default class BundleIndex extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -5,6 +5,9 @@ export default class CaptureIndex extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -5,6 +5,9 @@ export default class CaptureRefund extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class CaptureRefund extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(CaptureRefund);
|
|
11
11
|
const res = await (0, exec_1.default)('captures', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('capture', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class CaptureRefundAmountCents extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class CaptureRefundAmountCents extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(CaptureRefundAmountCents);
|
|
11
11
|
const res = await (0, exec_1.default)('captures', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('capture', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class CheckoutComPaymentDetails extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class CheckoutComPaymentDetails extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(CheckoutComPaymentDetails);
|
|
11
11
|
const res = await (0, exec_1.default)('checkout_com_payments', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('checkout_com_payment', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class CheckoutComPaymentIndex extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -5,6 +5,9 @@ export default class CheckoutComPaymentRefresh extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class CheckoutComPaymentRefresh extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(CheckoutComPaymentRefresh);
|
|
11
11
|
const res = await (0, exec_1.default)('checkout_com_payments', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('checkout_com_payment', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class CustomerPasswordResetIndex extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -5,6 +5,9 @@ export default class CustomerPasswordResetResetPasswordToken extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class CustomerPasswordResetResetPasswordToken extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(CustomerPasswordResetResetPasswordToken);
|
|
11
11
|
const res = await (0, exec_1.default)('customer_password_resets', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('customer_password_reset', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class GiftCardActivate extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class GiftCardActivate extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(GiftCardActivate);
|
|
11
11
|
const res = await (0, exec_1.default)('gift_cards', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('gift_card', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class GiftCardBalanceChangeCents extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class GiftCardBalanceChangeCents extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(GiftCardBalanceChangeCents);
|
|
11
11
|
const res = await (0, exec_1.default)('gift_cards', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('gift_card', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class GiftCardDeactivate extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class GiftCardDeactivate extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(GiftCardDeactivate);
|
|
11
11
|
const res = await (0, exec_1.default)('gift_cards', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('gift_card', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class GiftCardIndex extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -5,6 +5,9 @@ export default class GiftCardPurchase extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class GiftCardPurchase extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(GiftCardPurchase);
|
|
11
11
|
const res = await (0, exec_1.default)('gift_cards', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('gift_card', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class InStockSubscriptionActivate extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class InStockSubscriptionActivate extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(InStockSubscriptionActivate);
|
|
11
11
|
const res = await (0, exec_1.default)('in_stock_subscriptions', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('in_stock_subscription', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class InStockSubscriptionDeactivate extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class InStockSubscriptionDeactivate extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(InStockSubscriptionDeactivate);
|
|
11
11
|
const res = await (0, exec_1.default)('in_stock_subscriptions', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('in_stock_subscription', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class InStockSubscriptionIndex extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import Command from '../../base';
|
|
2
|
-
export default class
|
|
2
|
+
export default class KlarnaPaymentIndex extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const base_1 = (0, tslib_1.__importDefault)(require("../../base"));
|
|
5
|
+
const exec_1 = (0, tslib_1.__importDefault)(require("../../exec"));
|
|
6
|
+
const inquirer_1 = (0, tslib_1.__importDefault)(require("inquirer"));
|
|
7
|
+
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
|
|
8
|
+
const klarna_payments_1 = require("../../triggers/klarna_payments");
|
|
9
|
+
const promptAction = async (id) => {
|
|
10
|
+
const answers = await inquirer_1.default.prompt([{
|
|
11
|
+
type: 'list',
|
|
12
|
+
name: 'trigger',
|
|
13
|
+
message: `Select an action to execute on klarna payment ${chalk_1.default.yellowBright(id)}:`,
|
|
14
|
+
choices: Object.keys(klarna_payments_1.triggers).sort().map(a => {
|
|
15
|
+
return { name: a, value: a };
|
|
16
|
+
}),
|
|
17
|
+
loop: false,
|
|
18
|
+
pageSize: 10,
|
|
19
|
+
}]);
|
|
20
|
+
return answers.trigger;
|
|
21
|
+
};
|
|
22
|
+
class KlarnaPaymentIndex extends base_1.default {
|
|
23
|
+
async run() {
|
|
24
|
+
const { args, flags } = this.parse(KlarnaPaymentIndex);
|
|
25
|
+
const id = args.id;
|
|
26
|
+
const action = await promptAction(id);
|
|
27
|
+
const fields = [];
|
|
28
|
+
const res = await (0, exec_1.default)('klarna_payments', id, action, flags, fields);
|
|
29
|
+
this.log();
|
|
30
|
+
this.printOutput(res, flags);
|
|
31
|
+
this.successMessage('klarna payment', action, res.id);
|
|
32
|
+
return res;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.default = KlarnaPaymentIndex;
|
|
36
|
+
KlarnaPaymentIndex.description = 'execute an action on a resource of type klarna_payments';
|
|
37
|
+
KlarnaPaymentIndex.flags = Object.assign({}, base_1.default.flags);
|
|
38
|
+
KlarnaPaymentIndex.args = [
|
|
39
|
+
...base_1.default.args,
|
|
40
|
+
];
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import Command from '../../base';
|
|
2
|
-
export default class
|
|
2
|
+
export default class KlarnaPaymentUpdate extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|