File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 11import {
22 INVOICE_NOTIFICATION_OPTIONS ,
33 LOCALE_OPTIONS ,
4+ PAYMENT_METHODS_OPTIONS ,
45} from "../../common/constants.mjs" ;
56import { parseObject } from "../../common/utils.mjs" ;
67import xendit from "../../xendit.app.mjs" ;
@@ -99,10 +100,10 @@ export default {
99100 optional : true ,
100101 } ,
101102 paymentMethods : {
102- propDefinition : [
103- xendit ,
104- "paymentMethods ",
105- ] ,
103+ type : "string[]" ,
104+ label : "Payment Methods" ,
105+ description : "Specify the payment channels that you wish to be available on your Invoice. ",
106+ options : PAYMENT_METHODS_OPTIONS ,
106107 optional : true ,
107108 } ,
108109 currency : {
Original file line number Diff line number Diff line change 1+ import { v7 as uuidV7 } from "uuid" ;
12import { parseObject } from "../../common/utils.mjs" ;
23import xendit from "../../xendit.app.mjs" ;
34
@@ -80,6 +81,9 @@ export default {
8081 async run ( { $ } ) {
8182 const response = await this . xendit . createPayout ( {
8283 $,
84+ headers : {
85+ "idempotency-key" : uuidV7 ( ) ,
86+ } ,
8387 data : {
8488 reference_id : this . referenceId ,
8589 channel_code : this . channelCode ,
Original file line number Diff line number Diff line change 1313 "access" : " public"
1414 },
1515 "dependencies" : {
16- "@pipedream/platform" : " ^3.0.3"
16+ "@pipedream/platform" : " ^3.0.3" ,
17+ "uuid" : " ^11.1.0"
1718 }
1819}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export default {
2020 return {
2121 options : data . map ( ( { id } ) => id ) ,
2222 context : {
23- afterId : data [ data . length - 1 ] . id ,
23+ afterId : data [ data ? .length - 1 ] ? .id ,
2424 } ,
2525 } ;
2626 } ,
You can’t perform that action at this time.
0 commit comments